bkui-vue 0.0.1-beta.123 → 0.0.1-beta.126
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/index.cjs.js +145 -31
- package/dist/index.esm.js +3460 -450
- package/dist/index.umd.js +145 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.variable.css +2 -2
- package/lib/alert/alert.variable.css +2 -2
- package/lib/backtop/backtop.variable.css +2 -2
- package/lib/badge/badge.variable.css +2 -2
- package/lib/breadcrumb/breadcrumb.css +43 -0
- package/lib/breadcrumb/breadcrumb.variable.css +45 -2
- package/lib/button/button.css +4 -0
- package/lib/button/button.less +13 -7
- package/lib/button/button.variable.css +6 -2
- package/lib/card/card.css +43 -0
- package/lib/card/card.variable.css +45 -2
- package/lib/cascader/cascader.variable.css +2 -2
- package/lib/checkbox/checkbox.css +16 -4
- package/lib/checkbox/checkbox.d.ts +11 -3
- package/lib/checkbox/checkbox.less +22 -4
- package/lib/checkbox/checkbox.variable.css +18 -6
- package/lib/checkbox/index.d.ts +19 -5
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.variable.css +2 -2
- package/lib/collapse/collapse.variable.css +2 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/container/container.css +43 -0
- package/lib/container/container.variable.css +45 -2
- package/lib/date-picker/date-picker.variable.css +2 -2
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +0 -1
- package/lib/divider/divider.variable.css +2 -2
- package/lib/dropdown/dropdown.variable.css +2 -2
- package/lib/exception/exception.variable.css +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -2
- package/lib/form/form.variable.css +2 -2
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +56 -5
- package/lib/input/input.less +12 -2
- package/lib/input/input.variable.css +55 -4
- package/lib/link/link.variable.css +2 -2
- package/lib/loading/loading.css +43 -2
- package/lib/loading/loading.less +2 -2
- package/lib/loading/loading.variable.css +45 -4
- package/lib/menu/menu.css +43 -0
- package/lib/menu/menu.variable.css +45 -2
- package/lib/menu/submenu.variable.css +2 -2
- package/lib/message/message.variable.css +2 -2
- package/lib/navigation/navigation.variable.css +2 -2
- package/lib/notify/notify.variable.css +2 -2
- package/lib/pagination/pagination.variable.css +2 -2
- package/lib/popover/popover.variable.css +2 -2
- package/lib/popover2/popover2.variable.css +2 -2
- package/lib/process/process.variable.css +2 -2
- package/lib/progress/progress.css +43 -0
- package/lib/progress/progress.variable.css +45 -2
- package/lib/radio/radio.variable.css +2 -2
- package/lib/resize-layout/resize-layout.variable.css +2 -2
- package/lib/select/select.variable.css +2 -2
- package/lib/sideslider/sideslider.variable.css +2 -2
- package/lib/slider/slider.variable.css +2 -2
- package/lib/steps/steps.variable.css +2 -2
- package/lib/styles/mixins/mixins.css +43 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +43 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +119 -0
- package/lib/styles/themes/themes.less +2 -2
- package/lib/switcher/switcher.css +43 -0
- package/lib/switcher/switcher.variable.css +45 -2
- package/lib/tab/tab.variable.css +2 -2
- package/lib/table/index.d.ts +11 -11
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.less +1 -1
- package/lib/table/plugins/head-filter.variable.css +2 -2
- package/lib/table/plugins/head-sort.less +1 -1
- package/lib/table/plugins/head-sort.variable.css +2 -2
- package/lib/table/plugins/settings.css +23 -4
- package/lib/table/plugins/settings.less +26 -5
- package/lib/table/plugins/settings.variable.css +25 -6
- package/lib/table/props.d.ts +3 -2
- package/lib/table/table.css +665 -4
- package/lib/table/table.d.ts +5 -5
- package/lib/table/table.less +6 -0
- package/lib/table/table.variable.css +667 -6
- package/lib/tag/tag.variable.css +2 -2
- package/lib/tag-input/tag-input.variable.css +2 -2
- package/lib/timeline/timeline.variable.css +2 -2
- package/lib/transfer/transfer.variable.css +2 -2
- package/lib/tree/constant.d.ts +3 -1
- package/lib/tree/index.d.ts +54 -2
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +16 -0
- package/lib/tree/tree.css +124 -0
- package/lib/tree/tree.d.ts +24 -0
- package/lib/tree/tree.less +24 -0
- package/lib/tree/tree.variable.css +126 -2
- package/lib/tree/use-node-action.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +2 -0
- package/lib/upload/upload.css +43 -0
- package/lib/upload/upload.variable.css +45 -2
- package/lib/virtual-render/virtual-render.variable.css +2 -2
- package/package.json +2 -2
@@ -19,7 +19,7 @@
|
|
19
19
|
--line-height-large: 18px;
|
20
20
|
--component-size-small: 26px;
|
21
21
|
--component-size-base: 32px;
|
22
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
23
23
|
--border-width-base: 1px;
|
24
24
|
--border-style-base: solid;
|
25
25
|
--border-radius-base: 2px;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
--input-horizontal-padding: 10px;
|
35
35
|
--input-block-color: #f5f7fa;
|
36
36
|
--input-block-hover-color: #eaebf0;
|
37
|
-
--input-icon-size: var(--font-size-
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
38
38
|
--input-maxlength-color: #979ba5;
|
39
39
|
--button-primary-hover-color: #5594fa;
|
40
40
|
--button-danger-hover-color: #ff5656;
|
@@ -117,6 +117,114 @@
|
|
117
117
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
118
118
|
border-radius: 4px;
|
119
119
|
}
|
120
|
+
.bk-virtual-render {
|
121
|
+
position: relative;
|
122
|
+
}
|
123
|
+
.bk-virtual-render .bk-virtual-content,
|
124
|
+
.bk-virtual-render.bk-virtual-content {
|
125
|
+
position: absolute;
|
126
|
+
top: 0;
|
127
|
+
bottom: 0;
|
128
|
+
left: 0;
|
129
|
+
width: 100%;
|
130
|
+
height: 100%;
|
131
|
+
}
|
132
|
+
.bk-virtual-render .bk-virtual-section {
|
133
|
+
width: 1px;
|
134
|
+
background: transparent;
|
135
|
+
}
|
136
|
+
.bk-checkbox {
|
137
|
+
display: inline-flex;
|
138
|
+
justify-self: center;
|
139
|
+
margin-right: 30px;
|
140
|
+
font-size: 14px;
|
141
|
+
line-height: 18px;
|
142
|
+
letter-spacing: normal;
|
143
|
+
color: #63656e;
|
144
|
+
cursor: pointer;
|
145
|
+
user-select: none;
|
146
|
+
}
|
147
|
+
.bk-checkbox.is-checked .bk-checkbox-input {
|
148
|
+
background: #3a84ff;
|
149
|
+
border-color: #3a84ff;
|
150
|
+
transition: all 0.1s;
|
151
|
+
}
|
152
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
153
|
+
width: 3px;
|
154
|
+
height: 6px;
|
155
|
+
}
|
156
|
+
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
157
|
+
position: absolute;
|
158
|
+
top: 50%;
|
159
|
+
left: 50%;
|
160
|
+
width: 4px;
|
161
|
+
height: 8px;
|
162
|
+
border: 2px solid #fff;
|
163
|
+
border-top: 0;
|
164
|
+
border-left: 0;
|
165
|
+
content: '';
|
166
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
167
|
+
transform-origin: center;
|
168
|
+
}
|
169
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
170
|
+
width: 6px;
|
171
|
+
height: 2px;
|
172
|
+
}
|
173
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
174
|
+
position: absolute;
|
175
|
+
top: 50%;
|
176
|
+
left: 50%;
|
177
|
+
width: 8px;
|
178
|
+
height: 2px;
|
179
|
+
background: #fff;
|
180
|
+
border: none;
|
181
|
+
border-radius: 2px;
|
182
|
+
content: '';
|
183
|
+
transform: translate(-50%, -50%);
|
184
|
+
}
|
185
|
+
.bk-checkbox.is-disabled {
|
186
|
+
color: #c4c6cc;
|
187
|
+
cursor: not-allowed;
|
188
|
+
}
|
189
|
+
.bk-checkbox.is-disabled .bk-checkbox-input {
|
190
|
+
background: #fafbfd;
|
191
|
+
border-color: #dcdee5;
|
192
|
+
}
|
193
|
+
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
194
|
+
background: #dcdee5;
|
195
|
+
}
|
196
|
+
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
197
|
+
background: #dcdee5;
|
198
|
+
}
|
199
|
+
.bk-checkbox .bk-checkbox-input {
|
200
|
+
position: relative;
|
201
|
+
display: inline-block;
|
202
|
+
width: 16px;
|
203
|
+
height: 16px;
|
204
|
+
margin-right: 5px;
|
205
|
+
vertical-align: middle;
|
206
|
+
border: 1px solid #979ba5;
|
207
|
+
border-radius: 2px;
|
208
|
+
}
|
209
|
+
.bk-checkbox .bk-checkbox-input.small {
|
210
|
+
width: 14px;
|
211
|
+
height: 14px;
|
212
|
+
}
|
213
|
+
.bk-checkbox .bk-checkbox-original {
|
214
|
+
position: absolute;
|
215
|
+
top: 0;
|
216
|
+
left: 0;
|
217
|
+
z-index: -1;
|
218
|
+
width: 0;
|
219
|
+
height: 0;
|
220
|
+
}
|
221
|
+
.bk-checkbox .bk-checkbox-label {
|
222
|
+
display: inline-block;
|
223
|
+
vertical-align: middle;
|
224
|
+
}
|
225
|
+
.bk-tree {
|
226
|
+
font-size: 14px;
|
227
|
+
}
|
120
228
|
.bk-tree .bk-node-row {
|
121
229
|
padding-left: calc(var(--offset-left));
|
122
230
|
}
|
@@ -155,6 +263,16 @@
|
|
155
263
|
width: 0;
|
156
264
|
border-left: var(--level-line);
|
157
265
|
}
|
266
|
+
.bk-tree .bk-tree-node .bk-node-prefix {
|
267
|
+
display: flex;
|
268
|
+
width: 14px;
|
269
|
+
height: 14px;
|
270
|
+
align-items: center;
|
271
|
+
justify-content: center;
|
272
|
+
}
|
273
|
+
.bk-tree .bk-tree-node .bk-node-action {
|
274
|
+
margin-right: 2px;
|
275
|
+
}
|
158
276
|
.bk-tree .bk-tree-node .bk-tree-icon {
|
159
277
|
margin: 0 6px 0 4px;
|
160
278
|
}
|
@@ -164,6 +282,12 @@
|
|
164
282
|
align-items: center;
|
165
283
|
min-width: 0;
|
166
284
|
}
|
285
|
+
.bk-tree .bk-tree-node .bk-node-content .bk-checkbox {
|
286
|
+
margin: 0;
|
287
|
+
}
|
288
|
+
.bk-tree .bk-tree-node .bk-node-content .bk-checkbox .bk-checkbox-input {
|
289
|
+
margin: 0;
|
290
|
+
}
|
167
291
|
.bk-tree .bk-tree-node .bk-node-content .bk-node-text {
|
168
292
|
flex: 1;
|
169
293
|
overflow: hidden;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { TreePropTypes } from './props';
|
2
|
+
declare const _default: (props: TreePropTypes, ctx: any, flatData: any, _renderData: any, schemaValues: any, initOption: any) => {
|
2
3
|
renderTreeNode: (item: any) => JSX.Element;
|
3
4
|
hanldeTreeNodeClick: (item: any, e: MouseEvent) => void;
|
4
5
|
deepAutoOpen: () => void;
|
@@ -6,6 +6,7 @@ declare const _default: (flatData: any, props?: TreePropTypes) => {
|
|
6
6
|
getNodeParentId: (node: any) => any;
|
7
7
|
getNodeParentIdById: (id: string) => any;
|
8
8
|
getParentNodeData: (uid: string) => any;
|
9
|
+
getParentNode: (node: any) => any;
|
9
10
|
setNodeAttr: (node: any, attr: string, val: any) => void;
|
10
11
|
getNodePath: (node: any) => any;
|
11
12
|
isRootNode: (node: any) => any;
|
@@ -27,5 +28,6 @@ declare const _default: (flatData: any, props?: TreePropTypes) => {
|
|
27
28
|
};
|
28
29
|
setTreeNodeLoading: (node: any, value: boolean) => void;
|
29
30
|
extendNodeAttr: (item: any) => any;
|
31
|
+
getChildNodes: (node: any) => any[];
|
30
32
|
};
|
31
33
|
export default _default;
|
package/lib/upload/upload.css
CHANGED
@@ -27,6 +27,49 @@
|
|
27
27
|
content: '';
|
28
28
|
visibility: hidden;
|
29
29
|
}
|
30
|
+
.bk-popper {
|
31
|
+
display: none;
|
32
|
+
padding: 7px 14px;
|
33
|
+
font-size: 12px;
|
34
|
+
color: #fff;
|
35
|
+
background: #333;
|
36
|
+
border-radius: 4px;
|
37
|
+
}
|
38
|
+
.bk-popper.light {
|
39
|
+
color: #63656e;
|
40
|
+
background: #fff;
|
41
|
+
box-shadow: #dcdee5 0px 0px 6px 0px;
|
42
|
+
}
|
43
|
+
.bk-popper .bk-popper-arrow,
|
44
|
+
.bk-popper .bk-popper-arrow::before {
|
45
|
+
position: absolute;
|
46
|
+
width: 8px;
|
47
|
+
height: 8px;
|
48
|
+
background: inherit;
|
49
|
+
}
|
50
|
+
.bk-popper .bk-popper-arrow {
|
51
|
+
visibility: hidden;
|
52
|
+
}
|
53
|
+
.bk-popper .bk-popper-arrow::before {
|
54
|
+
content: '';
|
55
|
+
visibility: visible;
|
56
|
+
transform: rotate(45deg);
|
57
|
+
}
|
58
|
+
.bk-popper[data-show] {
|
59
|
+
display: block;
|
60
|
+
}
|
61
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
62
|
+
bottom: -4px;
|
63
|
+
}
|
64
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
65
|
+
top: -4px;
|
66
|
+
}
|
67
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
68
|
+
right: -4px;
|
69
|
+
}
|
70
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
71
|
+
left: -4px;
|
72
|
+
}
|
30
73
|
.bk-upload__input-file {
|
31
74
|
display: none;
|
32
75
|
}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
--line-height-large: 18px;
|
20
20
|
--component-size-small: 26px;
|
21
21
|
--component-size-base: 32px;
|
22
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
23
23
|
--border-width-base: 1px;
|
24
24
|
--border-style-base: solid;
|
25
25
|
--border-radius-base: 2px;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
--input-horizontal-padding: 10px;
|
35
35
|
--input-block-color: #f5f7fa;
|
36
36
|
--input-block-hover-color: #eaebf0;
|
37
|
-
--input-icon-size: var(--font-size-
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
38
38
|
--input-maxlength-color: #979ba5;
|
39
39
|
--button-primary-hover-color: #5594fa;
|
40
40
|
--button-danger-hover-color: #ff5656;
|
@@ -129,6 +129,49 @@
|
|
129
129
|
content: '';
|
130
130
|
visibility: hidden;
|
131
131
|
}
|
132
|
+
.bk-popper {
|
133
|
+
display: none;
|
134
|
+
padding: 7px 14px;
|
135
|
+
font-size: 12px;
|
136
|
+
color: #fff;
|
137
|
+
background: #333;
|
138
|
+
border-radius: 4px;
|
139
|
+
}
|
140
|
+
.bk-popper.light {
|
141
|
+
color: #63656e;
|
142
|
+
background: #fff;
|
143
|
+
box-shadow: #dcdee5 0px 0px 6px 0px;
|
144
|
+
}
|
145
|
+
.bk-popper .bk-popper-arrow,
|
146
|
+
.bk-popper .bk-popper-arrow::before {
|
147
|
+
position: absolute;
|
148
|
+
width: 8px;
|
149
|
+
height: 8px;
|
150
|
+
background: inherit;
|
151
|
+
}
|
152
|
+
.bk-popper .bk-popper-arrow {
|
153
|
+
visibility: hidden;
|
154
|
+
}
|
155
|
+
.bk-popper .bk-popper-arrow::before {
|
156
|
+
content: '';
|
157
|
+
visibility: visible;
|
158
|
+
transform: rotate(45deg);
|
159
|
+
}
|
160
|
+
.bk-popper[data-show] {
|
161
|
+
display: block;
|
162
|
+
}
|
163
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
164
|
+
bottom: -4px;
|
165
|
+
}
|
166
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
167
|
+
top: -4px;
|
168
|
+
}
|
169
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
170
|
+
right: -4px;
|
171
|
+
}
|
172
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
173
|
+
left: -4px;
|
174
|
+
}
|
132
175
|
.bk-upload__input-file {
|
133
176
|
display: none;
|
134
177
|
}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
--line-height-large: 18px;
|
20
20
|
--component-size-small: 26px;
|
21
21
|
--component-size-base: 32px;
|
22
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
23
23
|
--border-width-base: 1px;
|
24
24
|
--border-style-base: solid;
|
25
25
|
--border-radius-base: 2px;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
--input-horizontal-padding: 10px;
|
35
35
|
--input-block-color: #f5f7fa;
|
36
36
|
--input-block-hover-color: #eaebf0;
|
37
|
-
--input-icon-size: var(--font-size-
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
38
38
|
--input-maxlength-color: #979ba5;
|
39
39
|
--button-primary-hover-color: #5594fa;
|
40
40
|
--button-danger-hover-color: #ff5656;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.1-beta.
|
3
|
+
"version": "0.0.1-beta.126",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"scripts": {
|
15
15
|
"prepare": "husky install",
|
16
16
|
"dev": "vite serve site",
|
17
|
-
"build": "run-
|
17
|
+
"build": "run-s build:dist build:lib",
|
18
18
|
"build:site": "vite build site --mode production && cp -r ./site/views/ ./site/dist/views",
|
19
19
|
"build:dist": "rimraf dist && lerna run --stream --scope cli dist",
|
20
20
|
"build:lib": "rimraf lib && lerna run --stream --scope cli lib",
|