diff --git a/src/components/GiForm/src/GiForm.vue b/src/components/GiForm/src/GiForm.vue index 9d9b78b..00764f0 100644 --- a/src/components/GiForm/src/GiForm.vue +++ b/src/components/GiForm/src/GiForm.vue @@ -142,10 +142,10 @@ const dicData: Record = reactive({}) const getComponentBindProps = (item: ColumnItem) => { // 组件默认配置映射表 const ConfigMap = new Map>([ - ['input', { allowClear: true, placeholder: `请输入${item.label}`, maxLength: 255, showWordLimit: true }], - ['input-password', { placeholder: `请输入${item.label}` }], + ['input', { allowClear: true, placeholder: `请输入${item.label}`, maxLength: 255, showWordLimit: !props.search }], + ['input-password', { placeholder: `请输入${item.label}`, showWordLimit: !props.search }], ['input-number', { placeholder: `请输入${item.label}` }], - ['textarea', { allowClear: false, placeholder: `请输入${item.label}`, maxLength: 200, showWordLimit: true, autoSize: { minRows: 3, maxRows: 5 } }], + ['textarea', { allowClear: false, placeholder: `请输入${item.label}`, maxLength: 200, showWordLimit: !props.search, autoSize: { minRows: 3, maxRows: 5 } }], ['input-tag', { allowClear: true, placeholder: `请输入${item.label}` }], ['mention', { allowClear: true, placeholder: `请输入${item.label}` }], ['select', { allowClear: true, placeholder: `请选择${item.label}`, options: dicData[item.field] || [] }], diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 00c0146..3cffbf7 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -119,7 +119,6 @@ const queryFormColumns: ColumnItem[] = reactive([ }, props: { placeholder: '搜索用户名/昵称/描述', - showWordLimit: false, }, }, {