bkui-vue 0.0.1-beta.340 → 0.0.1-beta.342
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 +58 -58
- package/dist/index.esm.js +309 -139
- package/dist/index.umd.js +56 -56
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +4 -4
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.d.ts +29 -30
- package/lib/button/index.d.ts +45 -48
- package/lib/button/index.js +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/checkbox/checkbox.d.ts +8 -8
- package/lib/checkbox/index.d.ts +14 -14
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +27 -7
- package/lib/collapse/collapse-panel.d.ts +2 -7
- package/lib/collapse/index.d.ts +2 -7
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +2 -43
- package/lib/color-picker/color-picker.d.ts +7 -7
- package/lib/color-picker/index.d.ts +12 -12
- package/lib/color-picker/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -7
- package/lib/date-picker/index.d.ts +18 -18
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +7 -7
- package/lib/date-picker/panel/time.d.ts +8 -8
- package/lib/date-picker/props.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +7 -7
- package/lib/dialog/dialog.d.ts +25 -45
- package/lib/dialog/index.d.ts +56 -100
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +10 -18
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.d.ts +17 -17
- package/lib/dropdown/index.d.ts +24 -24
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.d.ts +10 -10
- package/lib/exception/index.d.ts +22 -22
- package/lib/exception/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/{original .d.ts → original.d.ts} +0 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image.d.ts +5 -5
- package/lib/image/index.d.ts +11 -11
- package/lib/image/index.js +1 -1
- package/lib/image/props.d.ts +2 -2
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +16 -16
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +10 -10
- package/lib/link/index.d.ts +15 -15
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +6 -6
- package/lib/loading/index.d.ts +38 -22
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +27 -15
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +24 -76
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +9 -29
- package/lib/modal/props.mixin.d.ts +5 -12
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/pagination/index.d.ts +8 -8
- package/lib/pagination/pagination.d.ts +4 -4
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.d.ts +78 -50
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +35 -23
- package/lib/popover/props.d.ts +12 -10
- package/lib/popover/use-floating.d.ts +4 -1
- package/lib/progress/index.d.ts +15 -15
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/radio-button.d.ts +3 -3
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/rate.d.ts +2 -2
- package/lib/resize-layout/index.d.ts +15 -15
- package/lib/resize-layout/resize-layout.d.ts +6 -6
- package/lib/select/index.d.ts +103 -91
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +38 -34
- package/lib/select/selectTagInput.d.ts +5 -5
- package/lib/shared/index.js +1 -1
- package/lib/shared/pop-manager.d.ts +9 -1
- package/lib/shared/vue-types.d.ts +89 -7
- package/lib/sideslider/index.d.ts +20 -64
- package/lib/sideslider/sideslider.d.ts +9 -29
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +49 -49
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.d.ts +31 -31
- package/lib/switcher/index.d.ts +9 -20
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +4 -9
- package/lib/tab/index.d.ts +39 -44
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +12 -13
- package/lib/tab/tab-nav.d.ts +11 -11
- package/lib/tab/tab-panel.d.ts +2 -7
- package/lib/tab/tab.d.ts +16 -16
- package/lib/table/components/table-column.d.ts +22 -27
- package/lib/table/index.d.ts +160 -94
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +42 -18
- package/lib/table/table.d.ts +50 -15
- package/lib/table/use-common.d.ts +6 -6
- package/lib/table-column/index.d.ts +49 -60
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +22 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +10 -10
- package/lib/tag-input/index.d.ts +80 -73
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +1 -5
- package/lib/tag-input/tag-input.d.ts +37 -32
- package/lib/tag-input/tag-input.less +3 -6
- package/lib/tag-input/tag-input.variable.css +1 -5
- package/lib/tag-input/tag-props.d.ts +16 -12
- package/lib/time-picker/index.d.ts +18 -18
- package/lib/tree/constant.d.ts +6 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/use-empty.d.ts +1 -1
- package/package.json +1 -1
- package/lib/dropdown/const.d.ts +0 -4
- package/lib/icon/original .js +0 -1
package/lib/input/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ declare const BkInput: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
+
behavior: "simplicity" | "normal";
|
6
7
|
type: string;
|
7
8
|
disabled: boolean;
|
8
9
|
placeholder: string;
|
@@ -16,7 +17,6 @@ declare const BkInput: {
|
|
16
17
|
prefixIcon: string;
|
17
18
|
suffixIcon: string;
|
18
19
|
suffix: string;
|
19
|
-
behavior: string;
|
20
20
|
showWordLimit: boolean;
|
21
21
|
showControl: boolean;
|
22
22
|
showClearOnlyHover: boolean;
|
@@ -68,8 +68,8 @@ declare const BkInput: {
|
|
68
68
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
69
69
|
default: number;
|
70
70
|
};
|
71
|
-
behavior: import("vue-types").VueTypeDef<
|
72
|
-
default:
|
71
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
72
|
+
default: "simplicity" | "normal";
|
73
73
|
};
|
74
74
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
75
75
|
default: boolean;
|
@@ -92,7 +92,7 @@ declare const BkInput: {
|
|
92
92
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
93
93
|
};
|
94
94
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
95
|
-
size: import("vue-types").VueTypeDef<
|
95
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
96
96
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
97
97
|
default: number;
|
98
98
|
};
|
@@ -121,7 +121,7 @@ declare const BkInput: {
|
|
121
121
|
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
122
122
|
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
123
123
|
onClear?: () => any;
|
124
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "placeholder" | "prefix" | "step" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "
|
124
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "behavior" | "type" | "disabled" | "placeholder" | "prefix" | "step" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
|
125
125
|
$attrs: {
|
126
126
|
[x: string]: unknown;
|
127
127
|
};
|
@@ -179,8 +179,8 @@ declare const BkInput: {
|
|
179
179
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
180
180
|
default: number;
|
181
181
|
};
|
182
|
-
behavior: import("vue-types").VueTypeDef<
|
183
|
-
default:
|
182
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
183
|
+
default: "simplicity" | "normal";
|
184
184
|
};
|
185
185
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
186
186
|
default: boolean;
|
@@ -203,7 +203,7 @@ declare const BkInput: {
|
|
203
203
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
204
204
|
};
|
205
205
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
206
|
-
size: import("vue-types").VueTypeDef<
|
206
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
207
207
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
208
208
|
default: number;
|
209
209
|
};
|
@@ -248,6 +248,7 @@ declare const BkInput: {
|
|
248
248
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
249
249
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
250
250
|
}, string, {
|
251
|
+
behavior: "simplicity" | "normal";
|
251
252
|
type: string;
|
252
253
|
disabled: boolean;
|
253
254
|
placeholder: string;
|
@@ -261,7 +262,6 @@ declare const BkInput: {
|
|
261
262
|
prefixIcon: string;
|
262
263
|
suffixIcon: string;
|
263
264
|
suffix: string;
|
264
|
-
behavior: string;
|
265
265
|
showWordLimit: boolean;
|
266
266
|
showControl: boolean;
|
267
267
|
showClearOnlyHover: boolean;
|
@@ -333,8 +333,8 @@ declare const BkInput: {
|
|
333
333
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
334
334
|
default: number;
|
335
335
|
};
|
336
|
-
behavior: import("vue-types").VueTypeDef<
|
337
|
-
default:
|
336
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
337
|
+
default: "simplicity" | "normal";
|
338
338
|
};
|
339
339
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
340
340
|
default: boolean;
|
@@ -357,7 +357,7 @@ declare const BkInput: {
|
|
357
357
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
358
358
|
};
|
359
359
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
360
|
-
size: import("vue-types").VueTypeDef<
|
360
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
361
361
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
362
362
|
default: number;
|
363
363
|
};
|
@@ -434,8 +434,8 @@ declare const BkInput: {
|
|
434
434
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
435
435
|
default: number;
|
436
436
|
};
|
437
|
-
behavior: import("vue-types").VueTypeDef<
|
438
|
-
default:
|
437
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
438
|
+
default: "simplicity" | "normal";
|
439
439
|
};
|
440
440
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
441
441
|
default: boolean;
|
@@ -458,7 +458,7 @@ declare const BkInput: {
|
|
458
458
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
459
459
|
};
|
460
460
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
461
|
-
size: import("vue-types").VueTypeDef<
|
461
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
462
462
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
463
463
|
default: number;
|
464
464
|
};
|
@@ -503,6 +503,7 @@ declare const BkInput: {
|
|
503
503
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
504
504
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
505
505
|
}, string, {
|
506
|
+
behavior: "simplicity" | "normal";
|
506
507
|
type: string;
|
507
508
|
disabled: boolean;
|
508
509
|
placeholder: string;
|
@@ -516,7 +517,6 @@ declare const BkInput: {
|
|
516
517
|
prefixIcon: string;
|
517
518
|
suffixIcon: string;
|
518
519
|
suffix: string;
|
519
|
-
behavior: string;
|
520
520
|
showWordLimit: boolean;
|
521
521
|
showControl: boolean;
|
522
522
|
showClearOnlyHover: boolean;
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>v});var e=a(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:(0,e.InputBehaviorType)(),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!0),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function c(e,t){return!0}function p(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(i||(i={}));var d=(r(n={},i.UPDATE,c),r(n,i.FOCUS,(function(e){return e})),r(n,i.BLUR,(function(e){return e})),r(n,i.CHANGE,c),r(n,i.CLEAR,(function(){return!0})),r(n,i.INPUT,c),r(n,i.KEYPRESS,c),r(n,i.KEYDOWN,c),r(n,i.KEYUP,c),r(n,i.ENTER,c),r(n,i.PASTE,c),r(n,i.COMPOSITIONSTART,p),r(n,i.COMPOSITIONUPDATE,p),r(n,i.COMPOSITIONEND,p),n);const f=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:d,setup:function(n,a){var l=(0,e.useFormItem)(),s=(0,o.ref)(!1),c=(0,o.ref)(!1),p=(0,o.computed)((function(){return"textarea"===n.type})),d=(0,o.computed)((function(){return p.value?"bk-textarea":"bk-input"})),f=a.attrs,v=f.class,m=f.style,y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var t;return(0,e.classes)((r(t={},"".concat(d.value,"--").concat(n.size),!!n.size),r(t,"is-focused",s.value),r(t,"is-readonly",n.readonly&&!n.selectReadonly),r(t,"is-disabled",n.disabled),r(t,"is-simplicity","simplicity"===n.behavior),r(t,"".concat(v),!!v),t),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:F},null)}},x=L("suffix-icon"),g=(0,o.computed)((function(){var e=T[n.type];return E.value?(0,o.createVNode)(u.Unvisible,{onClick:F,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),O=(0,o.computed)((function(){return Math.floor(n.maxlength)})),E=(0,o.ref)(!1),N=(0,o.computed)((function(){return(0,e.classes)(r({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),x)})),S=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),C=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function I(){if(!n.disabled){var e=h.value?n.min:"";a.emit(i.UPDATE,e),a.emit(i.CHANGE,e),a.emit(i.CLEAR)}}(0,o.watch)((function(){return n.modelValue}),(function(){var e;n.withValidate&&(null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change"))})),a.expose({focus:function(){b.value.focus()},clear:I});var V,w,A=(V=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(t){t.stopPropagation(),e!==i.KEYDOWN||"Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||a.emit(i.ENTER,t.target.value,t),c.value&&[i.INPUT,i.CHANGE].some((function(t){return e===t}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+t.target.value:t.target.value),a.emit(e,t.target.value,t))}})),w=6,function(e){if(Array.isArray(e))return e}(V)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return a}}(V,w)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}(V,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=A[0],j=A[1],D=A[2],R=A[3],k=A[4],K=A[5];function M(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(e),10),a=Number.isInteger(n.precision)?n.precision:0,l=parseFloat((null!==(t=n.modelValue)&&void 0!==t?t:0).toString()),i=Number.isInteger(o)?o:1,u=l+(r?i:-1*i);return Number.isInteger(n.max)&&(u=Math.min(u,n.max)),Number.isInteger(n.min)&&(u=Math.max(u,n.min)),+u.toFixed(a)}function Y(){if(!n.disabled){var e=M(n.step);a.emit(i.UPDATE,e)}}function H(){if(!n.disabled){var e=M(n.step,!1);a.emit(i.UPDATE,e)}}function L(e){return"".concat(d.value,"--").concat(e)}function F(){E.value=!E.value}var q=(0,o.computed)((function(){var e=void 0===n.modelValue||null===n.modelValue?{}:{value:n.modelValue};return Object.assign(Object.assign({},e),{maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled})})),G={onInput:K,onFocus:function(e){s.value=!0,a.emit(i.FOCUS,e)},onBlur:function(e){var t;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var r=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,r),a.emit(i.CHANGE,r)}n.withValidate&&(null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"blur"))},onPaste:R,onChange:k,onKeypress:D,onKeydown:j,onKeyup:U,onCompositionstart:function(){c.value=!0},onCompositionend:function(e){c.value=!1,K(e)}};return function(){var e,t,r,l,i,s,c;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(r=null===(t=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===t?void 0:t.call(e))&&void 0!==r?r:n.prefix&&(0,o.createVNode)("div",{class:L("prefix-area")},[(0,o.createVNode)("span",{class:L("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,G,q.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:E.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},G,q.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:N.value},null),g.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:L("max-length")},[(null!==(l=n.modelValue)&&void 0!==l?l:"").toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[O.value])]),h.value&&n.showControl&&(0,o.createVNode)("div",{class:L("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:Y},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:H},null)]),null!==(c=null===(s=null===(i=a.slots)||void 0===i?void 0:i.suffix)||void 0===s?void 0:s.call(i))&&void 0!==c?c:n.suffix&&(0,o.createVNode)("div",{class:L("suffix-area")},[(0,o.createVNode)("span",{class:L("suffix-area--text")},[n.suffix])])])}}}),v=(0,e.withInstall)(f)})(),l})()));
|
package/lib/input/input.d.ts
CHANGED
@@ -43,8 +43,8 @@ export declare const inputType: {
|
|
43
43
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
44
44
|
default: number;
|
45
45
|
};
|
46
|
-
behavior: import("vue-types").VueTypeDef<
|
47
|
-
default:
|
46
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
47
|
+
default: "simplicity" | "normal";
|
48
48
|
};
|
49
49
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
50
50
|
default: boolean;
|
@@ -67,7 +67,7 @@ export declare const inputType: {
|
|
67
67
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
68
68
|
};
|
69
69
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
70
|
-
size: import("vue-types").VueTypeDef<
|
70
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
71
71
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
72
72
|
default: number;
|
73
73
|
};
|
@@ -161,8 +161,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
161
161
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
162
162
|
default: number;
|
163
163
|
};
|
164
|
-
behavior: import("vue-types").VueTypeDef<
|
165
|
-
default:
|
164
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
165
|
+
default: "simplicity" | "normal";
|
166
166
|
};
|
167
167
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
168
168
|
default: boolean;
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
185
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
186
186
|
};
|
187
187
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
188
|
-
size: import("vue-types").VueTypeDef<
|
188
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
189
189
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
190
190
|
default: number;
|
191
191
|
};
|
@@ -258,8 +258,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
258
258
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
259
259
|
default: number;
|
260
260
|
};
|
261
|
-
behavior: import("vue-types").VueTypeDef<
|
262
|
-
default:
|
261
|
+
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
262
|
+
default: "simplicity" | "normal";
|
263
263
|
};
|
264
264
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
265
265
|
default: boolean;
|
@@ -282,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
282
282
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
283
283
|
};
|
284
284
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
285
|
-
size: import("vue-types").VueTypeDef<
|
285
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
286
286
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
287
287
|
default: number;
|
288
288
|
};
|
@@ -312,6 +312,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
312
312
|
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
313
313
|
onClear?: () => any;
|
314
314
|
}, {
|
315
|
+
behavior: "simplicity" | "normal";
|
315
316
|
type: string;
|
316
317
|
disabled: boolean;
|
317
318
|
placeholder: string;
|
@@ -325,7 +326,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
325
326
|
prefixIcon: string;
|
326
327
|
suffixIcon: string;
|
327
328
|
suffix: string;
|
328
|
-
behavior: string;
|
329
329
|
showWordLimit: boolean;
|
330
330
|
showControl: boolean;
|
331
331
|
showClearOnlyHover: boolean;
|
package/lib/link/index.d.ts
CHANGED
@@ -3,14 +3,14 @@ declare const BkLink: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
theme: string;
|
7
|
-
disabled: boolean;
|
8
6
|
target: string;
|
7
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
8
|
+
disabled: boolean;
|
9
9
|
underline: boolean;
|
10
10
|
href: string;
|
11
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
|
-
theme: import("vue-types").VueTypeDef<
|
13
|
-
default:
|
12
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
13
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
14
14
|
};
|
15
15
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
16
16
|
default: string;
|
@@ -32,7 +32,7 @@ declare const BkLink: {
|
|
32
32
|
} & {
|
33
33
|
default: string;
|
34
34
|
};
|
35
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
35
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "theme" | "disabled" | "underline" | "href">;
|
36
36
|
$attrs: {
|
37
37
|
[x: string]: unknown;
|
38
38
|
};
|
@@ -47,8 +47,8 @@ declare const BkLink: {
|
|
47
47
|
$emit: (event: string, ...args: any[]) => void;
|
48
48
|
$el: any;
|
49
49
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
50
|
-
theme: import("vue-types").VueTypeDef<
|
51
|
-
default:
|
50
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
51
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
52
52
|
};
|
53
53
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
54
54
|
default: string;
|
@@ -73,9 +73,9 @@ declare const BkLink: {
|
|
73
73
|
}>>, {
|
74
74
|
handleClick: (event: Event) => boolean;
|
75
75
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
76
|
-
theme: string;
|
77
|
-
disabled: boolean;
|
78
76
|
target: string;
|
77
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
78
|
+
disabled: boolean;
|
79
79
|
underline: boolean;
|
80
80
|
href: string;
|
81
81
|
}> & {
|
@@ -99,8 +99,8 @@ declare const BkLink: {
|
|
99
99
|
$nextTick: typeof import("vue").nextTick;
|
100
100
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
101
101
|
} & Readonly<import("vue").ExtractPropTypes<{
|
102
|
-
theme: import("vue-types").VueTypeDef<
|
103
|
-
default:
|
102
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
103
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
104
104
|
};
|
105
105
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
106
106
|
default: string;
|
@@ -129,8 +129,8 @@ declare const BkLink: {
|
|
129
129
|
__isTeleport?: never;
|
130
130
|
__isSuspense?: never;
|
131
131
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
132
|
-
theme: import("vue-types").VueTypeDef<
|
133
|
-
default:
|
132
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
133
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
134
134
|
};
|
135
135
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
136
136
|
default: string;
|
@@ -155,9 +155,9 @@ declare const BkLink: {
|
|
155
155
|
}>>, {
|
156
156
|
handleClick: (event: Event) => boolean;
|
157
157
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
158
|
-
theme: string;
|
159
|
-
disabled: boolean;
|
160
158
|
target: string;
|
159
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
160
|
+
disabled: boolean;
|
161
161
|
underline: boolean;
|
162
162
|
href: string;
|
163
163
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
package/lib/link/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue")):r(e["../shared"],e.vue);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r)=>(()=>{"use strict";var
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("vue-types")):r(e["../shared"],e.vue,e["vue-types"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={4212:r=>{r.exports=e},748:e=>{e.exports=r},210:e=>{e.exports=t}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,s),t.exports}s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{default:()=>a});var e,r=s(4212),t=s(748),o=s(210);!function(e){e.DANGER="danger",e.SUCCESS="success",e.PRIMARY="primary",e.WARNING="warning",e.DEFAULT="default"}(e||(e={}));const n=(0,t.defineComponent)({name:"Link",props:{theme:(0,o.toType)("linkTheme",{}).def(e.DEFAULT),href:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),underline:r.PropTypes.bool.def(!1),target:r.PropTypes.string.def("_self")},setup:function(e,r){var t=r.emit;return{handleClick:function(r){if(e.disabled)return r.preventDefault(),!1;t("click",r)}}},render:function(){var e,o,n=(0,r.classes)({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return(0,t.createVNode)("a",{href:this.href,target:this.target,class:n,onClick:this.handleClick},[(0,t.createVNode)("span",null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)])])}}),a=(0,r.withInstall)(n)})(),i})()));
|
package/lib/link/link.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
theme: import("vue-types").VueTypeDef<
|
3
|
-
default:
|
2
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
3
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
4
4
|
};
|
5
5
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
6
6
|
default: string;
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
}, {
|
26
26
|
handleClick: (event: Event) => boolean;
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
-
theme: import("vue-types").VueTypeDef<
|
29
|
-
default:
|
28
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
|
29
|
+
default: "success" | "warning" | "danger" | "default" | "primary";
|
30
30
|
};
|
31
31
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
32
32
|
default: string;
|
@@ -49,9 +49,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
default: string;
|
50
50
|
};
|
51
51
|
}>>, {
|
52
|
-
theme: string;
|
53
|
-
disabled: boolean;
|
54
52
|
target: string;
|
53
|
+
theme: "success" | "warning" | "danger" | "default" | "primary";
|
54
|
+
disabled: boolean;
|
55
55
|
underline: boolean;
|
56
56
|
href: string;
|
57
57
|
}>;
|
package/lib/loading/index.d.ts
CHANGED
@@ -6,10 +6,10 @@ declare const BkLoading: {
|
|
6
6
|
$props: Partial<{
|
7
7
|
title: string;
|
8
8
|
zIndex: number;
|
9
|
-
mode:
|
9
|
+
mode: "default" | "spin";
|
10
10
|
color: string;
|
11
11
|
inline: boolean;
|
12
|
-
size:
|
12
|
+
size: "" | "small" | "large" | "mini";
|
13
13
|
opacity: number;
|
14
14
|
loading: boolean;
|
15
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
@@ -26,16 +26,20 @@ declare const BkLoading: {
|
|
26
26
|
} & {
|
27
27
|
default: boolean;
|
28
28
|
};
|
29
|
-
theme:
|
29
|
+
theme: {
|
30
|
+
type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
31
|
+
};
|
30
32
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
31
33
|
default: string;
|
32
34
|
} & {
|
33
35
|
default: string;
|
34
36
|
};
|
35
|
-
size:
|
36
|
-
|
37
|
+
size: {
|
38
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
39
|
+
default: BkLoadingSize;
|
37
40
|
};
|
38
|
-
mode:
|
41
|
+
mode: {
|
42
|
+
type: import("vue").PropType<"default" | "spin">;
|
39
43
|
default: string;
|
40
44
|
};
|
41
45
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -81,16 +85,20 @@ declare const BkLoading: {
|
|
81
85
|
} & {
|
82
86
|
default: boolean;
|
83
87
|
};
|
84
|
-
theme:
|
88
|
+
theme: {
|
89
|
+
type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
90
|
+
};
|
85
91
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
86
92
|
default: string;
|
87
93
|
} & {
|
88
94
|
default: string;
|
89
95
|
};
|
90
|
-
size:
|
91
|
-
|
96
|
+
size: {
|
97
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
98
|
+
default: BkLoadingSize;
|
92
99
|
};
|
93
|
-
mode:
|
100
|
+
mode: {
|
101
|
+
type: import("vue").PropType<"default" | "spin">;
|
94
102
|
default: string;
|
95
103
|
};
|
96
104
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -111,10 +119,10 @@ declare const BkLoading: {
|
|
111
119
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
112
120
|
title: string;
|
113
121
|
zIndex: number;
|
114
|
-
mode:
|
122
|
+
mode: "default" | "spin";
|
115
123
|
color: string;
|
116
124
|
inline: boolean;
|
117
|
-
size:
|
125
|
+
size: "" | "small" | "large" | "mini";
|
118
126
|
opacity: number;
|
119
127
|
loading: boolean;
|
120
128
|
}> & {
|
@@ -151,16 +159,20 @@ declare const BkLoading: {
|
|
151
159
|
} & {
|
152
160
|
default: boolean;
|
153
161
|
};
|
154
|
-
theme:
|
162
|
+
theme: {
|
163
|
+
type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
164
|
+
};
|
155
165
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
156
166
|
default: string;
|
157
167
|
} & {
|
158
168
|
default: string;
|
159
169
|
};
|
160
|
-
size:
|
161
|
-
|
170
|
+
size: {
|
171
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
172
|
+
default: BkLoadingSize;
|
162
173
|
};
|
163
|
-
mode:
|
174
|
+
mode: {
|
175
|
+
type: import("vue").PropType<"default" | "spin">;
|
164
176
|
default: string;
|
165
177
|
};
|
166
178
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -196,16 +208,20 @@ declare const BkLoading: {
|
|
196
208
|
} & {
|
197
209
|
default: boolean;
|
198
210
|
};
|
199
|
-
theme:
|
211
|
+
theme: {
|
212
|
+
type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
213
|
+
};
|
200
214
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
201
215
|
default: string;
|
202
216
|
} & {
|
203
217
|
default: string;
|
204
218
|
};
|
205
|
-
size:
|
206
|
-
|
219
|
+
size: {
|
220
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
221
|
+
default: BkLoadingSize;
|
207
222
|
};
|
208
|
-
mode:
|
223
|
+
mode: {
|
224
|
+
type: import("vue").PropType<"default" | "spin">;
|
209
225
|
default: string;
|
210
226
|
};
|
211
227
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -226,10 +242,10 @@ declare const BkLoading: {
|
|
226
242
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
227
243
|
title: string;
|
228
244
|
zIndex: number;
|
229
|
-
mode:
|
245
|
+
mode: "default" | "spin";
|
230
246
|
color: string;
|
231
247
|
inline: boolean;
|
232
|
-
size:
|
248
|
+
size: "" | "small" | "large" | "mini";
|
233
249
|
opacity: number;
|
234
250
|
loading: boolean;
|
235
251
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>o,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>d});var e=r(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o,n,i,l=r(748);function d(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(o||(o={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var u={indicator:{type:Function},loading:e.PropTypes.bool.def(!0),inline:e.PropTypes.bool.def(!0),theme:{type:String},title:e.PropTypes.string.def(""),size:{type:String,default:n.Normal},mode:{type:String,default:"default"},opacity:e.PropTypes.number.def(.9),color:e.PropTypes.string.def("white"),zIndex:e.PropTypes.number.def(1)};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(n,r){var a=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return{zIndex:n.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:n.opacity,backgroundColor:n.color},u.value)})),s=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),p=(0,l.computed)((function(){var o;return(0,e.classes)((t(o={},"bk-loading-size-".concat(n.size),!!n.size),t(o,"bk-loading-".concat(n.theme),!!n.theme),o),"bk-loading-indicator")})),f=(0,l.computed)((function(){return!!n.title})),v=(0,l.computed)((function(){var e=n.mode===o.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?d:a}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[n.loading&&[r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:u.value},[v.value,f.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])])],null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:o,BkLoadingSize:n},!0);const p=s})(),a})()));
|
package/lib/loading/loading.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
2
|
export declare enum BkLoadingMode {
|
3
3
|
Default = "default",
|
4
4
|
Spin = "spin"
|
@@ -24,16 +24,20 @@ export declare const loadingTypes: {
|
|
24
24
|
} & {
|
25
25
|
default: boolean;
|
26
26
|
};
|
27
|
-
theme:
|
27
|
+
theme: {
|
28
|
+
type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
29
|
+
};
|
28
30
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
29
31
|
default: string;
|
30
32
|
} & {
|
31
33
|
default: string;
|
32
34
|
};
|
33
|
-
size:
|
34
|
-
|
35
|
+
size: {
|
36
|
+
type: PropType<"" | "small" | "large" | "mini">;
|
37
|
+
default: BkLoadingSize;
|
35
38
|
};
|
36
|
-
mode:
|
39
|
+
mode: {
|
40
|
+
type: PropType<"default" | "spin">;
|
37
41
|
default: string;
|
38
42
|
};
|
39
43
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -67,16 +71,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
71
|
} & {
|
68
72
|
default: boolean;
|
69
73
|
};
|
70
|
-
theme:
|
74
|
+
theme: {
|
75
|
+
type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
76
|
+
};
|
71
77
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
72
78
|
default: string;
|
73
79
|
} & {
|
74
80
|
default: string;
|
75
81
|
};
|
76
|
-
size:
|
77
|
-
|
82
|
+
size: {
|
83
|
+
type: PropType<"" | "small" | "large" | "mini">;
|
84
|
+
default: BkLoadingSize;
|
78
85
|
};
|
79
|
-
mode:
|
86
|
+
mode: {
|
87
|
+
type: PropType<"default" | "spin">;
|
80
88
|
default: string;
|
81
89
|
};
|
82
90
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -108,16 +116,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
108
116
|
} & {
|
109
117
|
default: boolean;
|
110
118
|
};
|
111
|
-
theme:
|
119
|
+
theme: {
|
120
|
+
type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
|
121
|
+
};
|
112
122
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
113
123
|
default: string;
|
114
124
|
} & {
|
115
125
|
default: string;
|
116
126
|
};
|
117
|
-
size:
|
118
|
-
|
127
|
+
size: {
|
128
|
+
type: PropType<"" | "small" | "large" | "mini">;
|
129
|
+
default: BkLoadingSize;
|
119
130
|
};
|
120
|
-
mode:
|
131
|
+
mode: {
|
132
|
+
type: PropType<"default" | "spin">;
|
121
133
|
default: string;
|
122
134
|
};
|
123
135
|
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -138,10 +150,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
150
|
}>>, {
|
139
151
|
title: string;
|
140
152
|
zIndex: number;
|
141
|
-
mode:
|
153
|
+
mode: "default" | "spin";
|
142
154
|
color: string;
|
143
155
|
inline: boolean;
|
144
|
-
size:
|
156
|
+
size: "" | "small" | "large" | "mini";
|
145
157
|
opacity: number;
|
146
158
|
loading: boolean;
|
147
159
|
}>;
|