bkui-vue 0.0.1-beta.10 → 0.0.1-beta.11
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 +4977 -578
- package/dist/bkui-vue.esm.js +4972 -580
- package/dist/bkui-vue.umd.js +4977 -578
- package/dist/style.css +1685 -16
- package/lib/alert/alert.variable.css +16 -0
- package/lib/backtop/backtop.variable.css +16 -0
- package/lib/badge/badge.variable.css +16 -0
- package/lib/breadcrumb/breadcrumb.variable.css +16 -0
- package/lib/button/button.d.ts +10 -10
- package/lib/button/button.less +6 -6
- package/lib/button/button.variable.css +16 -0
- package/lib/button/index.d.ts +9 -12
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +16 -0
- package/lib/checkbox/checkbox.variable.css +16 -0
- 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 +373 -0
- package/lib/date-picker/date-picker.d.ts +357 -0
- package/lib/date-picker/date-picker.less +486 -0
- package/lib/date-picker/date-picker.variable.css +459 -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 +21 -0
- package/lib/date-picker/utils.d.ts +96 -0
- 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/fixed-navbar/fixed-navbar.variable.css +16 -0
- 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/input/index.d.ts +29 -29
- package/lib/input/input.d.ts +8 -8
- package/lib/input/input.variable.css +16 -0
- package/lib/link/link.variable.css +16 -0
- 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/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/progress/index.d.ts +4 -4
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress/progress.variable.css +16 -0
- 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/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/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 +8 -8
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.css +1 -1
- package/lib/steps/steps.d.ts +2 -2
- package/lib/steps/steps.less +1 -1
- package/lib/steps/steps.variable.css +17 -1
- package/lib/styles/index.d.ts +11 -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/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/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 +7 -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/steps/index.d.ts
CHANGED
@@ -8,8 +8,8 @@ declare const BkSteps: {
|
|
8
8
|
extCls: string;
|
9
9
|
beforeChange: (...args: any[]) => any;
|
10
10
|
direction: string;
|
11
|
-
status: string;
|
12
11
|
lineType: string;
|
12
|
+
status: string;
|
13
13
|
curStep: number;
|
14
14
|
controllable: boolean;
|
15
15
|
steps: unknown[];
|
@@ -30,8 +30,8 @@ declare const BkSteps: {
|
|
30
30
|
theme: string;
|
31
31
|
extCls: string;
|
32
32
|
direction: string;
|
33
|
-
status: string;
|
34
33
|
lineType: string;
|
34
|
+
status: string;
|
35
35
|
curStep: number;
|
36
36
|
controllable: boolean;
|
37
37
|
steps: unknown[];
|
@@ -41,7 +41,7 @@ declare const BkSteps: {
|
|
41
41
|
}> & {
|
42
42
|
onClick?: (...args: any[]) => any;
|
43
43
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
44
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "theme" | "extCls" | "beforeChange" | "direction" | "
|
44
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "theme" | "extCls" | "beforeChange" | "direction" | "lineType" | "status" | "curStep" | "controllable" | "steps">;
|
45
45
|
$attrs: {
|
46
46
|
[x: string]: unknown;
|
47
47
|
};
|
@@ -72,8 +72,8 @@ declare const BkSteps: {
|
|
72
72
|
theme: string;
|
73
73
|
extCls: string;
|
74
74
|
direction: string;
|
75
|
-
status: string;
|
76
75
|
lineType: string;
|
76
|
+
status: string;
|
77
77
|
curStep: number;
|
78
78
|
controllable: boolean;
|
79
79
|
steps: unknown[];
|
@@ -92,8 +92,8 @@ declare const BkSteps: {
|
|
92
92
|
extCls: string;
|
93
93
|
beforeChange: (...args: any[]) => any;
|
94
94
|
direction: string;
|
95
|
-
status: string;
|
96
95
|
lineType: string;
|
96
|
+
status: string;
|
97
97
|
curStep: number;
|
98
98
|
controllable: boolean;
|
99
99
|
steps: unknown[];
|
@@ -134,8 +134,8 @@ declare const BkSteps: {
|
|
134
134
|
theme: string;
|
135
135
|
extCls: string;
|
136
136
|
direction: string;
|
137
|
-
status: string;
|
138
137
|
lineType: string;
|
138
|
+
status: string;
|
139
139
|
curStep: number;
|
140
140
|
controllable: boolean;
|
141
141
|
steps: unknown[];
|
@@ -169,8 +169,8 @@ declare const BkSteps: {
|
|
169
169
|
theme: string;
|
170
170
|
extCls: string;
|
171
171
|
direction: string;
|
172
|
-
status: string;
|
173
172
|
lineType: string;
|
173
|
+
status: string;
|
174
174
|
curStep: number;
|
175
175
|
controllable: boolean;
|
176
176
|
steps: unknown[];
|
@@ -189,8 +189,8 @@ declare const BkSteps: {
|
|
189
189
|
extCls: string;
|
190
190
|
beforeChange: (...args: any[]) => any;
|
191
191
|
direction: string;
|
192
|
-
status: string;
|
193
192
|
lineType: string;
|
193
|
+
status: string;
|
194
194
|
curStep: number;
|
195
195
|
controllable: boolean;
|
196
196
|
steps: unknown[];
|
package/lib/steps/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
@@ -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
|
-
***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),curStep:r.PropTypes.number.def(1),controllable:r.PropTypes.bool.def(!1),direction:r.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:r.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:r.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:r.PropTypes.bool,extCls:r.PropTypes.string,steps:r.PropTypes.array.def([]),beforeChange:r.PropTypes.func},
|
15
|
+
***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),curStep:r.PropTypes.number.def(1),controllable:r.PropTypes.bool.def(!1),direction:r.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:r.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:r.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:r.PropTypes.bool,extCls:r.PropTypes.string,steps:r.PropTypes.array.def([]),beforeChange:r.PropTypes.func},p=e.defineComponent({name:"BkSteps",props:l,emits:["update:curStep","click"],setup:function(t,r){var n=this,o=r.emit,i=e.ref([]);return e.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=r.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon?e.icon:t+1},d=function(t,r){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(r)?e.createVNode(n.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(r)?e.createVNode(n.Error,{class:"bk-steps-icon"},null):l(t)?e.createVNode(n.Done,{class:"bk-steps-icon"},null):e.createVNode("span",{class:"number"},[h(t,r)])};return e.createVNode("div",{class:u},[this.defaultSteps.map((function(t,r){var n,i,a;return e.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(r)?"done":"",p(r)?"current":"",t.status&&p(r)?["bk-step-".concat(t.status)]:""]},[e.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[null!==(a=null===(i=(n=o.$slots)[r+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a:d(r,t)]),t.title?e.createVNode("div",{class:"bk-step-content"},[e.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[t.title]),t.description&&e.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),f=r.withInstall(p);t.default=f,Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/lib/steps/steps.css
CHANGED
package/lib/steps/steps.d.ts
CHANGED
@@ -122,8 +122,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
122
122
|
theme: string;
|
123
123
|
extCls: string;
|
124
124
|
direction: string;
|
125
|
-
status: string;
|
126
125
|
lineType: string;
|
126
|
+
status: string;
|
127
127
|
curStep: number;
|
128
128
|
controllable: boolean;
|
129
129
|
steps: unknown[];
|
@@ -139,8 +139,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
139
|
extCls: string;
|
140
140
|
beforeChange: (...args: any[]) => any;
|
141
141
|
direction: string;
|
142
|
-
status: string;
|
143
142
|
lineType: string;
|
143
|
+
status: string;
|
144
144
|
curStep: number;
|
145
145
|
controllable: boolean;
|
146
146
|
steps: unknown[];
|
package/lib/steps/steps.less
CHANGED
@@ -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
|
* {
|
72
88
|
box-sizing: border-box;
|
@@ -336,7 +352,7 @@
|
|
336
352
|
line-height: 20px;
|
337
353
|
}
|
338
354
|
.bk-steps-small .bk-step .bk-step-number {
|
339
|
-
font-size:
|
355
|
+
font-size: 12px;
|
340
356
|
}
|
341
357
|
.bk-steps-small .bk-step .bk-icon {
|
342
358
|
font-size: 20px;
|
package/lib/styles/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import './reset.less';
|
1
2
|
import '../alert/alert.less';
|
2
3
|
import '../backtop/backtop.less';
|
3
4
|
import '../badge/badge.less';
|
@@ -11,6 +12,7 @@ import '../exception/exception.less';
|
|
11
12
|
import '../fixed-navbar/fixed-navbar.less';
|
12
13
|
import '../input/input.less';
|
13
14
|
import '../link/link.less';
|
15
|
+
import '../dropdown/dropdown.less';
|
14
16
|
import '../loading/loading.less';
|
15
17
|
import '../modal/modal.less';
|
16
18
|
import '../popover/popover.less';
|
@@ -23,5 +25,14 @@ import '../sideslider/sideslider.less';
|
|
23
25
|
import '../switcher/switcher.less';
|
24
26
|
import '../table/table.less';
|
25
27
|
import '../tag/tag.less';
|
28
|
+
import '../form/form.less';
|
26
29
|
import '../steps/steps.less';
|
27
30
|
import '../message/message.less';
|
31
|
+
import '../notify/notify.less';
|
32
|
+
import '../tree/tree.less';
|
33
|
+
import '../slider/slider.less';
|
34
|
+
import '../menu/menu.less';
|
35
|
+
import '../navigation/navigation.less';
|
36
|
+
import '../date-picker/date-picker.less';
|
37
|
+
import '../divider/divider.less';
|
38
|
+
import '../tab/tab.less';
|
package/lib/styles/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less"],e):e()}((function(){}));
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.bk-popper {
|
2
|
+
display: none;
|
3
|
+
padding: 7px 14px;
|
4
|
+
font-size: 12px;
|
5
|
+
color: #fff;
|
6
|
+
background: #333;
|
7
|
+
border-radius: 4px;
|
8
|
+
}
|
9
|
+
.bk-popper.light {
|
10
|
+
color: #63656e;
|
11
|
+
background: #fff;
|
12
|
+
box-shadow: #dcdee5 0px 0px 6px 0px;
|
13
|
+
}
|
14
|
+
.bk-popper .bk-popper-arrow,
|
15
|
+
.bk-popper .bk-popper-arrow::before {
|
16
|
+
position: absolute;
|
17
|
+
width: 8px;
|
18
|
+
height: 8px;
|
19
|
+
background: inherit;
|
20
|
+
}
|
21
|
+
.bk-popper .bk-popper-arrow {
|
22
|
+
visibility: hidden;
|
23
|
+
}
|
24
|
+
.bk-popper .bk-popper-arrow::before {
|
25
|
+
content: '';
|
26
|
+
visibility: visible;
|
27
|
+
transform: rotate(45deg);
|
28
|
+
}
|
29
|
+
.bk-popper[data-show] {
|
30
|
+
display: block;
|
31
|
+
}
|
32
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
33
|
+
bottom: -4px;
|
34
|
+
}
|
35
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
36
|
+
top: -4px;
|
37
|
+
}
|
38
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
39
|
+
right: -4px;
|
40
|
+
}
|
41
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
42
|
+
left: -4px;
|
43
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
.bk-popper {
|
2
|
+
display: none;
|
3
|
+
padding: 7px 14px;
|
4
|
+
font-size: 12px;
|
5
|
+
color: #fff;
|
6
|
+
background: #333;
|
7
|
+
border-radius: 4px;
|
8
|
+
|
9
|
+
&.light {
|
10
|
+
color: #63656e;
|
11
|
+
background: #fff;
|
12
|
+
box-shadow: rgb(220, 222, 229) 0px 0px 6px 0px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.bk-popper-arrow,
|
16
|
+
.bk-popper-arrow::before {
|
17
|
+
position: absolute;
|
18
|
+
width: 8px;
|
19
|
+
height: 8px;
|
20
|
+
background: inherit;
|
21
|
+
}
|
22
|
+
|
23
|
+
.bk-popper-arrow {
|
24
|
+
visibility: hidden;
|
25
|
+
}
|
26
|
+
|
27
|
+
.bk-popper-arrow::before {
|
28
|
+
content: '';
|
29
|
+
visibility: visible;
|
30
|
+
transform: rotate(45deg);
|
31
|
+
}
|
32
|
+
|
33
|
+
&[data-show] {
|
34
|
+
display: block;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
39
|
+
bottom: -4px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
43
|
+
top: -4px;
|
44
|
+
}
|
45
|
+
|
46
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
47
|
+
right: -4px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
51
|
+
left: -4px;
|
52
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.bk-popper {
|
2
|
+
display: none;
|
3
|
+
padding: 7px 14px;
|
4
|
+
font-size: 12px;
|
5
|
+
color: #fff;
|
6
|
+
background: #333;
|
7
|
+
border-radius: 4px;
|
8
|
+
}
|
9
|
+
.bk-popper.light {
|
10
|
+
color: #63656e;
|
11
|
+
background: #fff;
|
12
|
+
box-shadow: #dcdee5 0px 0px 6px 0px;
|
13
|
+
}
|
14
|
+
.bk-popper .bk-popper-arrow,
|
15
|
+
.bk-popper .bk-popper-arrow::before {
|
16
|
+
position: absolute;
|
17
|
+
width: 8px;
|
18
|
+
height: 8px;
|
19
|
+
background: inherit;
|
20
|
+
}
|
21
|
+
.bk-popper .bk-popper-arrow {
|
22
|
+
visibility: hidden;
|
23
|
+
}
|
24
|
+
.bk-popper .bk-popper-arrow::before {
|
25
|
+
content: '';
|
26
|
+
visibility: visible;
|
27
|
+
transform: rotate(45deg);
|
28
|
+
}
|
29
|
+
.bk-popper[data-show] {
|
30
|
+
display: block;
|
31
|
+
}
|
32
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
33
|
+
bottom: -4px;
|
34
|
+
}
|
35
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
36
|
+
top: -4px;
|
37
|
+
}
|
38
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
39
|
+
right: -4px;
|
40
|
+
}
|
41
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
42
|
+
left: -4px;
|
43
|
+
}
|