vxe-pc-ui 3.17.0 → 3.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/es/date-picker/src/date-picker.js +6 -2
- package/es/date-range-picker/src/date-range-picker.js +6 -2
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +9 -4
- package/es/number-input/src/number-input.js +12 -1
- package/es/password-input/src/password-input.js +75 -27
- 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 +6 -2
- 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/date-picker/src/date-picker.js +8 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +8 -1
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +128 -39
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +11 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +14 -1
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +74 -27
- 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 +8 -1
- 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/date-picker/src/date-picker.ts +6 -2
- package/packages/date-range-picker/src/date-range-picker.ts +6 -2
- package/packages/input/src/input.ts +9 -4
- package/packages/number-input/src/number-input.ts +16 -4
- package/packages/password-input/src/password-input.ts +78 -28
- package/packages/textarea/src/textarea.ts +6 -2
- package/styles/components/password-input.scss +4 -0
- package/types/components/date-picker.d.ts +2 -0
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/input.d.ts +2 -0
- package/types/components/number-input.d.ts +2 -0
- package/types/components/password-input.d.ts +4 -0
- package/types/components/table-module/edit.d.ts +37 -4
- package/types/components/table.d.ts +9 -2
- package/types/components/textarea.d.ts +2 -0
- package/types/ui/renderer.d.ts +9 -3
- /package/es/icon/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/icon/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/icon/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/es/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
|
@@ -27,6 +27,12 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
|
|
|
27
27
|
props: {
|
|
28
28
|
value: [String, Number],
|
|
29
29
|
className: String,
|
|
30
|
+
inputClassName: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: function _default() {
|
|
33
|
+
return (0, _ui.getConfig)().textarea.inputClassName;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
30
36
|
immediate: {
|
|
31
37
|
type: Boolean,
|
|
32
38
|
default: true
|
|
@@ -378,6 +384,7 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
|
|
|
378
384
|
var props = $xeTextarea;
|
|
379
385
|
var reactData = $xeTextarea.reactData;
|
|
380
386
|
var className = props.className,
|
|
387
|
+
inputClassName = props.inputClassName,
|
|
381
388
|
resize = props.resize,
|
|
382
389
|
autosize = props.autosize,
|
|
383
390
|
autoSize = props.autoSize,
|
|
@@ -411,7 +418,7 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
|
|
|
411
418
|
}
|
|
412
419
|
}, [h('textarea', {
|
|
413
420
|
ref: 'refTextarea',
|
|
414
|
-
class: 'vxe-textarea--inner',
|
|
421
|
+
class: 'vxe-textarea--inner' + (inputClassName ? ' ' + inputClassName : ''),
|
|
415
422
|
domProps: {
|
|
416
423
|
value: inputValue
|
|
417
424
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _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}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}var autoTxtElem,_createComponentLog=(0,_log.createComponentLog)("textarea"),warnLog=_createComponentLog.warnLog,_default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTextarea",model:{prop:"value",event:"modelValue"},mixins:[_ui.globalMixins.sizeMixin],props:{value:[String,Number],className:String,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:function(){return(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:function(){return(0,_ui.getConfig)().textarea.resize}},size:{type:String,default:function(){return(0,_ui.getConfig)().textarea.size||(0,_ui.getConfig)().size}},maxlength:[String,Number]},inject:{$xeForm:{default:null},formItemInfo:{from:"xeFormItemInfo",default:null}},data:function(){return{xID:_xeUtils.default.uniqueId(),reactData:{inputValue:""},reFlag:0}},computed:Object.assign(Object.assign({},{}),{computeFormReadonly:function(){var e=this.$xeForm,t=this.readonly;return null===t?!!e&&e.readonly:t},computeIsDisabled:function(){var e=this.$xeForm,t=this.disabled;return null===t?!!e&&e.disabled:t},computeInputReadonly:function(){var e=this.editable;return this.readonly||!e},computeInpPlaceholder:function(){var e=this.placeholder;return(e=e||(0,_ui.getConfig)().textarea.placeholder)?(0,_utils.getFuncText)(e):(0,_ui.getI18n)("vxe.base.pleaseInput")},computeInpMaxLength:function(){var e=this.maxLength,t=this.maxlength;return e||t},computeInputCount:function(){var e=this.reactData;return _xeUtils.default.getSize(e.inputValue)},computeIsCountError:function(){var e=this.computeInputCount,t=this.computeInpMaxLength;return t&&e>_xeUtils.default.toNumber(t)},computeSizeOpts:function(){var e=this.autosize,t=this.autoSize;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)}}),methods:{dispatchEvent:function(e,t,n){this.$emit(e,(0,_ui.createEvent)(n,{$textarea:this},t))},emitModel:function(e){var t=this._events;t&&t.modelValue?this.$emit("modelValue",e):this.$emit("model-value",e)},focus:function(){return this.$refs.refTextarea.focus(),this.$nextTick()},blur:function(){return this.$refs.refTextarea.blur(),this.$nextTick()},updateAutoTxt:function(){var e,t,n=this,a=n.reactData,i=n.size,a=a.inputValue;(n.autosize||n.autoSize)&&(t=n.computeFormReadonly,(autoTxtElem=autoTxtElem||document.createElement("div")).parentNode||document.body.appendChild(autoTxtElem),e=n.$refs.refTextarea,n=n.$refs.refContent,t=t?n:e)&&(n=getComputedStyle(t),autoTxtElem.className=["vxe-textarea--autosize",i?"size--".concat(i):""].join(" "),autoTxtElem.style.width="".concat(t.clientWidth,"px"),autoTxtElem.style.padding=n.padding,autoTxtElem.innerText=(""+(a||" ")).replace(/\n$/,"\n "))},handleResize:function(){var u=this;(u.autosize||u.autoSize)&&u.$nextTick(function(){var e,t,n=u.computeSizeOpts,a=u.computeFormReadonly,i=n.minRows,n=n.maxRows,o=u.$refs.refTextarea,r=u.$refs.refContent,a=a?r:o;a&&(r=autoTxtElem.clientHeight,o=getComputedStyle(a),e=_xeUtils.default.toNumber(o.lineHeight),(t=o=(o=(r-(r=_xeUtils.default.toNumber(o.paddingTop)+_xeUtils.default.toNumber(o.paddingBottom)+_xeUtils.default.toNumber(o.borderTopWidth)+_xeUtils.default.toNumber(o.borderBottomWidth)))/e)&&/[0-9]/.test(""+o)?o:Math.floor(o)+1)<i?t=i:n<o&&(t=n),a.style.height="".concat(t*e+r,"px"))})},triggerEvent:function(e){var t=this.reactData.inputValue;this.dispatchEvent(e.type,{value:t},e)},handleChange:function(e,t){var n=this,a=n,i=n.reactData,o=n.$xeForm,r=n.formItemInfo;a.trim&&(e="".concat(e||"").trim()),i.inputValue=e,n.emitModel(e),_xeUtils.default.toValueString(a.value)!==e&&(n.dispatchEvent("change",{value:e},t),o)&&r&&o.triggerItemEvent(t,r.itemConfig.field,e)},inputEvent:function(e){var t=this,n=t.reactData,a=t.$xeForm,i=t.formItemInfo,o=t.immediate,r=e.target.value;n.inputValue=r,o?t.handleChange(r,e):a&&i&&a.triggerItemEvent(e,i.itemConfig.field,r),t.dispatchEvent("input",{value:r},e),t.handleResize()},changeEvent:function(e){var t=this,n=t.reactData;t.immediate?t.triggerEvent(e):t.handleChange(n.inputValue,e),t.dispatchEvent("lazy-change",{value:n.inputValue},e)},blurEvent:function(e){var t=this.reactData,n=this.immediate,t=t.inputValue;n||this.handleChange(t,e),this.dispatchEvent("blur",{value:t},e)},renderVN:function(e){var t=this,n=t,a=t.reactData,i=n.className,o=n.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _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}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}var autoTxtElem,_createComponentLog=(0,_log.createComponentLog)("textarea"),warnLog=_createComponentLog.warnLog,_default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTextarea",model:{prop:"value",event:"modelValue"},mixins:[_ui.globalMixins.sizeMixin],props:{value:[String,Number],className:String,inputClassName:{type:String,default:function(){return(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:function(){return(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:function(){return(0,_ui.getConfig)().textarea.resize}},size:{type:String,default:function(){return(0,_ui.getConfig)().textarea.size||(0,_ui.getConfig)().size}},maxlength:[String,Number]},inject:{$xeForm:{default:null},formItemInfo:{from:"xeFormItemInfo",default:null}},data:function(){return{xID:_xeUtils.default.uniqueId(),reactData:{inputValue:""},reFlag:0}},computed:Object.assign(Object.assign({},{}),{computeFormReadonly:function(){var e=this.$xeForm,t=this.readonly;return null===t?!!e&&e.readonly:t},computeIsDisabled:function(){var e=this.$xeForm,t=this.disabled;return null===t?!!e&&e.disabled:t},computeInputReadonly:function(){var e=this.editable;return this.readonly||!e},computeInpPlaceholder:function(){var e=this.placeholder;return(e=e||(0,_ui.getConfig)().textarea.placeholder)?(0,_utils.getFuncText)(e):(0,_ui.getI18n)("vxe.base.pleaseInput")},computeInpMaxLength:function(){var e=this.maxLength,t=this.maxlength;return e||t},computeInputCount:function(){var e=this.reactData;return _xeUtils.default.getSize(e.inputValue)},computeIsCountError:function(){var e=this.computeInputCount,t=this.computeInpMaxLength;return t&&e>_xeUtils.default.toNumber(t)},computeSizeOpts:function(){var e=this.autosize,t=this.autoSize;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)}}),methods:{dispatchEvent:function(e,t,n){this.$emit(e,(0,_ui.createEvent)(n,{$textarea:this},t))},emitModel:function(e){var t=this._events;t&&t.modelValue?this.$emit("modelValue",e):this.$emit("model-value",e)},focus:function(){return this.$refs.refTextarea.focus(),this.$nextTick()},blur:function(){return this.$refs.refTextarea.blur(),this.$nextTick()},updateAutoTxt:function(){var e,t,n=this,a=n.reactData,i=n.size,a=a.inputValue;(n.autosize||n.autoSize)&&(t=n.computeFormReadonly,(autoTxtElem=autoTxtElem||document.createElement("div")).parentNode||document.body.appendChild(autoTxtElem),e=n.$refs.refTextarea,n=n.$refs.refContent,t=t?n:e)&&(n=getComputedStyle(t),autoTxtElem.className=["vxe-textarea--autosize",i?"size--".concat(i):""].join(" "),autoTxtElem.style.width="".concat(t.clientWidth,"px"),autoTxtElem.style.padding=n.padding,autoTxtElem.innerText=(""+(a||" ")).replace(/\n$/,"\n "))},handleResize:function(){var u=this;(u.autosize||u.autoSize)&&u.$nextTick(function(){var e,t,n=u.computeSizeOpts,a=u.computeFormReadonly,i=n.minRows,n=n.maxRows,o=u.$refs.refTextarea,r=u.$refs.refContent,a=a?r:o;a&&(r=autoTxtElem.clientHeight,o=getComputedStyle(a),e=_xeUtils.default.toNumber(o.lineHeight),(t=o=(o=(r-(r=_xeUtils.default.toNumber(o.paddingTop)+_xeUtils.default.toNumber(o.paddingBottom)+_xeUtils.default.toNumber(o.borderTopWidth)+_xeUtils.default.toNumber(o.borderBottomWidth)))/e)&&/[0-9]/.test(""+o)?o:Math.floor(o)+1)<i?t=i:n<o&&(t=n),a.style.height="".concat(t*e+r,"px"))})},triggerEvent:function(e){var t=this.reactData.inputValue;this.dispatchEvent(e.type,{value:t},e)},handleChange:function(e,t){var n=this,a=n,i=n.reactData,o=n.$xeForm,r=n.formItemInfo;a.trim&&(e="".concat(e||"").trim()),i.inputValue=e,n.emitModel(e),_xeUtils.default.toValueString(a.value)!==e&&(n.dispatchEvent("change",{value:e},t),o)&&r&&o.triggerItemEvent(t,r.itemConfig.field,e)},inputEvent:function(e){var t=this,n=t.reactData,a=t.$xeForm,i=t.formItemInfo,o=t.immediate,r=e.target.value;n.inputValue=r,o?t.handleChange(r,e):a&&i&&a.triggerItemEvent(e,i.itemConfig.field,r),t.dispatchEvent("input",{value:r},e),t.handleResize()},changeEvent:function(e){var t=this,n=t.reactData;t.immediate?t.triggerEvent(e):t.handleChange(n.inputValue,e),t.dispatchEvent("lazy-change",{value:n.inputValue},e)},blurEvent:function(e){var t=this.reactData,n=this.immediate,t=t.inputValue;n||this.handleChange(t,e),this.dispatchEvent("blur",{value:t},e)},renderVN:function(e){var t=this,n=t,a=t.reactData,i=n.className,o=n.inputClassName,r=n.resize,u=n.autosize,l=n.autoSize,s=n.showWordCount,c=n.countMethod,d=n.rows,m=n.cols,a=a.inputValue,f=t.computeSize,p=t.computeIsDisabled,g=t.computeIsCountError,h=t.computeInputCount,x=t.computeInputReadonly,v=t.computeInpPlaceholder,y=t.computeInpMaxLength;return t.computeFormReadonly?e("div",{ref:"refElem",class:["vxe-textarea--readonly",i]},[e("div",{ref:"refContent",class:"vxe-textarea--content"},a)]):e("div",{ref:"refElem",class:["vxe-textarea",i,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(f),f),"is--autosize",u||l),"is--count",s),"is--disabled",p),"is--rows",!_xeUtils.default.eqNull(d)),"is--cols",!_xeUtils.default.eqNull(m))],attrs:{spellcheck:!1}},[e("textarea",{ref:"refTextarea",class:"vxe-textarea--inner"+(o?" "+o:""),domProps:{value:a},attrs:{name:n.name,placeholder:v,maxlength:y,readonly:x,disabled:p,rows:d,cols:m},style:r?{resize:r}:{},on:{input:t.inputEvent,change:t.changeEvent,keydown:t.triggerEvent,keyup:t.triggerEvent,click:t.triggerEvent,focus:t.triggerEvent,blur:t.blurEvent}}),s?e("span",{class:["vxe-textarea--count",{"is--error":g}]},c?"".concat(c({value:a})):"".concat(h).concat(y?"/".concat(y):"")):null])}},watch:{value:function(e){this.reactData.inputValue=e,this.updateAutoTxt()},computeFormReadonly:function(){this.reFlag++},computeSizeOpts:function(){this.reFlag++},autoSize:function(){this.reFlag++},autosize:function(){this.reFlag++},reFlag:function(){this.updateAutoTxt(),this.handleResize()}},created:function(){var n=this,a=n;n.reactData.inputValue=a.value,n.$nextTick(function(){var e=a.autosize,t=a.autoSize;e&&warnLog("vxe.error.delProp",["autosize","auto-size"]),(e||t)&&(n.updateAutoTxt(),n.handleResize())})},render:function(e){return this.renderVN(e)}});
|
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
|
-
var version = exports.version = "3.17.
|
|
29
|
+
var version = exports.version = "3.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"),version=exports.version="3.17.0";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:!0,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:60}},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:{}});var iconPrefix="vxe-icon-",_default=((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"}),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"),version=exports.version="3.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:!0,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:60}},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:{}});var iconPrefix="vxe-icon-",_default=((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"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.createComponentLog = createComponentLog;
|
|
|
7
7
|
exports.warnLog = exports.errLog = void 0;
|
|
8
8
|
var _core = require("@vxe-ui/core");
|
|
9
9
|
var log = _core.VxeUI.log;
|
|
10
|
-
var uiVersion = "ui v".concat("3.17.
|
|
10
|
+
var uiVersion = "ui v".concat("3.17.2");
|
|
11
11
|
function createComponentLog(name) {
|
|
12
12
|
var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
|
|
13
13
|
var ganttVersion = _core.VxeUI.ganttVersion ? "gantt v".concat(_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"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.17.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.17.2");function createComponentLog(e){var r=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",o=_core.VxeUI.ganttVersion?"gantt v".concat(_core.VxeUI.ganttVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[uiVersion,r,o,n].filter(function(e){return e}).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var 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:-ms-input-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:-ms-input-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
|
@@ -86,6 +86,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
86
86
|
},
|
|
87
87
|
form: String as PropType<VxeDatePickerPropTypes.Form>,
|
|
88
88
|
className: String as PropType<VxeDatePickerPropTypes.ClassName>,
|
|
89
|
+
inputClassName: {
|
|
90
|
+
type: String as PropType<VxeDatePickerPropTypes.InputClassName>,
|
|
91
|
+
default: () => getConfig().datePicker.inputClassName
|
|
92
|
+
},
|
|
89
93
|
zIndex: Number as PropType<VxeDatePickerPropTypes.ZIndex>,
|
|
90
94
|
size: {
|
|
91
95
|
type: String as PropType<VxeDatePickerPropTypes.Size>,
|
|
@@ -1818,7 +1822,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1818
1822
|
const reactData = $xeDatePicker.reactData
|
|
1819
1823
|
const internalData = $xeDatePicker.internalData
|
|
1820
1824
|
|
|
1821
|
-
const { className, type, name, autoComplete } = props
|
|
1825
|
+
const { className, inputClassName, type, name, autoComplete } = props
|
|
1822
1826
|
const { inputValue, visiblePanel, isActivated, labelFlag } = reactData
|
|
1823
1827
|
const { inputLabel } = internalData
|
|
1824
1828
|
const vSize = $xeDatePicker.computeSize
|
|
@@ -1857,7 +1861,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1857
1861
|
}, [
|
|
1858
1862
|
h('input', {
|
|
1859
1863
|
ref: 'refInputTarget',
|
|
1860
|
-
class: 'vxe-date-picker--inner',
|
|
1864
|
+
class: 'vxe-date-picker--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
1861
1865
|
domProps: {
|
|
1862
1866
|
value: labelFlag ? inputLabel : ''
|
|
1863
1867
|
},
|
|
@@ -84,6 +84,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
84
84
|
},
|
|
85
85
|
form: String as PropType<VxeDateRangePickerPropTypes.Form>,
|
|
86
86
|
className: String as PropType<VxeDateRangePickerPropTypes.ClassName>,
|
|
87
|
+
inputClassName: {
|
|
88
|
+
type: String as PropType<VxeDateRangePickerPropTypes.InputClassName>,
|
|
89
|
+
default: () => getConfig().dateRangePicker.inputClassName
|
|
90
|
+
},
|
|
87
91
|
zIndex: Number as PropType<VxeDateRangePickerPropTypes.ZIndex>,
|
|
88
92
|
size: {
|
|
89
93
|
type: String as PropType<VxeDateRangePickerPropTypes.Size>,
|
|
@@ -1675,7 +1679,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1675
1679
|
const props = $xeDateRangePicker
|
|
1676
1680
|
const reactData = $xeDateRangePicker.reactData
|
|
1677
1681
|
|
|
1678
|
-
const { className, type, name, autoComplete } = props
|
|
1682
|
+
const { className, inputClassName, type, name, autoComplete } = props
|
|
1679
1683
|
const { selectStValue, selectEdValue, visiblePanel, isActivated } = reactData
|
|
1680
1684
|
const vSize = $xeDateRangePicker.computeSize
|
|
1681
1685
|
const isDisabled = $xeDateRangePicker.computeIsDisabled
|
|
@@ -1712,7 +1716,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1712
1716
|
}, [
|
|
1713
1717
|
h('input', {
|
|
1714
1718
|
ref: 'refInputTarget',
|
|
1715
|
-
class: 'vxe-date-range-picker--inner',
|
|
1719
|
+
class: 'vxe-date-range-picker--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
1716
1720
|
domProps: {
|
|
1717
1721
|
value: inputLabel
|
|
1718
1722
|
},
|
|
@@ -66,6 +66,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
66
66
|
align: String as PropType<VxeInputPropTypes.Align>,
|
|
67
67
|
form: String as PropType<VxeInputPropTypes.Form>,
|
|
68
68
|
className: String as PropType<VxeInputPropTypes.ClassName>,
|
|
69
|
+
inputClassName: {
|
|
70
|
+
type: String as PropType<VxeInputPropTypes.InputClassName>,
|
|
71
|
+
default: () => getConfig().input.inputClassName
|
|
72
|
+
},
|
|
69
73
|
size: {
|
|
70
74
|
type: String as PropType<VxeInputPropTypes.Size>,
|
|
71
75
|
default: () => getConfig().input.size || getConfig().size
|
|
@@ -819,8 +823,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
819
823
|
const $xeInput = this
|
|
820
824
|
const props = $xeInput
|
|
821
825
|
|
|
822
|
-
const { type, editable, multiple
|
|
823
|
-
|
|
826
|
+
const { type, editable, multiple } = props
|
|
827
|
+
const formReadonly = $xeInput.computeFormReadonly
|
|
828
|
+
return formReadonly || multiple || !editable || type === 'week' || type === 'quarter'
|
|
824
829
|
},
|
|
825
830
|
computeInputType (this: any) {
|
|
826
831
|
const $xeInput = this
|
|
@@ -3020,7 +3025,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
3020
3025
|
const props = $xeInput
|
|
3021
3026
|
const reactData = $xeInput.reactData
|
|
3022
3027
|
|
|
3023
|
-
const { className, controls, type, title, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props
|
|
3028
|
+
const { className, inputClassName, controls, type, title, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props
|
|
3024
3029
|
const { inputValue, visiblePanel, isActivated } = reactData
|
|
3025
3030
|
const vSize = $xeInput.computeSize
|
|
3026
3031
|
const isDisabled = $xeInput.computeIsDisabled
|
|
@@ -3070,7 +3075,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
3070
3075
|
}, [
|
|
3071
3076
|
h('input', {
|
|
3072
3077
|
ref: 'refInputTarget',
|
|
3073
|
-
class: 'vxe-input--inner',
|
|
3078
|
+
class: 'vxe-input--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
3074
3079
|
domProps: {
|
|
3075
3080
|
value: inputValue
|
|
3076
3081
|
},
|
|
@@ -60,6 +60,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
60
60
|
align: String as PropType<VxeNumberInputPropTypes.Align>,
|
|
61
61
|
form: String as PropType<VxeNumberInputPropTypes.Form>,
|
|
62
62
|
className: String as PropType<VxeNumberInputPropTypes.ClassName>,
|
|
63
|
+
inputClassName: {
|
|
64
|
+
type: String as PropType<VxeNumberInputPropTypes.InputClassName>,
|
|
65
|
+
default: () => getConfig().numberInput.inputClassName
|
|
66
|
+
},
|
|
63
67
|
size: {
|
|
64
68
|
type: String as PropType<VxeNumberInputPropTypes.Size>,
|
|
65
69
|
default: () => getConfig().numberInput.size || getConfig().size
|
|
@@ -333,7 +337,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
333
337
|
return XEUtils.toString(inputValue)
|
|
334
338
|
},
|
|
335
339
|
computeIsDisabledSubtractNumber () {
|
|
336
|
-
const $xeNumberInput = this
|
|
340
|
+
const $xeNumberInput = this
|
|
337
341
|
const props = $xeNumberInput
|
|
338
342
|
const reactData = $xeNumberInput.reactData
|
|
339
343
|
|
|
@@ -347,7 +351,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
347
351
|
return false
|
|
348
352
|
},
|
|
349
353
|
computeIsDisabledAddNumber () {
|
|
350
|
-
const $xeNumberInput = this
|
|
354
|
+
const $xeNumberInput = this
|
|
351
355
|
const props = $xeNumberInput
|
|
352
356
|
const reactData = $xeNumberInput.reactData
|
|
353
357
|
|
|
@@ -359,6 +363,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
359
363
|
return numValue >= XEUtils.toNumber(max)
|
|
360
364
|
}
|
|
361
365
|
return false
|
|
366
|
+
},
|
|
367
|
+
computeInpClassNamevalue () {
|
|
368
|
+
const $xeNumberInput = this
|
|
369
|
+
const props = $xeNumberInput
|
|
370
|
+
|
|
371
|
+
const { inputClassName } = props
|
|
372
|
+
return 'vxe-number-input--input' + (inputClassName ? (' ' + inputClassName) : '')
|
|
362
373
|
}
|
|
363
374
|
},
|
|
364
375
|
methods: {
|
|
@@ -369,7 +380,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
369
380
|
const $xeNumberInput = this
|
|
370
381
|
$xeNumberInput.$emit(type, createEvent(evnt, { $numberInput: $xeNumberInput }, params))
|
|
371
382
|
},
|
|
372
|
-
emitModel
|
|
383
|
+
emitModel (value: any) {
|
|
373
384
|
const $xeNumberInput = this
|
|
374
385
|
|
|
375
386
|
const { _events } = $xeNumberInput as any
|
|
@@ -1048,6 +1059,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1048
1059
|
const inputReadonly = $xeNumberInput.computeInputReadonly
|
|
1049
1060
|
const inpMaxLength = $xeNumberInput.computeInpMaxLength
|
|
1050
1061
|
const inpPlaceholder = $xeNumberInput.computeInpPlaceholder
|
|
1062
|
+
const inpClassName = $xeNumberInput.computeInpClassNamevalue
|
|
1051
1063
|
return h('div', {
|
|
1052
1064
|
key: 'ni',
|
|
1053
1065
|
class: 'vxe-number-input--input-wrapper'
|
|
@@ -1058,7 +1070,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1058
1070
|
}, [
|
|
1059
1071
|
h('input', {
|
|
1060
1072
|
ref: 'refInputTarget',
|
|
1061
|
-
class:
|
|
1073
|
+
class: inpClassName,
|
|
1062
1074
|
domProps: {
|
|
1063
1075
|
value: !isFocus && type === 'amount' ? numLabel : inputValue
|
|
1064
1076
|
},
|
|
@@ -2,7 +2,7 @@ import { CreateElement, PropType, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getConfig, getIcon, getI18n, createEvent, globalMixins, renderEmptyElement } from '../../ui'
|
|
5
|
-
import { getFuncText } from '../../ui/src/utils'
|
|
5
|
+
import { getFuncText, getText } from '../../ui/src/utils'
|
|
6
6
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
7
7
|
|
|
8
8
|
import type { VxePasswordInputEmits, VxeComponentSizeType, PasswordInputReactData, ValueOf, VxePasswordInputPropTypes, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines } from '../../../types'
|
|
@@ -36,6 +36,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
36
36
|
default: 'off'
|
|
37
37
|
},
|
|
38
38
|
className: String as PropType<VxePasswordInputPropTypes.ClassName>,
|
|
39
|
+
inputClassName: {
|
|
40
|
+
type: String as PropType<VxePasswordInputPropTypes.InputClassName>,
|
|
41
|
+
default: () => getConfig().passwordInput.inputClassName
|
|
42
|
+
},
|
|
39
43
|
size: {
|
|
40
44
|
type: String as PropType<VxePasswordInputPropTypes.Size>,
|
|
41
45
|
default: () => getConfig().passwordInput.size || getConfig().size
|
|
@@ -46,6 +50,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
46
50
|
type: Boolean as PropType<VxePasswordInputPropTypes.Controls>,
|
|
47
51
|
default: () => getConfig().passwordInput.controls
|
|
48
52
|
},
|
|
53
|
+
editable: {
|
|
54
|
+
type: Boolean as PropType<VxePasswordInputPropTypes.Editable>,
|
|
55
|
+
default: true
|
|
56
|
+
},
|
|
49
57
|
|
|
50
58
|
// 已废弃
|
|
51
59
|
autocomplete: String as PropType<VxePasswordInputPropTypes.Autocomplete>
|
|
@@ -83,13 +91,6 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
83
91
|
|
|
84
92
|
return props.clearable
|
|
85
93
|
},
|
|
86
|
-
computeInpReadonly () {
|
|
87
|
-
const $xePasswordInput = this
|
|
88
|
-
const props = $xePasswordInput
|
|
89
|
-
|
|
90
|
-
const { readonly } = props
|
|
91
|
-
return readonly
|
|
92
|
-
},
|
|
93
94
|
computeInpPlaceholder () {
|
|
94
95
|
const $xePasswordInput = this
|
|
95
96
|
const props = $xePasswordInput
|
|
@@ -104,6 +105,40 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
104
105
|
}
|
|
105
106
|
return getI18n('vxe.base.pleaseInput')
|
|
106
107
|
},
|
|
108
|
+
computeFormReadonly () {
|
|
109
|
+
const $xePasswordInput = this
|
|
110
|
+
const props = $xePasswordInput
|
|
111
|
+
const $xeForm = $xePasswordInput.$xeForm
|
|
112
|
+
|
|
113
|
+
if (getConfig().inputReadonly === 'obsolete') {
|
|
114
|
+
if ($xeForm) {
|
|
115
|
+
return $xeForm.readonly
|
|
116
|
+
}
|
|
117
|
+
return false
|
|
118
|
+
}
|
|
119
|
+
const { readonly } = props
|
|
120
|
+
if (readonly === null) {
|
|
121
|
+
if ($xeForm) {
|
|
122
|
+
return $xeForm.readonly
|
|
123
|
+
}
|
|
124
|
+
return false
|
|
125
|
+
}
|
|
126
|
+
return readonly
|
|
127
|
+
},
|
|
128
|
+
computeIsDisabled () {
|
|
129
|
+
const $xePasswordInput = this
|
|
130
|
+
const props = $xePasswordInput
|
|
131
|
+
const $xeForm = $xePasswordInput.$xeForm
|
|
132
|
+
|
|
133
|
+
const { disabled } = props
|
|
134
|
+
if (disabled === null) {
|
|
135
|
+
if ($xeForm) {
|
|
136
|
+
return $xeForm.disabled
|
|
137
|
+
}
|
|
138
|
+
return false
|
|
139
|
+
}
|
|
140
|
+
return disabled
|
|
141
|
+
},
|
|
107
142
|
computeInputType () {
|
|
108
143
|
const $xePasswordInput = this
|
|
109
144
|
const reactData = $xePasswordInput.reactData
|
|
@@ -120,6 +155,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
120
155
|
|
|
121
156
|
const { immediate } = props
|
|
122
157
|
return immediate
|
|
158
|
+
},
|
|
159
|
+
computeInputReadonly () {
|
|
160
|
+
const $xePasswordInput = this
|
|
161
|
+
const props = $xePasswordInput
|
|
162
|
+
|
|
163
|
+
const { editable } = props
|
|
164
|
+
const formReadonly = $xePasswordInput.computeFormReadonly
|
|
165
|
+
return formReadonly || !editable
|
|
123
166
|
}
|
|
124
167
|
},
|
|
125
168
|
methods: {
|
|
@@ -248,12 +291,12 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
248
291
|
},
|
|
249
292
|
passwordToggleEvent (evnt: Event) {
|
|
250
293
|
const $xePasswordInput = this
|
|
251
|
-
const props = $xePasswordInput
|
|
252
294
|
const reactData = $xePasswordInput.reactData
|
|
253
295
|
|
|
254
|
-
const { readonly, disabled } = props
|
|
255
296
|
const { showPwd } = reactData
|
|
256
|
-
|
|
297
|
+
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
298
|
+
const formReadonly = $xePasswordInput.computeFormReadonly
|
|
299
|
+
if (!isDisabled && !formReadonly) {
|
|
257
300
|
reactData.showPwd = !showPwd
|
|
258
301
|
}
|
|
259
302
|
$xePasswordInput.dispatchEvent('toggle-visible', { visible: reactData.showPwd }, evnt)
|
|
@@ -273,22 +316,20 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
273
316
|
},
|
|
274
317
|
clickSuffixEvent (evnt: Event) {
|
|
275
318
|
const $xePasswordInput = this
|
|
276
|
-
const props = $xePasswordInput
|
|
277
319
|
const reactData = $xePasswordInput.reactData
|
|
278
320
|
|
|
279
|
-
const
|
|
280
|
-
if (!
|
|
321
|
+
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
322
|
+
if (!isDisabled) {
|
|
281
323
|
const { inputValue } = reactData
|
|
282
324
|
$xePasswordInput.dispatchEvent('suffix-click', { value: inputValue }, evnt)
|
|
283
325
|
}
|
|
284
326
|
},
|
|
285
327
|
clickPrefixEvent (evnt: Event) {
|
|
286
328
|
const $xePasswordInput = this
|
|
287
|
-
const props = $xePasswordInput
|
|
288
329
|
const reactData = $xePasswordInput.reactData
|
|
289
330
|
|
|
290
|
-
const
|
|
291
|
-
if (!
|
|
331
|
+
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
332
|
+
if (!isDisabled) {
|
|
292
333
|
const { inputValue } = reactData
|
|
293
334
|
$xePasswordInput.dispatchEvent('prefix-click', { value: inputValue }, evnt)
|
|
294
335
|
}
|
|
@@ -345,14 +386,15 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
345
386
|
const slots = $xePasswordInput.$scopedSlots
|
|
346
387
|
const reactData = $xePasswordInput.reactData
|
|
347
388
|
|
|
348
|
-
const {
|
|
389
|
+
const { suffixIcon, controls } = props
|
|
349
390
|
const { inputValue } = reactData
|
|
350
|
-
const
|
|
391
|
+
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
351
392
|
const isClearable = $xePasswordInput.computeIsClearable
|
|
393
|
+
const suffixSlot = slots.suffix
|
|
352
394
|
return isClearable || controls || suffixSlot || suffixIcon
|
|
353
395
|
? h('div', {
|
|
354
396
|
class: ['vxe-password-input--suffix', {
|
|
355
|
-
'is--clear': isClearable && !
|
|
397
|
+
'is--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
356
398
|
}]
|
|
357
399
|
}, [
|
|
358
400
|
isClearable
|
|
@@ -390,13 +432,21 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
390
432
|
const props = $xePasswordInput
|
|
391
433
|
const reactData = $xePasswordInput.reactData
|
|
392
434
|
|
|
393
|
-
const { className,
|
|
435
|
+
const { className, inputClassName, name, autocomplete, autoComplete, maxLength } = props
|
|
394
436
|
const { inputValue, isActivated } = reactData
|
|
437
|
+
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
438
|
+
const formReadonly = $xePasswordInput.computeFormReadonly
|
|
439
|
+
if (formReadonly) {
|
|
440
|
+
return h('div', {
|
|
441
|
+
ref: 'refElem',
|
|
442
|
+
class: ['vxe-password-input--readonly', className]
|
|
443
|
+
}, getText(inputValue))
|
|
444
|
+
}
|
|
395
445
|
const vSize = $xePasswordInput.computeSize
|
|
396
|
-
const inpReadonly = $xePasswordInput.computeInpReadonly
|
|
397
446
|
const inputType = $xePasswordInput.computeInputType
|
|
398
447
|
const inpPlaceholder = $xePasswordInput.computeInpPlaceholder
|
|
399
448
|
const isClearable = $xePasswordInput.computeIsClearable
|
|
449
|
+
const inputReadonly = $xePasswordInput.computeInputReadonly
|
|
400
450
|
const prefix = $xePasswordInput.renderPrefixIcon(h)
|
|
401
451
|
const suffix = $xePasswordInput.renderSuffixIcon(h)
|
|
402
452
|
return h('div', {
|
|
@@ -405,10 +455,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
405
455
|
[`size--${vSize}`]: vSize,
|
|
406
456
|
'is--prefix': !!prefix,
|
|
407
457
|
'is--suffix': !!suffix,
|
|
408
|
-
'is--readonly':
|
|
409
|
-
'is--disabled':
|
|
458
|
+
'is--readonly': formReadonly,
|
|
459
|
+
'is--disabled': isDisabled,
|
|
410
460
|
'is--active': isActivated,
|
|
411
|
-
'show--clear': isClearable && !
|
|
461
|
+
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
412
462
|
}],
|
|
413
463
|
attrs: {
|
|
414
464
|
spellcheck: false
|
|
@@ -420,7 +470,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
420
470
|
}, [
|
|
421
471
|
h('input', {
|
|
422
472
|
ref: 'refInputTarget',
|
|
423
|
-
class: 'vxe-password-input--inner',
|
|
473
|
+
class: 'vxe-password-input--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
424
474
|
domProps: {
|
|
425
475
|
value: inputValue
|
|
426
476
|
},
|
|
@@ -428,8 +478,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
428
478
|
name,
|
|
429
479
|
type: inputType,
|
|
430
480
|
placeholder: inpPlaceholder,
|
|
431
|
-
readonly:
|
|
432
|
-
disabled,
|
|
481
|
+
readonly: inputReadonly,
|
|
482
|
+
disabled: isDisabled,
|
|
433
483
|
autocomplete: autocomplete || autoComplete,
|
|
434
484
|
maxlength: maxLength
|
|
435
485
|
},
|
|
@@ -23,6 +23,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
23
23
|
props: {
|
|
24
24
|
value: [String, Number] as PropType<VxeTextareaPropTypes.ModelValue>,
|
|
25
25
|
className: String as PropType<VxeTextareaPropTypes.ClassName>,
|
|
26
|
+
inputClassName: {
|
|
27
|
+
type: String as PropType<VxeTextareaPropTypes.InputClassName>,
|
|
28
|
+
default: () => getConfig().textarea.inputClassName
|
|
29
|
+
},
|
|
26
30
|
immediate: {
|
|
27
31
|
type: Boolean as PropType<VxeTextareaPropTypes.Immediate>,
|
|
28
32
|
default: true
|
|
@@ -368,7 +372,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
368
372
|
const props = $xeTextarea
|
|
369
373
|
const reactData = $xeTextarea.reactData
|
|
370
374
|
|
|
371
|
-
const { className, resize, autosize, autoSize, showWordCount, countMethod, rows, cols } = props
|
|
375
|
+
const { className, inputClassName, resize, autosize, autoSize, showWordCount, countMethod, rows, cols } = props
|
|
372
376
|
const { inputValue } = reactData
|
|
373
377
|
const vSize = $xeTextarea.computeSize
|
|
374
378
|
const isDisabled = $xeTextarea.computeIsDisabled
|
|
@@ -405,7 +409,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
405
409
|
}, [
|
|
406
410
|
h('textarea', {
|
|
407
411
|
ref: 'refTextarea',
|
|
408
|
-
class: 'vxe-textarea--inner',
|
|
412
|
+
class: 'vxe-textarea--inner' + (inputClassName ? (' ' + inputClassName) : ''),
|
|
409
413
|
domProps: {
|
|
410
414
|
value: inputValue
|
|
411
415
|
},
|