@opentiny/vue-design-smb 2.17.0 → 2.20.0

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/index.d.ts CHANGED
@@ -2,105 +2,14 @@ declare const _default: {
2
2
  name: string;
3
3
  version: string;
4
4
  components: {
5
- Alert: {
6
- icons: {
7
- warning: any;
8
- info: any;
9
- };
10
- renderless: (props: any, hooks: any, { emit }: {
11
- emit: any;
12
- }, api: any) => {
13
- close(): void;
14
- };
15
- };
16
- ActionMenu: {
17
- icons: {};
18
- };
19
- Popconfirm: {
20
- icons: {
21
- warning: any;
22
- info: any;
23
- };
24
- };
25
- Drawer: {
26
- state: {
27
- btnOrderReversed: boolean;
28
- };
29
- };
30
- Dropdown: {
31
- icons: {
32
- dropdownIcon: any;
33
- };
34
- };
35
- DropdownItem: {
36
- icons: {
37
- leftWardArrow: any;
38
- };
39
- };
40
5
  Form: {
41
- icons: {
42
- validateIcon: any;
43
- };
44
- messageType: string;
45
- hideRequiredAsterisk: boolean;
46
- };
47
- Grid: {
48
- validConfig: {
49
- icon: any;
50
- };
51
- minWidth: number;
52
- treeConfig: {
53
- renderIcon(h: any, { active }: {
54
- active: any;
55
- }): any;
56
- };
57
- };
58
- Guide: {
59
- state: {
60
- isUseModalOverlay: boolean;
6
+ props: {
7
+ hideRequiredAsterisk: boolean;
61
8
  };
62
9
  };
63
- Pager: {
64
- state: {
65
- showJumperSufix: boolean;
66
- align: string;
67
- totalFixedLeft: boolean;
68
- };
69
- };
70
- Select: {
71
- icons: {
72
- dropdownIcon: any;
73
- };
74
- state: {
75
- sizeMap: {
76
- default: number;
77
- mini: number;
78
- small: number;
79
- medium: number;
80
- };
81
- spacingHeight: number;
82
- initialInputHeight: number;
83
- };
84
- };
85
- TreeNode: {
86
- icons: {
87
- expanded: any;
88
- collapse: any;
89
- };
90
- };
91
- BreadcrumbItem: {
92
- separator: string;
93
- };
94
- UploadList: {
95
- state: {
96
- progressType: string;
97
- progressWidth: string;
98
- progressStrokeWidth: number;
99
- tooltipDisabled: boolean;
100
- };
101
- icons: {
102
- closeComponent: string;
103
- preViewComponent: string;
10
+ Button: {
11
+ props: {
12
+ round: boolean;
104
13
  };
105
14
  };
106
15
  };
package/index.js CHANGED
@@ -1,133 +1,22 @@
1
- import { iconWarningTriangle, iconPromptExclamation, iconDownWard, iconLeftWardArrow, iconError, iconExpand, iconPutAway } from "@opentiny/vue-icon";
2
- var Alert = {
3
- icons: {
4
- warning: iconWarningTriangle(),
5
- info: iconPromptExclamation()
6
- },
7
- renderless: function renderless(props, hooks, _ref, api) {
8
- var emit = _ref.emit;
9
- var state = api.state;
10
- return {
11
- close: function close() {
12
- state.show = false;
13
- emit("close");
14
- }
15
- };
16
- }
17
- };
18
- var ActionMenu = {
19
- icons: {}
20
- };
21
- var Popconfirm = {
22
- icons: {
23
- warning: iconWarningTriangle(),
24
- info: iconPromptExclamation()
25
- }
26
- };
27
- var Drawer = {
28
- state: {
29
- btnOrderReversed: true
30
- }
31
- };
32
- var Dropdown = {
33
- icons: {
34
- dropdownIcon: iconDownWard()
35
- }
36
- };
37
- var DropdownItem = {
38
- icons: {
39
- leftWardArrow: iconLeftWardArrow()
40
- }
41
- };
42
- var Form = {
43
- icons: {
44
- validateIcon: iconError()
45
- },
46
- messageType: "block",
47
- hideRequiredAsterisk: true
48
- };
49
- var Grid = {
50
- validConfig: {
51
- icon: iconError()
52
- },
53
- minWidth: 72,
54
- treeConfig: {
55
- renderIcon: function renderIcon(h, _ref2) {
56
- var active = _ref2.active;
57
- var IconExpand = iconExpand();
58
- var IconPutAway = iconPutAway();
59
- return active ? h(IconExpand) : h(IconPutAway);
60
- }
61
- }
62
- };
63
- var Guide = {
64
- state: {
65
- isUseModalOverlay: true
66
- }
67
- };
68
- var Pager = {
69
- state: {
70
- showJumperSufix: false,
71
- align: "right",
72
- totalFixedLeft: true
73
- }
74
- };
75
- var Select = {
76
- icons: {
77
- dropdownIcon: iconDownWard()
78
- },
79
- state: {
80
- sizeMap: {
81
- default: 32,
82
- mini: 24,
83
- small: 36,
84
- medium: 40
85
- },
86
- spacingHeight: 0,
87
- initialInputHeight: 32
88
- }
89
- };
90
- var TreeNode = {
91
- icons: {
92
- // 在 showLine=true时,才要切换的图标。 并不是设置正常模式下的图标
93
- expanded: iconExpand(),
94
- collapse: iconPutAway()
95
- }
96
- };
97
- var UploadList = {
98
- state: {
99
- progressType: "line",
100
- progressWidth: "68",
101
- progressStrokeWidth: 4,
102
- tooltipDisabled: false
103
- },
104
- icons: {
105
- closeComponent: "icon-del",
106
- preViewComponent: "icon-fullscreen-left"
107
- }
108
- };
109
- var BreadcrumbItem = {
110
- separator: "/"
111
- };
112
- var version = "2.17.0";
1
+ var version = "2.20.0";
113
2
  var index = {
114
- name: "smb",
3
+ name: "x-design",
4
+ // 设计规范名称
115
5
  version,
6
+ // 设计规范版本号
116
7
  components: {
117
- Alert,
118
- ActionMenu,
119
- Popconfirm,
120
- Drawer,
121
- Dropdown,
122
- DropdownItem,
123
- Form,
124
- Grid,
125
- Guide,
126
- Pager,
127
- Select,
128
- TreeNode,
129
- BreadcrumbItem,
130
- UploadList
8
+ Form: {
9
+ props: {
10
+ hideRequiredAsterisk: true
11
+ // 默认隐藏必填星号
12
+ }
13
+ },
14
+ Button: {
15
+ props: {
16
+ round: true
17
+ // 默认圆角
18
+ }
19
+ }
131
20
  }
132
21
  };
133
22
  export {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@opentiny/vue-design-smb",
3
- "version": "2.17.0",
4
- "sideEffects": false,
5
- "type": "module",
3
+ "version": "2.20.0",
6
4
  "main": "./index.js",
5
+ "sideEffects": false,
7
6
  "dependencies": {
8
- "@opentiny/vue-icon": "~2.17.0"
7
+ "@opentiny/vue-icon": "~2.20.0"
9
8
  },
9
+ "type": "module",
10
10
  "license": "MIT",
11
11
  "module": "./index.js",
12
12
  "types": "index.d.ts"
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- icons: {};
3
- };
4
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- warning: any;
4
- info: any;
5
- };
6
- renderless: (props: any, hooks: any, { emit }: {
7
- emit: any;
8
- }, api: any) => {
9
- close(): void;
10
- };
11
- };
12
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- separator: string;
3
- };
4
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- state: {
3
- btnOrderReversed: boolean;
4
- };
5
- };
6
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- dropdownIcon: any;
4
- };
5
- };
6
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- leftWardArrow: any;
4
- };
5
- };
6
- export default _default;
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- validateIcon: any;
4
- };
5
- messageType: string;
6
- hideRequiredAsterisk: boolean;
7
- };
8
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- validConfig: {
3
- icon: any;
4
- };
5
- minWidth: number;
6
- treeConfig: {
7
- renderIcon(h: any, { active }: {
8
- active: any;
9
- }): any;
10
- };
11
- };
12
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- state: {
3
- isUseModalOverlay: boolean;
4
- };
5
- };
6
- export default _default;
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- state: {
3
- showJumperSufix: boolean;
4
- align: string;
5
- totalFixedLeft: boolean;
6
- };
7
- };
8
- export default _default;
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- warning: any;
4
- info: any;
5
- };
6
- };
7
- export default _default;
@@ -1,16 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- dropdownIcon: any;
4
- };
5
- state: {
6
- sizeMap: {
7
- default: number;
8
- mini: number;
9
- small: number;
10
- medium: number;
11
- };
12
- spacingHeight: number;
13
- initialInputHeight: number;
14
- };
15
- };
16
- export default _default;
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- expanded: any;
4
- collapse: any;
5
- };
6
- };
7
- export default _default;
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- state: {
3
- progressType: string;
4
- progressWidth: string;
5
- progressStrokeWidth: number;
6
- tooltipDisabled: boolean;
7
- };
8
- icons: {
9
- closeComponent: string;
10
- preViewComponent: string;
11
- };
12
- };
13
- export default _default;