hookehuyr

fix 默认值获取

<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-10 14:41:52
* @LastEditTime: 2024-06-13 15:31:34
* @FilePath: /data-table/src/components/MultiRuleField/index.vue
* @Description: 多选规则确认控件
-->
......@@ -69,6 +69,8 @@ const themeVars = {
};
onMounted(() => {
$(".rule-box").css("color", themeVars.radioColor);
// 默认值
props.item.value = props.item.component_props.default;
});
const show = ref(false);
const checked = ref([]);
......
<!--
* @Date: 2022-09-14 14:44:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-09 15:54:02
* @LastEditTime: 2024-06-13 15:38:00
* @FilePath: /data-table/src/components/NumberField/index.vue
* @Description: 数字输入框
-->
......@@ -64,6 +64,10 @@ const HideShow = computed(() => {
})
let content = "";
onMounted(() => {
props.item.value = props.item.component_props.default;
})
const store = mainStore();
const { fieldName } = storeToRefs(store);
......