Compare commits

...

2 Commits

Author SHA1 Message Date
jiangweidong
150795ebac feat: Custom change password supports configuration of interactive items 2024-10-24 17:02:16 +08:00
feng
a636bb2037 perf: List preference translate 2024-10-18 14:32:45 +08:00
3 changed files with 7 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
v-if="showColumnSettingPopover"
:cancel-title="$tc('RestoreDefault')"
:destroy-on-close="true"
:title="$tc('TableSetting')"
:title="$tc('ListPreference')"
:visible.sync="showColumnSettingPopover"
top="10%"
width="50%"

View File

@@ -106,7 +106,7 @@ export default {
{
name: 'actionSetting',
icon: 'system-setting',
tip: this.$t('TableSetting'),
tip: this.$t('ListPreference'),
has: this.hasColumnSetting,
callback: this.handleTableSettingClick.bind(this)
},

View File

@@ -141,6 +141,7 @@ export default {
if (Object.keys(filterField?.children || {}).length > 0) {
for (const [k, v] of Object.entries(filterField.children)) {
let component = 'el-input'
const el = {}
switch (v?.type) {
case 'list':
component = DynamicInput
@@ -148,12 +149,15 @@ export default {
case 'boolean':
component = Switcher
break
case 'text':
el['type'] = 'textarea'
break
}
if (param) {
v.default = param[k] || v.default
}
const item = { ...v, component: component }
const item = { ...v, component: component, el: el }
fieldsMeta[method].fields.push(k)
fieldsMeta[method].fieldsMeta[k] = item
}