Browse Source

字典占位符修改

tongshangming 2 years ago
parent
commit
4e2f3eeaf2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/form/FormComp.vue

+ 1 - 1
src/components/form/FormComp.vue

@@ -20,7 +20,7 @@ const modelValue = computed({
 })
 
 const placeholder = (item: BasicFormItem) => {
-  if (['select', 'cascader'].includes(item.type)) {
+  if (['select', 'cascader', 'date-picker', 'time-picker', 'time-select', 'dict'].includes(item.type)) {
     return '请选择' + item.label
   } else {
     return '请输入' + item.label