Skip to content

Commit

Permalink
feat(lib): 配置 format color,默认使用 el-color-picker 组件
Browse files Browse the repository at this point in the history
feat: 更新schema生成器color配置
  • Loading branch information
lljj-x committed Dec 25, 2020
1 parent 388454e commit be915ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import genSchema from '../genSchema.js';
const viewSchema = {
title: '颜色选择器',
type: 'string',
format: 'color',
'ui:widget': 'el-color-picker'
format: 'color'
};
export default {
viewSchema,
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/JsonSchemaForm/config/WIDGET_MAP.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default {
// array: '',
},
formats: {
color: 'el-color-picker',
time: TimePickerWidget, // 20:20:39+00:00
date: DatePickerWidget, // 2018-11-13
'date-time': DateTimePickerWidget, // 2018-11-13T20:20:39+00:00
Expand Down

0 comments on commit be915ad

Please sign in to comment.