vue-devui 1.0.0-rc.14 → 1.0.0-rc.15
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 +1 -0
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +90 -81
- package/auto-complete/index.umd.js +24 -13
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +1 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +21 -42
- package/button/index.umd.js +9 -9
- package/card/index.umd.js +1 -1
- package/checkbox/index.es.js +94 -77
- package/checkbox/index.umd.js +26 -15
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +1 -1
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +118 -103
- package/date-picker-pro/index.umd.js +23 -12
- package/drawer/index.es.js +4 -17
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +4 -22
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +104 -99
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +85 -71
- package/form/index.umd.js +22 -11
- package/fullscreen/index.umd.js +1 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +86 -72
- package/input/index.umd.js +24 -13
- package/input-number/index.es.js +1 -16
- package/input-number/index.umd.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +15 -38
- package/loading/index.umd.js +1 -1
- package/message/index.d.ts +7 -0
- package/message/index.es.js +534 -0
- package/message/index.umd.js +1 -0
- package/message/package.json +7 -0
- package/message/style.css +1 -0
- package/modal/index.es.js +11 -43
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +16 -22
- package/notification/index.umd.js +1 -1
- package/nuxt/components/Message.js +3 -0
- package/nuxt/components/animationInjectionKey.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/roundInjectionKey.js +3 -0
- package/nuxt/components/skeletonItemProps.js +3 -0
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +2 -2
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +1 -1
- package/popover/index.umd.js +4 -4
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +91 -75
- package/radio/index.umd.js +28 -17
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +102 -75
- package/search/index.umd.js +26 -15
- package/search/style.css +1 -1
- package/select/index.es.js +130 -111
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.es.js +87 -261
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +22 -29
- package/splitter/index.umd.js +9 -9
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +85 -71
- package/switch/index.umd.js +25 -14
- package/table/index.es.js +145 -92
- package/table/index.umd.js +22 -11
- package/table/style.css +1 -1
- package/tabs/index.umd.js +1 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +89 -74
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +97 -88
- package/time-picker/index.umd.js +25 -14
- package/time-select/index.es.js +130 -111
- package/time-select/index.umd.js +25 -14
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +4 -4
- package/tree/index.es.js +130 -95
- package/tree/index.umd.js +20 -9
- package/tree/style.css +1 -1
- package/upload/index.es.js +17 -48
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +889 -628
- package/vue-devui.umd.js +32 -21
package/README.md
CHANGED
|
@@ -141,6 +141,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
141
141
|
</tr>
|
|
142
142
|
<tr>
|
|
143
143
|
<td align="center"><a href="https://github.com/xzxldl55"><img src="https://avatars.githubusercontent.com/u/22699218?v=4?s=100" width="100px;" alt=""/><br /><sub><b>xzxldl55</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=xzxldl55" title="Code">💻</a></td>
|
|
144
|
+
<td align="center"><a href="https://github.com/79E"><img src="https://avatars.githubusercontent.com/u/71202421?v=4?s=100" width="100px;" alt=""/><br /><sub><b>79</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=79E" title="Code">💻</a></td>
|
|
144
145
|
</tr>
|
|
145
146
|
</table>
|
|
146
147
|
|
package/alert/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const p=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:"M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"},null)])])]);function c(t,r,n){let s=t;return r&&(s+=`__${r}`),n&&(s+=`--${n}`),s}function h(t,r=!1){const n=r?`.devui-${t}`:`devui-${t}`;return{b:()=>c(n),e:l=>l?c(n,l):"",m:l=>l?c(n,"",l):"",em:(l,d)=>l&&d?c(n,l,d):""}}const u=h("alert"),N=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[u.e("icon"),t.type==="danger"?u.em("icon","error"):u.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var g="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,r){const n=h("alert"),s=e.ref(!1),a=e.ref(!1),C=e.ref();let i;const l=f=>{i&&clearTimeout(i),a.value=!0,r.emit("close",f)},d=()=>{i=void 0,s.value=!0,a.value=!1};return e.onMounted(()=>{t.dismissTime&&(i=window.setTimeout(()=>{l()},t.dismissTime))}),()=>s.value?null:e.createVNode(e.Transition,{name:n.b(),onAfterLeave:d},{default:()=>{var f,m;return[e.withDirectives(e.createVNode("div",{ref:C,class:[n.b(),n.m(t.type),t.cssClass,a.value&&n.m("close"),t.center&&n.m("center")]},[t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:n.e("icon-wrap")},[e.createVNode(N,{type:t.type},null)]):null,e.createVNode("div",{class:n.e("content")},[e.createVNode("span",null,[(m=(f=r.slots).default)==null?void 0:m.call(f)]),t.closeable?e.createVNode("div",{class:n.e("close-icon"),onClick:l},[e.createVNode(p,null,null)]):null])]),[[e.vShow,!a.value]])]}})}}),V={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};o.Alert=L,o.alertProps=w,o.default=V,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __publicField = (obj, key, value) => {
|
|
33
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
1
|
+
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
37
2
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
38
3
|
const defaultFormatter = (item) => {
|
|
39
4
|
if (typeof item === "string") {
|
|
@@ -1212,7 +1177,7 @@ var lodash = { exports: {} };
|
|
|
1212
1177
|
var objectCtorString = funcToString.call(Object2);
|
|
1213
1178
|
var oldDash = root._;
|
|
1214
1179
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1215
|
-
var
|
|
1180
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
1216
1181
|
var defineProperty = function() {
|
|
1217
1182
|
try {
|
|
1218
1183
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1222,11 +1187,11 @@ var lodash = { exports: {} };
|
|
|
1222
1187
|
}
|
|
1223
1188
|
}();
|
|
1224
1189
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1225
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
1226
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
1227
|
-
var metaMap =
|
|
1190
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1191
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1192
|
+
var metaMap = WeakMap && new WeakMap();
|
|
1228
1193
|
var realNames = {};
|
|
1229
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
1194
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
1230
1195
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1231
1196
|
function lodash2(value) {
|
|
1232
1197
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2474,7 +2439,7 @@ var lodash = { exports: {} };
|
|
|
2474
2439
|
}
|
|
2475
2440
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2476
2441
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2477
|
-
new
|
|
2442
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2478
2443
|
return result2;
|
|
2479
2444
|
}
|
|
2480
2445
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -3056,7 +3021,7 @@ var lodash = { exports: {} };
|
|
|
3056
3021
|
object4 = object4.buffer;
|
|
3057
3022
|
other = other.buffer;
|
|
3058
3023
|
case arrayBufferTag:
|
|
3059
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
3024
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
3060
3025
|
return false;
|
|
3061
3026
|
}
|
|
3062
3027
|
return true;
|
|
@@ -3218,7 +3183,7 @@ var lodash = { exports: {} };
|
|
|
3218
3183
|
return result2;
|
|
3219
3184
|
};
|
|
3220
3185
|
var getTag = baseGetTag;
|
|
3221
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
3186
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
3222
3187
|
getTag = function(value) {
|
|
3223
3188
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3224
3189
|
if (ctorString) {
|
|
@@ -5935,7 +5900,10 @@ function useFormValidation(itemContexts) {
|
|
|
5935
5900
|
try {
|
|
5936
5901
|
await field.validate("");
|
|
5937
5902
|
} catch (err) {
|
|
5938
|
-
errors =
|
|
5903
|
+
errors = {
|
|
5904
|
+
...errors,
|
|
5905
|
+
...err
|
|
5906
|
+
};
|
|
5939
5907
|
}
|
|
5940
5908
|
}
|
|
5941
5909
|
if (!Object.keys(errors).length) {
|
|
@@ -5992,11 +5960,12 @@ defineComponent({
|
|
|
5992
5960
|
}, {
|
|
5993
5961
|
deep: true
|
|
5994
5962
|
});
|
|
5995
|
-
provide(FORM_TOKEN, reactive(
|
|
5963
|
+
provide(FORM_TOKEN, reactive({
|
|
5964
|
+
...toRefs(props),
|
|
5996
5965
|
emit: ctx2.emit,
|
|
5997
5966
|
addItemContext,
|
|
5998
5967
|
removeItemContext
|
|
5999
|
-
}))
|
|
5968
|
+
}));
|
|
6000
5969
|
ctx2.expose({
|
|
6001
5970
|
validate,
|
|
6002
5971
|
validateFields,
|
|
@@ -6874,7 +6843,7 @@ var FormControl = defineComponent({
|
|
|
6874
6843
|
}
|
|
6875
6844
|
});
|
|
6876
6845
|
function _extends() {
|
|
6877
|
-
_extends = Object.assign
|
|
6846
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6878
6847
|
for (var i = 1; i < arguments.length; i++) {
|
|
6879
6848
|
var source = arguments[i];
|
|
6880
6849
|
for (var key in source) {
|
|
@@ -6893,13 +6862,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6893
6862
|
_setPrototypeOf(subClass, superClass);
|
|
6894
6863
|
}
|
|
6895
6864
|
function _getPrototypeOf(o) {
|
|
6896
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6865
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6897
6866
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6898
6867
|
};
|
|
6899
6868
|
return _getPrototypeOf(o);
|
|
6900
6869
|
}
|
|
6901
6870
|
function _setPrototypeOf(o, p) {
|
|
6902
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6871
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6903
6872
|
o2.__proto__ = p2;
|
|
6904
6873
|
return o2;
|
|
6905
6874
|
};
|
|
@@ -6922,7 +6891,7 @@ function _isNativeReflectConstruct() {
|
|
|
6922
6891
|
}
|
|
6923
6892
|
function _construct(Parent, args, Class) {
|
|
6924
6893
|
if (_isNativeReflectConstruct()) {
|
|
6925
|
-
_construct = Reflect.construct;
|
|
6894
|
+
_construct = Reflect.construct.bind();
|
|
6926
6895
|
} else {
|
|
6927
6896
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6928
6897
|
var a = [null];
|
|
@@ -7200,9 +7169,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
7200
7169
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
7201
7170
|
}
|
|
7202
7171
|
};
|
|
7172
|
+
var urlReg;
|
|
7173
|
+
var getUrlRegex = function() {
|
|
7174
|
+
if (urlReg) {
|
|
7175
|
+
return urlReg;
|
|
7176
|
+
}
|
|
7177
|
+
var word = "[a-fA-F\\d:]";
|
|
7178
|
+
var b = function b2(options) {
|
|
7179
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
7180
|
+
};
|
|
7181
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
7182
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
7183
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
7184
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
7185
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
7186
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
7187
|
+
var ip = function ip2(options) {
|
|
7188
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
7189
|
+
};
|
|
7190
|
+
ip.v4 = function(options) {
|
|
7191
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
7192
|
+
};
|
|
7193
|
+
ip.v6 = function(options) {
|
|
7194
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
7195
|
+
};
|
|
7196
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
7197
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
7198
|
+
var ipv4 = ip.v4().source;
|
|
7199
|
+
var ipv6 = ip.v6().source;
|
|
7200
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
7201
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
7202
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
7203
|
+
var port = "(?::\\d{2,5})?";
|
|
7204
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
7205
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
7206
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
7207
|
+
return urlReg;
|
|
7208
|
+
};
|
|
7203
7209
|
var pattern$2 = {
|
|
7204
7210
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
7205
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
7206
7211
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
7207
7212
|
};
|
|
7208
7213
|
var types = {
|
|
@@ -7244,7 +7249,7 @@ var types = {
|
|
|
7244
7249
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
7245
7250
|
},
|
|
7246
7251
|
url: function url(value) {
|
|
7247
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
7252
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
7248
7253
|
},
|
|
7249
7254
|
hex: function hex(value) {
|
|
7250
7255
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7819,7 +7824,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7819
7824
|
if (rule.asyncValidator) {
|
|
7820
7825
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7821
7826
|
} else if (rule.validator) {
|
|
7822
|
-
|
|
7827
|
+
try {
|
|
7828
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7829
|
+
} catch (error) {
|
|
7830
|
+
console.error == null ? void 0 : console.error(error);
|
|
7831
|
+
if (!options.suppressValidatorError) {
|
|
7832
|
+
setTimeout(function() {
|
|
7833
|
+
throw error;
|
|
7834
|
+
}, 0);
|
|
7835
|
+
}
|
|
7836
|
+
cb(error.message);
|
|
7837
|
+
}
|
|
7823
7838
|
if (res === true) {
|
|
7824
7839
|
cb();
|
|
7825
7840
|
} else if (res === false) {
|
|
@@ -7940,10 +7955,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7940
7955
|
} else {
|
|
7941
7956
|
return rule.trigger === triggerVal;
|
|
7942
7957
|
}
|
|
7943
|
-
}).map((
|
|
7944
|
-
var rule = __objRest(_a, []);
|
|
7945
|
-
return rule;
|
|
7946
|
-
});
|
|
7958
|
+
}).map(({ ...rule }) => rule);
|
|
7947
7959
|
};
|
|
7948
7960
|
const onValidateSuccess = () => {
|
|
7949
7961
|
validateState.value = "success";
|
|
@@ -8016,15 +8028,12 @@ defineComponent({
|
|
|
8016
8028
|
props: formItemProps,
|
|
8017
8029
|
setup(props, ctx2) {
|
|
8018
8030
|
const formContext = inject(FORM_TOKEN);
|
|
8019
|
-
const
|
|
8031
|
+
const {
|
|
8020
8032
|
messageType: itemMessageType,
|
|
8021
8033
|
popPosition: itemPopPosition,
|
|
8022
|
-
showFeedback: itemShowFeedback
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
"popPosition",
|
|
8026
|
-
"showFeedback"
|
|
8027
|
-
]);
|
|
8034
|
+
showFeedback: itemShowFeedback,
|
|
8035
|
+
...otherProps
|
|
8036
|
+
} = toRefs(props);
|
|
8028
8037
|
const {
|
|
8029
8038
|
label,
|
|
8030
8039
|
helpTips,
|
|
@@ -8054,7 +8063,8 @@ defineComponent({
|
|
|
8054
8063
|
labelAlign: formContext.labelAlign
|
|
8055
8064
|
}));
|
|
8056
8065
|
provide(LABEL_DATA, labelData);
|
|
8057
|
-
const context = reactive(
|
|
8066
|
+
const context = reactive({
|
|
8067
|
+
...otherProps,
|
|
8058
8068
|
showFeedback,
|
|
8059
8069
|
messageType,
|
|
8060
8070
|
popPosition,
|
|
@@ -8064,7 +8074,7 @@ defineComponent({
|
|
|
8064
8074
|
validate,
|
|
8065
8075
|
resetField,
|
|
8066
8076
|
clearValidate
|
|
8067
|
-
})
|
|
8077
|
+
});
|
|
8068
8078
|
provide(FORM_ITEM_TOKEN, context);
|
|
8069
8079
|
ctx2.expose({
|
|
8070
8080
|
resetField,
|
|
@@ -8089,8 +8099,8 @@ defineComponent({
|
|
|
8089
8099
|
"extra-info": extraInfo.value
|
|
8090
8100
|
}, {
|
|
8091
8101
|
default: () => {
|
|
8092
|
-
var
|
|
8093
|
-
return [(_b = (
|
|
8102
|
+
var _a, _b;
|
|
8103
|
+
return [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)];
|
|
8094
8104
|
}
|
|
8095
8105
|
})]);
|
|
8096
8106
|
}
|
|
@@ -8165,8 +8175,8 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
|
|
|
8165
8175
|
}
|
|
8166
8176
|
class View {
|
|
8167
8177
|
constructor() {
|
|
8168
|
-
|
|
8169
|
-
|
|
8178
|
+
this.top = "50%";
|
|
8179
|
+
this.left = "50%";
|
|
8170
8180
|
}
|
|
8171
8181
|
}
|
|
8172
8182
|
const loadingProps = {
|
|
@@ -8184,13 +8194,9 @@ const loadingProps = {
|
|
|
8184
8194
|
};
|
|
8185
8195
|
class LoadingOptions {
|
|
8186
8196
|
constructor() {
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
__publicField(this, "backdrop", true);
|
|
8191
|
-
__publicField(this, "positionType", "relative");
|
|
8192
|
-
__publicField(this, "view", new View());
|
|
8193
|
-
__publicField(this, "zIndex");
|
|
8197
|
+
this.backdrop = true;
|
|
8198
|
+
this.positionType = "relative";
|
|
8199
|
+
this.view = new View();
|
|
8194
8200
|
}
|
|
8195
8201
|
}
|
|
8196
8202
|
var loading = "";
|
|
@@ -8258,7 +8264,7 @@ var Loading = defineComponent({
|
|
|
8258
8264
|
});
|
|
8259
8265
|
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
8260
8266
|
function createComponent(component, props, children = null) {
|
|
8261
|
-
const vnode = h(component,
|
|
8267
|
+
const vnode = h(component, { ...props }, children);
|
|
8262
8268
|
const container = document.createElement("div");
|
|
8263
8269
|
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
8264
8270
|
render(vnode, container);
|
|
@@ -8345,9 +8351,12 @@ const removeAttribute = (el) => {
|
|
|
8345
8351
|
};
|
|
8346
8352
|
const handleProps = (el, vprops) => {
|
|
8347
8353
|
var _a;
|
|
8348
|
-
const props =
|
|
8354
|
+
const props = {
|
|
8355
|
+
...new LoadingOptions(),
|
|
8356
|
+
...vprops
|
|
8357
|
+
};
|
|
8349
8358
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
8350
|
-
const loadingInstance = createComponent(loadingConstructor,
|
|
8359
|
+
const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
8351
8360
|
el.style.position = props.positionType;
|
|
8352
8361
|
el.options = props;
|
|
8353
8362
|
el.instance = loadingInstance;
|