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" v-if="showColumnSettingPopover"
:cancel-title="$tc('RestoreDefault')" :cancel-title="$tc('RestoreDefault')"
:destroy-on-close="true" :destroy-on-close="true"
:title="$tc('TableSetting')" :title="$tc('ListPreference')"
:visible.sync="showColumnSettingPopover" :visible.sync="showColumnSettingPopover"
top="10%" top="10%"
width="50%" width="50%"

View File

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

View File

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