Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Dec 18, 2024
1 parent 27a82a9 commit 3cd5fb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/src/components/FormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
}
},
};
const Comp = componentMap.get(component) as ReturnType<typeof defineComponent>;

const { autoSetPlaceHolder, size } = props.formProps;
const propsData: Recordable = {
Expand Down Expand Up @@ -317,6 +316,7 @@
// bindValue.treeCheckable = true;
}

const Comp = componentMap.get(component) as ReturnType<typeof defineComponent>;
const compAttr: Recordable = {
...propsData,
...on,
Expand Down
3 changes: 1 addition & 2 deletions src/components/Form/src/components/JeeSiteSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

const { t } = useI18n();
const attrs = useAttrs();
const [state] = useRuleFormItem(props);
const optionsRef = ref<Recordable[]>(props.options);
const isFirstLoad = ref<boolean>(false);
const loading = ref<boolean>(false);
Expand All @@ -90,8 +91,6 @@
};
});

const [state] = useRuleFormItem(props);

if (!isEmpty(props.dictType)) {
const { initSelectOptions } = useDict();
initSelectOptions(optionsRef, props.dictType);
Expand Down
3 changes: 1 addition & 2 deletions src/components/Form/src/components/JeeSiteTreeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@

const { t } = useI18n();
const attrs = useAttrs();
const [state] = useRuleFormItem(props);
const treeDataRef = ref<Recordable[]>(props.treeData);
const isFirstLoad = ref<boolean>(false);
const loading = ref<boolean>(false);
Expand All @@ -110,8 +111,6 @@
return omit(propsData, 'treeData');
});

const [state] = useRuleFormItem(props);

if (!isEmpty(props.dictType)) {
const { initSelectTreeData } = useDict();
initSelectTreeData(treeDataRef, props.dictType, true);
Expand Down

0 comments on commit 3cd5fb6

Please sign in to comment.