Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-13 15:42:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8656940d457d1bd73b88b312497d5500221c56d4
8656940d
1 parent
7a727f8b
fix 默认值获取
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
src/components/MultiRuleField/index.vue
src/components/NumberField/index.vue
src/components/MultiRuleField/index.vue
View file @
8656940
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-02-10 14:41:52
* @LastEditTime: 202
4-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([]);
...
...
src/components/NumberField/index.vue
View file @
8656940
<!--
* @Date: 2022-09-14 14:44:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-02-09 15:54:02
* @LastEditTime: 202
4-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);
...
...
Please
register
or
login
to post a comment