bkui-vue 0.0.1-beta.10 → 0.0.1-beta.14
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/bkui-vue.cjs.js +5628 -472
- package/dist/bkui-vue.esm.js +5620 -474
- package/dist/bkui-vue.umd.js +5628 -472
- package/dist/style.css +1858 -16
- package/lib/alert/alert.variable.css +16 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.variable.css +16 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.variable.css +16 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +16 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.d.ts +12 -12
- package/lib/button/button.less +6 -6
- package/lib/button/button.variable.css +16 -0
- package/lib/button/index.d.ts +16 -19
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +16 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox.variable.css +16 -0
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +6 -1
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +357 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +493 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +525 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +40 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +124 -0
- package/lib/divider/index.d.ts +110 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +18 -0
- package/lib/dropdown/dropdown-menu.d.ts +15 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +49 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +129 -0
- package/lib/dropdown/index.d.ts +160 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.variable.css +16 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +16 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +140 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +76 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/index.d.ts +27 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/input/index.d.ts +36 -36
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +10 -10
- package/lib/input/input.variable.css +16 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.variable.css +16 -0
- package/lib/loading/index.d.ts +21 -4
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +13 -2
- package/lib/loading/loading.variable.css +16 -0
- package/lib/menu/index.d.ts +169 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +13 -0
- package/lib/menu/menu-item.d.ts +15 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +60 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +268 -0
- package/lib/menu/submenu.d.ts +21 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +86 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +17 -0
- package/lib/message/message.less +18 -0
- package/lib/message/message.variable.css +33 -0
- package/lib/message/messageConstructor.d.ts +12 -6
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +22 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +94 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +270 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +135 -0
- package/lib/notify/notifyConstructor.d.ts +75 -0
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +2 -3
- package/lib/popover/popover.d.ts +8 -8
- package/lib/popover/popover.less +2 -3
- package/lib/popover/popover.variable.css +18 -3
- package/lib/preset.d.ts +2 -3
- package/lib/process/index.d.ts +145 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +139 -0
- package/lib/process/process.d.ts +116 -0
- package/lib/process/process.less +179 -0
- package/lib/process/process.variable.css +225 -0
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress/progress.variable.css +16 -0
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.css +6 -0
- package/lib/radio/radio.less +7 -0
- package/lib/radio/radio.variable.css +22 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/star.d.ts +2 -2
- package/lib/select/common.d.ts +4 -3
- package/lib/select/index.d.ts +211 -60
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +2 -2
- package/lib/select/optionGroup.d.ts +115 -0
- package/lib/select/select.css +52 -12
- package/lib/select/select.d.ts +24 -21
- package/lib/select/select.less +73 -7
- package/lib/select/select.variable.css +68 -12
- package/lib/shared/bk-popover.d.ts +11 -1
- package/lib/shared/index.d.ts +7 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +1 -0
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +16 -0
- package/lib/slider/index.d.ts +27 -0
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +72 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +159 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +235 -0
- package/lib/steps/index.d.ts +15 -15
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.css +1 -1
- package/lib/steps/steps.d.ts +4 -4
- package/lib/steps/steps.less +1 -1
- package/lib/steps/steps.variable.css +17 -1
- package/lib/styles/index.d.ts +12 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +26 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.variable.css +16 -0
- package/lib/tab/index.d.ts +416 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +154 -0
- package/lib/tab/tab-panel.d.ts +46 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +131 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +233 -0
- package/lib/table/index.d.ts +71 -60
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +41 -0
- package/lib/table/render.d.ts +47 -0
- package/lib/table/table.css +44 -0
- package/lib/table/table.d.ts +22 -63
- package/lib/table/table.less +63 -1
- package/lib/table/table.variable.css +60 -0
- package/lib/table/utils.d.ts +22 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.variable.css +16 -0
- package/lib/tree/index.d.ts +149 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/tree.css +35 -0
- package/lib/tree/tree.d.ts +58 -0
- package/lib/tree/tree.less +55 -0
- package/lib/tree/tree.variable.css +35 -0
- package/lib/tree/util.d.ts +89 -0
- package/lib/use-message.d.ts +2 -0
- package/package.json +9 -1
- package/lib/message/message.d.ts +0 -2
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
package/lib/index.d.ts
CHANGED
package/lib/input/index.d.ts
CHANGED
@@ -3,19 +3,19 @@ declare const BkInput: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
placeholder: string;
|
7
6
|
prefix: string;
|
7
|
+
placeholder: string;
|
8
8
|
step: number;
|
9
9
|
disabled: boolean;
|
10
10
|
type: string;
|
11
|
-
clearable: boolean;
|
12
11
|
readonly: boolean;
|
13
|
-
|
14
|
-
suffixIcon: string;
|
15
|
-
suffix: string;
|
12
|
+
clearable: boolean;
|
16
13
|
max: number;
|
17
14
|
min: number;
|
18
15
|
maxlength: number;
|
16
|
+
prefixIcon: string;
|
17
|
+
suffixIcon: string;
|
18
|
+
suffix: string;
|
19
19
|
showWordLimit: boolean;
|
20
20
|
showControl: boolean;
|
21
21
|
precision: number;
|
@@ -39,19 +39,19 @@ declare const BkInput: {
|
|
39
39
|
modelValue?: unknown;
|
40
40
|
size?: unknown;
|
41
41
|
} & {
|
42
|
-
placeholder: string;
|
43
42
|
prefix: string;
|
43
|
+
placeholder: string;
|
44
44
|
step: number;
|
45
45
|
disabled: boolean;
|
46
46
|
type: string;
|
47
|
-
clearable: boolean;
|
48
47
|
readonly: boolean;
|
49
|
-
|
50
|
-
suffixIcon: string;
|
51
|
-
suffix: string;
|
48
|
+
clearable: boolean;
|
52
49
|
max: number;
|
53
50
|
min: number;
|
54
51
|
maxlength: number;
|
52
|
+
prefixIcon: string;
|
53
|
+
suffixIcon: string;
|
54
|
+
suffix: string;
|
55
55
|
showWordLimit: boolean;
|
56
56
|
showControl: boolean;
|
57
57
|
precision: number;
|
@@ -64,7 +64,7 @@ declare const BkInput: {
|
|
64
64
|
onChange?: (...args: any[]) => any;
|
65
65
|
onInput?: (...args: any[]) => any;
|
66
66
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
67
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
67
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "placeholder" | "step" | "disabled" | "type" | "readonly" | "clearable" | "max" | "min" | "maxlength" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "precision">;
|
68
68
|
$attrs: {
|
69
69
|
[x: string]: unknown;
|
70
70
|
};
|
@@ -98,19 +98,19 @@ declare const BkInput: {
|
|
98
98
|
modelValue?: unknown;
|
99
99
|
size?: unknown;
|
100
100
|
} & {
|
101
|
-
placeholder: string;
|
102
101
|
prefix: string;
|
102
|
+
placeholder: string;
|
103
103
|
step: number;
|
104
104
|
disabled: boolean;
|
105
105
|
type: string;
|
106
|
-
clearable: boolean;
|
107
106
|
readonly: boolean;
|
108
|
-
|
109
|
-
suffixIcon: string;
|
110
|
-
suffix: string;
|
107
|
+
clearable: boolean;
|
111
108
|
max: number;
|
112
109
|
min: number;
|
113
110
|
maxlength: number;
|
111
|
+
prefixIcon: string;
|
112
|
+
suffixIcon: string;
|
113
|
+
suffix: string;
|
114
114
|
showWordLimit: boolean;
|
115
115
|
showControl: boolean;
|
116
116
|
precision: number;
|
@@ -124,19 +124,19 @@ declare const BkInput: {
|
|
124
124
|
onInput?: (...args: any[]) => any;
|
125
125
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
126
126
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], string, {
|
127
|
-
placeholder: string;
|
128
127
|
prefix: string;
|
128
|
+
placeholder: string;
|
129
129
|
step: number;
|
130
130
|
disabled: boolean;
|
131
131
|
type: string;
|
132
|
-
clearable: boolean;
|
133
132
|
readonly: boolean;
|
134
|
-
|
135
|
-
suffixIcon: string;
|
136
|
-
suffix: string;
|
133
|
+
clearable: boolean;
|
137
134
|
max: number;
|
138
135
|
min: number;
|
139
136
|
maxlength: number;
|
137
|
+
prefixIcon: string;
|
138
|
+
suffixIcon: string;
|
139
|
+
suffix: string;
|
140
140
|
showWordLimit: boolean;
|
141
141
|
showControl: boolean;
|
142
142
|
precision: number;
|
@@ -180,19 +180,19 @@ declare const BkInput: {
|
|
180
180
|
modelValue?: unknown;
|
181
181
|
size?: unknown;
|
182
182
|
} & {
|
183
|
-
placeholder: string;
|
184
183
|
prefix: string;
|
184
|
+
placeholder: string;
|
185
185
|
step: number;
|
186
186
|
disabled: boolean;
|
187
187
|
type: string;
|
188
|
-
clearable: boolean;
|
189
188
|
readonly: boolean;
|
190
|
-
|
191
|
-
suffixIcon: string;
|
192
|
-
suffix: string;
|
189
|
+
clearable: boolean;
|
193
190
|
max: number;
|
194
191
|
min: number;
|
195
192
|
maxlength: number;
|
193
|
+
prefixIcon: string;
|
194
|
+
suffixIcon: string;
|
195
|
+
suffix: string;
|
196
196
|
showWordLimit: boolean;
|
197
197
|
showControl: boolean;
|
198
198
|
precision: number;
|
@@ -229,19 +229,19 @@ declare const BkInput: {
|
|
229
229
|
modelValue?: unknown;
|
230
230
|
size?: unknown;
|
231
231
|
} & {
|
232
|
-
placeholder: string;
|
233
232
|
prefix: string;
|
233
|
+
placeholder: string;
|
234
234
|
step: number;
|
235
235
|
disabled: boolean;
|
236
236
|
type: string;
|
237
|
-
clearable: boolean;
|
238
237
|
readonly: boolean;
|
239
|
-
|
240
|
-
suffixIcon: string;
|
241
|
-
suffix: string;
|
238
|
+
clearable: boolean;
|
242
239
|
max: number;
|
243
240
|
min: number;
|
244
241
|
maxlength: number;
|
242
|
+
prefixIcon: string;
|
243
|
+
suffixIcon: string;
|
244
|
+
suffix: string;
|
245
245
|
showWordLimit: boolean;
|
246
246
|
showControl: boolean;
|
247
247
|
precision: number;
|
@@ -255,19 +255,19 @@ declare const BkInput: {
|
|
255
255
|
onInput?: (...args: any[]) => any;
|
256
256
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
257
257
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "update:modelValue", {
|
258
|
-
placeholder: string;
|
259
258
|
prefix: string;
|
259
|
+
placeholder: string;
|
260
260
|
step: number;
|
261
261
|
disabled: boolean;
|
262
262
|
type: string;
|
263
|
-
clearable: boolean;
|
264
263
|
readonly: boolean;
|
265
|
-
|
266
|
-
suffixIcon: string;
|
267
|
-
suffix: string;
|
264
|
+
clearable: boolean;
|
268
265
|
max: number;
|
269
266
|
min: number;
|
270
267
|
maxlength: number;
|
268
|
+
prefixIcon: string;
|
269
|
+
suffixIcon: string;
|
270
|
+
suffix: string;
|
271
271
|
showWordLimit: boolean;
|
272
272
|
showControl: boolean;
|
273
273
|
precision: number;
|
package/lib/input/index.js
CHANGED
@@ -12,4 +12,4 @@
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
|
-
***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"
|
15
|
+
***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"Input",inheritAttrs:!1,emits:["update:modelValue","focus","blur","change","input"],props:i,setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:k},null)}},m=I("suffix-icon"),v=t.computed((function(){var o=f[e.type];return x.value?t.createVNode(n.Unvisible,{onClick:k,class:m},null):o?t.createVNode(o,{class:m},null):null})),y=t.computed((function(){return"number"===e.type})),b=t.computed((function(){return Math.floor(e.maxlength)})),x=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change","")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",y.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("change",e.target.value,e)}function N(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function w(){var t=N(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function O(){var t=N(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function I(e){return"".concat(i,"--").concat(e)}function k(){x.value=!x.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:I("prefix-area")},[t.createVNode("span",{class:I("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:x.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),v.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:I("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[b.value])]),y.value&&e.showControl&&t.createVNode("div",{class:I("number-control")},[t.createVNode(n.DownSmall,{onClick:w},null),t.createVNode(n.DownSmall,{onClick:O},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:I("suffix-area")},[t.createVNode("span",{class:I("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/input.d.ts
CHANGED
@@ -139,19 +139,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
139
|
modelValue?: unknown;
|
140
140
|
size?: unknown;
|
141
141
|
} & {
|
142
|
-
placeholder: string;
|
143
142
|
prefix: string;
|
143
|
+
placeholder: string;
|
144
144
|
step: number;
|
145
145
|
disabled: boolean;
|
146
146
|
type: string;
|
147
|
-
clearable: boolean;
|
148
147
|
readonly: boolean;
|
149
|
-
|
150
|
-
suffixIcon: string;
|
151
|
-
suffix: string;
|
148
|
+
clearable: boolean;
|
152
149
|
max: number;
|
153
150
|
min: number;
|
154
151
|
maxlength: number;
|
152
|
+
prefixIcon: string;
|
153
|
+
suffixIcon: string;
|
154
|
+
suffix: string;
|
155
155
|
showWordLimit: boolean;
|
156
156
|
showControl: boolean;
|
157
157
|
precision: number;
|
@@ -165,19 +165,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
165
165
|
onInput?: (...args: any[]) => any;
|
166
166
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
167
167
|
}, {
|
168
|
-
placeholder: string;
|
169
168
|
prefix: string;
|
169
|
+
placeholder: string;
|
170
170
|
step: number;
|
171
171
|
disabled: boolean;
|
172
172
|
type: string;
|
173
|
-
clearable: boolean;
|
174
173
|
readonly: boolean;
|
175
|
-
|
176
|
-
suffixIcon: string;
|
177
|
-
suffix: string;
|
174
|
+
clearable: boolean;
|
178
175
|
max: number;
|
179
176
|
min: number;
|
180
177
|
maxlength: number;
|
178
|
+
prefixIcon: string;
|
179
|
+
suffixIcon: string;
|
180
|
+
suffix: string;
|
181
181
|
showWordLimit: boolean;
|
182
182
|
showControl: boolean;
|
183
183
|
precision: number;
|
@@ -5,6 +5,7 @@
|
|
5
5
|
--warning-color: #ff9c01;
|
6
6
|
--danger-color: #ea3636;
|
7
7
|
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
8
9
|
--light-gray: #c4c6cc;
|
9
10
|
--white-color: white;
|
10
11
|
--disable-color: #dcdee5;
|
@@ -67,6 +68,21 @@
|
|
67
68
|
--message-success-border-color: #dcffe2;
|
68
69
|
--message-danger-bg-color: #ffeded;
|
69
70
|
--message-danger-border-color: #ffdddd;
|
71
|
+
--slider-default-bg: #dcdee5;
|
72
|
+
--slider-disable-bar-bg: #979ba5;
|
73
|
+
--menu-bg-color: #182132;
|
74
|
+
--submenu-bg-color: #151d2c;
|
75
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
76
|
+
--menu-color: #96a2b9;
|
77
|
+
--menu-group-color: var(--default-color);
|
78
|
+
--menu-width: 260px;
|
79
|
+
--menu-collapse-width: 60px;
|
80
|
+
--menu-active-color: white;
|
81
|
+
--nav-header-bg-color: #182132;
|
82
|
+
--nav-bg-color: #182132;
|
83
|
+
--date-picker-disabled-bg: #fafbfd;
|
84
|
+
--date-picker-dropdown-mb: 4px;
|
85
|
+
--date-picker-dropdown-bg: #fff;
|
70
86
|
}
|
71
87
|
@keyframes loading-scale-animate {
|
72
88
|
0% {
|
package/lib/link/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,i){"use strict";var n=t.defineComponent({name:"
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,i){"use strict";var n=t.defineComponent({name:"Link",props:{theme:i.PropTypes.theme(["danger","success","primary","warning","default"]).def("default"),href:i.PropTypes.string.def(""),disabled:i.PropTypes.bool.def(!1),underline:i.PropTypes.bool.def(!1),target:i.PropTypes.string.def("_self")},setup:function(e,t){var i=t.emit;return{handleClick:function(t){if(e.disabled)return t.preventDefault(),!1;i("click",t)}}},render:function(){var e,n,r=i.classes({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return t.createVNode("a",{href:this.href,target:this.target,class:r,onClick:this.handleClick},[t.createVNode("span",null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])])}}),r=i.withInstall(n);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -5,6 +5,7 @@
|
|
5
5
|
--warning-color: #ff9c01;
|
6
6
|
--danger-color: #ea3636;
|
7
7
|
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
8
9
|
--light-gray: #c4c6cc;
|
9
10
|
--white-color: white;
|
10
11
|
--disable-color: #dcdee5;
|
@@ -67,6 +68,21 @@
|
|
67
68
|
--message-success-border-color: #dcffe2;
|
68
69
|
--message-danger-bg-color: #ffeded;
|
69
70
|
--message-danger-border-color: #ffdddd;
|
71
|
+
--slider-default-bg: #dcdee5;
|
72
|
+
--slider-disable-bar-bg: #979ba5;
|
73
|
+
--menu-bg-color: #182132;
|
74
|
+
--submenu-bg-color: #151d2c;
|
75
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
76
|
+
--menu-color: #96a2b9;
|
77
|
+
--menu-group-color: var(--default-color);
|
78
|
+
--menu-width: 260px;
|
79
|
+
--menu-collapse-width: 60px;
|
80
|
+
--menu-active-color: white;
|
81
|
+
--nav-header-bg-color: #182132;
|
82
|
+
--nav-bg-color: #182132;
|
83
|
+
--date-picker-disabled-bg: #fafbfd;
|
84
|
+
--date-picker-dropdown-mb: 4px;
|
85
|
+
--date-picker-dropdown-bg: #fff;
|
70
86
|
}
|
71
87
|
.bk-link {
|
72
88
|
font-size: var(--font-size-medium);
|
package/lib/loading/index.d.ts
CHANGED
@@ -5,20 +5,23 @@ declare const BkLoading: {
|
|
5
5
|
$data: {};
|
6
6
|
$props: Partial<{
|
7
7
|
title: string;
|
8
|
+
loading: boolean;
|
8
9
|
}> & Omit<Readonly<{
|
9
10
|
indicator?: unknown;
|
11
|
+
loading?: unknown;
|
10
12
|
theme?: unknown;
|
11
13
|
title?: unknown;
|
12
14
|
size?: unknown;
|
13
15
|
mode?: unknown;
|
14
16
|
} & {
|
15
17
|
title: string;
|
18
|
+
loading: boolean;
|
16
19
|
} & {
|
17
20
|
theme?: string;
|
18
21
|
size?: string;
|
19
22
|
indicator?: Function;
|
20
23
|
mode?: BkLoadingMode;
|
21
|
-
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title">;
|
24
|
+
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "loading">;
|
22
25
|
$attrs: {
|
23
26
|
[x: string]: unknown;
|
24
27
|
};
|
@@ -34,19 +37,24 @@ declare const BkLoading: {
|
|
34
37
|
$el: any;
|
35
38
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
36
39
|
indicator?: unknown;
|
40
|
+
loading?: unknown;
|
37
41
|
theme?: unknown;
|
38
42
|
title?: unknown;
|
39
43
|
size?: unknown;
|
40
44
|
mode?: unknown;
|
41
45
|
} & {
|
42
46
|
title: string;
|
47
|
+
loading: boolean;
|
43
48
|
} & {
|
44
49
|
theme?: string;
|
45
50
|
size?: string;
|
46
51
|
indicator?: Function;
|
47
52
|
mode?: BkLoadingMode;
|
48
|
-
}> & {}, () => JSX.Element
|
53
|
+
}> & {}, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
49
56
|
title: string;
|
57
|
+
loading: boolean;
|
50
58
|
}> & {
|
51
59
|
beforeCreate?: (() => void) | (() => void)[];
|
52
60
|
created?: (() => void) | (() => void)[];
|
@@ -69,36 +77,45 @@ declare const BkLoading: {
|
|
69
77
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
70
78
|
} & Readonly<{
|
71
79
|
indicator?: unknown;
|
80
|
+
loading?: unknown;
|
72
81
|
theme?: unknown;
|
73
82
|
title?: unknown;
|
74
83
|
size?: unknown;
|
75
84
|
mode?: unknown;
|
76
85
|
} & {
|
77
86
|
title: string;
|
87
|
+
loading: boolean;
|
78
88
|
} & {
|
79
89
|
theme?: string;
|
80
90
|
size?: string;
|
81
91
|
indicator?: Function;
|
82
92
|
mode?: BkLoadingMode;
|
83
|
-
}> & {} & import("vue").ShallowUnwrapRef<() => JSX.Element
|
93
|
+
}> & {} & import("vue").ShallowUnwrapRef<() => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
94
|
+
[key: string]: any;
|
95
|
+
}>[]> & {} & {} & import("vue").ComponentCustomProperties;
|
84
96
|
__isFragment?: never;
|
85
97
|
__isTeleport?: never;
|
86
98
|
__isSuspense?: never;
|
87
99
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
88
100
|
indicator?: unknown;
|
101
|
+
loading?: unknown;
|
89
102
|
theme?: unknown;
|
90
103
|
title?: unknown;
|
91
104
|
size?: unknown;
|
92
105
|
mode?: unknown;
|
93
106
|
} & {
|
94
107
|
title: string;
|
108
|
+
loading: boolean;
|
95
109
|
} & {
|
96
110
|
theme?: string;
|
97
111
|
size?: string;
|
98
112
|
indicator?: Function;
|
99
113
|
mode?: BkLoadingMode;
|
100
|
-
}> & {}, () => JSX.Element
|
114
|
+
}> & {}, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
115
|
+
[key: string]: any;
|
116
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
101
117
|
title: string;
|
118
|
+
loading: boolean;
|
102
119
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
103
120
|
setDefaultIndicator: typeof setDefaultIndicator;
|
104
121
|
BkLoadingMode: typeof BkLoadingMode;
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,o,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};!function(e){e.exports=function(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var i,d,l,r=n(a.exports);function u(e){l="function"==typeof e?e:function(){return o.createVNode(e,null,null)}}e.BkLoadingMode=void 0,(i=e.BkLoadingMode||(e.BkLoadingMode={})).Spin="spin",i.Default="default",e.BkLoadingSize=void 0,(d=e.BkLoadingSize||(e.BkLoadingSize={})).Small="small",d.Large="large";var s={indicator:{type:Function},loading:t.PropTypes.bool,theme:t.PropTypes.theme(["white","primary","warning","success","danger"]),title:t.PropTypes.string.def(""),size:t.PropTypes.size(),mode:t.PropTypes.oneOf(Object.values(e.BkLoadingMode))},c=o.defineComponent({name:"Loading",props:s,setup:function(e,n){var a=[1,2,3,4].map((function(e){return o.createVNode("span",{class:"dot dot-".concat(e)},null)})),i=o.createVNode("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return o.createVNode("span",{class:"oval oval-".concat(e)},null)}))]),d=o.computed((function(){return t.classes({"bk-nested-loading":!!n.slots.default},"bk-loading-wrapper")})),u=o.computed((function(){var o;return t.classes((r(o={},"bk-loading-size-".concat(e.size),!e.size),r(o,"bk-loading-".concat(e.theme),!e.theme),o),"bk-loading-indicator")})),s=o.computed((function(){return!!e.title})),c=o.computed((function(){var t="spin"===e.mode;return"function"==typeof e.indicator?o.createVNode(e.indicator,null,null):"function"==typeof l?o.createVNode(l,null,null):t?i:a}));return function(){var t,a;return n.slots.default&&!e.loading?null===(a=(t=n.slots).default)||void 0===a?void 0:a.call(t):o.createVNode("div",{class:d.value},[o.createVNode("div",{class:u.value},[c.value,s.value&&o.createVNode("div",{class:"bk-loading-title"},[e.title])]),n.slots.default&&o.createVNode("div",{class:"bk-loading-mask"},[n.slots.default()])])}}}),p=t.withInstallProps(c,{setDefaultIndicator:u,BkLoadingMode:e.BkLoadingMode,BkLoadingSize:e.BkLoadingSize},!0);e.BkLoading=p,e.default=p,e.setDefaultIndicator=u,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/loading/loading.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { ExtractPropTypes, VNode } from 'vue';
|
2
2
|
export declare enum BkLoadingMode {
|
3
3
|
Spin = "spin",
|
4
4
|
Default = "default"
|
@@ -12,6 +12,9 @@ export declare const loadingTypes: {
|
|
12
12
|
indicator: {
|
13
13
|
type: FunctionConstructor;
|
14
14
|
};
|
15
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
16
|
+
default: boolean;
|
17
|
+
};
|
15
18
|
theme: import("vue-types").VueTypeDef<string>;
|
16
19
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
17
20
|
default: string;
|
@@ -26,6 +29,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
29
|
indicator: {
|
27
30
|
type: FunctionConstructor;
|
28
31
|
};
|
32
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
29
35
|
theme: import("vue-types").VueTypeDef<string>;
|
30
36
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
31
37
|
default: string;
|
@@ -34,14 +40,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
40
|
};
|
35
41
|
size: import("vue-types").VueTypeDef<string>;
|
36
42
|
mode: import("vue-types").VueTypeDef<BkLoadingMode>;
|
37
|
-
}, () => JSX.Element
|
43
|
+
}, () => JSX.Element | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
44
|
+
[key: string]: any;
|
45
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
38
46
|
indicator?: unknown;
|
47
|
+
loading?: unknown;
|
39
48
|
theme?: unknown;
|
40
49
|
title?: unknown;
|
41
50
|
size?: unknown;
|
42
51
|
mode?: unknown;
|
43
52
|
} & {
|
44
53
|
title: string;
|
54
|
+
loading: boolean;
|
45
55
|
} & {
|
46
56
|
theme?: string;
|
47
57
|
size?: string;
|
@@ -49,5 +59,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
59
|
mode?: BkLoadingMode;
|
50
60
|
}> & {}, {
|
51
61
|
title: string;
|
62
|
+
loading: boolean;
|
52
63
|
}>;
|
53
64
|
export default _default;
|
@@ -5,6 +5,7 @@
|
|
5
5
|
--warning-color: #ff9c01;
|
6
6
|
--danger-color: #ea3636;
|
7
7
|
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
8
9
|
--light-gray: #c4c6cc;
|
9
10
|
--white-color: white;
|
10
11
|
--disable-color: #dcdee5;
|
@@ -67,6 +68,21 @@
|
|
67
68
|
--message-success-border-color: #dcffe2;
|
68
69
|
--message-danger-bg-color: #ffeded;
|
69
70
|
--message-danger-border-color: #ffdddd;
|
71
|
+
--slider-default-bg: #dcdee5;
|
72
|
+
--slider-disable-bar-bg: #979ba5;
|
73
|
+
--menu-bg-color: #182132;
|
74
|
+
--submenu-bg-color: #151d2c;
|
75
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
76
|
+
--menu-color: #96a2b9;
|
77
|
+
--menu-group-color: var(--default-color);
|
78
|
+
--menu-width: 260px;
|
79
|
+
--menu-collapse-width: 60px;
|
80
|
+
--menu-active-color: white;
|
81
|
+
--nav-header-bg-color: #182132;
|
82
|
+
--nav-bg-color: #182132;
|
83
|
+
--date-picker-disabled-bg: #fafbfd;
|
84
|
+
--date-picker-dropdown-mb: 4px;
|
85
|
+
--date-picker-dropdown-bg: #fff;
|
70
86
|
}
|
71
87
|
@keyframes loading-scale-animate {
|
72
88
|
0% {
|