Skip to content

Commit

Permalink
feat: 文本框自定义样式配置调整
Browse files Browse the repository at this point in the history
  • Loading branch information
F-jianchao committed Dec 4, 2024
1 parent bd41fff commit d14c6b7
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions packages/amis-editor/src/plugin/Form/InputText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,21 +447,30 @@ export class TextControlPlugin extends BasePlugin {
})
]
},
getSchemaTpl('theme:cssCode', {
themeClass: [
getSchemaTpl('theme:singleCssCode', {
selectors: [
{
name: '输入框',
value: '',
className: 'inputControlClassName',
state: ['default', 'hover', 'active']
label: '表单项基本样式',
isRoot: true,
selector: '.cxd-from-item'
},
{
name: 'addOn',
value: 'addOn',
className: 'addOnClassName'
label: '标题样式',
selector: '.cxd-Form-label'
},
{
label: '文本框基本样式',
selector: '.cxd-TextControl'
},
{
label: '输入框外层样式',
selector: '.cxd-TextControl-input'
},
{
label: '输入框样式',
selector: '.cxd-TextControl-input input'
}
],
isFormItem: true
]
})
],
{...context?.schema, configTitle: 'style'}
Expand Down

0 comments on commit d14c6b7

Please sign in to comment.