vue-devui 1.0.0-rc.0 → 1.0.0-rc.1
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/README.md +13 -0
- package/accordion/index.es.js +6 -3
- package/alert/index.es.js +28 -30
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +13 -6
- package/auto-complete/index.umd.js +1 -1
- package/back-top/index.es.js +4 -2
- package/badge/index.es.js +1 -1
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/breadcrumb/index.es.js +2 -1
- package/button/index.es.js +39 -40
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +38 -53
- package/carousel/index.umd.js +1 -1
- package/cascader/index.es.js +16 -8
- package/cascader/style.css +1 -1
- package/color-picker/index.es.js +94 -85
- package/color-picker/index.umd.js +7 -7
- package/countdown/index.es.js +2 -1
- package/date-picker/index.es.js +40 -57
- package/date-picker/index.umd.js +1 -1
- package/dropdown/index.es.js +117 -62
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +6 -3
- package/form/index.es.js +87 -76
- package/form/index.umd.js +11 -11
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +13 -16
- package/fullscreen/index.umd.js +1 -1
- package/icon/index.es.js +39 -57
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +2 -1
- package/input-icon/index.es.js +38 -37
- package/input-icon/index.umd.js +1 -1
- package/input-number/index.es.js +46 -57
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/modal/index.es.js +81 -76
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +38 -40
- package/notification/index.umd.js +1 -1
- package/nuxt/components/PanelBody.js +3 -0
- package/nuxt/components/PanelFooter.js +3 -0
- package/nuxt/components/PanelHeader.js +3 -0
- package/nuxt/components/Timeline.js +3 -0
- package/nuxt/components/TimelineItem.js +3 -0
- package/nuxt/components/alertProps.js +3 -0
- package/nuxt/components/fullscreenProps.js +3 -0
- package/nuxt/components/iconProps.js +2 -0
- package/nuxt/components/paginationProps.js +3 -0
- package/nuxt/components/panelProps.js +3 -0
- package/nuxt/components/searchProps.js +3 -0
- package/overlay/index.es.js +44 -37
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +8 -43
- package/pagination/index.es.js +10 -12
- package/pagination/index.umd.js +1 -1
- package/panel/index.es.js +45 -32
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +44 -37
- package/popover/index.umd.js +6 -6
- package/popover/style.css +1 -1
- package/radio/index.es.js +3 -9
- package/radio/index.umd.js +1 -1
- package/read-tip/index.es.js +6 -3
- package/result/index.es.js +38 -53
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +9 -5
- package/search/index.es.js +2 -5
- package/search/index.umd.js +4 -4
- package/select/index.es.js +42 -42
- package/select/index.umd.js +1 -1
- package/skeleton/index.es.js +17 -17
- package/skeleton/index.umd.js +1 -1
- package/slider/index.es.js +2 -1
- package/splitter/index.es.js +54 -42
- package/splitter/index.umd.js +6 -6
- package/splitter/style.css +1 -1
- package/status/index.es.js +1 -4
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/steps-guide/index.es.js +6 -3
- package/style.css +1 -1
- package/table/index.es.js +117 -62
- package/table/index.umd.js +1 -1
- package/table/style.css +1 -1
- package/tag/index.es.js +2 -1
- package/tag-input/index.es.js +4 -2
- package/time-picker/index.es.js +43 -42
- package/time-picker/index.umd.js +1 -1
- package/{time-axis → timeline}/index.d.ts +0 -0
- package/{time-axis → timeline}/index.es.js +65 -78
- package/timeline/index.umd.js +1 -0
- package/{time-axis → timeline}/package.json +1 -1
- package/timeline/style.css +1 -0
- package/tooltip/index.es.js +44 -37
- package/tooltip/index.umd.js +6 -6
- package/tooltip/style.css +1 -1
- package/transfer/index.es.js +84 -77
- package/transfer/index.umd.js +7 -7
- package/transfer/style.css +1 -1
- package/tree/index.es.js +10 -5
- package/tree-select/index.es.js +8 -4
- package/upload/index.es.js +38 -40
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +771 -649
- package/vue-devui.umd.js +9 -9
- package/nuxt/components/TimeAxis.js +0 -3
- package/nuxt/components/TimeAxisItem.js +0 -3
- package/time-axis/index.umd.js +0 -1
- package/time-axis/style.css +0 -1
package/result/index.es.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import { defineComponent, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, toRefs, createVNode } from "vue";
|
|
18
2
|
const resultProps = {
|
|
19
3
|
icon: {
|
|
20
4
|
type: String,
|
|
@@ -29,50 +13,51 @@ const resultProps = {
|
|
|
29
13
|
default: ""
|
|
30
14
|
}
|
|
31
15
|
};
|
|
16
|
+
const iconProps = {
|
|
17
|
+
name: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "",
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "inherit"
|
|
25
|
+
},
|
|
26
|
+
color: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "inherit"
|
|
29
|
+
},
|
|
30
|
+
classPrefix: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "icon"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
32
35
|
var Icon = defineComponent({
|
|
33
36
|
name: "DIcon",
|
|
34
|
-
props:
|
|
35
|
-
name: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: true
|
|
38
|
-
},
|
|
39
|
-
size: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "inherit"
|
|
42
|
-
},
|
|
43
|
-
color: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "inherit"
|
|
46
|
-
},
|
|
47
|
-
classPrefix: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "icon"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
37
|
+
props: iconProps,
|
|
52
38
|
setup(props) {
|
|
53
|
-
return __spreadValues({}, props);
|
|
54
|
-
},
|
|
55
|
-
render() {
|
|
56
39
|
const {
|
|
57
40
|
name,
|
|
58
41
|
size,
|
|
59
42
|
color,
|
|
60
43
|
classPrefix
|
|
61
|
-
} =
|
|
62
|
-
return
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
44
|
+
} = toRefs(props);
|
|
45
|
+
return () => {
|
|
46
|
+
return /^((https?):)?\/\//.test(name.value) ? createVNode("img", {
|
|
47
|
+
"src": name.value,
|
|
48
|
+
"alt": name.value.split("/")[name.value.split("/").length - 1],
|
|
49
|
+
"style": {
|
|
50
|
+
width: size.value,
|
|
51
|
+
verticalAlign: "text-bottom"
|
|
52
|
+
}
|
|
53
|
+
}, null) : createVNode("i", {
|
|
54
|
+
"class": `${classPrefix.value} ${classPrefix.value}-${name.value}`,
|
|
55
|
+
"style": {
|
|
56
|
+
fontSize: size.value,
|
|
57
|
+
color: color.value
|
|
58
|
+
}
|
|
59
|
+
}, null);
|
|
60
|
+
};
|
|
76
61
|
}
|
|
77
62
|
});
|
|
78
63
|
var result = "";
|
package/result/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis!="undefined"?globalThis:l||self,e(l.index={},l.Vue))})(this,function(l,e){"use strict";const d={icon:{type:String,default:"info"},title:{type:String,default:""},desc:{type:String,default:""}},c={name:{type:String,default:"",required:!0},size:{type:String,default:"inherit"},color:{type:String,default:"inherit"},classPrefix:{type:String,default:"icon"}};var f=e.defineComponent({name:"DIcon",props:c,setup(s){const{name:t,size:n,color:i,classPrefix:r}=e.toRefs(s);return()=>/^((https?):)?\/\//.test(t.value)?e.createVNode("img",{src:t.value,alt:t.value.split("/")[t.value.split("/").length-1],style:{width:n.value,verticalAlign:"text-bottom"}},null):e.createVNode("i",{class:`${r.value} ${r.value}-${t.value}`,style:{fontSize:n.value,color:i.value}},null)}}),v="",o=e.defineComponent({name:"DResult",props:d,setup(s,t){let n;return function(i){i.success="right-o",i.danger="error-o",i.warning="warning-o",i.info="info-o"}(n||(n={})),()=>{var i,r,u,a;return e.createVNode("div",{class:"devui-result"},[t.slots.icon?e.createVNode("div",null,[(i=t.slots)==null?void 0:i.icon()]):e.createVNode(f,{name:n[s.icon]||"",class:`devui-result__icon-${s.icon}`,size:"64px"},null),e.createVNode("div",{class:"devui-result__title"},[t.slots.title?(r=t.slots)==null?void 0:r.title():s.title]),e.createVNode("div",{class:"devui-result__desc"},[t.slots.desc?(u=t.slots)==null?void 0:u.desc():s.desc]),e.createVNode("div",{class:"devui-result__extra"},[t.slots.extra?(a=t.slots)==null?void 0:a.extra():""])])}}});o.install=function(s){s.component(o.name,o)};var p={title:"Result \u7ED3\u679C",category:"\u53CD\u9988",status:"100%",install(s){s.use(o)}};l.Result=o,l.default=p,Object.defineProperty(l,"__esModule",{value:!0}),l[Symbol.toStringTag]="Module"});
|
package/ripple/index.es.js
CHANGED
|
@@ -102,8 +102,9 @@ const ripple = (event, el, options) => {
|
|
|
102
102
|
incrementRippleCount(el);
|
|
103
103
|
let originalPositionValue = "";
|
|
104
104
|
if (computedStyles.position === "static") {
|
|
105
|
-
if (el.style.position)
|
|
105
|
+
if (el.style.position) {
|
|
106
106
|
originalPositionValue = el.style.position;
|
|
107
|
+
}
|
|
107
108
|
el.style.position = "relative";
|
|
108
109
|
}
|
|
109
110
|
rippleContainer.appendChild(rippleEl);
|
|
@@ -114,10 +115,11 @@ const ripple = (event, el, options) => {
|
|
|
114
115
|
document.removeEventListener("pointerup", releaseripple);
|
|
115
116
|
document.removeEventListener("pointercancel", releaseripple);
|
|
116
117
|
}
|
|
117
|
-
if (shouldDissolveripple)
|
|
118
|
+
if (shouldDissolveripple) {
|
|
118
119
|
dissolveripple();
|
|
119
|
-
else
|
|
120
|
+
} else {
|
|
120
121
|
shouldDissolveripple = true;
|
|
122
|
+
}
|
|
121
123
|
};
|
|
122
124
|
const dissolveripple = () => {
|
|
123
125
|
rippleEl.style.transition = "opacity 150ms linear";
|
|
@@ -158,10 +160,12 @@ var RippleDirective = {
|
|
|
158
160
|
optionMap.set(el, (_a = binding.value) != null ? _a : {});
|
|
159
161
|
el.addEventListener("pointerdown", (event) => {
|
|
160
162
|
const options = optionMap.get(el);
|
|
161
|
-
if (binding.value && binding.value.disabled)
|
|
163
|
+
if (binding.value && binding.value.disabled) {
|
|
162
164
|
return;
|
|
163
|
-
|
|
165
|
+
}
|
|
166
|
+
if (options === false) {
|
|
164
167
|
return;
|
|
168
|
+
}
|
|
165
169
|
ripple(event, el, __spreadValues(__spreadValues({}, globalOptions), options));
|
|
166
170
|
});
|
|
167
171
|
},
|
package/search/index.es.js
CHANGED
|
@@ -5760,15 +5760,12 @@ var Search = defineComponent({
|
|
|
5760
5760
|
};
|
|
5761
5761
|
}
|
|
5762
5762
|
});
|
|
5763
|
-
Search.install = function(app) {
|
|
5764
|
-
app.component(Search.name, Search);
|
|
5765
|
-
};
|
|
5766
5763
|
var index = {
|
|
5767
5764
|
title: "Search \u641C\u7D22\u6846",
|
|
5768
5765
|
category: "\u901A\u7528",
|
|
5769
5766
|
status: "100%",
|
|
5770
5767
|
install(app) {
|
|
5771
|
-
app.
|
|
5768
|
+
app.component(Search.name, Search);
|
|
5772
5769
|
}
|
|
5773
5770
|
};
|
|
5774
|
-
export { Search, index as default };
|
|
5771
|
+
export { Search, index as default, searchProps };
|