vue-devui 1.6.19 → 1.6.20
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/action-timeline/index.es.js +12 -8
- package/action-timeline/index.umd.js +1 -1
- package/category-search/index.es.js +1029 -2034
- package/category-search/index.umd.js +34 -34
- package/date-picker-pro/index.es.js +1 -1
- package/date-picker-pro/index.umd.js +1 -1
- package/editable-select/index.es.js +1 -1
- package/editable-select/index.umd.js +1 -1
- package/editor-md/index.es.js +15 -6
- package/editor-md/index.umd.js +13 -13
- package/global.d.ts +0 -1
- package/input/index.es.js +1 -1
- package/input/index.umd.js +1 -1
- package/input-number/index.es.js +13 -9
- package/input-number/index.umd.js +10 -10
- package/package.json +1 -1
- package/pagination/index.es.js +1 -1
- package/pagination/index.umd.js +1 -1
- package/search/index.es.js +2 -8
- package/search/index.umd.js +1 -7
- package/select/index.es.js +1 -1
- package/select/index.umd.js +1 -1
- package/time-picker/index.es.js +1 -1
- package/time-picker/index.umd.js +1 -1
- package/time-select/index.es.js +1 -1
- package/time-select/index.umd.js +1 -1
- package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +1 -0
- package/types/editor-md/src/composables/use-editor-md.d.ts +2 -0
- package/types/editor-md/src/editor-md-types.d.ts +1 -0
- package/types/input-number/src/input-number-types.d.ts +10 -6
- package/vue-devui.es.js +263 -1261
- package/vue-devui.umd.js +92 -98
|
@@ -69,14 +69,16 @@ var ActionTimeline = defineComponent({
|
|
|
69
69
|
const renderVerticalBody = (actionData, parentIndex) => {
|
|
70
70
|
var _a;
|
|
71
71
|
return (_a = actionData.actions) == null ? void 0 : _a.map((item, index2) => {
|
|
72
|
-
var _a2, _b, _c, _d;
|
|
72
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
73
73
|
return createVNode("div", {
|
|
74
74
|
"class": timelineItemClass(index2, parentIndex, actionData, item)
|
|
75
75
|
}, [createVNode("div", {
|
|
76
76
|
"class": "vertical-list-item-top"
|
|
77
77
|
}, [createVNode("div", {
|
|
78
78
|
"class": "vertical-list-item-top-left"
|
|
79
|
-
}, [
|
|
79
|
+
}, [((_b = (_a2 = ctx.slots).iconContent) == null ? void 0 : _b.call(_a2, {
|
|
80
|
+
option: item
|
|
81
|
+
})) || createVNode("div", {
|
|
80
82
|
"class": itemIconClass(item, true)
|
|
81
83
|
}, [!item.icon && createVNode("div", {
|
|
82
84
|
"class": "list-empty-icon-dot"
|
|
@@ -84,13 +86,13 @@ var ActionTimeline = defineComponent({
|
|
|
84
86
|
"class": itemIconClass(item)
|
|
85
87
|
}, null)]), createVNode("div", {
|
|
86
88
|
"class": "vertical-list-item-top-left-title"
|
|
87
|
-
}, [(
|
|
89
|
+
}, [(_d = (_c = ctx.slots).title) == null ? void 0 : _d.call(_c, {
|
|
88
90
|
option: item
|
|
89
91
|
})])]), createVNode("div", {
|
|
90
92
|
"class": "dp-action-timeline-item-data"
|
|
91
93
|
}, [item.createdAt])]), createVNode("div", {
|
|
92
94
|
"class": "vertical-list-item-bottom"
|
|
93
|
-
}, [(
|
|
95
|
+
}, [(_f = (_e = ctx.slots).content) == null ? void 0 : _f.call(_e, {
|
|
94
96
|
option: item
|
|
95
97
|
})])]);
|
|
96
98
|
});
|
|
@@ -98,10 +100,12 @@ var ActionTimeline = defineComponent({
|
|
|
98
100
|
const renderHorizontalBody = (actionData, parentIndex) => {
|
|
99
101
|
var _a;
|
|
100
102
|
return (_a = actionData.actions) == null ? void 0 : _a.map((item, index2) => {
|
|
101
|
-
var _a2, _b, _c;
|
|
103
|
+
var _a2, _b, _c, _d, _e;
|
|
102
104
|
return createVNode("div", {
|
|
103
105
|
"class": timelineItemClass(index2, parentIndex, actionData, item)
|
|
104
|
-
}, [
|
|
106
|
+
}, [((_b = (_a2 = ctx.slots).iconContent) == null ? void 0 : _b.call(_a2, {
|
|
107
|
+
option: item
|
|
108
|
+
})) || createVNode("div", {
|
|
105
109
|
"class": itemIconClass(item, true)
|
|
106
110
|
}, [!item.icon && createVNode("div", {
|
|
107
111
|
"class": "list-empty-icon-dot"
|
|
@@ -109,11 +113,11 @@ var ActionTimeline = defineComponent({
|
|
|
109
113
|
"class": itemIconClass(item)
|
|
110
114
|
}, null)]), createVNode("div", {
|
|
111
115
|
"class": "dp-action-timeline-list-data"
|
|
112
|
-
}, [(
|
|
116
|
+
}, [(_d = (_c = ctx.slots).content) == null ? void 0 : _d.call(_c, {
|
|
113
117
|
option: item
|
|
114
118
|
})]), createVNode("div", {
|
|
115
119
|
"class": "dp-action-timeline-item-date"
|
|
116
|
-
}, [item.createdAt]), !(actionData.actions && (data == null ? void 0 : data.value) && index2 === actionData.actions.length - 1 && parentIndex === ((
|
|
120
|
+
}, [item.createdAt]), !(actionData.actions && (data == null ? void 0 : data.value) && index2 === actionData.actions.length - 1 && parentIndex === ((_e = data == null ? void 0 : data.value) == null ? void 0 : _e.length) - 1) && createVNode("div", {
|
|
117
121
|
"class": "border-bottom"
|
|
118
122
|
}, null)]);
|
|
119
123
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(s,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis!="undefined"?globalThis:s||self,e(s.index={},s.Vue))})(this,function(s,e){"use strict";const T={data:{type:Array},layout:{type:String,default:"horizontal"},loadMoreConfig:{type:Object},showTailLine:{type:Boolean,default:!0},showStatusBgColor:{type:Boolean,default:!1},showStatusLineColor:{type:Boolean,default:!1}};var P="",N=e.defineComponent({name:"DActionTimeline",props:T,emits:["actionLoadMore"],setup(y,c){const{layout:b,data:i,showTailLine:w,showStatusBgColor:L,showStatusLineColor:V,loadMoreConfig:a}=e.toRefs(y),h=e.computed(()=>b.value==="vertical"),A=e.computed(()=>({"dp-action-timeline":!0,"dp-action-timeline-status-bg":L.value,"dp-action-timeline-status-line":V.value})),C=(o,n,l,t)=>({"dp-action-timeline-item":!0,"dp-action-timeline-item-info":V.value&&t.status==="color-info","dp-action-timeline-item-danger":V.value&&t.status==="color-danger","dp-action-timeline-item-success":V.value&&t.status==="color-info","vertical-list-item":h.value,"list-last-item":l.actions&&(i==null?void 0:i.value)&&o===l.actions.length-1&&n===i.value.length-1&&w.value}),f=(o,n=!1)=>{var l,t;return n?{"dp-action-timeline-list-icon":!0,"item-empty-icon":!o.icon,[(l=o.status)!=null?l:""]:!0}:{icon:!0,[(t=o.icon)!=null?t:""]:!0}},F=(o,n)=>{var l;return(l=o.actions)==null?void 0:l.map((t,v)=>{var d,r,u,p,m,g;return e.createVNode("div",{class:C(v,n,o,t)},[e.createVNode("div",{class:"vertical-list-item-top"},[e.createVNode("div",{class:"vertical-list-item-top-left"},[((r=(d=c.slots).iconContent)==null?void 0:r.call(d,{option:t}))||e.createVNode("div",{class:f(t,!0)},[!t.icon&&e.createVNode("div",{class:"list-empty-icon-dot"},null),e.createVNode("em",{class:f(t)},null)]),e.createVNode("div",{class:"vertical-list-item-top-left-title"},[(p=(u=c.slots).title)==null?void 0:p.call(u,{option:t})])]),e.createVNode("div",{class:"dp-action-timeline-item-data"},[t.createdAt])]),e.createVNode("div",{class:"vertical-list-item-bottom"},[(g=(m=c.slots).content)==null?void 0:g.call(m,{option:t})])])})},S=(o,n)=>{var l;return(l=o.actions)==null?void 0:l.map((t,v)=>{var d,r,u,p,m;return e.createVNode("div",{class:C(v,n,o,t)},[((r=(d=c.slots).iconContent)==null?void 0:r.call(d,{option:t}))||e.createVNode("div",{class:f(t,!0)},[!t.icon&&e.createVNode("div",{class:"list-empty-icon-dot"},null),e.createVNode("em",{class:f(t)},null)]),e.createVNode("div",{class:"dp-action-timeline-list-data"},[(p=(u=c.slots).content)==null?void 0:p.call(u,{option:t})]),e.createVNode("div",{class:"dp-action-timeline-item-date"},[t.createdAt]),!(o.actions&&(i==null?void 0:i.value)&&v===o.actions.length-1&&n===((m=i==null?void 0:i.value)==null?void 0:m.length)-1)&&e.createVNode("div",{class:"border-bottom"},null)])})},M=()=>{c.emit("actionLoadMore")},k=()=>{window.scrollTo(0,0)},j=()=>{var o,n;return e.createVNode("div",{class:"dp-action-timeline-operation-container"},[((o=a==null?void 0:a.value)==null?void 0:o.loadMore)&&e.createVNode("div",{class:"dp-action-timeline-operation",onClick:M},[a.value.loadMoreText]),((n=a==null?void 0:a.value)==null?void 0:n.isToTop)&&e.createVNode("div",{class:"dp-action-timeline-operation",onClick:k},[a.value.toTopText])])};return()=>{var o,n;return e.createVNode(e.Fragment,null,[(o=i==null?void 0:i.value)==null?void 0:o.map((l,t)=>e.createVNode("div",{class:A.value},[e.createVNode("div",{class:"dp-action-timeline-title"},[e.createVNode("p",null,[l.time])]),e.createVNode("div",{class:"dp-action-timeline-body"},[h.value?F(l,t):S(l,t)]),e.createVNode("div",{class:"border-left"},null)])),Boolean((n=i==null?void 0:i.value)==null?void 0:n.length)&&j()])}}}),B={title:"ActionTimeline \u64CD\u4F5C\u65F6\u95F4\u8F74",category:"\u6F14\u8FDB\u4E2D",status:"100%",install(y){y.component(N.name,N)}};s.ActionTimeline=N,s.actionTimelineProps=T,s.default=B,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|