vxe-pc-ui 4.2.2 → 4.2.4
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/button/src/button.js +9 -9
- package/es/col/style.css +1 -0
- package/es/col/style.min.css +1 -1
- package/es/date-picker/src/date-picker.js +1 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +3 -3
- package/es/input/src/input.js +1 -1
- package/es/pulldown/src/pulldown.js +10 -10
- package/es/select/src/select.js +3 -3
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree-select/src/tree-select.js +6 -6
- package/es/ui/index.js +4 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-col/style.css +1 -0
- package/es/vxe-col/style.min.css +1 -1
- package/lib/button/src/button.js +9 -8
- package/lib/button/src/button.min.js +1 -1
- package/lib/col/style/style.css +1 -0
- package/lib/col/style/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +1 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +3 -2
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +36 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +1 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +8 -8
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +3 -2
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree-select/src/tree-select.js +6 -5
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +4 -2
- 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-col/style/style.css +1 -0
- package/lib/vxe-col/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +9 -9
- package/packages/date-picker/src/date-picker.ts +1 -1
- package/packages/icon-picker/src/icon-picker.ts +3 -3
- package/packages/input/src/input.ts +1 -1
- package/packages/pulldown/src/pulldown.ts +10 -10
- package/packages/select/src/select.ts +3 -3
- package/packages/tree-select/src/tree-select.ts +6 -6
- package/packages/ui/index.ts +3 -1
- package/styles/components/col.scss +1 -0
- package/types/components/button.d.ts +1 -1
- package/types/components/form-view.d.ts +1 -1
- package/types/components/pulldown.d.ts +1 -1
- package/types/components/table.d.ts +5 -1
- package/types/components/tree-select.d.ts +1 -1
- /package/es/icon/style/{iconfont.1727082648124.ttf → iconfont.1727151630380.ttf} +0 -0
- /package/es/icon/style/{iconfont.1727082648124.woff → iconfont.1727151630380.woff} +0 -0
- /package/es/icon/style/{iconfont.1727082648124.woff2 → iconfont.1727151630380.woff2} +0 -0
- /package/es/{iconfont.1727082648124.ttf → iconfont.1727151630380.ttf} +0 -0
- /package/es/{iconfont.1727082648124.woff → iconfont.1727151630380.woff} +0 -0
- /package/es/{iconfont.1727082648124.woff2 → iconfont.1727151630380.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1727082648124.ttf → iconfont.1727151630380.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1727082648124.woff → iconfont.1727151630380.woff} +0 -0
- /package/lib/icon/style/{iconfont.1727082648124.woff2 → iconfont.1727151630380.woff2} +0 -0
- /package/lib/{iconfont.1727082648124.ttf → iconfont.1727151630380.ttf} +0 -0
- /package/lib/{iconfont.1727082648124.woff → iconfont.1727151630380.woff} +0 -0
- /package/lib/{iconfont.1727082648124.woff2 → iconfont.1727151630380.woff2} +0 -0
|
@@ -81,7 +81,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
81
81
|
panelPlacement: null,
|
|
82
82
|
triggerFocusPanel: false,
|
|
83
83
|
visiblePanel: false,
|
|
84
|
-
|
|
84
|
+
isAniVisible: false,
|
|
85
85
|
isActivated: false
|
|
86
86
|
});
|
|
87
87
|
const internalData = {
|
|
@@ -340,7 +340,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
340
340
|
reactData.initialized = true;
|
|
341
341
|
}
|
|
342
342
|
reactData.isActivated = true;
|
|
343
|
-
reactData.
|
|
343
|
+
reactData.isAniVisible = true;
|
|
344
344
|
setTimeout(() => {
|
|
345
345
|
reactData.visiblePanel = true;
|
|
346
346
|
}, 10);
|
|
@@ -351,7 +351,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
351
351
|
const hideOptionPanel = () => {
|
|
352
352
|
reactData.visiblePanel = false;
|
|
353
353
|
internalData.hpTimeout = window.setTimeout(() => {
|
|
354
|
-
reactData.
|
|
354
|
+
reactData.isAniVisible = false;
|
|
355
355
|
}, 350);
|
|
356
356
|
};
|
|
357
357
|
const changeEvent = (evnt, selectValue) => {
|
|
@@ -485,6 +485,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
485
485
|
const {
|
|
486
486
|
initialized,
|
|
487
487
|
isActivated,
|
|
488
|
+
isAniVisible,
|
|
488
489
|
visiblePanel
|
|
489
490
|
} = reactData;
|
|
490
491
|
const vSize = computeSize.value;
|
|
@@ -554,12 +555,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
554
555
|
}) : popupClassName : '', {
|
|
555
556
|
[`size--${vSize}`]: vSize,
|
|
556
557
|
'is--transfer': btnTransfer,
|
|
557
|
-
'ani--leave': !loading &&
|
|
558
|
+
'ani--leave': !loading && isAniVisible,
|
|
558
559
|
'ani--enter': !loading && visiblePanel
|
|
559
560
|
}],
|
|
560
561
|
placement: reactData.panelPlacement,
|
|
561
562
|
style: reactData.panelStyle
|
|
562
|
-
}, initialized ? [(0, _vue.h)('div', {
|
|
563
|
+
}, initialized && (visiblePanel || isAniVisible) ? [(0, _vue.h)('div', {
|
|
563
564
|
class: 'vxe-tree-select--panel-wrapper'
|
|
564
565
|
}, [headerSlot ? (0, _vue.h)('div', {
|
|
565
566
|
class: 'vxe-tree-select--panel-header'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_ui=require("../../ui"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_xeUtils=_interopRequireDefault(require("xe-utils")),_input=_interopRequireDefault(require("../../input/src/input")),_tree=_interopRequireDefault(require("../../tree/src/tree"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getOptUniqueId(){return _xeUtils.default.uniqueId("node_")}var _default=exports.default=(0,_vue.defineComponent)({name:"VxeTreeSelect",props:{modelValue:[String,Number,Array],clearable:Boolean,placeholder:{type:String,default:()=>_xeUtils.default.eqNull((0,_ui.getConfig)().select.placeholder)?(0,_ui.getI18n)("vxe.base.pleaseSelect"):(0,_ui.getConfig)().select.placeholder},readonly:{type:Boolean,default:null},loading:Boolean,disabled:{type:Boolean,default:null},multiple:Boolean,className:[String,Function],popupClassName:[String,Function],prefixIcon:String,placement:String,options:Array,optionProps:Object,size:{type:String,default:()=>(0,_ui.getConfig)().select.size||(0,_ui.getConfig)().size},remote:Boolean,remoteMethod:Function,treeConfig:Object,transfer:{type:Boolean,default:null}},emits:["update:modelValue","change","clear","blur","focus","click","node-click"],setup(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_ui=require("../../ui"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_xeUtils=_interopRequireDefault(require("xe-utils")),_input=_interopRequireDefault(require("../../input/src/input")),_tree=_interopRequireDefault(require("../../tree/src/tree"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getOptUniqueId(){return _xeUtils.default.uniqueId("node_")}var _default=exports.default=(0,_vue.defineComponent)({name:"VxeTreeSelect",props:{modelValue:[String,Number,Array],clearable:Boolean,placeholder:{type:String,default:()=>_xeUtils.default.eqNull((0,_ui.getConfig)().select.placeholder)?(0,_ui.getI18n)("vxe.base.pleaseSelect"):(0,_ui.getConfig)().select.placeholder},readonly:{type:Boolean,default:null},loading:Boolean,disabled:{type:Boolean,default:null},multiple:Boolean,className:[String,Function],popupClassName:[String,Function],prefixIcon:String,placement:String,options:Array,optionProps:Object,size:{type:String,default:()=>(0,_ui.getConfig)().select.size||(0,_ui.getConfig)().size},remote:Boolean,remoteMethod:Function,treeConfig:Object,transfer:{type:Boolean,default:null}},emits:["update:modelValue","change","clear","blur","focus","click","node-click"],setup(N,e){const{emit:i,slots:P}=e,l=(0,_vue.inject)("$xeModal",null),n=(0,_vue.inject)("$xeDrawer",null),a=(0,_vue.inject)("$xeTable",null),o=(0,_vue.inject)("$xeForm",null),u=(0,_vue.inject)("xeFormItemInfo",null);var t=_xeUtils.default.uniqueId();const w=(0,_ui.useSize)(N)["computeSize"],O=(0,_vue.ref)(),k=(0,_vue.ref)(),q=(0,_vue.ref)(),V=(0,_vue.ref)(),j=(0,_vue.reactive)({initialized:!1,fullOptionList:[],fullNodeMaps:{},visibleOptionList:[],panelIndex:0,panelStyle:{},panelPlacement:null,triggerFocusPanel:!1,visiblePanel:!1,isAniVisible:!1,isActivated:!1}),r={hpTimeout:void 0},s={refElem:O},A=(0,_vue.computed)(()=>{var e=N["readonly"];return null===e?!!o&&o.props.readonly:e}),M=(0,_vue.computed)(()=>{var e=N["disabled"];return null===e?!!o&&o.props.disabled:e}),z=(0,_vue.computed)(()=>{var e=N["transfer"];if(null===e){var t=(0,_ui.getConfig)().select.transfer;if(_xeUtils.default.isBoolean(t))return t;if(a||l||n||o)return!0}return e}),L=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().treeSelect.treeConfig,N.treeConfig)),U=(0,_vue.computed)(()=>{var e=L.value;return Object.assign({isHover:!0},e.nodeConfig)}),R=(0,_vue.computed)(()=>{var e=L.value;return Object.assign({showIcon:!!e.showCheckbox},e.checkboxConfig,{trigger:"node"})}),K=(0,_vue.computed)(()=>{var e=L.value;return Object.assign({showIcon:!!e.showRadio},e.radioConfig,{trigger:"node"})}),d=(0,_vue.computed)(()=>N.optionProps||{}),$=(0,_vue.computed)(()=>{return d.value.label||"label"}),D=(0,_vue.computed)(()=>{return d.value.value||"value"}),B=(0,_vue.computed)(()=>{return d.value.children||"children"}),Z=(0,_vue.computed)(()=>{return d.value.parent||"parentField"}),G=(0,_vue.computed)(()=>{return d.value.hasChild||"hasChild"}),J=(0,_vue.computed)(()=>{var e=N["modelValue"];const l=j["fullNodeMaps"],i=$.value;return(_xeUtils.default.isArray(e)?e:[e]).map(e=>{var t=l[e];return t?t.item[i]:e}).join(", ")}),h={},H={xID:t,props:N,context:e,reactData:j,internalData:r,getRefMaps:()=>s,getComputeMaps:()=>h},v={dispatchEvent(e,t,l){i(e,(0,_ui.createEvent)(l,{$treeSelect:H},t))}},c=()=>{var e=N["options"];const u=D.value;var t=B.value;const r={};_xeUtils.default.eachTree(e,(e,t,l,i,n,a)=>{let o=(e=>{e=e[D.value];return e?encodeURIComponent(e):""})(e);o||(o=getOptUniqueId(),e[u]=o),r[o]={item:e,index:t,items:l,parent:n,nodes:a}},{children:t}),j.fullOptionList=e||[],j.fullNodeMaps=r,(0,_vue.nextTick)()},p=()=>(0,_vue.nextTick)().then(()=>{var i=N["placement"],n=j["panelIndex"],a=O.value,o=V.value,e=z.value;if(o&&a){var u=a.offsetHeight,r=a.offsetWidth,s=o.offsetHeight,o=o.offsetWidth,n={zIndex:n},{boundingTop:a,boundingLeft:d,visibleHeight:v,visibleWidth:c}=(0,_dom.getAbsolutePos)(a);let l="bottom";if(e){let e=d,t=a+u;"top"===i?(l="top",t=a-s):i||(t+s+5>v&&(l="top",t=a-s),t<5&&(l="bottom",t=a+u)),e+o+5>c&&(e-=e+o+5-c),e<5&&(e=5),Object.assign(n,{left:e+"px",top:t+"px",minWidth:r+"px"})}else"top"===i?(l="top",n.bottom=u+"px"):i||v<a+u+s&&5<a-u-s&&(l="top",n.bottom=u+"px");return j.panelStyle=n,j.panelPlacement=l,(0,_vue.nextTick)()}}),f=()=>{var e=N["loading"],t=M.value;e||t||(clearTimeout(r.hpTimeout),j.initialized||(j.initialized=!0),j.isActivated=!0,j.isAniVisible=!0,setTimeout(()=>{j.visiblePanel=!0},10),j.panelIndex<(0,_utils.getLastZIndex)()&&(j.panelIndex=(0,_utils.nextZIndex)()),p())},_=()=>{j.visiblePanel=!1,r.hpTimeout=window.setTimeout(()=>{j.isAniVisible=!1},350)},g=(e,t)=>{var l=j["fullNodeMaps"];i("update:modelValue",t),t!==N.modelValue&&(l=l[t],v.dispatchEvent("change",{value:t,option:l?l.item:null},e),o)&&u&&o.triggerItemEvent(e,u.itemConfig.field,t)},m=(e,t)=>{g(e,t),v.dispatchEvent("clear",{value:t},e)},Q=(e,t)=>{m(t,null),_()},b=e=>{var t=j["visiblePanel"];M.value||t&&(t=V.value,((0,_dom.getEventTargetNode)(e,t).flag?p:_)())},x=e=>{var t,l,i=j["visiblePanel"];M.value||(t=O.value,l=V.value,j.isActivated=(0,_dom.getEventTargetNode)(e,t).flag||(0,_dom.getEventTargetNode)(e,l).flag,i&&!j.isActivated&&_())},C=()=>{_()},X=e=>{M.value||j.visiblePanel||(j.triggerFocusPanel=!0,f(),setTimeout(()=>{j.triggerFocusPanel=!1},150)),v.dispatchEvent("focus",{},e)},Y=e=>{W(e),v.dispatchEvent("click",{},e)},ee=e=>{j.isActivated=!1,v.dispatchEvent("blur",{},e)},W=e=>{e=e.$event;e.preventDefault(),j.triggerFocusPanel?j.triggerFocusPanel=!1:(j.visiblePanel?_:f)()},te=e=>{var t=e["$event"];v.dispatchEvent("node-click",e,t)},le=e=>{var{value:e,$event:t}=e;g(t,e),_()},ie=e=>{var{value:e,$event:t}=e;g(t,e)};Object.assign(H,v,{});return(0,_vue.watch)(()=>N.options,()=>{c()}),c(),(0,_vue.onMounted)(()=>{_ui.globalEvents.on(H,"mousewheel",b),_ui.globalEvents.on(H,"mousedown",x),_ui.globalEvents.on(H,"blur",C)}),(0,_vue.onUnmounted)(()=>{_ui.globalEvents.off(H,"mousewheel"),_ui.globalEvents.off(H,"mousedown"),_ui.globalEvents.off(H,"blur")}),(0,_vue.provide)("$xeTreeSelect",H),H.renderVN=()=>{var{className:e,modelValue:t,multiple:l,options:i,popupClassName:n,loading:a}=N,{initialized:o,isActivated:u,isAniVisible:r,visiblePanel:s}=j,d=w.value,v=M.value,c=J.value,p=z.value,f=A.value,_=P.default,g=P.header,h=P.footer;const m=P.prefix;var b=L.value,x=U.value,C=R.value,E=K.value,I=$.value,y=D.value,T=B.value,F=Z.value,S=G.value;return f?(0,_vue.h)("div",{ref:O,class:["vxe-tree-select--readonly",e]},[(0,_vue.h)("div",{class:"vxe-tree-select-slots",ref:"hideOption"},_?_({}):[]),(0,_vue.h)("span",{class:"vxe-tree-select-label"},c)]):(0,_vue.h)("div",{ref:O,class:["vxe-tree-select",e?_xeUtils.default.isFunction(e)?e({$treeSelect:H}):e:"",{["size--"+d]:d,"is--visible":s,"is--disabled":v,"is--loading":a,"is--active":u}]},[(0,_vue.h)(_input.default,{ref:k,clearable:N.clearable,placeholder:N.placeholder,readonly:!0,disabled:v,type:"text",prefixIcon:N.prefixIcon,suffixIcon:a?(0,_ui.getIcon)().TREE_SELECT_LOADED:s?(0,_ui.getIcon)().TREE_SELECT_OPEN:(0,_ui.getIcon)().TREE_SELECT_CLOSE,modelValue:c,onClear:Q,onClick:Y,onFocus:X,onBlur:ee,onSuffixClick:W},m?{prefix:()=>m({})}:{}),(0,_vue.h)(_vue.Teleport,{to:"body",disabled:!p||!o},[(0,_vue.h)("div",{ref:V,class:["vxe-table--ignore-clear vxe-tree-select--panel",n?_xeUtils.default.isFunction(n)?n({$treeSelect:H}):n:"",{["size--"+d]:d,"is--transfer":p,"ani--leave":!a&&r,"ani--enter":!a&&s}],placement:j.panelPlacement,style:j.panelStyle},o&&(s||r)?[(0,_vue.h)("div",{class:"vxe-tree-select--panel-wrapper"},[g?(0,_vue.h)("div",{class:"vxe-tree-select--panel-header"},g({})):(0,_vue.createCommentVNode)(),(0,_vue.h)("div",{class:"vxe-tree-select--panel-body"},[(0,_vue.h)("div",{ref:q,class:"vxe-tree-select-option--wrapper"},[(0,_vue.h)(_tree.default,{class:"vxe-tree-select--tree",data:i,indent:b.indent,showRadio:!l,radioConfig:E,checkNodeKey:l?null:t,showCheckbox:!!l,checkNodeKeys:l?t:null,checkboxConfig:C,titleField:I,valueField:y,keyField:b.keyField,childrenField:b.childrenField||T,parentField:b.parentField||F,hasChildField:b.hasChildField||S,accordion:b.accordion,nodeConfig:x,lazy:b.lazy,loadMethod:b.loadMethod,toggleMethod:b.toggleMethod,transform:b.transform,trigger:b.trigger,showIcon:b.showIcon,showLine:b.showLine,iconOpen:b.iconOpen,iconLoaded:b.iconLoaded,iconClose:b.iconClose,onNodeClick:te,onRadioChange:le,onCheckboxChange:ie})])]),h?(0,_vue.h)("div",{class:"vxe-tree-select--panel-footer"},h({})):(0,_vue.createCommentVNode)()])]:[])])])},H},render(){return this.renderVN()}});
|
package/lib/ui/index.js
CHANGED
|
@@ -27,7 +27,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _utils = require("./src/utils");
|
|
29
29
|
var _log = require("./src/log");
|
|
30
|
-
const version = exports.version = "4.2.
|
|
30
|
+
const version = exports.version = "4.2.4";
|
|
31
31
|
_core.VxeUI.version = version;
|
|
32
32
|
_core.VxeUI.uiVersion = version;
|
|
33
33
|
_core.VxeUI.tableVersion = '';
|
|
@@ -238,7 +238,9 @@ _core.VxeUI.setup = setup;
|
|
|
238
238
|
controls: true
|
|
239
239
|
},
|
|
240
240
|
printPageBreak: {},
|
|
241
|
-
pulldown: {
|
|
241
|
+
pulldown: {
|
|
242
|
+
destroyOnClose: true
|
|
243
|
+
},
|
|
242
244
|
radio: {
|
|
243
245
|
strict: true
|
|
244
246
|
},
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";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")),_utils=require("./src/utils"),_log=require("./src/log");const version=exports.version="4.2.
|
|
1
|
+
"use strict";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")),_utils=require("./src/utils"),_log=require("./src/log");const version=exports.version="4.2.4";function config(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.version=version,_core.VxeUI.uiVersion=version,_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover"},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:{},checkbox:{},checkboxGroup:{},col:{},collapse:{},collapsePane:{},countdown:{},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},form:{validConfig:{showMessage:!0,autoPos:!0},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"]},image:{showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{scrollY:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},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"},numberInput:{digits:2,controls:!0},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},tabs:{},tag:{},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,minHeight:60,radioConfig:{strict:!0}},treeSelect:{treeConfig:{radioConfig:{},checkboxConfig:{}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,imageStyle:{}},table:{},colgroup:{},column:{},toolbar:{},grid:{}});const iconPrefix="vxe-icon-";(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",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",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",NUMBER_INPUT_PREV_NUM:iconPrefix+"caret-up",NUMBER_INPUT_NEXT_NUM:iconPrefix+"caret-down",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_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_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_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-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",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
|
-
const version = `ui v${"4.2.
|
|
8
|
+
const version = `ui v${"4.2.4"}`;
|
|
9
9
|
const warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
const errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.2.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.2.4",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-col{display:block}.vxe-col.is--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-col.is--fill{flex-grow:1}.vxe-col:not(.is--fill){flex-shrink:0}.vxe-col.align--left{text-align:left}.vxe-col.align--center{text-align:center}.vxe-col.align--right{text-align:right}.vxe-col.span1{width:4.16667%}.vxe-col.span2{width:8.33333%}.vxe-col.span3{width:12.5%}.vxe-col.span4{width:16.66667%}.vxe-col.span5{width:20.83333%}.vxe-col.span6{width:25%}.vxe-col.span7{width:29.16667%}.vxe-col.span8{width:33.33333%}.vxe-col.span9{width:37.5%}.vxe-col.span10{width:41.66667%}.vxe-col.span11{width:45.83333%}.vxe-col.span12{width:50%}.vxe-col.span13{width:54.16667%}.vxe-col.span14{width:58.33333%}.vxe-col.span15{width:62.5%}.vxe-col.span16{width:66.66667%}.vxe-col.span17{width:70.83333%}.vxe-col.span18{width:75%}.vxe-col.span19{width:79.16667%}.vxe-col.span20{width:83.33333%}.vxe-col.span21{width:87.5%}.vxe-col.span22{width:91.66667%}.vxe-col.span23{width:95.83333%}.vxe-col.span24{width:100%}.vxe-col--inner{display:flex;flex-direction:column}
|
|
1
|
+
.vxe-col{display:block}.vxe-col.is--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-col.is--fill{flex-grow:1}.vxe-col:not(.is--fill){flex-shrink:0}.vxe-col.align--left{text-align:left}.vxe-col.align--center{text-align:center}.vxe-col.align--right{text-align:right}.vxe-col.span1{width:4.16667%}.vxe-col.span2{width:8.33333%}.vxe-col.span3{width:12.5%}.vxe-col.span4{width:16.66667%}.vxe-col.span5{width:20.83333%}.vxe-col.span6{width:25%}.vxe-col.span7{width:29.16667%}.vxe-col.span8{width:33.33333%}.vxe-col.span9{width:37.5%}.vxe-col.span10{width:41.66667%}.vxe-col.span11{width:45.83333%}.vxe-col.span12{width:50%}.vxe-col.span13{width:54.16667%}.vxe-col.span14{width:58.33333%}.vxe-col.span15{width:62.5%}.vxe-col.span16{width:66.66667%}.vxe-col.span17{width:70.83333%}.vxe-col.span18{width:75%}.vxe-col.span19{width:79.16667%}.vxe-col.span20{width:83.33333%}.vxe-col.span21{width:87.5%}.vxe-col.span22{width:91.66667%}.vxe-col.span23{width:95.83333%}.vxe-col.span24{width:100%}.vxe-col--inner{display:flex;flex-direction:column;width:100%}
|
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ export default defineComponent({
|
|
|
113
113
|
const reactData = reactive<ButtonReactData>({
|
|
114
114
|
initialized: false,
|
|
115
115
|
visiblePanel: false,
|
|
116
|
-
|
|
116
|
+
isAniVisible: false,
|
|
117
117
|
isActivated: false,
|
|
118
118
|
panelIndex: 0,
|
|
119
119
|
panelStyle: {},
|
|
@@ -316,7 +316,7 @@ export default defineComponent({
|
|
|
316
316
|
reactData.visiblePanel = false
|
|
317
317
|
setTimeout(() => {
|
|
318
318
|
if (!panelElem || panelElem.dataset.active !== 'Y') {
|
|
319
|
-
reactData.
|
|
319
|
+
reactData.isAniVisible = false
|
|
320
320
|
}
|
|
321
321
|
}, 350)
|
|
322
322
|
dispatchEvent('dropdown-click', { name: targetElem.getAttribute('name'), $event: evnt }, evnt)
|
|
@@ -327,7 +327,7 @@ export default defineComponent({
|
|
|
327
327
|
const panelElem = refBtnPanel.value
|
|
328
328
|
if (panelElem) {
|
|
329
329
|
panelElem.dataset.active = 'Y'
|
|
330
|
-
reactData.
|
|
330
|
+
reactData.isAniVisible = true
|
|
331
331
|
setTimeout(() => {
|
|
332
332
|
if (panelElem.dataset.active === 'Y') {
|
|
333
333
|
reactData.visiblePanel = true
|
|
@@ -385,7 +385,7 @@ export default defineComponent({
|
|
|
385
385
|
if (panelElem.dataset.active === 'Y') {
|
|
386
386
|
mouseenterDropdownEvent()
|
|
387
387
|
} else {
|
|
388
|
-
reactData.
|
|
388
|
+
reactData.isAniVisible = false
|
|
389
389
|
}
|
|
390
390
|
}, trigger === 'click' ? 50 : 250)
|
|
391
391
|
}
|
|
@@ -402,13 +402,13 @@ export default defineComponent({
|
|
|
402
402
|
reactData.visiblePanel = false
|
|
403
403
|
setTimeout(() => {
|
|
404
404
|
if (panelElem.dataset.active !== 'Y') {
|
|
405
|
-
reactData.
|
|
405
|
+
reactData.isAniVisible = false
|
|
406
406
|
}
|
|
407
407
|
}, 350)
|
|
408
408
|
}
|
|
409
409
|
}, 100)
|
|
410
410
|
} else {
|
|
411
|
-
reactData.
|
|
411
|
+
reactData.isAniVisible = false
|
|
412
412
|
reactData.visiblePanel = false
|
|
413
413
|
}
|
|
414
414
|
return nextTick()
|
|
@@ -506,7 +506,7 @@ export default defineComponent({
|
|
|
506
506
|
|
|
507
507
|
const renderVN = () => {
|
|
508
508
|
const { className, popupClassName, align, trigger, title, routerLink, type, destroyOnClose, name, loading } = props
|
|
509
|
-
const { initialized, visiblePanel } = reactData
|
|
509
|
+
const { initialized, isAniVisible, visiblePanel } = reactData
|
|
510
510
|
const isFormBtn = computeIsFormBtn.value
|
|
511
511
|
const btnMode = computeBtnMode.value
|
|
512
512
|
const btnStatus = computeBtnStatus.value
|
|
@@ -595,13 +595,13 @@ export default defineComponent({
|
|
|
595
595
|
ref: refBtnPanel,
|
|
596
596
|
class: ['vxe-button--dropdown-panel', popupClassName ? (XEUtils.isFunction(popupClassName) ? popupClassName({ $button: $xeButton }) : popupClassName) : '', {
|
|
597
597
|
[`size--${vSize}`]: vSize,
|
|
598
|
-
'ani--leave':
|
|
598
|
+
'ani--leave': isAniVisible,
|
|
599
599
|
'ani--enter': visiblePanel
|
|
600
600
|
}],
|
|
601
601
|
placement: reactData.panelPlacement,
|
|
602
602
|
style: reactData.panelStyle,
|
|
603
603
|
...panelOns
|
|
604
|
-
}, initialized
|
|
604
|
+
}, initialized && (visiblePanel || isAniVisible)
|
|
605
605
|
? [
|
|
606
606
|
h('div', {
|
|
607
607
|
class: 'vxe-button--dropdown-wrapper',
|
|
@@ -475,7 +475,7 @@ export default defineComponent({
|
|
|
475
475
|
|
|
476
476
|
const renderVN = () => {
|
|
477
477
|
const { className, popupClassName, clearable } = props
|
|
478
|
-
const { initialized, isActivated, visiblePanel, selectIcon } = reactData
|
|
478
|
+
const { initialized, isActivated, isAniVisible, visiblePanel, selectIcon } = reactData
|
|
479
479
|
const vSize = computeSize.value
|
|
480
480
|
const isDisabled = computeIsDisabled.value
|
|
481
481
|
const btnTransfer = computeBtnTransfer.value
|
|
@@ -552,13 +552,13 @@ export default defineComponent({
|
|
|
552
552
|
class: ['vxe-table--ignore-clear vxe-ico-picker--panel', popupClassName ? (XEUtils.isFunction(popupClassName) ? popupClassName({ $iconPicker: $xeIconPicker }) : popupClassName) : '', {
|
|
553
553
|
[`size--${vSize}`]: vSize,
|
|
554
554
|
'is--transfer': btnTransfer,
|
|
555
|
-
'ani--leave':
|
|
555
|
+
'ani--leave': isAniVisible,
|
|
556
556
|
'ani--enter': visiblePanel
|
|
557
557
|
}],
|
|
558
558
|
placement: reactData.panelPlacement,
|
|
559
559
|
style: reactData.panelStyle
|
|
560
560
|
}, [
|
|
561
|
-
initialized
|
|
561
|
+
initialized && (visiblePanel || isAniVisible)
|
|
562
562
|
? h('div', {
|
|
563
563
|
class: 'vxe-ico-picker--panel-wrapper'
|
|
564
564
|
}, [
|
|
@@ -57,7 +57,7 @@ export default defineComponent({
|
|
|
57
57
|
panelStyle: {},
|
|
58
58
|
panelPlacement: null,
|
|
59
59
|
visiblePanel: false,
|
|
60
|
-
|
|
60
|
+
isAniVisible: false,
|
|
61
61
|
isActivated: false
|
|
62
62
|
})
|
|
63
63
|
|
|
@@ -197,7 +197,7 @@ export default defineComponent({
|
|
|
197
197
|
clearTimeout(internalData.hpTimeout)
|
|
198
198
|
}
|
|
199
199
|
reactData.isActivated = true
|
|
200
|
-
reactData.
|
|
200
|
+
reactData.isAniVisible = true
|
|
201
201
|
setTimeout(() => {
|
|
202
202
|
reactData.visiblePanel = true
|
|
203
203
|
emit('update:modelValue', true)
|
|
@@ -222,9 +222,9 @@ export default defineComponent({
|
|
|
222
222
|
reactData.visiblePanel = false
|
|
223
223
|
emit('update:modelValue', false)
|
|
224
224
|
return new Promise<void>(resolve => {
|
|
225
|
-
if (reactData.
|
|
225
|
+
if (reactData.isAniVisible) {
|
|
226
226
|
internalData.hpTimeout = window.setTimeout(() => {
|
|
227
|
-
reactData.
|
|
227
|
+
reactData.isAniVisible = false
|
|
228
228
|
nextTick(() => {
|
|
229
229
|
resolve()
|
|
230
230
|
})
|
|
@@ -357,7 +357,7 @@ export default defineComponent({
|
|
|
357
357
|
|
|
358
358
|
const renderVN = () => {
|
|
359
359
|
const { className, options, popupClassName, showPopupShadow, destroyOnClose, disabled } = props
|
|
360
|
-
const { initialized, isActivated,
|
|
360
|
+
const { initialized, isActivated, isAniVisible, visiblePanel, panelStyle, panelPlacement } = reactData
|
|
361
361
|
const btnTransfer = computeBtnTransfer.value
|
|
362
362
|
const vSize = computeSize.value
|
|
363
363
|
const defaultSlot = slots.default
|
|
@@ -389,7 +389,7 @@ export default defineComponent({
|
|
|
389
389
|
[`size--${vSize}`]: vSize,
|
|
390
390
|
'is--shadow': showPopupShadow,
|
|
391
391
|
'is--transfer': btnTransfer,
|
|
392
|
-
'ani--leave':
|
|
392
|
+
'ani--leave': isAniVisible,
|
|
393
393
|
'ani--enter': visiblePanel
|
|
394
394
|
}],
|
|
395
395
|
placement: panelPlacement,
|
|
@@ -397,9 +397,8 @@ export default defineComponent({
|
|
|
397
397
|
}, [
|
|
398
398
|
h('div', {
|
|
399
399
|
class: 'vxe-pulldown--panel-wrapper'
|
|
400
|
-
},
|
|
401
|
-
? [
|
|
402
|
-
: [
|
|
400
|
+
}, initialized && (destroyOnClose ? (visiblePanel || isAniVisible) : true)
|
|
401
|
+
? [
|
|
403
402
|
headerSlot
|
|
404
403
|
? h('div', {
|
|
405
404
|
class: 'vxe-pulldown--panel-header'
|
|
@@ -417,7 +416,8 @@ export default defineComponent({
|
|
|
417
416
|
class: 'vxe-pulldown--panel-footer'
|
|
418
417
|
}, footerSlot({ $pulldown: $xePulldown }))
|
|
419
418
|
: createCommentVNode()
|
|
420
|
-
]
|
|
419
|
+
]
|
|
420
|
+
: [])
|
|
421
421
|
])
|
|
422
422
|
])
|
|
423
423
|
])
|
|
@@ -983,7 +983,7 @@ export default defineComponent({
|
|
|
983
983
|
|
|
984
984
|
const renderVN = () => {
|
|
985
985
|
const { className, popupClassName, loading, filterable } = props
|
|
986
|
-
const { initialized, isActivated, visiblePanel } = reactData
|
|
986
|
+
const { initialized, isActivated, isAniVisible, visiblePanel } = reactData
|
|
987
987
|
const vSize = computeSize.value
|
|
988
988
|
const isDisabled = computeIsDisabled.value
|
|
989
989
|
const selectLabel = computeSelectLabel.value
|
|
@@ -1052,12 +1052,12 @@ export default defineComponent({
|
|
|
1052
1052
|
class: ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? (XEUtils.isFunction(popupClassName) ? popupClassName({ $select: $xeSelect }) : popupClassName) : '', {
|
|
1053
1053
|
[`size--${vSize}`]: vSize,
|
|
1054
1054
|
'is--transfer': btnTransfer,
|
|
1055
|
-
'ani--leave': !loading &&
|
|
1055
|
+
'ani--leave': !loading && isAniVisible,
|
|
1056
1056
|
'ani--enter': !loading && visiblePanel
|
|
1057
1057
|
}],
|
|
1058
1058
|
placement: reactData.panelPlacement,
|
|
1059
1059
|
style: reactData.panelStyle
|
|
1060
|
-
}, initialized
|
|
1060
|
+
}, initialized && (visiblePanel || isAniVisible)
|
|
1061
1061
|
? [
|
|
1062
1062
|
filterable
|
|
1063
1063
|
? h('div', {
|
|
@@ -86,7 +86,7 @@ export default defineComponent({
|
|
|
86
86
|
panelPlacement: null,
|
|
87
87
|
triggerFocusPanel: false,
|
|
88
88
|
visiblePanel: false,
|
|
89
|
-
|
|
89
|
+
isAniVisible: false,
|
|
90
90
|
isActivated: false
|
|
91
91
|
})
|
|
92
92
|
|
|
@@ -343,7 +343,7 @@ export default defineComponent({
|
|
|
343
343
|
reactData.initialized = true
|
|
344
344
|
}
|
|
345
345
|
reactData.isActivated = true
|
|
346
|
-
reactData.
|
|
346
|
+
reactData.isAniVisible = true
|
|
347
347
|
setTimeout(() => {
|
|
348
348
|
reactData.visiblePanel = true
|
|
349
349
|
}, 10)
|
|
@@ -355,7 +355,7 @@ export default defineComponent({
|
|
|
355
355
|
const hideOptionPanel = () => {
|
|
356
356
|
reactData.visiblePanel = false
|
|
357
357
|
internalData.hpTimeout = window.setTimeout(() => {
|
|
358
|
-
reactData.
|
|
358
|
+
reactData.isAniVisible = false
|
|
359
359
|
}, 350)
|
|
360
360
|
}
|
|
361
361
|
|
|
@@ -475,7 +475,7 @@ export default defineComponent({
|
|
|
475
475
|
|
|
476
476
|
const renderVN = () => {
|
|
477
477
|
const { className, modelValue, multiple, options, popupClassName, loading } = props
|
|
478
|
-
const { initialized, isActivated, visiblePanel } = reactData
|
|
478
|
+
const { initialized, isActivated, isAniVisible, visiblePanel } = reactData
|
|
479
479
|
const vSize = computeSize.value
|
|
480
480
|
const isDisabled = computeIsDisabled.value
|
|
481
481
|
const selectLabel = computeSelectLabel.value
|
|
@@ -548,12 +548,12 @@ export default defineComponent({
|
|
|
548
548
|
class: ['vxe-table--ignore-clear vxe-tree-select--panel', popupClassName ? (XEUtils.isFunction(popupClassName) ? popupClassName({ $treeSelect: $xeTreeSelect }) : popupClassName) : '', {
|
|
549
549
|
[`size--${vSize}`]: vSize,
|
|
550
550
|
'is--transfer': btnTransfer,
|
|
551
|
-
'ani--leave': !loading &&
|
|
551
|
+
'ani--leave': !loading && isAniVisible,
|
|
552
552
|
'ani--enter': !loading && visiblePanel
|
|
553
553
|
}],
|
|
554
554
|
placement: reactData.panelPlacement,
|
|
555
555
|
style: reactData.panelStyle
|
|
556
|
-
}, initialized
|
|
556
|
+
}, initialized && (visiblePanel || isAniVisible)
|
|
557
557
|
? [
|
|
558
558
|
h('div', {
|
|
559
559
|
class: 'vxe-tree-select--panel-wrapper'
|
package/packages/ui/index.ts
CHANGED
|
@@ -126,7 +126,7 @@ export interface VxeButtonPrivateComputed extends ButtonPrivateComputed { }
|
|
|
126
126
|
export interface ButtonReactData {
|
|
127
127
|
initialized: boolean
|
|
128
128
|
visiblePanel: boolean
|
|
129
|
-
|
|
129
|
+
isAniVisible: boolean
|
|
130
130
|
isActivated: boolean
|
|
131
131
|
panelIndex: number
|
|
132
132
|
panelStyle: VxeComponentStyleType
|
|
@@ -32,7 +32,7 @@ export namespace VxeFormViewPropTypes {
|
|
|
32
32
|
export type ViewRender = {
|
|
33
33
|
name?: string
|
|
34
34
|
}
|
|
35
|
-
export type FormOptions = Omit<VxeFormProps<D>, 'data' | 'items'>
|
|
35
|
+
export type FormOptions<D = any> = Omit<VxeFormProps<D>, 'data' | 'items'>
|
|
36
36
|
export type CreateFormConfig = (params: VxeFormViewDefines.CreateFormConfigParams) => VxeFormProps
|
|
37
37
|
export type Size = VxeComponentSizeType
|
|
38
38
|
}
|
|
@@ -74,6 +74,7 @@ export namespace VxeTablePropTypes {
|
|
|
74
74
|
export type Resizable = boolean
|
|
75
75
|
export type Stripe = boolean
|
|
76
76
|
export type Round = boolean
|
|
77
|
+
export type Padding = boolean
|
|
77
78
|
export type Border = boolean | 'default' | 'full' | 'outer' | 'inner' | 'none' | ''
|
|
78
79
|
export type Loading = boolean
|
|
79
80
|
export type Align = 'left' | 'center' | 'right' | '' | null
|
|
@@ -1729,6 +1730,10 @@ export interface VxeTableProps<D = any> {
|
|
|
1729
1730
|
* 是否带有斑马纹(需要注意的是,在可编辑表格场景下,临时插入的数据不会有斑马纹样式)
|
|
1730
1731
|
*/
|
|
1731
1732
|
stripe?: VxeTablePropTypes.Stripe
|
|
1733
|
+
/**
|
|
1734
|
+
* 单元格是否有边距
|
|
1735
|
+
*/
|
|
1736
|
+
padding?: VxeTablePropTypes.Padding
|
|
1732
1737
|
/**
|
|
1733
1738
|
* 是否为圆角边框
|
|
1734
1739
|
*/
|
|
@@ -4055,7 +4060,6 @@ export interface VxeTableListeners<D = any> {
|
|
|
4055
4060
|
* 当表格被激活且键盘被按下开始时会触发的事件
|
|
4056
4061
|
*/
|
|
4057
4062
|
keydownStart?: VxeTableEvents.KeydownStart<D>
|
|
4058
|
-
keydownStart?: VxeTableEvents.KeydownStart<D>
|
|
4059
4063
|
/**
|
|
4060
4064
|
* 当表格被激活且键盘被按下时会触发的事件
|
|
4061
4065
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|