Skip to content

Commit 378c2e1

Browse files
committed
fix(vue3 antd): 修复color format选择颜色
1 parent 5b4f0a6 commit 378c2e1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/lib/vue3/vue3-form-ant/src/config/widgets/WIDGET_MAP.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@ export default {
3636
maxWidth: '180px'
3737
}
3838
}, {
39-
addonAfter: () => h(InputWidget, {
39+
addonAfter: () => h('input', {
4040
disabled: attrs.disabled,
4141
readonly: attrs.readonly,
42-
moduleValue: attrs.moduleValue,
43-
'onUpdate:modelValue': attrs['onUpdate:modelValue'],
42+
value: attrs.modelValue,
43+
onInput(e) {
44+
attrs['onUpdate:modelValue'](e.target.value);
45+
},
46+
onChange(e) {
47+
attrs['onUpdate:modelValue'](e.target.value);
48+
},
4449
type: 'color',
4550
style: {
4651
padding: '0',

0 commit comments

Comments
 (0)