vue-devui 1.6.4 → 1.6.5
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/auto-complete/index.es.js +1 -2
- package/auto-complete/index.umd.js +1 -1
- package/breadcrumb/index.es.js +2 -15
- package/breadcrumb/index.umd.js +1 -1
- package/button/index.es.js +1 -2
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +36 -213
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +3 -17
- package/category-search/index.umd.js +10 -10
- package/collapse/index.es.js +15 -18
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +3 -17
- package/data-grid/index.umd.js +6 -6
- package/date-picker-pro/index.es.js +21 -6
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/dropdown/index.es.js +2 -15
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +2 -3
- package/editable-select/index.umd.js +2 -2
- package/editor-md/index.es.js +32 -18
- package/editor-md/index.umd.js +15 -15
- package/icon/index.es.js +1 -2
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +21 -6
- package/input/index.umd.js +11 -11
- package/input/style.css +1 -1
- package/mention/index.es.js +1 -2
- package/mention/index.umd.js +1 -1
- package/message/index.es.js +1 -2
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +27 -4
- package/modal/index.umd.js +7 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +1 -2
- package/notification/index.umd.js +2 -2
- package/package.json +1 -1
- package/pagination/index.es.js +55 -253
- package/pagination/index.umd.js +18 -23
- package/pagination/style.css +1 -1
- package/result/index.es.js +1 -2
- package/result/index.umd.js +1 -1
- package/search/index.es.js +48 -27
- package/search/index.umd.js +18 -14
- package/search/style.css +1 -1
- package/select/index.es.js +43 -42
- package/select/index.umd.js +11 -16
- package/select/style.css +1 -1
- package/steps/index.es.js +1 -2
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/table/index.es.js +3 -17
- package/table/index.umd.js +6 -6
- package/time-picker/index.es.js +21 -6
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +43 -42
- package/time-select/index.umd.js +9 -14
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +1 -2
- package/timeline/index.umd.js +1 -1
- package/types/carousel/src/components/carousel-icons.d.ts +2 -0
- package/types/dropdown/src/use-dropdown.d.ts +1 -1
- package/types/editor-md/src/composables/use-editor-md.d.ts +1 -0
- package/types/editor-md/src/editor-md-types.d.ts +3 -0
- package/types/icon/src/icon-types.d.ts +0 -1
- package/types/modal/src/components/modal-icons.d.ts +1 -0
- package/types/svg-icons/index.d.ts +3 -0
- package/upload/index.es.js +1 -2
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +186 -96
- package/vue-devui.umd.js +97 -86
- package/types/search/src/components/search-close-icon.d.ts +0 -2
- package/types/search/src/components/search-icon.d.ts +0 -2
- package/types/select/src/components/select-arrow-icon.d.ts +0 -2
package/icon/index.es.js
CHANGED
package/icon/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(i=typeof globalThis!="undefined"?globalThis:i||self,n(i.index={},i.Vue))})(this,function(i,n){"use strict";const I={name:{type:String,default:""
|
|
1
|
+
(function(i,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(i=typeof globalThis!="undefined"?globalThis:i||self,n(i.index={},i.Vue))})(this,function(i,n){"use strict";const I={name:{type:String,default:""},size:{type:[Number,String],default:"inherit"},color:{type:String,default:"inherit"},component:{type:Object,default:null},classPrefix:{type:String,default:"icon"},operable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rotate:{type:[Number,String]}},b={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function p(l,t,s){let o=l;return t&&(o+=`__${t}`),s&&(o+=`--${s}`),o}function d(l,t=!1){const s=t?`.devui-${l}`:`devui-${l}`;return{b:()=>p(s),e:e=>e?p(s,e):"",m:e=>e?p(s,"",e):"",em:(e,a)=>e&&a?p(s,e,a):""}}var V="",h=n.defineComponent({name:"DSvgIcon",props:b,setup(l){const{name:t,color:s,size:o}=n.toRefs(l),c=d("svg-icon"),r=n.computed(()=>`#icon-${t.value}`),u=n.computed(()=>typeof o.value=="number"?`${o.value}px`:o.value),e={width:u.value,height:u.value};return()=>n.createVNode("svg",{class:c.b(),style:e},[n.createVNode("use",{"xlink:href":r.value,fill:s.value},null)])}});function D(l){return/^((http|https):)?\/\//.test(l)}function S(l,t){const{component:s,name:o,size:c,color:r,classPrefix:u,rotate:e}=n.toRefs(l),a=d("icon"),m=n.computed(()=>typeof c.value=="number"?`${c.value}px`:c.value),f=s.value?n.resolveDynamicComponent(s.value):n.resolveDynamicComponent(h),v=()=>n.createVNode("img",n.mergeProps({src:o.value,alt:o.value.split("/")[o.value.split("/").length-1],class:[(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{width:m.value||"",transform:`rotate(${e==null?void 0:e.value}deg)`,verticalAlign:"middle"}},t.attrs),null),P=()=>n.createVNode(f,n.mergeProps({name:o.value,color:r.value,size:m.value,class:[(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{transform:`rotate(${e==null?void 0:e.value}deg)`}},t.attrs),null),$=()=>{const C=/^icon-/.test(o.value)?o.value:`${u.value}-${o.value}`;return n.createVNode("i",n.mergeProps({class:[u.value,C,(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{fontSize:m.value,color:r.value,transform:`rotate(${e==null?void 0:e.value}deg)`}},t.attrs),null)};return{iconDom:()=>s.value?P():D(o.value)?v():$()}}var g=n.defineComponent({name:"DIcon",props:I,emits:["click"],setup(l,t){const{disabled:s,operable:o}=n.toRefs(l),{iconDom:c}=S(l,t),r=d("icon"),u=n.computed(()=>({[r.e("container")]:!0,[r.m("disabled")]:s.value,[r.m("operable")]:o.value,[r.m("no-slots")]:!Object.keys(t.slots).length})),e=a=>{s.value||t.emit("click",a)};return()=>{var a,m,f,v;return n.createVNode("div",{class:u.value,onClick:e},[(m=(a=t.slots).prefix)==null?void 0:m.call(a),c(),(v=(f=t.slots).suffix)==null?void 0:v.call(f)])}}}),_="",y=n.defineComponent({name:"DIconGroup",setup(l,t){const s=d("icon-group");return()=>{var o,c;return n.createVNode("div",{class:s.b()},[(c=(o=t.slots).default)==null?void 0:c.call(o)])}}}),N={title:"Icon \u56FE\u6807",category:"\u901A\u7528",status:"100%",install(l){l.component(g.name,g),l.component(y.name,y)}};i.Icon=g,i.IconGroup=y,i.default=N,i.iconProps=I,i.svgIconProps=b,Object.defineProperty(i,"__esModule",{value:!0}),i[Symbol.toStringTag]="Module"});
|
package/input/index.es.js
CHANGED
|
@@ -36,8 +36,7 @@ const DEFAULT_PREFIX = "icon";
|
|
|
36
36
|
const iconProps = {
|
|
37
37
|
name: {
|
|
38
38
|
type: String,
|
|
39
|
-
default: ""
|
|
40
|
-
required: true
|
|
39
|
+
default: ""
|
|
41
40
|
},
|
|
42
41
|
size: {
|
|
43
42
|
type: [Number, String],
|
|
@@ -364,6 +363,25 @@ function useNamespace(block, needDot = false) {
|
|
|
364
363
|
em
|
|
365
364
|
};
|
|
366
365
|
}
|
|
366
|
+
function InputClearIcon() {
|
|
367
|
+
return createVNode("svg", {
|
|
368
|
+
"width": "16px",
|
|
369
|
+
"height": "16px",
|
|
370
|
+
"viewBox": "0 0 16 16",
|
|
371
|
+
"version": "1.1",
|
|
372
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
373
|
+
}, [createVNode("g", {
|
|
374
|
+
"stroke": "none",
|
|
375
|
+
"stroke-width": "1",
|
|
376
|
+
"fill": "none",
|
|
377
|
+
"fill-rule": "evenodd"
|
|
378
|
+
}, [createVNode("path", {
|
|
379
|
+
"d": "M8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 C4.13400675,15 1,11.8659932 1,8 C1,4.13400675 4.13400675,1 8,1 Z M5.87867966,5.17157288 C5.68341751,4.97631073 5.36683502,4.97631073 5.17157288,5.17157288 C4.99800652,5.34513923 4.97872137,5.61456363 5.11371742,5.80943177 L5.17157288,5.87867966 L7.29218611,7.99929289 L5.17157288,10.1213203 C4.97631073,10.3165825 4.97631073,10.633165 5.17157288,10.8284271 C5.34513923,11.0019935 5.61456363,11.0212786 5.80943177,10.8862826 L5.87867966,10.8284271 L7.99929289,8.70639967 L10.1213203,10.8284271 C10.3165825,11.0236893 10.633165,11.0236893 10.8284271,10.8284271 C11.0019935,10.6548608 11.0212786,10.3854364 10.8862826,10.1905682 L10.8284271,10.1213203 L8.70710678,8 L10.8284271,5.87867966 C11.0236893,5.68341751 11.0236893,5.36683502 10.8284271,5.17157288 C10.6548608,4.99800652 10.3854364,4.97872137 10.1905682,5.11371742 L10.1213203,5.17157288 L8,7.29289322 L5.87867966,5.17157288 Z",
|
|
380
|
+
"id": "\u5F62\u72B6",
|
|
381
|
+
"fill": "#D5D5DB",
|
|
382
|
+
"fill-rule": "nonzero"
|
|
383
|
+
}, null)])]);
|
|
384
|
+
}
|
|
367
385
|
const formProps = {
|
|
368
386
|
data: {
|
|
369
387
|
type: Object,
|
|
@@ -8446,11 +8464,8 @@ var Input = defineComponent({
|
|
|
8446
8464
|
"class": ns2.em("password", "icon"),
|
|
8447
8465
|
"name": passwordVisible.value ? "preview" : "preview-forbidden",
|
|
8448
8466
|
"onClick": clickPasswordIcon
|
|
8449
|
-
}, null), showClearable.value && createVNode(
|
|
8450
|
-
"size": inputSize.value,
|
|
8467
|
+
}, null), showClearable.value && createVNode(InputClearIcon, {
|
|
8451
8468
|
"class": ns2.em("clear", "icon"),
|
|
8452
|
-
"name": "error-o",
|
|
8453
|
-
"color": "#adb0b8",
|
|
8454
8469
|
"onClick": onClear
|
|
8455
8470
|
}, null)])]), ctx.slots.append && createVNode("div", {
|
|
8456
8471
|
"class": slotNs.e("append")
|