vue-devui 1.0.0-rc.11 → 1.0.0-rc.14
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 +160 -149
- package/auto-complete/index.es.js +182 -10
- package/auto-complete/index.umd.js +18 -18
- package/auto-complete/style.css +1 -1
- package/badge/index.es.js +3 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +5 -3
- package/button/index.umd.js +6 -6
- package/button/style.css +1 -1
- package/checkbox/index.es.js +1 -1
- package/checkbox/index.umd.js +4 -4
- package/checkbox/style.css +1 -1
- package/collapse/index.es.js +20 -186
- package/collapse/index.umd.js +1 -1
- package/collapse/style.css +1 -1
- package/countdown/index.es.js +56 -13
- package/countdown/index.umd.js +1 -1
- package/{date-picker → date-picker-pro}/index.d.ts +0 -0
- package/date-picker-pro/index.es.js +12016 -0
- package/date-picker-pro/index.umd.js +27 -0
- package/date-picker-pro/package.json +7 -0
- package/date-picker-pro/style.css +1 -0
- package/dropdown/index.es.js +9 -2
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +248 -56
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +1 -1
- package/form/index.umd.js +4 -4
- package/icon/index.es.js +5 -3
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +193 -15
- package/input/index.umd.js +14 -14
- package/input/style.css +1 -1
- package/input-number/index.es.js +1 -4
- package/input-number/index.umd.js +1 -1
- package/layout/index.es.js +1 -1
- package/layout/index.umd.js +1 -1
- package/modal/index.es.js +5 -3
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +32 -34
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/DRangeDatePickerPro.js +3 -0
- package/nuxt/components/DatePickerPro.js +3 -0
- package/nuxt/components/OptionGroup.js +3 -0
- package/nuxt/components/Step.js +3 -0
- package/nuxt/components/Steps.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/datePickerProCommonProps.js +3 -0
- package/nuxt/components/datePickerProPanelProps.js +3 -0
- package/nuxt/components/datePickerProProps.js +3 -0
- package/nuxt/components/stepProps.js +3 -0
- package/nuxt/components/stepsProps.js +3 -0
- package/nuxt/components/timerPickerPanelProps.js +3 -0
- package/package.json +1 -1
- package/pagination/index.es.js +175 -7
- package/pagination/index.umd.js +1 -1
- package/radio/index.es.js +1 -1
- package/radio/index.umd.js +4 -4
- package/result/index.es.js +5 -3
- package/result/index.umd.js +1 -1
- package/result/style.css +1 -1
- package/search/index.es.js +198 -18
- package/search/index.umd.js +13 -13
- package/search/style.css +1 -1
- package/select/index.es.js +382 -258
- package/select/index.umd.js +15 -15
- package/select/style.css +1 -1
- package/splitter/index.es.js +182 -12
- package/splitter/index.umd.js +13 -13
- package/steps/index.d.ts +7 -0
- package/steps/index.es.js +386 -0
- package/steps/index.umd.js +1 -0
- package/{date-picker → steps}/package.json +1 -1
- package/steps/style.css +1 -0
- package/style.css +1 -1
- package/switch/index.es.js +1 -1
- package/switch/index.umd.js +4 -4
- package/table/index.es.js +851 -294
- package/table/index.umd.js +16 -16
- package/table/style.css +1 -1
- package/tabs/index.es.js +22 -12
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/textarea/index.es.js +3 -2
- package/textarea/index.umd.js +6 -6
- package/time-picker/index.d.ts +7 -0
- package/{date-picker → time-picker}/index.es.js +1537 -1040
- package/time-picker/index.umd.js +27 -0
- package/time-picker/package.json +7 -0
- package/time-picker/style.css +1 -0
- package/time-select/index.es.js +383 -258
- package/time-select/index.umd.js +16 -16
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +5 -3
- package/timeline/index.umd.js +1 -1
- package/timeline/style.css +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +1 -1
- package/tree/index.es.js +551 -88
- package/tree/index.umd.js +15 -15
- package/tree/style.css +1 -1
- package/upload/index.es.js +230 -57
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +14310 -11217
- package/vue-devui.umd.js +23 -23
- package/date-picker/index.umd.js +0 -27
- package/date-picker/style.css +0 -1
- package/nuxt/components/DatePicker.js +0 -3
- package/nuxt/components/StickSlider.js +0 -3
package/icon/index.es.js
CHANGED
|
@@ -126,7 +126,8 @@ function useIconDom(props, ctx) {
|
|
|
126
126
|
"class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns.m("spin")],
|
|
127
127
|
"style": {
|
|
128
128
|
width: iconSize.value || "",
|
|
129
|
-
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)
|
|
129
|
+
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
|
|
130
|
+
verticalAlign: "middle"
|
|
130
131
|
}
|
|
131
132
|
}, ctx.attrs), null);
|
|
132
133
|
};
|
|
@@ -162,6 +163,7 @@ function useIconDom(props, ctx) {
|
|
|
162
163
|
var Icon = defineComponent({
|
|
163
164
|
name: "DIcon",
|
|
164
165
|
props: iconProps,
|
|
166
|
+
emits: ["click"],
|
|
165
167
|
setup(props, ctx) {
|
|
166
168
|
const {
|
|
167
169
|
disabled,
|
|
@@ -177,10 +179,10 @@ var Icon = defineComponent({
|
|
|
177
179
|
[ns.m("operable")]: operable.value
|
|
178
180
|
}));
|
|
179
181
|
const onClick = (e) => {
|
|
180
|
-
e.stopImmediatePropagation();
|
|
181
182
|
if (disabled.value) {
|
|
182
|
-
|
|
183
|
+
return;
|
|
183
184
|
}
|
|
185
|
+
ctx.emit("click", e);
|
|
184
186
|
};
|
|
185
187
|
return () => {
|
|
186
188
|
var _a, _b, _c, _d;
|
package/icon/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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 m(s,l,o){let t=s;return l&&(t+=`__${l}`),o&&(t+=`--${o}`),t}function d(s,l=!1){const o=l?`.devui-${s}`:`devui-${s}`;return{b:()=>m(o),e:e=>e?m(o,e):"",m:e=>e?m(o,"",e):"",em:(e,a)=>e&&a?m(o,e,a):""}}var V="",h=n.defineComponent({name:"DSvgIcon",props:b,setup(s){const{name:l,color:o,size:t}=n.toRefs(s),c=d("svg-icon"),r=n.computed(()=>`#icon-${l.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:o.value},null)])}});function D(s){return/^((http|https):)?\/\//.test(s)}function S(s,l){const{component:o,name:t,size:c,color:r,classPrefix:u,rotate:e}=n.toRefs(s),a=d("icon"),p=n.computed(()=>typeof c.value=="number"?`${c.value}px`:c.value),f=o.value?n.resolveDynamicComponent(o.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:p.value||"",transform:`rotate(${e==null?void 0:e.value}deg)`,verticalAlign:"middle"}},l.attrs),null),P=()=>n.createVNode(f,n.mergeProps({name:t.value,color:r.value,size:p.value,class:[(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{transform:`rotate(${e==null?void 0:e.value}deg)`}},l.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:p.value,color:r.value,transform:`rotate(${e==null?void 0:e.value}deg)`}},l.attrs),null)};return{iconDom:()=>o.value?P():D(t.value)?v():$()}}var g=n.defineComponent({name:"DIcon",props:I,emits:["click"],setup(s,l){const{disabled:o,operable:t}=n.toRefs(s),{iconDom:c}=S(s,l),r=d("icon"),u=n.computed(()=>({[r.e("container")]:!0,[r.m("disabled")]:o.value,[r.m("operable")]:t.value})),e=a=>{o.value||l.emit("click",a)};return()=>{var a,p,f,v;return n.createVNode("div",{class:u.value,onClick:e},[(p=(a=l.slots).prefix)==null?void 0:p.call(a),c(),(v=(f=l.slots).suffix)==null?void 0:v.call(f)])}}}),_="",y=n.defineComponent({name:"DIconGroup",setup(s,l){const o=d("icon-group");return()=>{var t,c;return n.createVNode("div",{class:o.b()},[(c=(t=l.slots).default)==null?void 0:c.call(t)])}}}),N={title:"Icon \u56FE\u6807",category:"\u901A\u7528",status:"100%",install(s){s.component(g.name,g),s.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/icon/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-icon__container{display:inline-
|
|
1
|
+
.devui-icon__container{display:inline-block;color:var(--devui-icon-fill, #71757f)}.devui-icon__container>*:not(:last-child){vertical-align:middle;margin-right:8px}.devui-icon__container i{vertical-align:middle;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--disabled{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #adb0b8)}.devui-icon--operable:not(.devui-icon--disabled){cursor:pointer;transition:color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--operable:not(.devui-icon--disabled) i{cursor:pointer}.devui-icon--operable:hover:not(.devui-icon--disabled){color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:hover:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-hover, var(--devui-list-item-hover-bg, #f2f2f3))}.devui-icon--operable:hover:not(.devui-icon--disabled) i{color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:active:not(.devui-icon--disabled){color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable:active:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-active, var(--devui-list-item-active-bg, #f2f5fc))}.devui-icon--operable:active:not(.devui-icon--disabled) i{color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable.devui-icon__container{height:32px;line-height:32px;padding:0 8px;margin-left:-8px;border-radius:var(--devui-border-radius, 4px);transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--spin{animation:iconSpin 2.5s linear infinite}.devui-svg-icon{vertical-align:middle}@keyframes iconSpin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.devui-icon-group{display:inline-flex;align-items:center}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable){padding:8px;margin-left:0}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable):first-child{margin-left:-8px}.devui-icon-group>*:not(:first-child){margin-left:0}
|
package/image-preview/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-image-preview{position:fixed;left:0;top:0;right:0;bottom:0;z-index:calc(var(--devui-z-index-modal, 1050));display:flex;align-items:center;justify-content:center;overflow:hidden}.devui-image-preview svg,.devui-image-preview polygon,.devui-image-preview g,.devui-image-preview path{fill:var(--devui-icon-text, #71757f)}.devui-image-preview__main-image{width:auto;height:auto;max-width:90%;max-height:90%;margin-top:-20px;cursor:grab}.devui-image-preview__close-btn{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:15px;right:20px}.devui-image-preview__close-btn:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__close-btn svg{width:38px;height:18px}.devui-image-preview__arrow-left{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:50%;left:20px;transform:translateY(-50%)}.devui-image-preview__arrow-left:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__arrow-left svg{width:38px;height:18px}.devui-image-preview__arrow-right{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:50%;right:20px;transform:translateY(-50%)}.devui-image-preview__arrow-right:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__arrow-right svg{width:38px;height:18px}.devui-image-preview__toolbar{position:fixed;bottom:0;left:0;width:100%;height:50px;display:flex;align-items:center;justify-content:center;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-fullscreen-overlay, 0 12px 24px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1))}.devui-image-preview__toolbar button{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:var(--devui-text, #252b3a)}.devui-image-preview__toolbar .devui-image-preview__index{display:inline-flex;width:100px;justify-content:center;align-items:center;cursor:pointer}.devui-image-preview__toolbar>:not(:first-child){margin-left:20px}.devui-image-preview__bg{position:fixed;left:0;top:0;right:0;bottom:0;z-index:calc(var(--devui-z-index-modal, 1050) - 1);background:var(--devui-shadow, rgba(37, 43, 58, .2))
|
|
1
|
+
.devui-image-preview{position:fixed;left:0;top:0;right:0;bottom:0;z-index:calc(var(--devui-z-index-modal, 1050));display:flex;align-items:center;justify-content:center;overflow:hidden}.devui-image-preview svg,.devui-image-preview polygon,.devui-image-preview g,.devui-image-preview path{fill:var(--devui-icon-text, #71757f)}.devui-image-preview__main-image{width:auto;height:auto;max-width:90%;max-height:90%;margin-top:-20px;cursor:grab}.devui-image-preview__close-btn{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;border:none;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:15px;right:20px}.devui-image-preview__close-btn:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__close-btn svg{width:38px;height:18px}.devui-image-preview__arrow-left{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;border:none;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:50%;left:20px;transform:translateY(-50%)}.devui-image-preview__arrow-left:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__arrow-left svg{width:38px;height:18px}.devui-image-preview__arrow-right{position:fixed;z-index:var(--devui-z-index-modal, 1050);cursor:pointer;width:36px;height:36px;border-radius:50%;border:none;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1));display:inline-flex;align-items:center;justify-content:center;top:50%;right:20px;transform:translateY(-50%)}.devui-image-preview__arrow-right:hover{background:var(--devui-area, #f8f8f8)}.devui-image-preview__arrow-right svg{width:38px;height:18px}.devui-image-preview__toolbar{position:fixed;bottom:0;left:0;width:100%;height:50px;display:flex;align-items:center;justify-content:center;background:var(--devui-highlight-overlay, rgba(255, 255, 255, .8));box-shadow:var(--devui-shadow-length-fullscreen-overlay, 0 12px 24px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1))}.devui-image-preview__toolbar button{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:var(--devui-text, #252b3a);border:none;background-color:transparent;cursor:pointer;outline:0;padding:0}.devui-image-preview__toolbar .devui-image-preview__index{display:inline-flex;width:100px;justify-content:center;align-items:center;cursor:pointer}.devui-image-preview__toolbar>:not(:first-child){margin-left:20px}.devui-image-preview__bg{position:fixed;left:0;top:0;right:0;bottom:0;z-index:calc(var(--devui-z-index-modal, 1050) - 1);background:var(--devui-shadow, rgba(37, 43, 58, .2))}
|
package/input/index.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, watch, provide, reactive, onUnmounted, Transition, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, shallowRef } from "vue";
|
|
32
|
+
import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, watch, provide, reactive, onUnmounted, Transition, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, getCurrentInstance, shallowRef } from "vue";
|
|
33
33
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
34
34
|
const DEFAULT_PREFIX = "icon";
|
|
35
35
|
const iconProps = {
|
|
@@ -158,7 +158,8 @@ function useIconDom(props, ctx) {
|
|
|
158
158
|
"class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
|
|
159
159
|
"style": {
|
|
160
160
|
width: iconSize.value || "",
|
|
161
|
-
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)
|
|
161
|
+
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
|
|
162
|
+
verticalAlign: "middle"
|
|
162
163
|
}
|
|
163
164
|
}, ctx.attrs), null);
|
|
164
165
|
};
|
|
@@ -194,6 +195,7 @@ function useIconDom(props, ctx) {
|
|
|
194
195
|
var Icon = defineComponent({
|
|
195
196
|
name: "DIcon",
|
|
196
197
|
props: iconProps,
|
|
198
|
+
emits: ["click"],
|
|
197
199
|
setup(props, ctx) {
|
|
198
200
|
const {
|
|
199
201
|
disabled,
|
|
@@ -209,10 +211,10 @@ var Icon = defineComponent({
|
|
|
209
211
|
[ns2.m("operable")]: operable.value
|
|
210
212
|
}));
|
|
211
213
|
const onClick = (e) => {
|
|
212
|
-
e.stopImmediatePropagation();
|
|
213
214
|
if (disabled.value) {
|
|
214
|
-
|
|
215
|
+
return;
|
|
215
216
|
}
|
|
217
|
+
ctx.emit("click", e);
|
|
216
218
|
};
|
|
217
219
|
return () => {
|
|
218
220
|
var _a, _b, _c, _d;
|
|
@@ -258,6 +260,10 @@ const inputProps = {
|
|
|
258
260
|
clearable: {
|
|
259
261
|
type: Boolean,
|
|
260
262
|
default: false
|
|
263
|
+
},
|
|
264
|
+
placeholder: {
|
|
265
|
+
type: String,
|
|
266
|
+
default: ""
|
|
261
267
|
}
|
|
262
268
|
};
|
|
263
269
|
const formItemProps = {
|
|
@@ -1076,10 +1082,10 @@ var lodash = { exports: {} };
|
|
|
1076
1082
|
}();
|
|
1077
1083
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1078
1084
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.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;
|
|
1079
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
1085
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1080
1086
|
var metaMap = WeakMap2 && new WeakMap2();
|
|
1081
1087
|
var realNames = {};
|
|
1082
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
1088
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
|
|
1083
1089
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1084
1090
|
function lodash2(value) {
|
|
1085
1091
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1435,7 +1441,7 @@ var lodash = { exports: {} };
|
|
|
1435
1441
|
function baseAt(object4, paths) {
|
|
1436
1442
|
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object4 == null;
|
|
1437
1443
|
while (++index2 < length) {
|
|
1438
|
-
result2[index2] = skip ? undefined$1 :
|
|
1444
|
+
result2[index2] = skip ? undefined$1 : get2(object4, paths[index2]);
|
|
1439
1445
|
}
|
|
1440
1446
|
return result2;
|
|
1441
1447
|
}
|
|
@@ -1880,7 +1886,7 @@ var lodash = { exports: {} };
|
|
|
1880
1886
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
1881
1887
|
}
|
|
1882
1888
|
return function(object4) {
|
|
1883
|
-
var objValue =
|
|
1889
|
+
var objValue = get2(object4, path);
|
|
1884
1890
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object4, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1885
1891
|
};
|
|
1886
1892
|
}
|
|
@@ -2771,8 +2777,8 @@ var lodash = { exports: {} };
|
|
|
2771
2777
|
return func(number4);
|
|
2772
2778
|
};
|
|
2773
2779
|
}
|
|
2774
|
-
var createSet = !(
|
|
2775
|
-
return new
|
|
2780
|
+
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
2781
|
+
return new Set2(values2);
|
|
2776
2782
|
};
|
|
2777
2783
|
function createToPairs(keysFunc) {
|
|
2778
2784
|
return function(object4) {
|
|
@@ -3071,7 +3077,7 @@ var lodash = { exports: {} };
|
|
|
3071
3077
|
return result2;
|
|
3072
3078
|
};
|
|
3073
3079
|
var getTag = baseGetTag;
|
|
3074
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
3080
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
3075
3081
|
getTag = function(value) {
|
|
3076
3082
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3077
3083
|
if (ctorString) {
|
|
@@ -4613,7 +4619,7 @@ var lodash = { exports: {} };
|
|
|
4613
4619
|
function functionsIn(object4) {
|
|
4614
4620
|
return object4 == null ? [] : baseFunctions(object4, keysIn(object4));
|
|
4615
4621
|
}
|
|
4616
|
-
function
|
|
4622
|
+
function get2(object4, path, defaultValue) {
|
|
4617
4623
|
var result2 = object4 == null ? undefined$1 : baseGet(object4, path);
|
|
4618
4624
|
return result2 === undefined$1 ? defaultValue : result2;
|
|
4619
4625
|
}
|
|
@@ -5468,7 +5474,7 @@ var lodash = { exports: {} };
|
|
|
5468
5474
|
lodash2.forInRight = forInRight;
|
|
5469
5475
|
lodash2.forOwn = forOwn;
|
|
5470
5476
|
lodash2.forOwnRight = forOwnRight;
|
|
5471
|
-
lodash2.get =
|
|
5477
|
+
lodash2.get = get2;
|
|
5472
5478
|
lodash2.gt = gt;
|
|
5473
5479
|
lodash2.gte = gte;
|
|
5474
5480
|
lodash2.has = has;
|
|
@@ -7754,7 +7760,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7754
7760
|
return rule.trigger === triggerVal;
|
|
7755
7761
|
}
|
|
7756
7762
|
}).map((_a) => {
|
|
7757
|
-
var
|
|
7763
|
+
var rule = __objRest(_a, []);
|
|
7758
7764
|
return rule;
|
|
7759
7765
|
});
|
|
7760
7766
|
};
|
|
@@ -7976,6 +7982,7 @@ function useInputEvent(isFocus, props, ctx, focus) {
|
|
|
7976
7982
|
}
|
|
7977
7983
|
};
|
|
7978
7984
|
const onInput = (e) => {
|
|
7985
|
+
ctx.emit("input", e.target.value);
|
|
7979
7986
|
ctx.emit("update:modelValue", e.target.value);
|
|
7980
7987
|
};
|
|
7981
7988
|
const onChange = (e) => {
|
|
@@ -8008,12 +8015,182 @@ function useInputFunction(input2) {
|
|
|
8008
8015
|
return { select, focus, blur };
|
|
8009
8016
|
}
|
|
8010
8017
|
var input = "";
|
|
8018
|
+
function deepAssign(...objects) {
|
|
8019
|
+
const isObject2 = (obj) => obj && typeof obj === "object";
|
|
8020
|
+
return objects.reduce((prev, from) => {
|
|
8021
|
+
Object.keys(from).forEach((key) => {
|
|
8022
|
+
const pVal = prev[key];
|
|
8023
|
+
const oVal = from[key];
|
|
8024
|
+
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
8025
|
+
prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
|
|
8026
|
+
} else if (isObject2(pVal) && isObject2(oVal)) {
|
|
8027
|
+
prev[key] = deepAssign(pVal, oVal);
|
|
8028
|
+
} else {
|
|
8029
|
+
prev[key] = oVal;
|
|
8030
|
+
}
|
|
8031
|
+
});
|
|
8032
|
+
return prev;
|
|
8033
|
+
}, {});
|
|
8034
|
+
}
|
|
8035
|
+
var zhCN = {
|
|
8036
|
+
pagination: {
|
|
8037
|
+
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
8038
|
+
goToText: "\u8DF3\u81F3"
|
|
8039
|
+
},
|
|
8040
|
+
accordion: {
|
|
8041
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
8042
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
8043
|
+
},
|
|
8044
|
+
autoCompleteDropdown: {
|
|
8045
|
+
latestInput: "\u6700\u8FD1\u8F93\u5165"
|
|
8046
|
+
},
|
|
8047
|
+
cascaderList: {
|
|
8048
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
8049
|
+
},
|
|
8050
|
+
colorPicker: {
|
|
8051
|
+
foundationPanel: "\u57FA\u7840\u9762\u677F",
|
|
8052
|
+
advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
|
|
8053
|
+
},
|
|
8054
|
+
datePickerPro: {
|
|
8055
|
+
ok: "\u786E\u5B9A",
|
|
8056
|
+
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
8057
|
+
month1: "1\u6708",
|
|
8058
|
+
month2: "2\u6708",
|
|
8059
|
+
month3: "3\u6708",
|
|
8060
|
+
month4: "4\u6708",
|
|
8061
|
+
month5: "5\u6708",
|
|
8062
|
+
month6: "6\u6708",
|
|
8063
|
+
month7: "7\u6708",
|
|
8064
|
+
month8: "8\u6708",
|
|
8065
|
+
month9: "9\u6708",
|
|
8066
|
+
month10: "10\u6708",
|
|
8067
|
+
month11: "11\u6708",
|
|
8068
|
+
month12: "12\u6708",
|
|
8069
|
+
year: "\u5E74",
|
|
8070
|
+
startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
8071
|
+
endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
8072
|
+
getWeekDays() {
|
|
8073
|
+
return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
8074
|
+
},
|
|
8075
|
+
getTimeArr() {
|
|
8076
|
+
return ["\u65F6", "\u5206", "\u79D2"];
|
|
8077
|
+
},
|
|
8078
|
+
getYearMonthStr(year, month) {
|
|
8079
|
+
return `${year}\u5E74${month}\u6708`;
|
|
8080
|
+
}
|
|
8081
|
+
},
|
|
8082
|
+
editableSelect: {
|
|
8083
|
+
noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
8084
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
8085
|
+
},
|
|
8086
|
+
input: {
|
|
8087
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
8088
|
+
},
|
|
8089
|
+
splitterBar: {
|
|
8090
|
+
collapse: "\u6536\u8D77",
|
|
8091
|
+
expand: "\u5C55\u5F00"
|
|
8092
|
+
},
|
|
8093
|
+
stepsGuide: {
|
|
8094
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
8095
|
+
continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
|
|
8096
|
+
ok: "\u6211\u77E5\u9053\u5566"
|
|
8097
|
+
},
|
|
8098
|
+
table: {
|
|
8099
|
+
selectAll: "\u5168\u9009",
|
|
8100
|
+
ok: "\u786E\u5B9A"
|
|
8101
|
+
},
|
|
8102
|
+
timePopup: {
|
|
8103
|
+
ok: "\u786E\u5B9A"
|
|
8104
|
+
},
|
|
8105
|
+
transfer: {
|
|
8106
|
+
unit: "\u9879",
|
|
8107
|
+
panelUnit: "\u9879",
|
|
8108
|
+
headerUnit: "\u9879",
|
|
8109
|
+
noData: "\u6682\u65E0\u6570\u636E",
|
|
8110
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
|
|
8111
|
+
},
|
|
8112
|
+
tree: {
|
|
8113
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
8114
|
+
newNode: "\u65B0\u8282\u70B9",
|
|
8115
|
+
selectPlaceholder: "\u8BF7\u9009\u62E9"
|
|
8116
|
+
},
|
|
8117
|
+
upload: {
|
|
8118
|
+
placeholder: "\u9009\u62E9\u6587\u4EF6",
|
|
8119
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
8120
|
+
return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
8121
|
+
},
|
|
8122
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
8123
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
8124
|
+
},
|
|
8125
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
8126
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
8127
|
+
},
|
|
8128
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
8129
|
+
return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
8130
|
+
}
|
|
8131
|
+
},
|
|
8132
|
+
search: {
|
|
8133
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
|
|
8134
|
+
},
|
|
8135
|
+
select: {
|
|
8136
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
8137
|
+
noDataText: "\u65E0\u6570\u636E",
|
|
8138
|
+
noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
8139
|
+
loadingText: "\u52A0\u8F7D\u4E2D..."
|
|
8140
|
+
},
|
|
8141
|
+
tagInput: {
|
|
8142
|
+
maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
|
|
8143
|
+
},
|
|
8144
|
+
timeSelect: {
|
|
8145
|
+
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
8146
|
+
}
|
|
8147
|
+
};
|
|
8148
|
+
const lang = ref("zh-CN");
|
|
8149
|
+
let langMessages = reactive({
|
|
8150
|
+
[lang.value]: zhCN
|
|
8151
|
+
});
|
|
8152
|
+
const Locale = {
|
|
8153
|
+
messages() {
|
|
8154
|
+
return langMessages[lang.value];
|
|
8155
|
+
},
|
|
8156
|
+
lang() {
|
|
8157
|
+
return lang.value;
|
|
8158
|
+
},
|
|
8159
|
+
use(newLang, newMessages2) {
|
|
8160
|
+
lang.value = newLang;
|
|
8161
|
+
this.add({ [newLang]: newMessages2 });
|
|
8162
|
+
},
|
|
8163
|
+
add(newMessages2 = {}) {
|
|
8164
|
+
langMessages = deepAssign(langMessages, newMessages2);
|
|
8165
|
+
}
|
|
8166
|
+
};
|
|
8167
|
+
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
8168
|
+
function get(object4, path) {
|
|
8169
|
+
const keys = path.split(".");
|
|
8170
|
+
let result = object4;
|
|
8171
|
+
keys.forEach((key) => {
|
|
8172
|
+
var _a;
|
|
8173
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
8174
|
+
});
|
|
8175
|
+
return result;
|
|
8176
|
+
}
|
|
8177
|
+
function createI18nTranslate(name, app, newPrefix) {
|
|
8178
|
+
const prefix = newPrefix || camelize(name) + ".";
|
|
8179
|
+
return (path) => {
|
|
8180
|
+
var _a;
|
|
8181
|
+
const messages2 = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
|
|
8182
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
8183
|
+
return message;
|
|
8184
|
+
};
|
|
8185
|
+
}
|
|
8011
8186
|
var Input = defineComponent({
|
|
8012
8187
|
name: "DInput",
|
|
8013
8188
|
inheritAttrs: false,
|
|
8014
8189
|
props: inputProps,
|
|
8015
8190
|
emits: ["update:modelValue", "focus", "blur", "input", "change", "keydown", "clear"],
|
|
8016
8191
|
setup(props, ctx) {
|
|
8192
|
+
const app = getCurrentInstance();
|
|
8193
|
+
const t = createI18nTranslate("DInput", app);
|
|
8017
8194
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
8018
8195
|
const {
|
|
8019
8196
|
modelValue
|
|
@@ -8079,7 +8256,8 @@ var Input = defineComponent({
|
|
|
8079
8256
|
"ref": input2,
|
|
8080
8257
|
"value": modelValue.value,
|
|
8081
8258
|
"disabled": inputDisabled.value,
|
|
8082
|
-
"class": ns2.e("inner")
|
|
8259
|
+
"class": ns2.e("inner"),
|
|
8260
|
+
"placeholder": props.placeholder || t("placeholder")
|
|
8083
8261
|
}, otherAttrs, {
|
|
8084
8262
|
"type": props.showPassword ? passwordVisible.value ? "text" : "password" : "text",
|
|
8085
8263
|
"onInput": onInput,
|