@cuvp1225/antd 0.3.15 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer.js +38 -16
- package/dist/index.js +87 -91
- package/lib/cjs/components/index.d.ts +2 -1
- package/lib/cjs/components/index.js +4 -2
- package/lib/cjs/components/modal.d.ts +1 -1
- package/lib/cjs/components/modal.js +3 -3
- package/lib/cjs/components/row.d.ts +3 -0
- package/lib/cjs/components/row.js +37 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/prototypes/alert.js +6 -1
- package/lib/cjs/prototypes/auto-complete.js +69 -18
- package/lib/cjs/prototypes/common.js +6 -5
- package/lib/cjs/prototypes/drawer.js +25 -15
- package/lib/cjs/prototypes/index.d.ts +1 -0
- package/lib/cjs/prototypes/index.js +1 -1
- package/lib/cjs/prototypes/progress.js +1 -0
- package/lib/cjs/prototypes/row.d.ts +2 -0
- package/lib/cjs/prototypes/row.js +30 -0
- package/lib/cjs/prototypes/space.js +1 -1
- package/lib/cjs/prototypes/spin.js +9 -3
- package/lib/cjs/prototypes/steps.js +30 -4
- package/lib/cjs/prototypes/table.js +2 -2
- package/lib/cjs/prototypes/tabs.js +31 -3
- package/lib/cjs/prototypes/tree-select.js +31 -1
- package/lib/cjs/prototypes/typography.js +5 -5
- package/lib/esm/components/index.d.ts +2 -1
- package/lib/esm/components/index.js +2 -1
- package/lib/esm/components/modal.d.ts +1 -1
- package/lib/esm/components/modal.js +2 -2
- package/lib/esm/components/row.d.ts +3 -0
- package/lib/esm/components/row.js +34 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/prototypes/alert.js +6 -1
- package/lib/esm/prototypes/auto-complete.js +70 -19
- package/lib/esm/prototypes/common.js +6 -5
- package/lib/esm/prototypes/drawer.js +25 -15
- package/lib/esm/prototypes/index.d.ts +1 -0
- package/lib/esm/prototypes/index.js +1 -1
- package/lib/esm/prototypes/progress.js +1 -0
- package/lib/esm/prototypes/row.d.ts +2 -0
- package/lib/esm/prototypes/row.js +27 -0
- package/lib/esm/prototypes/space.js +1 -1
- package/lib/esm/prototypes/spin.js +9 -3
- package/lib/esm/prototypes/steps.js +30 -4
- package/lib/esm/prototypes/table.js +2 -2
- package/lib/esm/prototypes/tabs.js +31 -3
- package/lib/esm/prototypes/tree-select.js +32 -2
- package/lib/esm/prototypes/typography.js +5 -5
- package/package.json +3 -3
@@ -13,7 +13,24 @@ exports.TreeSelect = {
|
|
13
13
|
childrenName: 'TreeNode',
|
14
14
|
relatedImports: ['TreeNode'],
|
15
15
|
props: [
|
16
|
-
...
|
16
|
+
// ...StylePrototypes,
|
17
|
+
{
|
18
|
+
name: 'style',
|
19
|
+
title: '样式对象',
|
20
|
+
setter: 'expressionSetter',
|
21
|
+
setterProps: {
|
22
|
+
expressionType: 'cssObject',
|
23
|
+
},
|
24
|
+
group: 'style',
|
25
|
+
initValue: '{{{width: "100%"}}}',
|
26
|
+
autoCompleteOptions: ['{}'],
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: 'className',
|
30
|
+
title: '自定义样式类名',
|
31
|
+
setter: 'classNameSetter',
|
32
|
+
group: 'style',
|
33
|
+
},
|
17
34
|
...common_1.InstancePrototypes,
|
18
35
|
{
|
19
36
|
name: 'treeData',
|
@@ -200,6 +217,19 @@ exports.TreeSelect = {
|
|
200
217
|
name: 'loadData',
|
201
218
|
title: '异步加载数据',
|
202
219
|
setter: 'expressionSetter',
|
220
|
+
autoCompleteOptions: [`({ id }) =>
|
221
|
+
new Promise((resolve) => {
|
222
|
+
setTimeout(() => {
|
223
|
+
this.setState({
|
224
|
+
treeData: this.state.treeData.concat([
|
225
|
+
genTreeNode(id, false),
|
226
|
+
genTreeNode(id, true),
|
227
|
+
genTreeNode(id, true),
|
228
|
+
]),
|
229
|
+
});
|
230
|
+
resolve(undefined);
|
231
|
+
}, 300);
|
232
|
+
})`]
|
203
233
|
},
|
204
234
|
{
|
205
235
|
name: 'maxTagCount',
|
@@ -133,11 +133,11 @@ exports.Title = {
|
|
133
133
|
title: '标题级别',
|
134
134
|
setter: 'pickerSetter',
|
135
135
|
options: [
|
136
|
-
{ label: 'h1', value:
|
137
|
-
{ label: 'h2', value:
|
138
|
-
{ label: 'h3', value:
|
139
|
-
{ label: 'h4', value:
|
140
|
-
{ label: 'h5', value:
|
136
|
+
{ label: 'h1', value: 1 },
|
137
|
+
{ label: 'h2', value: 2 },
|
138
|
+
{ label: 'h3', value: 3 },
|
139
|
+
{ label: 'h4', value: 4 },
|
140
|
+
{ label: 'h5', value: 5 },
|
141
141
|
],
|
142
142
|
tip: '数字越小,级别越大',
|
143
143
|
},
|
@@ -4,7 +4,7 @@ export { Button, ButtonGroup } from './button';
|
|
4
4
|
export * from './formily';
|
5
5
|
export { InputNumber } from './input-number';
|
6
6
|
export { Input, TextArea } from './input';
|
7
|
-
export {
|
7
|
+
export { Modalnew } from './modal';
|
8
8
|
export * from './page';
|
9
9
|
export * from './placeholder';
|
10
10
|
export * from './section';
|
@@ -12,3 +12,4 @@ export { Select } from './select';
|
|
12
12
|
export { Space } from './space';
|
13
13
|
export { Typography, Title, Paragraph } from './typography';
|
14
14
|
export { Columns, Column } from './columns';
|
15
|
+
export { Row1 } from './row';
|
@@ -5,7 +5,7 @@ export { Button, ButtonGroup } from './button';
|
|
5
5
|
export * from './formily';
|
6
6
|
export { InputNumber } from './input-number';
|
7
7
|
export { Input, TextArea } from './input';
|
8
|
-
export {
|
8
|
+
export { Modalnew } from './modal';
|
9
9
|
export * from './page';
|
10
10
|
export * from './placeholder';
|
11
11
|
export * from './section';
|
@@ -13,6 +13,7 @@ export { Select } from './select';
|
|
13
13
|
export { Space } from './space';
|
14
14
|
export { Typography, Title, Paragraph } from './typography';
|
15
15
|
export { Columns, Column } from './columns';
|
16
|
+
export { Row1 } from './row';
|
16
17
|
//export { MultiColumns } from './multiColumns'
|
17
18
|
//export { Row,Col } from './grid'
|
18
19
|
//export { RowCombination,ColCombination } from './gridCombination'
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ModalProps } from 'antd';
|
3
|
-
export declare const
|
3
|
+
export declare const Modalnew: React.ForwardRefExoticComponent<ModalProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -62,8 +62,8 @@ function ModalDesigner(_a) {
|
|
62
62
|
React.createElement("div", { className: "ModalPanelBody" }, children || React.createElement(Placeholder, null)),
|
63
63
|
renderFooter())));
|
64
64
|
}
|
65
|
-
export const
|
66
|
-
name: '
|
65
|
+
export const Modalnew = defineComponent(AntModal, {
|
66
|
+
name: 'Modalnew',
|
67
67
|
designerConfig: {
|
68
68
|
render({ designerProps, originalProps }) {
|
69
69
|
return React.createElement(ModalDesigner, Object.assign({}, designerProps, originalProps));
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { __rest } from "tslib";
|
2
|
+
import React from 'react';
|
3
|
+
import { css } from 'styled-components';
|
4
|
+
import { coral } from 'coral-system';
|
5
|
+
import { Row as AntRow } from 'antd';
|
6
|
+
import { defineComponent } from '@music163/tango-boot';
|
7
|
+
import { Placeholder } from './placeholder';
|
8
|
+
import { ShadowContainer } from './shadow-container';
|
9
|
+
const BaseRowWrapper = coral('div', css `
|
10
|
+
position: relative;
|
11
|
+
background-color: #fff;
|
12
|
+
border: 1px solid var(--music-colors-line-normal);
|
13
|
+
box-shadow: var(--music-shadows-lowDown);
|
14
|
+
min-width: 600px;
|
15
|
+
|
16
|
+
.RowNewPanelBody {
|
17
|
+
padding: 12px;
|
18
|
+
}
|
19
|
+
`);
|
20
|
+
function RowDesigner(_a) {
|
21
|
+
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, rest = __rest(_a, ["gutter", "align", "justify", "prefixCls", "wrap", "style", "children"]);
|
22
|
+
console.log("zcq栅格行的入参", gutter, align, justify, prefixCls, wrap, style, children);
|
23
|
+
return (React.createElement(ShadowContainer, Object.assign({ type: "modal", label: "Row", bg: "rgba(0, 0, 0, 0.45)", px: "100px", py: "24px" }, rest),
|
24
|
+
React.createElement(BaseRowWrapper, { style: style },
|
25
|
+
React.createElement("div", { className: "RowNewPanelBody" }, children || React.createElement(Placeholder, null)))));
|
26
|
+
}
|
27
|
+
export const Row1 = defineComponent(AntRow, {
|
28
|
+
name: 'Row1',
|
29
|
+
designerConfig: {
|
30
|
+
render({ designerProps, originalProps }) {
|
31
|
+
return React.createElement(RowDesigner, Object.assign({}, designerProps, originalProps));
|
32
|
+
},
|
33
|
+
},
|
34
|
+
});
|
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
@@ -33,7 +33,12 @@ export const Alert = {
|
|
33
33
|
],
|
34
34
|
},
|
35
35
|
},
|
36
|
-
{
|
36
|
+
{
|
37
|
+
name: 'action',
|
38
|
+
title: '自定义操作项',
|
39
|
+
setter: 'expressionSetter',
|
40
|
+
autoCompleteOptions: [`<Button size="small" danger> Detail </Button>`],
|
41
|
+
},
|
37
42
|
{
|
38
43
|
name: 'afterClose',
|
39
44
|
title: '关闭后的回调函数',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InstancePrototypes
|
1
|
+
import { InstancePrototypes } from './common';
|
2
2
|
export const AutoComplete = {
|
3
3
|
name: 'AutoComplete',
|
4
4
|
title: '自动完成',
|
@@ -7,13 +7,13 @@ export const AutoComplete = {
|
|
7
7
|
help: '输入框自动完成功能,可提供输入建议/辅助提示能力',
|
8
8
|
type: 'element',
|
9
9
|
props: [
|
10
|
-
...StylePrototypes,
|
10
|
+
// ...StylePrototypes,
|
11
11
|
...InstancePrototypes,
|
12
|
-
{
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
},
|
12
|
+
// {
|
13
|
+
// name: 'width',
|
14
|
+
// title: '输入框宽度',
|
15
|
+
// setter: 'textSetter',
|
16
|
+
// },
|
17
17
|
{
|
18
18
|
name: 'allowClear',
|
19
19
|
title: '支持清除',
|
@@ -78,13 +78,13 @@ export const AutoComplete = {
|
|
78
78
|
setter: 'boolSetter',
|
79
79
|
group: 'advanced',
|
80
80
|
},
|
81
|
-
{
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
},
|
81
|
+
// {
|
82
|
+
// name: 'filterOption',
|
83
|
+
// title: '根据输入项进行筛选',
|
84
|
+
// tip: '是否根据输入项进行筛选',
|
85
|
+
// setter: 'boolSetter',
|
86
|
+
// group: 'advanced',
|
87
|
+
// },
|
88
88
|
{
|
89
89
|
name: 'getPopupContainer',
|
90
90
|
title: '菜单渲染父节点',
|
@@ -98,7 +98,11 @@ export const AutoComplete = {
|
|
98
98
|
setter: 'expressionSetter',
|
99
99
|
group: 'advanced',
|
100
100
|
},
|
101
|
-
{
|
101
|
+
{
|
102
|
+
name: 'open',
|
103
|
+
title: '展开下拉菜单',
|
104
|
+
setter: 'boolSetter'
|
105
|
+
},
|
102
106
|
{
|
103
107
|
name: 'options',
|
104
108
|
title: '下拉数据源',
|
@@ -106,9 +110,23 @@ export const AutoComplete = {
|
|
106
110
|
setter: 'expressionSetter',
|
107
111
|
initValue: [{ value: 'option1' }, { value: 'option2' }, { value: 'option3' }],
|
108
112
|
},
|
109
|
-
{
|
110
|
-
|
111
|
-
|
113
|
+
{
|
114
|
+
name: 'placeholder',
|
115
|
+
title: '输入框提示',
|
116
|
+
setter: 'textSetter',
|
117
|
+
initValue: '请在这里输入'
|
118
|
+
},
|
119
|
+
{
|
120
|
+
name: 'value',
|
121
|
+
title: '指定当前选中的条目',
|
122
|
+
setter: 'textSetter'
|
123
|
+
},
|
124
|
+
{
|
125
|
+
name: 'onBlur',
|
126
|
+
title: '失去焦点时的回调',
|
127
|
+
setter: 'actionSetter',
|
128
|
+
group: 'event'
|
129
|
+
},
|
112
130
|
{
|
113
131
|
name: 'onChange',
|
114
132
|
title: 'onChange事件',
|
@@ -116,13 +134,29 @@ export const AutoComplete = {
|
|
116
134
|
group: 'event',
|
117
135
|
autoCompleteOptions: ['(currentActiveLink)=>{}'],
|
118
136
|
},
|
137
|
+
{
|
138
|
+
name: 'filterOption',
|
139
|
+
title: '是否根据输入项进行筛选',
|
140
|
+
tip: '是否根据输入项进行筛选。当其为一个函数时,会接收 inputValue option 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false',
|
141
|
+
setter: 'boolSetter',
|
142
|
+
autoCompleteOptions: [`(inputValue, option) => {
|
143
|
+
// 将输入值和选项值都转换为小写,进行不区分大小写的匹配
|
144
|
+
return option.value.toLowerCase().includes(inputValue.toLowerCase());
|
145
|
+
}`],
|
146
|
+
group: 'event',
|
147
|
+
},
|
119
148
|
{
|
120
149
|
name: 'onDropdownVisibleChange',
|
121
150
|
title: '展开下拉菜单的回调',
|
122
151
|
setter: 'actionSetter',
|
123
152
|
group: 'event',
|
124
153
|
},
|
125
|
-
{
|
154
|
+
{
|
155
|
+
name: 'onFocus',
|
156
|
+
title: '获得焦点时的回调',
|
157
|
+
setter: 'actionSetter',
|
158
|
+
group: 'event'
|
159
|
+
},
|
126
160
|
{
|
127
161
|
name: 'onSearch',
|
128
162
|
title: '搜索补全项的时候调用',
|
@@ -135,5 +169,22 @@ export const AutoComplete = {
|
|
135
169
|
setter: 'actionSetter',
|
136
170
|
group: 'event',
|
137
171
|
},
|
172
|
+
{
|
173
|
+
name: 'style',
|
174
|
+
title: '样式对象',
|
175
|
+
setter: 'expressionSetter',
|
176
|
+
setterProps: {
|
177
|
+
expressionType: 'cssObject',
|
178
|
+
},
|
179
|
+
group: 'style',
|
180
|
+
initValue: '{{{width: "200px"}}}',
|
181
|
+
autoCompleteOptions: ['{}'],
|
182
|
+
},
|
183
|
+
{
|
184
|
+
name: 'className',
|
185
|
+
title: '自定义样式类名',
|
186
|
+
setter: 'classNameSetter',
|
187
|
+
group: 'style',
|
188
|
+
},
|
138
189
|
],
|
139
190
|
};
|
@@ -2,12 +2,13 @@ export const StylePrototypes = [
|
|
2
2
|
{
|
3
3
|
name: 'style',
|
4
4
|
title: '样式对象',
|
5
|
-
setter: 'expressionSetter',
|
6
|
-
setterProps: {
|
7
|
-
|
8
|
-
},
|
5
|
+
// setter: 'expressionSetter',
|
6
|
+
// setterProps: {
|
7
|
+
// expressionType: 'cssObject',
|
8
|
+
// },
|
9
|
+
setter: 'cssSetter',
|
9
10
|
group: 'style',
|
10
|
-
autoCompleteOptions: ['{}'],
|
11
|
+
// autoCompleteOptions: ['{}'],
|
11
12
|
},
|
12
13
|
{
|
13
14
|
name: 'className',
|
@@ -11,17 +11,26 @@ export const Drawer = {
|
|
11
11
|
initChildren: '',
|
12
12
|
props: [
|
13
13
|
...StylePrototypes,
|
14
|
-
{
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
},
|
20
|
-
{
|
21
|
-
|
14
|
+
// {
|
15
|
+
// name: 'id',
|
16
|
+
// title: '弹窗 ID',
|
17
|
+
// tip: '设置弹窗 ID,可以借助 tango.openModal 轻松唤起弹窗',
|
18
|
+
// setter: 'textSetter',
|
19
|
+
// },
|
20
|
+
// {
|
21
|
+
// name: 'visible',
|
22
|
+
// title: '是否显示',
|
23
|
+
// setter: 'expressionSetter',
|
24
|
+
// group: 'basic',
|
25
|
+
// },
|
26
|
+
{
|
27
|
+
name: 'open',
|
22
28
|
title: '是否显示',
|
23
29
|
setter: 'expressionSetter',
|
24
30
|
group: 'basic',
|
31
|
+
// initValue: true,
|
32
|
+
initValue: '{{this.state.open}}',
|
33
|
+
tip: '默认显示为true,也可以绑定变量如:this.state.open',
|
25
34
|
},
|
26
35
|
{
|
27
36
|
name: 'title',
|
@@ -34,18 +43,18 @@ export const Drawer = {
|
|
34
43
|
name: 'closable',
|
35
44
|
title: '是否显示关闭按钮',
|
36
45
|
setter: 'boolSetter',
|
37
|
-
|
46
|
+
initValue: true,
|
38
47
|
},
|
39
48
|
{
|
40
49
|
name: 'destroyOnClose',
|
41
50
|
title: '关闭时销毁子元素',
|
42
51
|
setter: 'boolSetter',
|
43
|
-
|
52
|
+
initValue: false,
|
44
53
|
},
|
45
54
|
{
|
46
55
|
name: 'width',
|
47
56
|
title: '宽度',
|
48
|
-
|
57
|
+
initValue: 378,
|
49
58
|
setter: 'numberSetter',
|
50
59
|
},
|
51
60
|
{
|
@@ -60,6 +69,7 @@ export const Drawer = {
|
|
60
69
|
title: '点击关闭按钮的回调',
|
61
70
|
setter: 'actionSetter',
|
62
71
|
group: 'event',
|
72
|
+
initValue: '{{() => {if(this.state.open){ this.setState({open: false})}}}}',
|
63
73
|
},
|
64
74
|
{
|
65
75
|
name: 'afterVisibleChange',
|
@@ -70,7 +80,7 @@ export const Drawer = {
|
|
70
80
|
{
|
71
81
|
name: 'placement',
|
72
82
|
title: '抽屉的方向',
|
73
|
-
|
83
|
+
initValue: 'right',
|
74
84
|
options: [
|
75
85
|
{ label: '上', value: 'top' },
|
76
86
|
{ label: '右', value: 'right' },
|
@@ -84,7 +94,7 @@ export const Drawer = {
|
|
84
94
|
name: 'size',
|
85
95
|
title: '预设尺寸',
|
86
96
|
setter: 'choiceSetter',
|
87
|
-
|
97
|
+
initValue: 'default',
|
88
98
|
options: [
|
89
99
|
{ label: '默认', value: 'default' },
|
90
100
|
{ label: '更宽', value: 'large' },
|
@@ -94,7 +104,7 @@ export const Drawer = {
|
|
94
104
|
name: 'mask',
|
95
105
|
title: '是否展示遮罩',
|
96
106
|
setter: 'boolSetter',
|
97
|
-
|
107
|
+
initValue: true,
|
98
108
|
},
|
99
109
|
{
|
100
110
|
name: 'keyboard',
|
@@ -109,7 +119,7 @@ export const Drawer = {
|
|
109
119
|
{
|
110
120
|
name: 'zIndex',
|
111
121
|
title: '设置 Drawer 的 z-index',
|
112
|
-
|
122
|
+
initValue: 1000,
|
113
123
|
setter: 'numberSetter',
|
114
124
|
group: 'advanced',
|
115
125
|
},
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { StylePrototypes } from './common';
|
2
|
+
export const Row1 = {
|
3
|
+
name: 'Row1',
|
4
|
+
title: '栅格行0214',
|
5
|
+
package: '@cuvp1225/antd',
|
6
|
+
icon: 'icon-column',
|
7
|
+
//type: 'element',
|
8
|
+
type: 'container',
|
9
|
+
help: '栅格行',
|
10
|
+
hasChildren: true,
|
11
|
+
initChildren: '<Placeholder text="放置替换" />',
|
12
|
+
relatedImports: ['Placeholder'],
|
13
|
+
props: [
|
14
|
+
...StylePrototypes,
|
15
|
+
{
|
16
|
+
name: 'gutter',
|
17
|
+
title: '栅格间隔',
|
18
|
+
setter: 'textSetter',
|
19
|
+
defaultValue: [20, 20]
|
20
|
+
},
|
21
|
+
],
|
22
|
+
rules: {
|
23
|
+
canMoveIn(incomingName) {
|
24
|
+
return !(incomingName === Row1.name);
|
25
|
+
},
|
26
|
+
},
|
27
|
+
};
|
@@ -53,7 +53,7 @@ export const Space = {
|
|
53
53
|
name: 'split',
|
54
54
|
title: '设置拆分',
|
55
55
|
setter: 'expressionSetter',
|
56
|
-
tip: '可以使用字符串进行拆分,例如: "--"; 或者使用分割线组件,例如:<Divider
|
56
|
+
tip: '可以使用字符串进行拆分,例如: "--"; 或者使用分割线组件,例如:<Divider type="vertical" style={{ height: "100px", borderTop: "10px" }} />',
|
57
57
|
},
|
58
58
|
{
|
59
59
|
name: 'wrap',
|
@@ -11,7 +11,8 @@ export const Spin = {
|
|
11
11
|
{
|
12
12
|
name: 'children',
|
13
13
|
title: '内容',
|
14
|
-
setter: '
|
14
|
+
setter: 'textSetter',
|
15
|
+
initValue: null,
|
15
16
|
},
|
16
17
|
{
|
17
18
|
name: 'spinning',
|
@@ -22,6 +23,7 @@ export const Spin = {
|
|
22
23
|
name: 'tip',
|
23
24
|
title: '自定义描述文案',
|
24
25
|
setter: 'textSetter',
|
26
|
+
initValue: null,
|
25
27
|
},
|
26
28
|
{
|
27
29
|
name: 'size',
|
@@ -31,7 +33,7 @@ export const Spin = {
|
|
31
33
|
options: [
|
32
34
|
{ label: 'small', value: 'small' },
|
33
35
|
{ label: 'middle', value: 'middle' },
|
34
|
-
{ label: '
|
36
|
+
{ label: 'large', value: 'large' },
|
35
37
|
],
|
36
38
|
},
|
37
39
|
},
|
@@ -41,7 +43,11 @@ export const Spin = {
|
|
41
43
|
tip: '延迟显示加载效果的时间(防止闪烁)',
|
42
44
|
setter: 'numberSetter',
|
43
45
|
},
|
44
|
-
{
|
46
|
+
{
|
47
|
+
name: 'indicator',
|
48
|
+
title: '加载指示符',
|
49
|
+
setter: 'iconSetter'
|
50
|
+
},
|
45
51
|
{
|
46
52
|
name: 'wrapperClassName',
|
47
53
|
title: '包装器的类属性',
|
@@ -11,7 +11,24 @@ export const Steps = {
|
|
11
11
|
initChildren: '<StepsItem title="步骤1" /><StepsItem title="步骤2" />',
|
12
12
|
relatedImports: ['StepsItem'],
|
13
13
|
props: [
|
14
|
-
...StylePrototypes,
|
14
|
+
// ...StylePrototypes,
|
15
|
+
{
|
16
|
+
name: 'style',
|
17
|
+
title: '样式对象',
|
18
|
+
setter: 'expressionSetter',
|
19
|
+
setterProps: {
|
20
|
+
expressionType: 'cssObject',
|
21
|
+
},
|
22
|
+
group: 'style',
|
23
|
+
initValue: '{{{width: "100%"}}}',
|
24
|
+
autoCompleteOptions: ['{}'],
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'className',
|
28
|
+
title: '自定义样式类名',
|
29
|
+
setter: 'classNameSetter',
|
30
|
+
group: 'style',
|
31
|
+
},
|
15
32
|
{
|
16
33
|
name: 'initial',
|
17
34
|
title: '默认起始序号',
|
@@ -116,12 +133,21 @@ export const StepsItem = {
|
|
116
133
|
type: 'element',
|
117
134
|
props: [
|
118
135
|
...StylePrototypes,
|
119
|
-
{
|
120
|
-
|
136
|
+
{
|
137
|
+
name: 'title',
|
138
|
+
title: '标题',
|
139
|
+
setter: 'textSetter',
|
140
|
+
initValue: '步骤'
|
141
|
+
},
|
142
|
+
{
|
143
|
+
name: 'subTitle',
|
144
|
+
title: '子标题',
|
145
|
+
setter: 'textSetter',
|
146
|
+
},
|
121
147
|
{
|
122
148
|
name: 'description',
|
123
149
|
title: '步骤的详情描述',
|
124
|
-
setter: '
|
150
|
+
setter: 'textSetter',
|
125
151
|
},
|
126
152
|
{
|
127
153
|
name: 'status',
|
@@ -268,13 +268,13 @@ export const Table = {
|
|
268
268
|
{
|
269
269
|
name: 'x',
|
270
270
|
title: '横向滚动',
|
271
|
-
tip: "
|
271
|
+
tip: '可用于指定滚动区域的宽,可以设置为像素值如"2000px"或2000, 百分比如"80%" 和 "max-content"',
|
272
272
|
setter: 'expressionSetter',
|
273
273
|
},
|
274
274
|
{
|
275
275
|
name: 'y',
|
276
276
|
title: '纵向滚动',
|
277
|
-
tip: '
|
277
|
+
tip: '可用于指定滚动区域的高,可以设置为像素值如"150px"或150, 百分比如"100%" 和 "max-content"',
|
278
278
|
setter: 'expressionSetter',
|
279
279
|
},
|
280
280
|
],
|