bkui-vue 0.0.1-beta.55 → 0.0.1-beta.58
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 +27 -27
- package/dist/index.esm.js +1302 -718
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +5 -5
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +8 -0
- package/lib/breadcrumb/breadcrumb.variable.css +8 -0
- package/lib/card/card.css +53 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +47 -3
- package/lib/card/card.variable.css +53 -1
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +142 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +14 -14
- package/lib/dialog/dialog.css +8 -0
- package/lib/dialog/dialog.d.ts +170 -97
- package/lib/dialog/dialog.less +8 -0
- package/lib/dialog/dialog.variable.css +8 -0
- package/lib/dialog/index.d.ts +373 -206
- package/lib/dialog/index.js +1 -1
- package/lib/form/form-item.d.ts +2 -2
- package/lib/form/form.css +4 -1
- package/lib/form/form.less +4 -1
- package/lib/form/form.variable.css +4 -1
- package/lib/form/index.d.ts +2 -2
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/{funnel.js → close-line.js} +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/index.d.ts +3 -0
- package/lib/icon/index.js +1 -1
- package/lib/input/index.d.ts +27 -27
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +9 -0
- package/lib/input/input.d.ts +8 -8
- package/lib/input/input.less +1 -0
- package/lib/input/input.variable.css +9 -0
- package/lib/loading/loading.css +8 -0
- package/lib/loading/loading.variable.css +8 -0
- package/lib/menu/menu.css +8 -0
- package/lib/menu/menu.variable.css +8 -0
- package/lib/modal/index.d.ts +177 -165
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +70 -65
- package/lib/modal/props.mixin.d.ts +34 -31
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/pagination/index.d.ts +7 -7
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/progress/progress.css +8 -0
- package/lib/progress/progress.variable.css +8 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/select/index.d.ts +8 -8
- package/lib/select/select.d.ts +2 -2
- package/lib/sideslider/index.d.ts +143 -134
- package/lib/sideslider/sideslider.d.ts +70 -65
- package/lib/slider/slider.d.ts +1 -1
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -0
- package/lib/switcher/switcher.css +8 -0
- package/lib/switcher/switcher.variable.css +8 -0
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/index.d.ts +54 -1
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +130 -0
- package/lib/table/plugins/settings.variable.css +204 -0
- package/lib/table/props.d.ts +42 -1
- package/lib/table/render.d.ts +12 -2
- package/lib/table/table.css +131 -2
- package/lib/table/table.d.ts +25 -0
- package/lib/table/table.less +29 -1
- package/lib/table/table.variable.css +131 -2
- package/lib/table/use-common.d.ts +8 -5
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tree/index.js +1 -1
- package/lib/virtual-render/index.js +1 -1
- package/package.json +11 -4
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),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:()=>p});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=a(748);Object.create,Object.create;var n=a(6870),
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),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:()=>p});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=a(748);Object.create,Object.create;var n=a(6870),u={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:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),size:e.PropTypes.size(),rows:e.PropTypes.number},i=["update:modelValue","focus","blur","change","clear","input","keypress","keydown","keyup","enter","paste"],s=(0,e.stringEnum)([].concat(i));const c=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:u,emits:[].concat(i),setup:function(a,l){var u=(0,o.ref)(!1),i=(0,o.ref)(!1),c=(0,o.computed)((function(){return"textarea"===a.type})),p=(0,o.computed)((function(){return c.value?"bk-textarea":"bk-input"})),d=l.attrs,f=d.class,y=d.style,m=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(d,["class","style"]),v=(0,o.ref)(),b=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(p.value,"--").concat(a.size),!!a.size),t(r,"is-focused",u.value),t(r,"is-readonly",a.readonly),t(r,"is-disabled",a.disabled),t(r,"is-simplicity","simplicity"===a.behavior),t(r,"".concat(f),!!f),r),p.value)})),g={search:function(){return(0,o.createVNode)(n.Search,null,null)},password:function(){return(0,o.createVNode)(n.Eye,{onClick:W},null)}},x=U("suffix-icon"),h=(0,o.computed)((function(){var e=g[a.type];return V.value?(0,o.createVNode)(n.Unvisible,{onClick:W,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),P=(0,o.computed)((function(){return"number"===a.type})),T=(0,o.computed)((function(){return Math.floor(a.maxlength)})),V=(0,o.ref)(!1),w=(0,o.computed)((function(){return(0,e.classes)({"show-clear-only-hover":a.showClearOnlyHover},x)}));function N(){l.emit(s["update:modelValue"],""),l.emit(s.change,""),l.emit(s.clear)}function O(e){u.value=!0,l.emit(s.focus,e)}function j(e){u.value=!1,l.emit(s.blur,e)}l.expose({focus:function(){v.value.focus()},clear:N});var S,C,k=(S=[s.keyup,s.keydown,s.keypress,s.paste,s.change,s.input].map((function(e){return function(r){"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(s.enter,r.target.value,r),i.value&&[s.input,s.change].some((function(r){return e===r}))||(e===s.input&&l.emit(s["update:modelValue"],P.value?+r.target.value:r.target.value),l.emit(e,r.target.value,r))}})),C=6,function(e){if(Array.isArray(e))return e}(S)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){u=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(u)throw n}}return a}}(S,C)||function(e,t){if(e){if("string"==typeof e)return r(e,t);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)?r(e,t):void 0}}(S,C)||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.")}()),I=k[0],A=k[1],E=k[2],q=k[3],M=k[4],z=k[5];function F(){i.value=!0}function K(e){i.value=!1,z(e)}function D(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=parseInt(String(e),10),o=Number.isInteger(a.precision)?a.precision:0,n=parseFloat(a.modelValue.toString()),l=Number.isInteger(t)?t:1,u=n+(r?l:-1*l);return Number.isInteger(a.max)&&(u=Math.min(u,a.max)),Number.isInteger(a.min)&&(u=Math.max(u,a.min)),+u.toFixed(o)}function H(){var e=D(a.step);l.emit(s["update:modelValue"],e)}function L(){var e=D(a.step,!1);l.emit(s["update:modelValue"],e)}function U(e){return"".concat(p.value,"--").concat(e)}function W(){V.value=!V.value}var _=(0,o.computed)((function(){return{value:a.modelValue,maxlength:a.maxlength,placeholder:a.placeholder,readonly:a.readonly,disabled:a.disabled,onInput:z,onFocus:O,onBlur:j,onPaste:q,onChange:M,onKeypress:E,onKeydown:A,onKeyup:I,onCompositionstart:F,onCompositionend:K}}));return function(){var e,r,t,u,i,s;return(0,o.createVNode)("div",{class:b.value,style:y},[null!==(t=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t:a.prefix&&(0,o.createVNode)("div",{class:U("prefix-area")},[(0,o.createVNode)("span",{class:U("prefix-area--text")},[a.prefix])]),c.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:v},m,_.value,{rows:a.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)(m,{ref:v,class:"".concat(p.value,"--text"),type:V.value&&"password"===a.type?"text":a.type,step:a.step,max:a.max,min:a.min},_.value),null),!c.value&&a.clearable&&!!a.modelValue&&(0,o.createVNode)(n.Close,{onClick:N,class:w.value},null),h.value,"number"==typeof a.maxlength&&(a.showWordLimit||c.value)&&(0,o.createVNode)("p",{class:U("max-length")},[a.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[T.value])]),P.value&&a.showControl&&(0,o.createVNode)("div",{class:U("number-control")},[(0,o.createVNode)(n.DownSmall,{onClick:H},null),(0,o.createVNode)(n.DownSmall,{onClick:L},null)]),null!==(s=null===(i=null===(u=l.slots)||void 0===u?void 0:u.suffix)||void 0===i?void 0:i.call(u))&&void 0!==s?s:a.suffix&&(0,o.createVNode)("div",{class:U("suffix-area")},[(0,o.createVNode)("span",{class:U("suffix-area--text")},[a.suffix])])])}}}),p=(0,e.withInstall)(c)})(),l})()));
|
package/lib/input/input.css
CHANGED
@@ -19,6 +19,14 @@
|
|
19
19
|
.bk-fade-transtion .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
|
+
.clearfix-style::after {
|
23
|
+
display: block;
|
24
|
+
clear: both;
|
25
|
+
content: "";
|
26
|
+
font-size: 0;
|
27
|
+
height: 0;
|
28
|
+
visibility: hidden;
|
29
|
+
}
|
22
30
|
.bk-textarea {
|
23
31
|
width: 100%;
|
24
32
|
min-height: 70px;
|
@@ -179,6 +187,7 @@
|
|
179
187
|
.bk-input--number-control span {
|
180
188
|
display: block;
|
181
189
|
height: 50%;
|
190
|
+
line-height: 1;
|
182
191
|
overflow: hidden;
|
183
192
|
color: #c4c6cc;
|
184
193
|
text-align: center;
|
package/lib/input/input.d.ts
CHANGED
@@ -232,29 +232,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
232
232
|
onKeydown?: (...args: any[]) => any;
|
233
233
|
onKeypress?: (...args: any[]) => any;
|
234
234
|
onKeyup?: (...args: any[]) => any;
|
235
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
236
|
-
onClear?: (...args: any[]) => any;
|
237
235
|
onEnter?: (...args: any[]) => any;
|
236
|
+
onClear?: (...args: any[]) => any;
|
237
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
238
238
|
}, {
|
239
239
|
type: string;
|
240
240
|
placeholder: string;
|
241
241
|
prefix: string;
|
242
242
|
step: number;
|
243
243
|
disabled: boolean;
|
244
|
-
modelValue: string | number;
|
245
|
-
readonly: boolean;
|
246
244
|
clearable: boolean;
|
247
|
-
|
248
|
-
max: number;
|
249
|
-
min: number;
|
250
|
-
maxlength: number;
|
245
|
+
readonly: boolean;
|
251
246
|
prefixIcon: string;
|
252
247
|
suffixIcon: string;
|
253
248
|
suffix: string;
|
249
|
+
max: number;
|
250
|
+
min: number;
|
251
|
+
maxlength: number;
|
252
|
+
behavior: string;
|
254
253
|
showWordLimit: boolean;
|
255
254
|
showControl: boolean;
|
256
255
|
showClearOnlyHover: boolean;
|
257
256
|
precision: number;
|
257
|
+
modelValue: string | number;
|
258
258
|
rows: number;
|
259
259
|
}>;
|
260
260
|
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -113,6 +113,14 @@
|
|
113
113
|
.bk-fade-transtion .bk-fade-leave-to {
|
114
114
|
opacity: 0;
|
115
115
|
}
|
116
|
+
.clearfix-style::after {
|
117
|
+
display: block;
|
118
|
+
clear: both;
|
119
|
+
content: "";
|
120
|
+
font-size: 0;
|
121
|
+
height: 0;
|
122
|
+
visibility: hidden;
|
123
|
+
}
|
116
124
|
.bk-textarea {
|
117
125
|
width: 100%;
|
118
126
|
min-height: 70px;
|
@@ -274,6 +282,7 @@
|
|
274
282
|
.bk-input--number-control span {
|
275
283
|
display: block;
|
276
284
|
height: 50%;
|
285
|
+
line-height: 1;
|
277
286
|
overflow: hidden;
|
278
287
|
color: var(--light-gray);
|
279
288
|
text-align: center;
|
package/lib/loading/loading.css
CHANGED
@@ -19,6 +19,14 @@
|
|
19
19
|
.bk-fade-transtion .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
|
+
.clearfix-style::after {
|
23
|
+
display: block;
|
24
|
+
clear: both;
|
25
|
+
content: "";
|
26
|
+
font-size: 0;
|
27
|
+
height: 0;
|
28
|
+
visibility: hidden;
|
29
|
+
}
|
22
30
|
.bk-loading-wrapper {
|
23
31
|
position: static;
|
24
32
|
font-size: 0;
|
@@ -113,6 +113,14 @@
|
|
113
113
|
.bk-fade-transtion .bk-fade-leave-to {
|
114
114
|
opacity: 0;
|
115
115
|
}
|
116
|
+
.clearfix-style::after {
|
117
|
+
display: block;
|
118
|
+
clear: both;
|
119
|
+
content: "";
|
120
|
+
font-size: 0;
|
121
|
+
height: 0;
|
122
|
+
visibility: hidden;
|
123
|
+
}
|
116
124
|
.bk-loading-wrapper {
|
117
125
|
position: static;
|
118
126
|
font-size: 0;
|
package/lib/menu/menu.css
CHANGED
@@ -113,6 +113,14 @@
|
|
113
113
|
.bk-fade-transtion .bk-fade-leave-to {
|
114
114
|
opacity: 0;
|
115
115
|
}
|
116
|
+
.clearfix-style::after {
|
117
|
+
display: block;
|
118
|
+
clear: both;
|
119
|
+
content: "";
|
120
|
+
font-size: 0;
|
121
|
+
height: 0;
|
122
|
+
visibility: hidden;
|
123
|
+
}
|
116
124
|
.collapse {
|
117
125
|
width: var(--menu-collapse-width);
|
118
126
|
}
|