@opentiny/vue-design-smb 3.18.0 → 3.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,135 +2,14 @@ declare const _default: {
2
2
  name: string;
3
3
  version: string;
4
4
  components: {
5
- Alert: {
6
- icons: {
7
- warning: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
8
- [key: string]: any;
9
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
10
- info: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
11
- [key: string]: any;
12
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
13
- };
14
- renderless: (props: any, hooks: any, { emit }: {
15
- emit: any;
16
- }, api: any) => {
17
- close(): void;
18
- };
19
- };
20
- ActionMenu: {
21
- icons: {};
22
- };
23
- Popconfirm: {
24
- icons: {
25
- warning: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
26
- [key: string]: any;
27
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
28
- info: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
29
- [key: string]: any;
30
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
31
- };
32
- };
33
- Drawer: {
34
- state: {
35
- btnOrderReversed: boolean;
36
- };
37
- };
38
- Dropdown: {
39
- icons: {
40
- dropdownIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
41
- [key: string]: any;
42
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
43
- };
44
- };
45
- DropdownItem: {
46
- icons: {
47
- leftWardArrow: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
48
- [key: string]: any;
49
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
50
- };
51
- };
52
5
  Form: {
53
- icons: {
54
- validateIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
55
- [key: string]: any;
56
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
57
- };
58
- messageType: string;
59
- hideRequiredAsterisk: boolean;
60
- };
61
- Grid: {
62
- validConfig: {
63
- icon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
64
- [key: string]: any;
65
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
+ props: {
7
+ hideRequiredAsterisk: boolean;
66
8
  };
67
- minWidth: number;
68
- treeConfig: {
69
- renderIcon(h: any, { active }: {
70
- active: any;
71
- }): any;
72
- };
73
- };
74
- Guide: {
75
- state: {
76
- isUseModalOverlay: boolean;
77
- };
78
- };
79
- Pager: {
80
- state: {
81
- showJumperSufix: boolean;
82
- align: string;
83
- totalFixedLeft: boolean;
84
- };
85
- };
86
- Select: {
87
- icons: {
88
- dropdownIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
89
- [key: string]: any;
90
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
91
- };
92
- state: {
93
- sizeMap: {
94
- default: number;
95
- mini: number;
96
- small: number;
97
- medium: number;
98
- };
99
- spacingHeight: number;
100
- initialInputHeight: number;
101
- };
102
- };
103
- TreeNode: {
104
- icons: {
105
- expanded: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
106
- [key: string]: any;
107
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
108
- collapse: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
109
- [key: string]: any;
110
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
111
- };
112
- };
113
- TimeSpinner: {
114
- showTimePickerButton: boolean;
115
- itemMarginSpace: number;
116
9
  };
117
- Time: {
118
- showTimePickerButton: boolean;
119
- itemMarginSpace: number;
120
- };
121
- BreadcrumbItem: {
122
- separator: string;
123
- };
124
- UploadList: {
125
- state: {
126
- progressType: string;
127
- progressWidth: string;
128
- progressStrokeWidth: number;
129
- tooltipDisabled: boolean;
130
- };
131
- icons: {
132
- closeComponent: string;
133
- preViewComponent: string;
10
+ Button: {
11
+ props: {
12
+ round: boolean;
134
13
  };
135
14
  };
136
15
  };
package/index.js CHANGED
@@ -1,141 +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 Time = {
98
- // 控制time-picker组件button显示和样式
99
- showTimePickerButton: true,
100
- // smb规范下,时间选择器单个item的margin为12px.
101
- itemMarginSpace: 12
102
- };
103
- var UploadList = {
104
- state: {
105
- progressType: "line",
106
- progressWidth: "68",
107
- progressStrokeWidth: 4,
108
- tooltipDisabled: false
109
- },
110
- icons: {
111
- closeComponent: "icon-del",
112
- preViewComponent: "icon-fullscreen-left"
113
- }
114
- };
115
- var BreadcrumbItem = {
116
- separator: "/"
117
- };
118
- var version = "3.18.0";
1
+ var version = "3.20.0";
119
2
  var index = {
120
- name: "smb",
3
+ name: "x-design",
4
+ // 设计规范名称
121
5
  version,
6
+ // 设计规范版本号
122
7
  components: {
123
- Alert,
124
- ActionMenu,
125
- Popconfirm,
126
- Drawer,
127
- Dropdown,
128
- DropdownItem,
129
- Form,
130
- Grid,
131
- Guide,
132
- Pager,
133
- Select,
134
- TreeNode,
135
- TimeSpinner: Time,
136
- Time,
137
- BreadcrumbItem,
138
- UploadList
8
+ Form: {
9
+ props: {
10
+ hideRequiredAsterisk: true
11
+ // 默认隐藏必填星号
12
+ }
13
+ },
14
+ Button: {
15
+ props: {
16
+ round: true
17
+ // 默认圆角
18
+ }
19
+ }
139
20
  }
140
21
  };
141
22
  export {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@opentiny/vue-design-smb",
3
- "version": "3.18.0",
4
- "sideEffects": false,
5
- "type": "module",
3
+ "version": "3.20.0",
6
4
  "main": "./index.js",
5
+ "sideEffects": false,
7
6
  "dependencies": {
8
- "@opentiny/vue-icon": "~3.18.0"
7
+ "@opentiny/vue-icon": "~3.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,16 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- warning: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- info: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
7
- [key: string]: any;
8
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
9
- };
10
- renderless: (props: any, hooks: any, { emit }: {
11
- emit: any;
12
- }, api: any) => {
13
- close(): void;
14
- };
15
- };
16
- 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,8 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- dropdownIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- };
7
- };
8
- export default _default;
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- leftWardArrow: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- };
7
- };
8
- export default _default;
@@ -1,10 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- validateIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- };
7
- messageType: string;
8
- hideRequiredAsterisk: boolean;
9
- };
10
- export default _default;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- validConfig: {
3
- icon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- };
7
- minWidth: number;
8
- treeConfig: {
9
- renderIcon(h: any, { active }: {
10
- active: any;
11
- }): any;
12
- };
13
- };
14
- 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,11 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- warning: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- info: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
7
- [key: string]: any;
8
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
9
- };
10
- };
11
- export default _default;
@@ -1,18 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- dropdownIcon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- };
7
- state: {
8
- sizeMap: {
9
- default: number;
10
- mini: number;
11
- small: number;
12
- medium: number;
13
- };
14
- spacingHeight: number;
15
- initialInputHeight: number;
16
- };
17
- };
18
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- showTimePickerButton: boolean;
3
- itemMarginSpace: number;
4
- };
5
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- icons: {
3
- expanded: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
4
- [key: string]: any;
5
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
6
- collapse: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
7
- [key: string]: any;
8
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
9
- };
10
- };
11
- 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;