vxe-pc-ui 4.17.1 → 4.17.2
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/dist/all.esm.js +265 -144
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +73 -49
- package/es/number-input/src/number-input.js +28 -24
- package/es/password-input/src/password-input.js +128 -61
- package/es/password-input/style.css +5 -0
- package/es/password-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/textarea/src/textarea.js +37 -11
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-password-input/style.css +5 -0
- package/es/vxe-password-input/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +287 -164
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +77 -52
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +31 -26
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +134 -70
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/password-input/style/style.css +5 -0
- package/lib/password-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +40 -12
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-password-input/style/style.css +5 -0
- package/lib/vxe-password-input/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.ts +79 -54
- package/packages/number-input/src/number-input.ts +29 -26
- package/packages/password-input/src/password-input.ts +140 -68
- package/packages/textarea/src/textarea.ts +43 -15
- package/styles/components/password-input.scss +4 -0
- package/types/components/password-input.d.ts +2 -0
- /package/es/icon/{iconfont.1786796113388.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/es/icon/{iconfont.1786796113388.woff → iconfont.1786868252000.woff} +0 -0
- /package/es/icon/{iconfont.1786796113388.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/es/{iconfont.1786796113388.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/es/{iconfont.1786796113388.woff → iconfont.1786868252000.woff} +0 -0
- /package/es/{iconfont.1786796113388.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1786796113388.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1786796113388.woff → iconfont.1786868252000.woff} +0 -0
- /package/lib/icon/style/{iconfont.1786796113388.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/lib/{iconfont.1786796113388.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/lib/{iconfont.1786796113388.woff → iconfont.1786868252000.woff} +0 -0
- /package/lib/{iconfont.1786796113388.woff2 → iconfont.1786868252000.woff2} +0 -0
|
@@ -109,7 +109,6 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
109
109
|
reactData,
|
|
110
110
|
getRefMaps: () => refMaps
|
|
111
111
|
};
|
|
112
|
-
let textareaMethods = {};
|
|
113
112
|
const computeFormReadonly = (0, _vue.computed)(() => {
|
|
114
113
|
const {
|
|
115
114
|
readonly
|
|
@@ -185,6 +184,24 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
185
184
|
maxRows: 10
|
|
186
185
|
}, (0, _ui.getConfig)().textarea.autoSize, autoSize);
|
|
187
186
|
});
|
|
187
|
+
const computeDomValue = (0, _vue.computed)(() => {
|
|
188
|
+
const {
|
|
189
|
+
inputValue
|
|
190
|
+
} = reactData;
|
|
191
|
+
return inputValue;
|
|
192
|
+
});
|
|
193
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
194
|
+
emit(type, (0, _ui.createEvent)(evnt, {
|
|
195
|
+
$textarea: $xeTextarea
|
|
196
|
+
}, params));
|
|
197
|
+
};
|
|
198
|
+
const updateDomValue = () => {
|
|
199
|
+
const domValue = computeDomValue.value;
|
|
200
|
+
const taElem = refTextarea.value;
|
|
201
|
+
if (taElem) {
|
|
202
|
+
taElem.value = _xeUtils.default.eqNull(domValue) ? '' : '' + domValue;
|
|
203
|
+
}
|
|
204
|
+
};
|
|
188
205
|
const updateAutoTxt = () => {
|
|
189
206
|
const {
|
|
190
207
|
size,
|
|
@@ -256,7 +273,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
256
273
|
};
|
|
257
274
|
const triggerEvent = evnt => {
|
|
258
275
|
const value = reactData.inputValue;
|
|
259
|
-
|
|
276
|
+
dispatchEvent(evnt.type, {
|
|
260
277
|
value
|
|
261
278
|
}, evnt);
|
|
262
279
|
};
|
|
@@ -291,7 +308,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
291
308
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
292
309
|
}
|
|
293
310
|
}
|
|
294
|
-
|
|
311
|
+
dispatchEvent('input', {
|
|
295
312
|
value
|
|
296
313
|
}, evnt);
|
|
297
314
|
handleResize();
|
|
@@ -305,7 +322,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
305
322
|
} else {
|
|
306
323
|
handleChange(reactData.inputValue, evnt);
|
|
307
324
|
}
|
|
308
|
-
|
|
325
|
+
dispatchEvent('lazy-change', {
|
|
309
326
|
value: reactData.inputValue
|
|
310
327
|
}, evnt);
|
|
311
328
|
};
|
|
@@ -319,16 +336,12 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
319
336
|
if (!immediate) {
|
|
320
337
|
handleChange(inputValue, evnt);
|
|
321
338
|
}
|
|
322
|
-
|
|
339
|
+
dispatchEvent('blur', {
|
|
323
340
|
value: inputValue
|
|
324
341
|
}, evnt);
|
|
325
342
|
};
|
|
326
|
-
textareaMethods = {
|
|
327
|
-
dispatchEvent
|
|
328
|
-
emit(type, (0, _ui.createEvent)(evnt, {
|
|
329
|
-
$textarea: $xeTextarea
|
|
330
|
-
}, params));
|
|
331
|
-
},
|
|
343
|
+
const textareaMethods = {
|
|
344
|
+
dispatchEvent,
|
|
332
345
|
focus() {
|
|
333
346
|
const textElem = refTextarea.value;
|
|
334
347
|
textElem.focus();
|
|
@@ -387,7 +400,6 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
387
400
|
}, [(0, _vue.h)('textarea', {
|
|
388
401
|
ref: refTextarea,
|
|
389
402
|
class: 'vxe-textarea--inner' + (inputClassName ? ' ' + inputClassName : ''),
|
|
390
|
-
value: inputValue,
|
|
391
403
|
name: props.name,
|
|
392
404
|
placeholder: inpPlaceholder,
|
|
393
405
|
maxlength: inpMaxLength,
|
|
@@ -434,6 +446,22 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
434
446
|
updateAutoTxt();
|
|
435
447
|
handleResize();
|
|
436
448
|
});
|
|
449
|
+
const rDvFlag = (0, _vue.ref)(0);
|
|
450
|
+
(0, _vue.watch)(computeFormReadonly, () => {
|
|
451
|
+
rDvFlag.value++;
|
|
452
|
+
});
|
|
453
|
+
(0, _vue.watch)(computeDomValue, () => {
|
|
454
|
+
rDvFlag.value++;
|
|
455
|
+
});
|
|
456
|
+
(0, _vue.watch)(rDvFlag, () => {
|
|
457
|
+
updateDomValue();
|
|
458
|
+
});
|
|
459
|
+
(0, _vue.onMounted)(() => {
|
|
460
|
+
updateDomValue();
|
|
461
|
+
(0, _vue.nextTick)(() => {
|
|
462
|
+
updateDomValue();
|
|
463
|
+
});
|
|
464
|
+
});
|
|
437
465
|
(0, _vue.nextTick)(() => {
|
|
438
466
|
const {
|
|
439
467
|
autosize,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_utils=require("../../ui/src/utils"),_log=require("../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let warnLog=(0,_log.createComponentLog)("textarea").warnLog,autoTxtElem;var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTextarea",props:{modelValue:[String,Number],className:String,inputClassName:{type:String,default:()=>(0,_ui.getConfig)().textarea.inputClassName},immediate:{type:Boolean,default:!0},name:String,readonly:{type:Boolean,default:null},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:null},placeholder:String,maxLength:[String,Number],trim:{type:Boolean,default:()=>(0,_ui.getConfig)().textarea.trim},rows:{type:[String,Number],default:null},cols:{type:[String,Number],default:null},showWordCount:Boolean,countMethod:Function,autosize:{type:[Boolean,Object],default:null},autoSize:{type:[Boolean,Object],default:null},form:String,resize:{type:String,default:()=>(0,_ui.getConfig)().textarea.resize},size:{type:String,default:()=>(0,_ui.getConfig)().textarea.size||(0,_ui.getConfig)().size},maxlength:[String,Number]},emits:["update:modelValue","input","keydown","keyup","click","change","focus","blur","lazy-change"],setup(f,e){let
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_utils=require("../../ui/src/utils"),_log=require("../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let warnLog=(0,_log.createComponentLog)("textarea").warnLog,autoTxtElem;var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTextarea",props:{modelValue:[String,Number],className:String,inputClassName:{type:String,default:()=>(0,_ui.getConfig)().textarea.inputClassName},immediate:{type:Boolean,default:!0},name:String,readonly:{type:Boolean,default:null},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:null},placeholder:String,maxLength:[String,Number],trim:{type:Boolean,default:()=>(0,_ui.getConfig)().textarea.trim},rows:{type:[String,Number],default:null},cols:{type:[String,Number],default:null},showWordCount:Boolean,countMethod:Function,autosize:{type:[Boolean,Object],default:null},autoSize:{type:[Boolean,Object],default:null},form:String,resize:{type:String,default:()=>(0,_ui.getConfig)().textarea.resize},size:{type:String,default:()=>(0,_ui.getConfig)().textarea.size||(0,_ui.getConfig)().size},maxlength:[String,Number]},emits:["update:modelValue","input","keydown","keyup","click","change","focus","blur","lazy-change"],setup(f,e){let a=e.emit,l=(0,_vue.inject)("$xeForm",null),i=(0,_vue.inject)("xeFormItemInfo",null);var t=_xeUtils.default.uniqueId();let h=(0,_ui.useSize)(f).computeSize,z=(0,_vue.reactive)({inputValue:f.modelValue}),y=(0,_vue.ref)(),b=(0,_vue.ref)(),w=(0,_vue.ref)(),u={refElem:y,refTextarea:b},r={xID:t,props:f,context:e,reactData:z,getRefMaps:()=>u},S=(0,_vue.computed)(()=>{var e=f.readonly;return null===e?!!l&&l.props.readonly:e}),C=(0,_vue.computed)(()=>{var e=f.disabled;return null===e?!!l&&l.props.disabled:e}),N=(0,_vue.computed)(()=>{var{editable:e,readonly:t}=f;return t||!e}),V=(0,_vue.computed)(()=>{var e=f.placeholder;return(e=e||(0,_ui.getConfig)().textarea.placeholder)?(0,_utils.getFuncText)(e):(0,_ui.getI18n)("vxe.base.pleaseInput")}),T=(0,_vue.computed)(()=>{var{maxLength:e,maxlength:t}=f;return e||t}),E=(0,_vue.computed)(()=>_xeUtils.default.getSize(z.inputValue)),U=(0,_vue.computed)(()=>{var e=E.value,t=T.value;return t&&e>_xeUtils.default.toNumber(t)}),o=(0,_vue.computed)(()=>{var{autosize:e,autoSize:t}=f;return e||(0,_ui.getConfig)().textarea.autosize?Object.assign({minRows:1,maxRows:10},(0,_ui.getConfig)().textarea.autosize,e):Object.assign({minRows:1,maxRows:10},(0,_ui.getConfig)().textarea.autoSize,t)}),n=(0,_vue.computed)(()=>{var e=z.inputValue;return e}),s=(e,t,u)=>{a(e,(0,_ui.createEvent)(u,{$textarea:r},t))},d=()=>{var e=n.value,t=b.value;t&&(t.value=_xeUtils.default.eqNull(e)?"":""+e)},v=()=>{var e,{size:t,autosize:u,autoSize:a}=f,l=z.inputValue;(u||a)&&(u=S.value,(autoTxtElem=autoTxtElem||document.createElement("div")).parentNode||document.body.appendChild(autoTxtElem),a=b.value,e=w.value,u=u?e:a)&&(e=getComputedStyle(u),autoTxtElem.className=["vxe-textarea--autosize",t?"size--"+t:""].join(" "),autoTxtElem.style.width=u.clientWidth+"px",autoTxtElem.style.padding=e.padding,autoTxtElem.innerText=(""+(l||" ")).replace(/\n$/,"\n "))},m=()=>{var{autosize:e,autoSize:t}=f;(e||t)&&(0,_vue.nextTick)(()=>{var t=o.value,u=S.value,{minRows:t,maxRows:a}=t,l=b.value,i=w.value,u=u?i:l;if(u){var i=autoTxtElem.clientHeight,l=getComputedStyle(u),r=_xeUtils.default.toNumber(l.lineHeight),l=_xeUtils.default.toNumber(l.paddingTop)+_xeUtils.default.toNumber(l.paddingBottom)+_xeUtils.default.toNumber(l.borderTopWidth)+_xeUtils.default.toNumber(l.borderBottomWidth),i=(i-l)/r,i=i&&/[0-9]/.test(""+i)?i:Math.floor(i)+1;let e=i;i<t?e=t:a<i&&(e=a),u.style.height=e*r+l+"px"}})},q=e=>{var t=z.inputValue;s(e.type,{value:t},e)},p=(e,t)=>{f.trim&&(e=(""+(e||"")).trim()),z.inputValue=e,a("update:modelValue",e),_xeUtils.default.toValueString(f.modelValue)!==e&&(c.dispatchEvent("change",{value:e},t),l)&&i&&l.triggerItemEvent(t,i.itemConfig.field,e)},B=e=>{var t=f.immediate,u=e.target.value;z.inputValue=u,t?p(u,e):l&&i&&l.triggerItemEvent(e,i.itemConfig.field,u),s("input",{value:u},e),m()},k=e=>{var t=f.immediate;t?q(e):p(z.inputValue,e),s("lazy-change",{value:z.inputValue},e)},j=e=>{var t=f.immediate,u=z.inputValue;t||p(u,e),s("blur",{value:u},e)},c={dispatchEvent:s,focus(){return b.value.focus(),(0,_vue.nextTick)()},blur(){return b.value.blur(),(0,_vue.nextTick)()}};Object.assign(r,c);(0,_vue.watch)(()=>f.modelValue,e=>{z.inputValue=e,v()});let _=(0,_vue.ref)(0),x=((0,_vue.watch)(S,()=>{_.value++}),(0,_vue.watch)(o,()=>{_.value++}),(0,_vue.watch)(()=>f.autoSize,()=>{_.value++}),(0,_vue.watch)(()=>f.autosize,()=>{_.value++}),(0,_vue.watch)(_,()=>{v(),m()}),(0,_vue.ref)(0));return(0,_vue.watch)(S,()=>{x.value++}),(0,_vue.watch)(n,()=>{x.value++}),(0,_vue.watch)(x,()=>{d()}),(0,_vue.onMounted)(()=>{d(),(0,_vue.nextTick)(()=>{d()})}),(0,_vue.nextTick)(()=>{var{autosize:e,autoSize:t}=f;e&&warnLog("vxe.error.delProp",["autosize","auto-size"]),(e||t)&&(v(),m())}),r.renderVN=()=>{var{className:e,inputClassName:t,resize:u,autosize:a,autoSize:l,showWordCount:i,countMethod:r,rows:o,cols:n}=f,s=z.inputValue,d=h.value,v=C.value,m=U.value,p=E.value,c=N.value,_=S.value,x=V.value,g=T.value;return _?(0,_vue.h)("div",{ref:y,class:["vxe-textarea--readonly",e]},[(0,_vue.h)("div",{ref:w,class:"vxe-textarea--content"},s)]):(0,_vue.h)("div",{ref:y,class:["vxe-textarea",e,{["size--"+d]:d,"is--autosize":a||l,"is--count":i,"is--disabled":v,"is--rows":!_xeUtils.default.eqNull(o),"is--cols":!_xeUtils.default.eqNull(n)}],spellcheck:!1},[(0,_vue.h)("textarea",{ref:b,class:"vxe-textarea--inner"+(t?" "+t:""),name:f.name,placeholder:x,maxlength:g,readonly:c,disabled:v,rows:o,cols:n,style:u?{resize:u}:null,onInput:B,onChange:k,onKeydown:q,onKeyup:q,onClick:q,onFocus:q,onBlur:j}),i?(0,_vue.h)("span",{class:["vxe-textarea--count",{"is--error":m}]},r?""+r({value:s}):p+(g?"/"+g:"")):null])},r},render(){return this.renderVN()}});
|
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
});
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
const version = exports.version = "4.17.
|
|
29
|
+
const version = exports.version = "4.17.2";
|
|
30
30
|
_core.VxeUI.uiVersion = version;
|
|
31
31
|
_core.VxeUI.dynamicApp = _dynamics.dynamicApp;
|
|
32
32
|
function config(options) {
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log");let version=exports.version="4.17.1";function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!0},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showErrorMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{emptyValue:null,multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300,defaultPlacement:"top"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});let iconPrefix="vxe-icon-";(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",TAG_CLOSE:iconPrefix+"close",TAG_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"});var _default=exports.default=_core.VxeUI;
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log");let version=exports.version="4.17.2";function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!0},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showErrorMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{emptyValue:null,multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300,defaultPlacement:"top"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});let iconPrefix="vxe-icon-";(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",TAG_CLOSE:iconPrefix+"close",TAG_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -9,7 +9,7 @@ var _core = require("@vxe-ui/core");
|
|
|
9
9
|
const {
|
|
10
10
|
log
|
|
11
11
|
} = _core.VxeUI;
|
|
12
|
-
const uiVersion = `ui v${"4.17.
|
|
12
|
+
const uiVersion = `ui v${"4.17.2"}`;
|
|
13
13
|
function createComponentLog(name) {
|
|
14
14
|
const tableVersion = _core.VxeUI.tableVersion ? `table v${_core.VxeUI.tableVersion}` : '';
|
|
15
15
|
const ganttVersion = _core.VxeUI.ganttVersion ? `gantt v${_core.VxeUI.ganttVersion}` : '';
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,uiVersion="ui v4.17.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,uiVersion="ui v4.17.2";function createComponentLog(e){var r=_core.VxeUI.tableVersion?"table v"+_core.VxeUI.tableVersion:"",o=_core.VxeUI.ganttVersion?"gantt v"+_core.VxeUI.ganttVersion:"",n=_core.VxeUI.designVersion?"design v"+_core.VxeUI.designVersion:"",r=[uiVersion,r,o,n].filter(e=>e).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}let warnLog=exports.warnLog=log.create("warn",uiVersion),errLog=exports.errLog=log.create("error",uiVersion);
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
--vxe-ui-password-input-current-height: var(--vxe-ui-input-height-mini);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.vxe-password-input--readonly {
|
|
27
|
+
color: var(--vxe-ui-font-color);
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
26
31
|
.vxe-password-input--wrapper {
|
|
27
32
|
flex-grow: 1;
|
|
28
33
|
overflow: hidden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-password-input{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-default);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-default)}.vxe-password-input.size--xlarge{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-xlarge);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-xlarge)}.vxe-password-input.size--large{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-large);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-large)}.vxe-password-input.size--medium{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-medium);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-medium)}.vxe-password-input.size--small{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-small);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-small)}.vxe-password-input.size--mini{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-mini);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-mini)}.vxe-password-input--wrapper{flex-grow:1;overflow:hidden}.vxe-password-input--inner{display:block;width:100%;height:100%;outline:0;margin:0;font-size:inherit;font-family:inherit;line-height:inherit;padding:0 .5em;color:var(--vxe-ui-font-color);border:0;border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-layout-background-color);box-shadow:none}.vxe-password-input--inner[disabled]{cursor:not-allowed;color:var(--vxe-ui-font-disabled-color);background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input--inner::-moz-placeholder{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--inner::placeholder{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--inner::-webkit-autofill{background-color:var(--vxe-ui-layout-background-color)}.vxe-password-input.is--disabled{background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input.is--disabled .vxe-password-input--clear-icon,.vxe-password-input.is--disabled .vxe-password-input--control-icon,.vxe-password-input.is--disabled .vxe-password-input--prefix,.vxe-password-input.is--disabled .vxe-password-input--suffix{cursor:not-allowed}.vxe-password-input.is--disabled .vxe-password-input--prefix,.vxe-password-input.is--disabled .vxe-password-input--suffix{background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input{display:inline-flex;flex-direction:row;position:relative;border-radius:var(--vxe-ui-base-border-radius);width:180px;border:1px solid var(--vxe-ui-input-border-color)}.vxe-password-input.is--active{border:1px solid var(--vxe-ui-font-primary-color)}.vxe-password-input.show--clear:hover .vxe-password-input--clear-icon{display:block}.vxe-password-input--prefix,.vxe-password-input--suffix{display:flex;flex-direction:row;align-items:center;flex-shrink:0;background-color:var(--vxe-ui-layout-background-color)}.vxe-password-input--prefix{border-radius:var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius)}.vxe-password-input--suffix{border-radius:0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0}.vxe-password-input--clear-icon,.vxe-password-input--control-icon,.vxe-password-input--prefix-icon,.vxe-password-input--suffix-icon{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--prefix-icon{padding-left:.5em}.vxe-password-input--clear-icon,.vxe-password-input--control-icon,.vxe-password-input--suffix-icon{padding-right:.5em}.vxe-password-input--clear-icon,.vxe-password-input--control-icon{height:100%;cursor:pointer}.vxe-password-input--clear-icon{display:none}.vxe-password-input--clear-icon:hover{color:var(--vxe-ui-font-color)}.vxe-password-input--clear-icon:active{color:var(--vxe-ui-font-primary-color)}.vxe-password-input--number-btn{height:50%;display:flex;align-items:center;justify-content:center}.vxe-password-input--number-btn:hover{color:var(--vxe-ui-font-color)}.vxe-password-input--number-btn:active{color:var(--vxe-ui-font-primary-color)}.vxe-password-input--number-icon{display:flex;flex-direction:column;height:100%}.vxe-password-input--number-icon .vxe-password-input--number-btn.is--disabled{cursor:no-drop;color:var(--vxe-ui-font-disabled-color)}.vxe-password-input--count{flex-shrink:0;color:var(--vxe-ui-input-count-color);background-color:var(--vxe-ui-layout-background-color);padding-right:.6em}.vxe-password-input--count.is--error{color:var(--vxe-ui-input-count-error-color)}.vxe-password-input.is--left .vxe-password-input--inner{text-align:left}.vxe-password-input.is--center .vxe-password-input--inner{text-align:center}.vxe-password-input.is--right .vxe-password-input--inner{text-align:right}.vxe-password-input--panel{display:none;position:absolute;left:0;padding:4px 0;color:var(--vxe-ui-font-color);font-size:var(--vxe-ui-font-size-default);text-align:left}.vxe-password-input--panel:not(.is--transfer){min-width:100%}.vxe-password-input--panel.is--transfer{position:fixed}.vxe-password-input--panel.ani--leave{display:block;opacity:0;transform:scaleY(.5);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top;backface-visibility:hidden;transform-style:preserve-3d}.vxe-password-input--panel.ani--leave[placement=top]{transform-origin:center bottom}.vxe-password-input--panel.ani--enter{opacity:1;transform:scaleY(1)}.vxe-password-input{font-size:var(--vxe-ui-password-input-current-font-size);height:var(--vxe-ui-password-input-current-height);line-height:var(--vxe-ui-password-input-current-height)}
|
|
1
|
+
.vxe-password-input{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-default);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-default)}.vxe-password-input.size--xlarge{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-xlarge);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-xlarge)}.vxe-password-input.size--large{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-large);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-large)}.vxe-password-input.size--medium{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-medium);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-medium)}.vxe-password-input.size--small{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-small);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-small)}.vxe-password-input.size--mini{--vxe-ui-password-input-current-font-size:var(--vxe-ui-font-size-mini);--vxe-ui-password-input-current-height:var(--vxe-ui-input-height-mini)}.vxe-password-input--readonly{color:var(--vxe-ui-font-color);display:inline-flex}.vxe-password-input--wrapper{flex-grow:1;overflow:hidden}.vxe-password-input--inner{display:block;width:100%;height:100%;outline:0;margin:0;font-size:inherit;font-family:inherit;line-height:inherit;padding:0 .5em;color:var(--vxe-ui-font-color);border:0;border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-layout-background-color);box-shadow:none}.vxe-password-input--inner[disabled]{cursor:not-allowed;color:var(--vxe-ui-font-disabled-color);background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input--inner::-moz-placeholder{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--inner::placeholder{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--inner::-webkit-autofill{background-color:var(--vxe-ui-layout-background-color)}.vxe-password-input.is--disabled{background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input.is--disabled .vxe-password-input--clear-icon,.vxe-password-input.is--disabled .vxe-password-input--control-icon,.vxe-password-input.is--disabled .vxe-password-input--prefix,.vxe-password-input.is--disabled .vxe-password-input--suffix{cursor:not-allowed}.vxe-password-input.is--disabled .vxe-password-input--prefix,.vxe-password-input.is--disabled .vxe-password-input--suffix{background-color:var(--vxe-ui-input-disabled-background-color)}.vxe-password-input{display:inline-flex;flex-direction:row;position:relative;border-radius:var(--vxe-ui-base-border-radius);width:180px;border:1px solid var(--vxe-ui-input-border-color)}.vxe-password-input.is--active{border:1px solid var(--vxe-ui-font-primary-color)}.vxe-password-input.show--clear:hover .vxe-password-input--clear-icon{display:block}.vxe-password-input--prefix,.vxe-password-input--suffix{display:flex;flex-direction:row;align-items:center;flex-shrink:0;background-color:var(--vxe-ui-layout-background-color)}.vxe-password-input--prefix{border-radius:var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius)}.vxe-password-input--suffix{border-radius:0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0}.vxe-password-input--clear-icon,.vxe-password-input--control-icon,.vxe-password-input--prefix-icon,.vxe-password-input--suffix-icon{color:var(--vxe-ui-input-placeholder-color)}.vxe-password-input--prefix-icon{padding-left:.5em}.vxe-password-input--clear-icon,.vxe-password-input--control-icon,.vxe-password-input--suffix-icon{padding-right:.5em}.vxe-password-input--clear-icon,.vxe-password-input--control-icon{height:100%;cursor:pointer}.vxe-password-input--clear-icon{display:none}.vxe-password-input--clear-icon:hover{color:var(--vxe-ui-font-color)}.vxe-password-input--clear-icon:active{color:var(--vxe-ui-font-primary-color)}.vxe-password-input--number-btn{height:50%;display:flex;align-items:center;justify-content:center}.vxe-password-input--number-btn:hover{color:var(--vxe-ui-font-color)}.vxe-password-input--number-btn:active{color:var(--vxe-ui-font-primary-color)}.vxe-password-input--number-icon{display:flex;flex-direction:column;height:100%}.vxe-password-input--number-icon .vxe-password-input--number-btn.is--disabled{cursor:no-drop;color:var(--vxe-ui-font-disabled-color)}.vxe-password-input--count{flex-shrink:0;color:var(--vxe-ui-input-count-color);background-color:var(--vxe-ui-layout-background-color);padding-right:.6em}.vxe-password-input--count.is--error{color:var(--vxe-ui-input-count-error-color)}.vxe-password-input.is--left .vxe-password-input--inner{text-align:left}.vxe-password-input.is--center .vxe-password-input--inner{text-align:center}.vxe-password-input.is--right .vxe-password-input--inner{text-align:right}.vxe-password-input--panel{display:none;position:absolute;left:0;padding:4px 0;color:var(--vxe-ui-font-color);font-size:var(--vxe-ui-font-size-default);text-align:left}.vxe-password-input--panel:not(.is--transfer){min-width:100%}.vxe-password-input--panel.is--transfer{position:fixed}.vxe-password-input--panel.ani--leave{display:block;opacity:0;transform:scaleY(.5);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top;backface-visibility:hidden;transform-style:preserve-3d}.vxe-password-input--panel.ani--leave[placement=top]{transform-origin:center bottom}.vxe-password-input--panel.ani--enter{opacity:1;transform:scaleY(1)}.vxe-password-input{font-size:var(--vxe-ui-password-input-current-font-size);height:var(--vxe-ui-password-input-current-height);line-height:var(--vxe-ui-password-input-current-height)}
|
package/package.json
CHANGED
|
@@ -241,8 +241,6 @@ export default defineVxeComponent({
|
|
|
241
241
|
getRefMaps: () => refMaps
|
|
242
242
|
} as unknown as VxeInputConstructor
|
|
243
243
|
|
|
244
|
-
let inputMethods = {} as InputMethods
|
|
245
|
-
|
|
246
244
|
const parseDate = (value: VxeInputPropTypes.ModelValue, format: string) => {
|
|
247
245
|
const { type } = props
|
|
248
246
|
if (type === 'time') {
|
|
@@ -748,8 +746,9 @@ export default defineVxeComponent({
|
|
|
748
746
|
})
|
|
749
747
|
|
|
750
748
|
const computeInputReadonly = computed(() => {
|
|
751
|
-
const { type, editable, multiple
|
|
752
|
-
|
|
749
|
+
const { type, editable, multiple } = props
|
|
750
|
+
const formReadonly = computeFormReadonly.value
|
|
751
|
+
return formReadonly || multiple || !editable || type === 'week' || type === 'quarter'
|
|
753
752
|
})
|
|
754
753
|
|
|
755
754
|
const computeInputType = computed(() => {
|
|
@@ -818,6 +817,11 @@ export default defineVxeComponent({
|
|
|
818
817
|
return false
|
|
819
818
|
})
|
|
820
819
|
|
|
820
|
+
const computeDomValue = computed(() => {
|
|
821
|
+
const { inputValue } = reactData
|
|
822
|
+
return inputValue
|
|
823
|
+
})
|
|
824
|
+
|
|
821
825
|
const getNumberValue = (val: any) => {
|
|
822
826
|
const { type, exponential } = props
|
|
823
827
|
const inpMaxLength = computeInpMaxLength.value
|
|
@@ -829,13 +833,25 @@ export default defineVxeComponent({
|
|
|
829
833
|
return restVal.slice(0, inpMaxLength)
|
|
830
834
|
}
|
|
831
835
|
|
|
836
|
+
const dispatchEvent = (type: ValueOf<VxeInputEmits>, params: Record<string, any>, evnt: Event | null) => {
|
|
837
|
+
emit(type, createEvent(evnt, { $input: $xeInput }, params))
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
const updateDomValue = () => {
|
|
841
|
+
const domValue = computeDomValue.value
|
|
842
|
+
const inputElem = refInputTarget.value
|
|
843
|
+
if (inputElem) {
|
|
844
|
+
inputElem.value = XEUtils.eqNull(domValue) ? '' : ('' + domValue)
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
|
|
832
848
|
const emitModel = (value: string) => {
|
|
833
849
|
emit('update:modelValue', value)
|
|
834
850
|
}
|
|
835
851
|
|
|
836
852
|
const triggerEvent = (evnt: Event & { type: 'input' | 'change' | 'keydown' | 'keyup' | 'wheel' | 'click' | 'focus' | 'blur' }) => {
|
|
837
853
|
const { inputValue } = reactData
|
|
838
|
-
|
|
854
|
+
dispatchEvent(evnt.type, { value: inputValue }, evnt)
|
|
839
855
|
}
|
|
840
856
|
|
|
841
857
|
const handleChange = (value: string, evnt: Event | { type: string }) => {
|
|
@@ -844,9 +860,9 @@ export default defineVxeComponent({
|
|
|
844
860
|
}
|
|
845
861
|
reactData.inputValue = value
|
|
846
862
|
emitModel(value)
|
|
847
|
-
|
|
863
|
+
dispatchEvent('input', { value }, evnt as any)
|
|
848
864
|
if (XEUtils.toValueString(props.modelValue) !== value) {
|
|
849
|
-
|
|
865
|
+
dispatchEvent('change', { value }, evnt as any)
|
|
850
866
|
if (!$xeSelect && !$xeTreeSelect) {
|
|
851
867
|
// 自动更新校验状态
|
|
852
868
|
if ($xeForm && formItemInfo) {
|
|
@@ -864,7 +880,7 @@ export default defineVxeComponent({
|
|
|
864
880
|
if (inpImmediate) {
|
|
865
881
|
handleChange(value, evnt)
|
|
866
882
|
} else {
|
|
867
|
-
|
|
883
|
+
dispatchEvent('input', { value }, evnt)
|
|
868
884
|
if (!$xeSelect && !$xeTreeSelect) {
|
|
869
885
|
// 自动更新校验状态
|
|
870
886
|
if ($xeForm && formItemInfo) {
|
|
@@ -886,7 +902,7 @@ export default defineVxeComponent({
|
|
|
886
902
|
if (!inpImmediate) {
|
|
887
903
|
triggerEvent(evnt)
|
|
888
904
|
}
|
|
889
|
-
|
|
905
|
+
dispatchEvent('lazy-change', { value: reactData.inputValue }, evnt)
|
|
890
906
|
}
|
|
891
907
|
|
|
892
908
|
const blurEvent = (evnt: Event & { type: 'blur' }) => {
|
|
@@ -900,7 +916,7 @@ export default defineVxeComponent({
|
|
|
900
916
|
if (!reactData.visiblePanel) {
|
|
901
917
|
reactData.isActivated = false
|
|
902
918
|
}
|
|
903
|
-
|
|
919
|
+
dispatchEvent('blur', { value }, evnt)
|
|
904
920
|
if (!$xeSelect && !$xeTreeSelect) {
|
|
905
921
|
// 自动更新校验状态
|
|
906
922
|
if ($xeForm && formItemInfo) {
|
|
@@ -926,7 +942,7 @@ export default defineVxeComponent({
|
|
|
926
942
|
const isDisabled = computeIsDisabled.value
|
|
927
943
|
if (!isDisabled) {
|
|
928
944
|
const { inputValue } = reactData
|
|
929
|
-
|
|
945
|
+
dispatchEvent('prefix-click', { value: inputValue }, evnt)
|
|
930
946
|
}
|
|
931
947
|
}
|
|
932
948
|
|
|
@@ -953,15 +969,15 @@ export default defineVxeComponent({
|
|
|
953
969
|
}
|
|
954
970
|
}
|
|
955
971
|
handleChange('', evnt)
|
|
956
|
-
|
|
957
|
-
|
|
972
|
+
dispatchEvent('clear', { value }, evnt)
|
|
973
|
+
dispatchEvent('lazy-change', { value }, evnt)
|
|
958
974
|
}
|
|
959
975
|
|
|
960
976
|
const clickSuffixEvent = (evnt: Event) => {
|
|
961
977
|
const isDisabled = computeIsDisabled.value
|
|
962
978
|
if (!isDisabled) {
|
|
963
979
|
const { inputValue } = reactData
|
|
964
|
-
|
|
980
|
+
dispatchEvent('suffix-click', { value: inputValue }, evnt)
|
|
965
981
|
}
|
|
966
982
|
}
|
|
967
983
|
|
|
@@ -1190,13 +1206,13 @@ export default defineVxeComponent({
|
|
|
1190
1206
|
if (!isDisabled && !inputReadonly) {
|
|
1191
1207
|
reactData.showPwd = !showPwd
|
|
1192
1208
|
}
|
|
1193
|
-
|
|
1209
|
+
dispatchEvent('toggle-visible', { visible: reactData.showPwd }, evnt)
|
|
1194
1210
|
}
|
|
1195
1211
|
// 密码
|
|
1196
1212
|
|
|
1197
1213
|
// 搜索
|
|
1198
1214
|
const searchEvent = (evnt: Event) => {
|
|
1199
|
-
|
|
1215
|
+
dispatchEvent('search-click', {}, evnt)
|
|
1200
1216
|
}
|
|
1201
1217
|
// 搜索
|
|
1202
1218
|
|
|
@@ -1226,7 +1242,7 @@ export default defineVxeComponent({
|
|
|
1226
1242
|
if (!isDisabled && !inputReadonly && !isDisabledSubtractNumber) {
|
|
1227
1243
|
numberChange(false, evnt)
|
|
1228
1244
|
}
|
|
1229
|
-
|
|
1245
|
+
dispatchEvent('next-number', { value: reactData.inputValue }, evnt)
|
|
1230
1246
|
}
|
|
1231
1247
|
|
|
1232
1248
|
const numberDownNextEvent = (evnt: Event) => {
|
|
@@ -1244,7 +1260,7 @@ export default defineVxeComponent({
|
|
|
1244
1260
|
if (!isDisabled && !inputReadonly && !isDisabledAddNumber) {
|
|
1245
1261
|
numberChange(true, evnt)
|
|
1246
1262
|
}
|
|
1247
|
-
|
|
1263
|
+
dispatchEvent('prev-number', { value: reactData.inputValue }, evnt)
|
|
1248
1264
|
}
|
|
1249
1265
|
|
|
1250
1266
|
const numberKeydownEvent = (evnt: KeyboardEvent) => {
|
|
@@ -1398,7 +1414,7 @@ export default defineVxeComponent({
|
|
|
1398
1414
|
}
|
|
1399
1415
|
}
|
|
1400
1416
|
reactData.selectMonth = viewDate
|
|
1401
|
-
|
|
1417
|
+
dispatchEvent('date-prev', { viewType: datePanelType, viewDate, value, type }, evnt)
|
|
1402
1418
|
}
|
|
1403
1419
|
}
|
|
1404
1420
|
|
|
@@ -1408,7 +1424,7 @@ export default defineVxeComponent({
|
|
|
1408
1424
|
dateChange(reactData.currentDate)
|
|
1409
1425
|
hidePanel()
|
|
1410
1426
|
}
|
|
1411
|
-
|
|
1427
|
+
dispatchEvent('date-today', { type: props.type }, evnt)
|
|
1412
1428
|
}
|
|
1413
1429
|
|
|
1414
1430
|
const dateNextEvent = (evnt: Event) => {
|
|
@@ -1437,7 +1453,7 @@ export default defineVxeComponent({
|
|
|
1437
1453
|
}
|
|
1438
1454
|
}
|
|
1439
1455
|
reactData.selectMonth = viewDate
|
|
1440
|
-
|
|
1456
|
+
dispatchEvent('date-next', { viewType: datePanelType, viewDate, value, type }, evnt)
|
|
1441
1457
|
}
|
|
1442
1458
|
}
|
|
1443
1459
|
|
|
@@ -1975,6 +1991,33 @@ export default defineVxeComponent({
|
|
|
1975
1991
|
}
|
|
1976
1992
|
}
|
|
1977
1993
|
|
|
1994
|
+
const inputMethods: InputMethods = {
|
|
1995
|
+
dispatchEvent,
|
|
1996
|
+
focus () {
|
|
1997
|
+
const inputElem = refInputTarget.value
|
|
1998
|
+
reactData.isActivated = true
|
|
1999
|
+
inputElem.focus()
|
|
2000
|
+
return nextTick()
|
|
2001
|
+
},
|
|
2002
|
+
blur () {
|
|
2003
|
+
const inputElem = refInputTarget.value
|
|
2004
|
+
inputElem.blur()
|
|
2005
|
+
reactData.isActivated = false
|
|
2006
|
+
return nextTick()
|
|
2007
|
+
},
|
|
2008
|
+
select () {
|
|
2009
|
+
const inputElem = refInputTarget.value
|
|
2010
|
+
inputElem.select()
|
|
2011
|
+
reactData.isActivated = false
|
|
2012
|
+
return nextTick()
|
|
2013
|
+
},
|
|
2014
|
+
showPanel,
|
|
2015
|
+
hidePanel,
|
|
2016
|
+
updatePlacement
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
Object.assign($xeInput, inputMethods)
|
|
2020
|
+
|
|
1978
2021
|
const renderDateLabel = (item: VxeDatePanelDefines.DateYearItem | VxeDatePanelDefines.DateQuarterItem | VxeDatePanelDefines.DateMonthItem | VxeDatePanelDefines.DateDayItem, label: string | number) => {
|
|
1979
2022
|
const { festivalMethod } = props
|
|
1980
2023
|
if (festivalMethod) {
|
|
@@ -2619,38 +2662,6 @@ export default defineVxeComponent({
|
|
|
2619
2662
|
return createCommentVNode()
|
|
2620
2663
|
}
|
|
2621
2664
|
|
|
2622
|
-
const dispatchEvent = (type: ValueOf<VxeInputEmits>, params: Record<string, any>, evnt: Event | null) => {
|
|
2623
|
-
emit(type, createEvent(evnt, { $input: $xeInput }, params))
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
inputMethods = {
|
|
2627
|
-
dispatchEvent,
|
|
2628
|
-
|
|
2629
|
-
focus () {
|
|
2630
|
-
const inputElem = refInputTarget.value
|
|
2631
|
-
reactData.isActivated = true
|
|
2632
|
-
inputElem.focus()
|
|
2633
|
-
return nextTick()
|
|
2634
|
-
},
|
|
2635
|
-
blur () {
|
|
2636
|
-
const inputElem = refInputTarget.value
|
|
2637
|
-
inputElem.blur()
|
|
2638
|
-
reactData.isActivated = false
|
|
2639
|
-
return nextTick()
|
|
2640
|
-
},
|
|
2641
|
-
select () {
|
|
2642
|
-
const inputElem = refInputTarget.value
|
|
2643
|
-
inputElem.select()
|
|
2644
|
-
reactData.isActivated = false
|
|
2645
|
-
return nextTick()
|
|
2646
|
-
},
|
|
2647
|
-
showPanel,
|
|
2648
|
-
hidePanel,
|
|
2649
|
-
updatePlacement
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
Object.assign($xeInput, inputMethods)
|
|
2653
|
-
|
|
2654
2665
|
const renderVN = () => {
|
|
2655
2666
|
const { className, inputClassName, controls, type, title, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props
|
|
2656
2667
|
const { inputValue, visiblePanel, isActivated } = reactData
|
|
@@ -2697,7 +2708,6 @@ export default defineVxeComponent({
|
|
|
2697
2708
|
h('input', {
|
|
2698
2709
|
ref: refInputTarget,
|
|
2699
2710
|
class: 'vxe-input--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
2700
|
-
value: inputValue,
|
|
2701
2711
|
name,
|
|
2702
2712
|
type: inputType,
|
|
2703
2713
|
placeholder: inpPlaceholder,
|
|
@@ -2755,6 +2765,20 @@ export default defineVxeComponent({
|
|
|
2755
2765
|
}
|
|
2756
2766
|
})
|
|
2757
2767
|
|
|
2768
|
+
const rDvFlag = ref(0)
|
|
2769
|
+
watch(computeFormReadonly, () => {
|
|
2770
|
+
rDvFlag.value++
|
|
2771
|
+
})
|
|
2772
|
+
watch(computeDomValue, () => {
|
|
2773
|
+
rDvFlag.value++
|
|
2774
|
+
})
|
|
2775
|
+
watch(rDvFlag, () => {
|
|
2776
|
+
updateDomValue()
|
|
2777
|
+
nextTick(() => {
|
|
2778
|
+
updateDomValue()
|
|
2779
|
+
})
|
|
2780
|
+
})
|
|
2781
|
+
|
|
2758
2782
|
onMounted(() => {
|
|
2759
2783
|
const { type } = props
|
|
2760
2784
|
if (['date', 'time', 'datetime', 'week', 'month', 'quarter', 'year'].includes(type)) {
|
|
@@ -2773,6 +2797,7 @@ export default defineVxeComponent({
|
|
|
2773
2797
|
globalEvents.on($xeInput, 'mousedown', handleGlobalMousedownEvent)
|
|
2774
2798
|
globalEvents.on($xeInput, 'keydown', handleGlobalKeydownEvent)
|
|
2775
2799
|
globalEvents.on($xeInput, 'blur', handleGlobalBlurEvent)
|
|
2800
|
+
updateDomValue()
|
|
2776
2801
|
})
|
|
2777
2802
|
|
|
2778
2803
|
onBeforeUnmount(() => {
|