Skip to content

Commit

Permalink
feat: Custom change password supports configuration of interactive items
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Jiangweidong committed Nov 1, 2024
1 parent 6e894c3 commit 6fad0de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/assets/Platform/AutomationParamsSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,23 @@ 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
break
case 'boolean':
component = Switcher
break
case 'text':
el['text'] = '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
}
Expand Down

0 comments on commit 6fad0de

Please sign in to comment.