Showing
2 changed files
with
8 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-30 11:34:19 | 2 | * @Date: 2022-08-30 11:34:19 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-10 14:41:52 | 4 | + * @LastEditTime: 2024-06-13 15:31:34 |
| 5 | * @FilePath: /data-table/src/components/MultiRuleField/index.vue | 5 | * @FilePath: /data-table/src/components/MultiRuleField/index.vue |
| 6 | * @Description: 多选规则确认控件 | 6 | * @Description: 多选规则确认控件 |
| 7 | --> | 7 | --> |
| ... | @@ -69,6 +69,8 @@ const themeVars = { | ... | @@ -69,6 +69,8 @@ const themeVars = { |
| 69 | }; | 69 | }; |
| 70 | onMounted(() => { | 70 | onMounted(() => { |
| 71 | $(".rule-box").css("color", themeVars.radioColor); | 71 | $(".rule-box").css("color", themeVars.radioColor); |
| 72 | + // 默认值 | ||
| 73 | + props.item.value = props.item.component_props.default; | ||
| 72 | }); | 74 | }); |
| 73 | const show = ref(false); | 75 | const show = ref(false); |
| 74 | const checked = ref([]); | 76 | const checked = ref([]); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-14 14:44:30 | 2 | * @Date: 2022-09-14 14:44:30 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-09 15:54:02 | 4 | + * @LastEditTime: 2024-06-13 15:38:00 |
| 5 | * @FilePath: /data-table/src/components/NumberField/index.vue | 5 | * @FilePath: /data-table/src/components/NumberField/index.vue |
| 6 | * @Description: 数字输入框 | 6 | * @Description: 数字输入框 |
| 7 | --> | 7 | --> |
| ... | @@ -64,6 +64,10 @@ const HideShow = computed(() => { | ... | @@ -64,6 +64,10 @@ const HideShow = computed(() => { |
| 64 | }) | 64 | }) |
| 65 | let content = ""; | 65 | let content = ""; |
| 66 | 66 | ||
| 67 | +onMounted(() => { | ||
| 68 | + props.item.value = props.item.component_props.default; | ||
| 69 | +}) | ||
| 70 | + | ||
| 67 | const store = mainStore(); | 71 | const store = mainStore(); |
| 68 | const { fieldName } = storeToRefs(store); | 72 | const { fieldName } = storeToRefs(store); |
| 69 | 73 | ... | ... |
-
Please register or login to post a comment