vue-devui 1.6.4-markdown.1 → 1.6.4
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 +2 -1
- package/auto-complete/index.umd.js +1 -1
- package/button/index.es.js +2 -1
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +213 -36
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +2 -1
- package/category-search/index.umd.js +1 -1
- package/collapse/index.es.js +18 -15
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +2 -1
- package/data-grid/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +6 -21
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/editable-select/index.es.js +2 -1
- package/editable-select/index.umd.js +1 -1
- package/editor-md/index.es.js +3 -30
- package/editor-md/index.umd.js +14 -14
- package/icon/index.es.js +2 -1
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +6 -21
- package/input/index.umd.js +11 -11
- package/input/style.css +1 -1
- package/mention/index.es.js +2 -1
- package/mention/index.umd.js +1 -1
- package/message/index.es.js +2 -1
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +4 -27
- package/modal/index.umd.js +1 -7
- package/modal/style.css +1 -1
- package/notification/index.es.js +2 -1
- package/notification/index.umd.js +2 -2
- package/package.json +1 -1
- package/pagination/index.es.js +238 -50
- package/pagination/index.umd.js +21 -16
- package/pagination/style.css +1 -1
- package/result/index.es.js +2 -1
- package/result/index.umd.js +1 -1
- package/search/index.es.js +27 -48
- package/search/index.umd.js +14 -18
- package/search/style.css +1 -1
- package/select/index.es.js +42 -40
- package/select/index.umd.js +15 -10
- package/select/style.css +1 -1
- package/steps/index.es.js +2 -1
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/table/index.es.js +2 -1
- package/table/index.umd.js +1 -1
- package/time-picker/index.es.js +6 -21
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +42 -40
- package/time-select/index.umd.js +10 -5
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +2 -1
- package/timeline/index.umd.js +1 -1
- package/types/editor-md/src/composables/use-editor-md.d.ts +0 -1
- package/types/editor-md/src/editor-md-types.d.ts +0 -3
- package/types/icon/src/icon-types.d.ts +1 -0
- package/types/search/src/components/search-close-icon.d.ts +2 -0
- package/types/search/src/components/search-icon.d.ts +2 -0
- package/types/select/src/components/select-arrow-icon.d.ts +2 -0
- package/upload/index.es.js +2 -1
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +80 -180
- package/vue-devui.umd.js +86 -97
- package/types/carousel/src/components/carousel-icons.d.ts +0 -2
- package/types/modal/src/components/modal-icons.d.ts +0 -1
- package/types/svg-icons/index.d.ts +0 -3
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:""},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,
|
|
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:"",required:!0},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,o,s){let t=l;return o&&(t+=`__${o}`),s&&(t+=`--${s}`),t}function d(l,o=!1){const s=o?`.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:o,color:s,size:t}=n.toRefs(l),c=d("svg-icon"),r=n.computed(()=>`#icon-${o.value}`),u=n.computed(()=>typeof t.value=="number"?`${t.value}px`:t.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,o){const{component:s,name:t,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:t.value,alt:t.value.split("/")[t.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"}},o.attrs),null),P=()=>n.createVNode(f,n.mergeProps({name:t.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)`}},o.attrs),null),$=()=>{const C=/^icon-/.test(t.value)?t.value:`${u.value}-${t.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)`}},o.attrs),null)};return{iconDom:()=>s.value?P():D(t.value)?v():$()}}var g=n.defineComponent({name:"DIcon",props:I,emits:["click"],setup(l,o){const{disabled:s,operable:t}=n.toRefs(l),{iconDom:c}=S(l,o),r=d("icon"),u=n.computed(()=>({[r.e("container")]:!0,[r.m("disabled")]:s.value,[r.m("operable")]:t.value,[r.m("no-slots")]:!Object.keys(o.slots).length})),e=a=>{s.value||o.emit("click",a)};return()=>{var a,m,f,v;return n.createVNode("div",{class:u.value,onClick:e},[(m=(a=o.slots).prefix)==null?void 0:m.call(a),c(),(v=(f=o.slots).suffix)==null?void 0:v.call(f)])}}}),_="",y=n.defineComponent({name:"DIconGroup",setup(l,o){const s=d("icon-group");return()=>{var t,c;return n.createVNode("div",{class:s.b()},[(c=(t=o.slots).default)==null?void 0:c.call(t)])}}}),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,7 +36,8 @@ const DEFAULT_PREFIX = "icon";
|
|
|
36
36
|
const iconProps = {
|
|
37
37
|
name: {
|
|
38
38
|
type: String,
|
|
39
|
-
default: ""
|
|
39
|
+
default: "",
|
|
40
|
+
required: true
|
|
40
41
|
},
|
|
41
42
|
size: {
|
|
42
43
|
type: [Number, String],
|
|
@@ -363,25 +364,6 @@ function useNamespace(block, needDot = false) {
|
|
|
363
364
|
em
|
|
364
365
|
};
|
|
365
366
|
}
|
|
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
|
-
}
|
|
385
367
|
const formProps = {
|
|
386
368
|
data: {
|
|
387
369
|
type: Object,
|
|
@@ -8464,8 +8446,11 @@ var Input = defineComponent({
|
|
|
8464
8446
|
"class": ns2.em("password", "icon"),
|
|
8465
8447
|
"name": passwordVisible.value ? "preview" : "preview-forbidden",
|
|
8466
8448
|
"onClick": clickPasswordIcon
|
|
8467
|
-
}, null), showClearable.value && createVNode(
|
|
8449
|
+
}, null), showClearable.value && createVNode(Icon, {
|
|
8450
|
+
"size": inputSize.value,
|
|
8468
8451
|
"class": ns2.em("clear", "icon"),
|
|
8452
|
+
"name": "error-o",
|
|
8453
|
+
"color": "#adb0b8",
|
|
8469
8454
|
"onClick": onClear
|
|
8470
8455
|
}, null)])]), ctx.slots.append && createVNode("div", {
|
|
8471
8456
|
"class": slotNs.e("append")
|