@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
@@ -8,7 +8,7 @@ export const Tabs = {
|
|
8
8
|
package: '@cuvp1225/antd',
|
9
9
|
help: '提供平级的区域将大块内容进行收纳和展现,保持界面整洁',
|
10
10
|
hasChildren: true,
|
11
|
-
initChildren:
|
11
|
+
initChildren: `<TabPane key="1" tab="选项卡1"><Placeholder text="放置替换" style={{ marginLeft: "15px", marginRight: "15px" }} /></TabPane><TabPane key="2" tab="选项卡2"><Placeholder text="放置替换" style={{ marginLeft: "15px", marginRight: "15px" }}/></TabPane>`,
|
12
12
|
childrenName: 'TabPane',
|
13
13
|
relatedImports: ['TabPane'],
|
14
14
|
props: [
|
@@ -17,6 +17,7 @@ export const Tabs = {
|
|
17
17
|
name: 'defaultActiveKey',
|
18
18
|
title: '默认选中的面板',
|
19
19
|
setter: 'textSetter',
|
20
|
+
initValue: '1',
|
20
21
|
},
|
21
22
|
{
|
22
23
|
name: 'centered',
|
@@ -31,10 +32,21 @@ export const Tabs = {
|
|
31
32
|
{ label: '基本', value: 'line' },
|
32
33
|
{ label: '卡片', value: 'card' },
|
33
34
|
{ label: '可编辑卡片', value: 'editable-card' },
|
34
|
-
{ label: '胶囊', value: 'capsule' },
|
35
|
-
{ label: '文本', value: 'text' },
|
35
|
+
// { label: '胶囊', value: 'capsule' },
|
36
|
+
// { label: '文本', value: 'text' },
|
36
37
|
],
|
37
38
|
},
|
39
|
+
{
|
40
|
+
name: 'size',
|
41
|
+
title: '选项卡大小',
|
42
|
+
setter: 'choiceSetter',
|
43
|
+
options: [
|
44
|
+
{ label: '大', value: 'large' },
|
45
|
+
{ label: '中', value: 'middle' },
|
46
|
+
{ label: '小', value: 'small' },
|
47
|
+
],
|
48
|
+
tip: '提供large、middle和small三种大小',
|
49
|
+
},
|
38
50
|
{
|
39
51
|
name: 'tabPosition',
|
40
52
|
title: '选项卡位置',
|
@@ -46,6 +58,13 @@ export const Tabs = {
|
|
46
58
|
{ label: '左', value: 'left' },
|
47
59
|
],
|
48
60
|
},
|
61
|
+
{
|
62
|
+
name: 'hideAdd',
|
63
|
+
title: '是否隐藏加号图标',
|
64
|
+
tip: '仅在选项卡类型为可编辑卡片时有效',
|
65
|
+
setter: 'boolSetter',
|
66
|
+
getVisible: (form) => form.getValue('type') === 'editable-card',
|
67
|
+
},
|
49
68
|
{
|
50
69
|
name: 'onChange',
|
51
70
|
title: '当面板切换时',
|
@@ -53,6 +72,15 @@ export const Tabs = {
|
|
53
72
|
group: 'event',
|
54
73
|
autoCompleteOptions: ['(activeKey)=>{}'],
|
55
74
|
},
|
75
|
+
{
|
76
|
+
name: 'onEdit',
|
77
|
+
title: '新增和删除页签的回调',
|
78
|
+
tip: '仅在选项卡类型为可编辑卡片时有效',
|
79
|
+
setter: 'expressionSetter',
|
80
|
+
group: 'event',
|
81
|
+
autoCompleteOptions: ["(action === 'add' ? event : targetKey, action): void"],
|
82
|
+
getVisible: (form) => form.getValue('type') === 'editable-card',
|
83
|
+
},
|
56
84
|
{
|
57
85
|
name: 'tabBarExtraContent',
|
58
86
|
title: 'tab bar 上额外的元素',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InstancePrototypes
|
1
|
+
import { InstancePrototypes } from './common';
|
2
2
|
export const TreeSelect = {
|
3
3
|
name: 'TreeSelect',
|
4
4
|
title: '树选择',
|
@@ -10,7 +10,24 @@ export const TreeSelect = {
|
|
10
10
|
childrenName: 'TreeNode',
|
11
11
|
relatedImports: ['TreeNode'],
|
12
12
|
props: [
|
13
|
-
...StylePrototypes,
|
13
|
+
// ...StylePrototypes,
|
14
|
+
{
|
15
|
+
name: 'style',
|
16
|
+
title: '样式对象',
|
17
|
+
setter: 'expressionSetter',
|
18
|
+
setterProps: {
|
19
|
+
expressionType: 'cssObject',
|
20
|
+
},
|
21
|
+
group: 'style',
|
22
|
+
initValue: '{{{width: "100%"}}}',
|
23
|
+
autoCompleteOptions: ['{}'],
|
24
|
+
},
|
25
|
+
{
|
26
|
+
name: 'className',
|
27
|
+
title: '自定义样式类名',
|
28
|
+
setter: 'classNameSetter',
|
29
|
+
group: 'style',
|
30
|
+
},
|
14
31
|
...InstancePrototypes,
|
15
32
|
{
|
16
33
|
name: 'treeData',
|
@@ -197,6 +214,19 @@ export const TreeSelect = {
|
|
197
214
|
name: 'loadData',
|
198
215
|
title: '异步加载数据',
|
199
216
|
setter: 'expressionSetter',
|
217
|
+
autoCompleteOptions: [`({ id }) =>
|
218
|
+
new Promise((resolve) => {
|
219
|
+
setTimeout(() => {
|
220
|
+
this.setState({
|
221
|
+
treeData: this.state.treeData.concat([
|
222
|
+
genTreeNode(id, false),
|
223
|
+
genTreeNode(id, true),
|
224
|
+
genTreeNode(id, true),
|
225
|
+
]),
|
226
|
+
});
|
227
|
+
resolve(undefined);
|
228
|
+
}, 300);
|
229
|
+
})`]
|
200
230
|
},
|
201
231
|
{
|
202
232
|
name: 'maxTagCount',
|
@@ -130,11 +130,11 @@ export const Title = {
|
|
130
130
|
title: '标题级别',
|
131
131
|
setter: 'pickerSetter',
|
132
132
|
options: [
|
133
|
-
{ label: 'h1', value:
|
134
|
-
{ label: 'h2', value:
|
135
|
-
{ label: 'h3', value:
|
136
|
-
{ label: 'h4', value:
|
137
|
-
{ label: 'h5', value:
|
133
|
+
{ label: 'h1', value: 1 },
|
134
|
+
{ label: 'h2', value: 2 },
|
135
|
+
{ label: 'h3', value: 3 },
|
136
|
+
{ label: 'h4', value: 4 },
|
137
|
+
{ label: 'h5', value: 5 },
|
138
138
|
],
|
139
139
|
tip: '数字越小,级别越大',
|
140
140
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cuvp1225/antd",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.17",
|
4
4
|
"description": "antd components for tango app",
|
5
5
|
"author": "wwsun <ww.sww@outlook.com>",
|
6
6
|
"homepage": "https://github.com/netease/tango-components#readme",
|
@@ -49,10 +49,10 @@
|
|
49
49
|
"@cuvp1225/formily": "^0.2.6",
|
50
50
|
"@cuvp1225/foundation": "^0.3.2",
|
51
51
|
"@music163/tango-boot": "^0.3.3",
|
52
|
-
"@music163/tango-helpers": "^1.2.
|
52
|
+
"@music163/tango-helpers": "^1.2.8",
|
53
53
|
"antd": "4",
|
54
54
|
"classnames": "^2.3.2",
|
55
55
|
"coral-system": "^1.0.6"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "4f2d4ca7ccca68826914e86aaa553b5d1e952237"
|
58
58
|
}
|