diff --git a/package.json b/package.json index 9d9f1d60..c0ac8866 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-pc-ui", - "version": "4.0.96", + "version": "4.1.0", "description": "A vue based PC component library", "scripts": { "update": "npm install --legacy-peer-deps", diff --git a/packages/language/en-US.ts b/packages/language/en-US.ts index fa59ba84..5e0facfe 100644 --- a/packages/language/en-US.ts +++ b/packages/language/en-US.ts @@ -429,11 +429,19 @@ export default { } }, listDesign: { - fieldSettingTab: 'Field setting', - listSettingTab: 'Parameter setting', + fieldSettingTab: 'Field', + listSettingTab: 'Parameter', + searchTitle: 'Search', + listTitle: 'List', + searchField: 'Search field', + listField: 'List field', activeBtn: { ActionButtonUpdate: 'Edit', ActionButtonDelete: 'Delete' + }, + search: { + addBtn: 'Edit', + emptyText: 'No filter condition is configured.' } }, text: { diff --git a/packages/language/es-ES.ts b/packages/language/es-ES.ts index 7507cbc1..6c843243 100644 --- a/packages/language/es-ES.ts +++ b/packages/language/es-ES.ts @@ -429,11 +429,19 @@ export default { } }, listDesign: { - fieldSettingTab: 'Field setting', - listSettingTab: 'Parameter setting', + fieldSettingTab: 'Field', + listSettingTab: 'Parameter', + searchTitle: 'Search', + listTitle: 'List', + searchField: 'Search field', + listField: 'List field', activeBtn: { ActionButtonUpdate: 'Edit', ActionButtonDelete: 'Delete' + }, + search: { + addBtn: 'Edit', + emptyText: 'No filter condition is configured.' } }, text: { diff --git a/packages/language/hu-HU.ts b/packages/language/hu-HU.ts index dc67c690..90dbd5ca 100644 --- a/packages/language/hu-HU.ts +++ b/packages/language/hu-HU.ts @@ -428,7 +428,19 @@ export default { }, listDesign: { fieldSettingTab: '字段设置', - listSettingTab: '参数设置' + listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', + activeBtn: { + ActionButtonUpdate: '编辑', + ActionButtonDelete: '删除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' + } }, /** diff --git a/packages/language/ja-JP.ts b/packages/language/ja-JP.ts index 84a9cee2..4469934b 100644 --- a/packages/language/ja-JP.ts +++ b/packages/language/ja-JP.ts @@ -429,11 +429,19 @@ export default { } }, listDesign: { - fieldSettingTab: 'Field setting', - listSettingTab: 'Parameter setting', + fieldSettingTab: 'Field', + listSettingTab: 'Parameter', + searchTitle: 'Search', + listTitle: 'List', + searchField: 'Search field', + listField: 'List field', activeBtn: { ActionButtonUpdate: 'Edit', ActionButtonDelete: 'Delete' + }, + search: { + addBtn: 'Edit', + emptyText: 'No filter condition is configured.' } }, text: { diff --git a/packages/language/ko-KR.ts b/packages/language/ko-KR.ts index 4262a36d..d44c22e4 100644 --- a/packages/language/ko-KR.ts +++ b/packages/language/ko-KR.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: '字段设置', listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', activeBtn: { ActionButtonUpdate: '编辑', ActionButtonDelete: '删除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' } }, text: { diff --git a/packages/language/pt-BR.ts b/packages/language/pt-BR.ts index 3db35d79..2c95cf33 100644 --- a/packages/language/pt-BR.ts +++ b/packages/language/pt-BR.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: 'Field setting', listSettingTab: 'Parameter setting', + searchTitle: 'Search', + listTitle: 'List', + searchField: 'Search field', + listField: 'List field', activeBtn: { ActionButtonUpdate: 'Edit', ActionButtonDelete: 'Delete' + }, + search: { + addBtn: 'Edit', + emptyText: 'No filter condition is configured.' } }, text: { diff --git a/packages/language/ru-RU.ts b/packages/language/ru-RU.ts index 4262a36d..d44c22e4 100644 --- a/packages/language/ru-RU.ts +++ b/packages/language/ru-RU.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: '字段设置', listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', activeBtn: { ActionButtonUpdate: '编辑', ActionButtonDelete: '删除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' } }, text: { diff --git a/packages/language/vi-VN.ts b/packages/language/vi-VN.ts index 4262a36d..d44c22e4 100644 --- a/packages/language/vi-VN.ts +++ b/packages/language/vi-VN.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: '字段设置', listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', activeBtn: { ActionButtonUpdate: '编辑', ActionButtonDelete: '删除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' } }, text: { diff --git a/packages/language/zh-CN.ts b/packages/language/zh-CN.ts index 4262a36d..d44c22e4 100644 --- a/packages/language/zh-CN.ts +++ b/packages/language/zh-CN.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: '字段设置', listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', activeBtn: { ActionButtonUpdate: '编辑', ActionButtonDelete: '删除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' } }, text: { diff --git a/packages/language/zh-TC.ts b/packages/language/zh-TC.ts index 5ab6a26d..f1451f3a 100644 --- a/packages/language/zh-TC.ts +++ b/packages/language/zh-TC.ts @@ -431,9 +431,17 @@ export default { listDesign: { fieldSettingTab: '字段設置', listSettingTab: '参数设置', + searchTitle: '查询条件', + listTitle: '列表字段', + searchField: '查询字段', + listField: '列表字段', activeBtn: { ActionButtonUpdate: '編輯', ActionButtonDelete: '刪除' + }, + search: { + addBtn: '编辑', + emptyText: '未配置查询条件' } }, text: { diff --git a/packages/list-design/src/default-setting-form.ts b/packages/list-design/src/default-setting-form.ts index dd11c9d7..2181215b 100644 --- a/packages/list-design/src/default-setting-form.ts +++ b/packages/list-design/src/default-setting-form.ts @@ -315,14 +315,14 @@ export const DefaultFieldSettingFormComponent = defineComponent({ default () { return [ h(VxeFormItemComponent, { - title: '查询字段' + title: getI18n('vxe.listDesign.searchField') }, { extra () { return h(VxeButtonComponent, { mode: 'text', status: 'primary', icon: getIcon().FORM_DESIGN_PROPS_EDIT, - content: '编辑', + content: getI18n('vxe.listDesign.search.addBtn'), onClick: addSearchEvent }) }, @@ -342,13 +342,13 @@ export const DefaultFieldSettingFormComponent = defineComponent({ : h('div', { class: 'vxe-list-design--field-configs-empty-data' }, [ - h('span', {}, '暂无查询条件') + h('span', {}, getI18n('vxe.listDesign.search.emptyText')) ]) ] } }), h(VxeFormItemComponent, { - title: '列表字段' + title: getI18n('vxe.listDesign.listField') }, { default () { return renderFieldOptions() @@ -393,10 +393,10 @@ export const DefaultParameterSettingFormComponent = defineComponent({ { label: '列表视图', value: 'list', isExpand: false } ]) - const refFoldOpts = ref([ - { label: '显示', value: true }, - { label: '隐藏', value: false } - ]) + // const refFoldOpts = ref([ + // { label: '显示', value: true }, + // { label: '隐藏', value: false } + // ]) const refSeqOpts = ref([ { label: '显示', value: true }, @@ -705,27 +705,27 @@ export const DefaultParameterSettingFormComponent = defineComponent({ ] } }), - h(VxeFormItemComponent, { - title: '查询配置' - }, { - default () { - const { formData } = listDesignReactData - return [ - h('div', { - class: 'vxe-list-design--widget-form-item-prop-list' - }, [ - h('span', {}, '折叠字段'), - h(VxeRadioGroupComponent, { - modelValue: formData.autoFoldFilter, - options: refFoldOpts.value, - 'onUpdate:modelValue' (val) { - formData.autoFoldFilter = val - } - }) - ]) - ] - } - }), + // h(VxeFormItemComponent, { + // title: '查询配置' + // }, { + // default () { + // const { formData } = listDesignReactData + // return [ + // h('div', { + // class: 'vxe-list-design--widget-form-item-prop-list' + // }, [ + // h('span', {}, '折叠字段'), + // h(VxeRadioGroupComponent, { + // modelValue: formData.autoFoldFilter, + // options: refFoldOpts.value, + // 'onUpdate:modelValue' (val) { + // formData.autoFoldFilter = val + // } + // }) + // ]) + // ] + // } + // }), h(VxeFormItemComponent, { title: '列配置' }, { diff --git a/packages/list-design/src/layout-preview.ts b/packages/list-design/src/layout-preview.ts index bdb121ca..95f6d3eb 100644 --- a/packages/list-design/src/layout-preview.ts +++ b/packages/list-design/src/layout-preview.ts @@ -140,7 +140,7 @@ export default defineComponent({ }, [ h('div', { class: 'vxe-list-design--preview-title' - }, '查询条件'), + }, getI18n('vxe.listDesign.searchTitle')), searchFormItems.length ? h(VxeFormComponent, { data: searchFormData, @@ -149,7 +149,7 @@ export default defineComponent({ : h('div', { class: 'vxe-list-design--field-configs-empty-data' }, [ - h('span', {}, '暂无查询条件') + h('span', {}, getI18n('vxe.listDesign.search.emptyText')) ]) ]), h('div', { @@ -157,7 +157,7 @@ export default defineComponent({ }, [ h('div', { class: 'vxe-list-design--preview-title' - }, '列表字段'), + }, getI18n('vxe.listDesign.listTitle')), VxeTableGridComponent ? h(VxeTableGridComponent, { ref: refGrid,