优化重构

This commit is contained in:
xuliangzhan
2020-03-02 23:06:25 +08:00
parent 30cb74a8fd
commit 370a37f7d3
15 changed files with 59 additions and 49 deletions

View File

@@ -134,40 +134,50 @@ const apis = [
list: []
},
{
name: 'startWeek',
desc: '只对 type=date 有效,设置起始周',
name: 'date-config',
desc: '只对 type=date|month|year 有效,日期配置项',
version: '',
type: 'Number, String',
enum: '0, 1, 2, 3, 4, 5, 6',
defVal: '默认 1继承 setup.input.startWeek',
list: []
},
{
name: 'labelFormat',
desc: '只对 type=date|month|year 有效,输入框中显示的日期格式',
version: '',
type: 'String',
type: 'Object',
enum: '',
defVal: '继承 setup.input.labelFormat',
list: []
},
{
name: 'parseFormat',
desc: '只对 type=date|month|year 有效,绑定值的解析格式,如果是值为字符串时可能会用到',
version: '',
type: 'String',
enum: '',
defVal: '继承 setup.input.parseFormat',
list: []
},
{
name: 'valueFormat',
desc: '只对 type=date|month|year 有效,绑定值的返回格式,默认返回 Date 类型,如果指定格式则返回字符串',
version: '',
type: 'String',
enum: '',
defVal: '继承 setup.input.valueFormat',
list: []
defVal: '继承 setup.input.dateConfig',
list: [
{
name: 'startWeek',
desc: '只对 type=date 有效,设置起始周',
version: '',
type: 'Number, String',
enum: '0, 1, 2, 3, 4, 5, 6',
defVal: '1',
list: []
},
{
name: 'labelFormat',
desc: '只对 type=date|month|year 有效,输入框中显示的日期格式',
version: '',
type: 'String',
enum: '',
defVal: '',
list: []
},
{
name: 'parseFormat',
desc: '只对 type=date|month|year 有效,绑定值的解析格式,如果是值为字符串时可能会用到',
version: '',
type: 'String',
enum: '',
defVal: '',
list: []
},
{
name: 'valueFormat',
desc: '只对 type=date|month|year 有效,绑定值的返回格式,默认返回 Date 类型,如果指定格式则返回字符串',
version: '',
type: 'String',
enum: '',
defVal: '',
list: []
}
]
},
{
name: 'transfer',