diff --git a/web/apps/web-ele/src/components/zq-form/form-selector/form-selector.vue b/web/apps/web-ele/src/components/zq-form/form-selector/form-selector.vue index e368e62..b87e34d 100644 --- a/web/apps/web-ele/src/components/zq-form/form-selector/form-selector.vue +++ b/web/apps/web-ele/src/components/zq-form/form-selector/form-selector.vue @@ -27,14 +27,24 @@ defineOptions({ inheritAttrs: false, }); +const selectorText = { + clickToSelect: '点击选择', + nodeLabel: '名称', + nodeValue: '值', + search: '搜索', + selectData: '选择数据', + selectFormFirst: '请先选择表单', + selectedCount: (count: number) => `已选择 ${count} 项`, +}; + const props = withDefaults(defineProps(), { multiple: false, collapseTags: false, maxCollapseTags: 1, - placeholder: () => $t('form-design.attribute.clickToSelect'), + placeholder: selectorText.clickToSelect, disabled: false, clearable: true, - dialogTitle: () => $t('form-design.attribute.selectData'), + dialogTitle: selectorText.selectData, dialogWidth: '1200px', valueField: 'id', labelField: 'name', @@ -359,7 +369,7 @@ function handleRemoveTag(value: string) {
- - + + @@ -420,7 +430,7 @@ function handleRemoveTag(value: string) {
- {{ $t('form-design.attribute.selectFormFirst') }} + {{ selectorText.selectFormFirst }}