vxe-pc-ui 3.20.11 → 3.20.12

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.
Files changed (72) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/layout-body/src/layout-body.js +3 -2
  3. package/es/list/src/list.js +7 -1
  4. package/es/scrollbar/src/scrollbar.js +6 -1
  5. package/es/scrollbar/style.css +25 -12
  6. package/es/scrollbar/style.min.css +1 -1
  7. package/es/select/src/select.js +7 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/tree/src/tree.js +7 -1
  11. package/es/ui/index.js +1 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-scrollbar/style.css +25 -12
  14. package/es/vxe-scrollbar/style.min.css +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +42 -20
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/layout-body/src/layout-body.js +3 -3
  20. package/lib/layout-body/src/layout-body.min.js +1 -1
  21. package/lib/list/src/list.js +7 -2
  22. package/lib/list/src/list.min.js +1 -1
  23. package/lib/scrollbar/src/scrollbar.js +9 -2
  24. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  25. package/lib/scrollbar/style/style.css +25 -12
  26. package/lib/scrollbar/style/style.min.css +1 -1
  27. package/lib/select/src/select.js +7 -2
  28. package/lib/select/src/select.min.js +1 -1
  29. package/lib/style.css +1 -1
  30. package/lib/style.min.css +1 -1
  31. package/lib/tree/src/tree.js +7 -2
  32. package/lib/tree/src/tree.min.js +1 -1
  33. package/lib/ui/index.js +1 -1
  34. package/lib/ui/index.min.js +1 -1
  35. package/lib/ui/src/log.js +1 -1
  36. package/lib/ui/src/log.min.js +1 -1
  37. package/lib/vxe-scrollbar/style/style.css +25 -12
  38. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  39. package/package.json +3 -3
  40. package/packages/layout-body/src/layout-body.ts +3 -2
  41. package/packages/list/src/list.ts +7 -1
  42. package/packages/scrollbar/src/scrollbar.ts +6 -1
  43. package/packages/select/src/select.ts +11 -5
  44. package/packages/tree/src/tree.ts +7 -1
  45. package/styles/components/scrollbar.scss +30 -12
  46. package/styles/theme/base.scss +4 -0
  47. package/types/components/card.d.ts +1 -1
  48. package/types/components/drawer.d.ts +1 -1
  49. package/types/components/icon-picker.d.ts +1 -1
  50. package/types/components/layout-aside.d.ts +1 -1
  51. package/types/components/layout-body.d.ts +1 -1
  52. package/types/components/list.d.ts +1 -1
  53. package/types/components/menu.d.ts +10 -1
  54. package/types/components/modal.d.ts +1 -1
  55. package/types/components/scrollbar.d.ts +5 -0
  56. package/types/components/select.d.ts +1 -1
  57. package/types/components/table.d.ts +4 -0
  58. package/types/components/tabs.d.ts +1 -1
  59. package/types/components/tooltip.d.ts +1 -1
  60. package/types/components/tree.d.ts +1 -1
  61. /package/es/icon/{iconfont.1792226835421.ttf → iconfont.1792405541486.ttf} +0 -0
  62. /package/es/icon/{iconfont.1792226835421.woff → iconfont.1792405541486.woff} +0 -0
  63. /package/es/icon/{iconfont.1792226835421.woff2 → iconfont.1792405541486.woff2} +0 -0
  64. /package/es/{iconfont.1792226835421.ttf → iconfont.1792405541486.ttf} +0 -0
  65. /package/es/{iconfont.1792226835421.woff → iconfont.1792405541486.woff} +0 -0
  66. /package/es/{iconfont.1792226835421.woff2 → iconfont.1792405541486.woff2} +0 -0
  67. /package/lib/icon/style/{iconfont.1792226835421.ttf → iconfont.1792405541486.ttf} +0 -0
  68. /package/lib/icon/style/{iconfont.1792226835421.woff → iconfont.1792405541486.woff} +0 -0
  69. /package/lib/icon/style/{iconfont.1792226835421.woff2 → iconfont.1792405541486.woff2} +0 -0
  70. /package/lib/{iconfont.1792226835421.ttf → iconfont.1792405541486.ttf} +0 -0
  71. /package/lib/{iconfont.1792226835421.woff → iconfont.1792405541486.woff} +0 -0
  72. /package/lib/{iconfont.1792226835421.woff2 → iconfont.1792405541486.woff2} +0 -0
@@ -118,8 +118,8 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
118
118
  var backtopId = $xeLayoutBody.backtopId;
119
119
  var loading = props.loading,
120
120
  padding = props.padding,
121
- showBacktop = props.showBacktop,
122
- useScrollbar = props.useScrollbar;
121
+ showBacktop = props.showBacktop;
122
+ var isVScrollbar = $xeLayoutBody.computeIsVScrollbar;
123
123
  var backtopOpts = $xeLayoutBody.computeBacktopOpts;
124
124
  var scrollbarProps = $xeLayoutBody.computeScrollbarProps;
125
125
  var vSize = $xeLayoutBody.computeSize;
@@ -139,7 +139,7 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
139
139
  }
140
140
  return h('div', {
141
141
  class: ['vxe-layout-body', _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--loading', loading), 'is--padding', padding)]
142
- }, [useScrollbar ? h(_scrollbar.default, {
142
+ }, [isVScrollbar ? h(_scrollbar.default, {
143
143
  props: scrollbarProps,
144
144
  scopedSlots: {
145
145
  default: function _default() {
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_ui=require("../../ui"),_xeUtils=_interopRequireDefault(require("xe-utils")),_utils=require("../../ui/src/utils"),_loading=_interopRequireDefault(require("../../loading")),_scrollbar=_interopRequireDefault(require("../../scrollbar")),_backtop=_interopRequireDefault(require("../../backtop"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperty(t,e,o){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0===o)return("string"===e?String:Number)(t);o=o.call(t,e||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function createInternalData(){return{}}function createReactData(){return{}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeLayoutBody",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.vScrollbarMixin],props:{loading:Boolean,padding:Boolean,showBacktop:{type:Boolean,default:function(){return(0,_ui.getConfig)().layoutBody.showBacktop}},backtopConfig:Object,useScrollbar:{type:Boolean,default:function(){return(0,_utils.getDefaultConfig)((0,_ui.getConfig)().layoutBody.useScrollbar,(0,_ui.getConfig)().useScrollbar)}},scrollbarConfig:Object,size:{type:String,default:function(){return(0,_ui.getConfig)().layoutBody.size||(0,_ui.getConfig)().size}}},data:function(){var t=_xeUtils.default.uniqueId(),e="vxe_layout_body_backtop_".concat(t),o=createReactData();return Object.assign(Object.assign({},{}),{xID:t,backtopId:e,reactData:o})},computed:Object.assign(Object.assign({},{}),{computeBacktopOpts:function(){var t=this.backtopId;return Object.assign({},(0,_ui.getConfig)().layoutBody.backtopConfig,this.backtopConfig,{target:"#"+t})},computeScrollbarOpts:function(){return Object.assign({},(0,_ui.getConfig)().layoutBody.scrollbarConfig,this.scrollbarConfig)},computeScrollbarProps:function(){var t=this,e=t.backtopId,o=t.showBacktop,t=t.computeScrollbarOpts,i=t.className,r=t.viewClassName,a=t.viewInnerClassName;return{width:t.width,height:t.height,autoHide:t.autoHide,visible:t.visible,xConfig:t.xConfig,yConfig:t.yConfig,className:"vxe-layout-body--scrollbar"+(i?" "+i:""),viewAttrs:Object.assign(Object.assign({},t.viewAttrs),{id:o&&e||null}),viewClassName:"vxe-layout-body--scrollbar-view"+(r?" "+r:""),viewInnerClassName:"vxe-layout-body--scrollbar-inner"+(a?" "+a:"")}}}),methods:{dispatchEvent:function(t,e,o){this.$emit(t,(0,_ui.createEvent)(o,{$layoutBody:this},e))},renderVN:function(t){var e=this,o=e.$scopedSlots,i=e.backtopId,r=e.loading,a=e.padding,n=e.showBacktop,u=e.useScrollbar,l=e.computeBacktopOpts,s=e.computeScrollbarProps,c=e.computeSize,p=o.default,f=o.backtop,d=o.backtopTop||o["backtop-top"],o=o.backtopBottom||o["backtop-bottom"],b={};return f&&(b.default=f),d&&(b.top=d),o&&(b.bottom=o),t("div",{class:["vxe-layout-body",_defineProperty(_defineProperty(_defineProperty({},"size--".concat(c),c),"is--loading",r),"is--padding",a)]},[u?t(_scrollbar.default,{props:s,scopedSlots:{default:function(){return p?p({}):[]}}}):t("div",{attrs:{id:n?i:""},class:"vxe-layout-body--inner"},p?p({}):[]),t(_loading.default,{class:"vxe-layout-body-view--loading",props:{value:r}}),n?t(_backtop.default,{props:l,scopedSlots:b}):(0,_ui.renderEmptyElement)(e)])}},created:function(){this.internalData=createInternalData()},beforeDestroy:function(){var t=this.reactData,e=this.internalData;_xeUtils.default.assign(t,createReactData()),_xeUtils.default.assign(e,createInternalData())},render:function(t){return this.renderVN(t)}});
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_ui=require("../../ui"),_xeUtils=_interopRequireDefault(require("xe-utils")),_utils=require("../../ui/src/utils"),_loading=_interopRequireDefault(require("../../loading")),_scrollbar=_interopRequireDefault(require("../../scrollbar")),_backtop=_interopRequireDefault(require("../../backtop"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperty(t,e,o){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0===o)return("string"===e?String:Number)(t);o=o.call(t,e||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function createInternalData(){return{}}function createReactData(){return{}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeLayoutBody",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.vScrollbarMixin],props:{loading:Boolean,padding:Boolean,showBacktop:{type:Boolean,default:function(){return(0,_ui.getConfig)().layoutBody.showBacktop}},backtopConfig:Object,useScrollbar:{type:Boolean,default:function(){return(0,_utils.getDefaultConfig)((0,_ui.getConfig)().layoutBody.useScrollbar,(0,_ui.getConfig)().useScrollbar)}},scrollbarConfig:Object,size:{type:String,default:function(){return(0,_ui.getConfig)().layoutBody.size||(0,_ui.getConfig)().size}}},data:function(){var t=_xeUtils.default.uniqueId(),e="vxe_layout_body_backtop_".concat(t),o=createReactData();return Object.assign(Object.assign({},{}),{xID:t,backtopId:e,reactData:o})},computed:Object.assign(Object.assign({},{}),{computeBacktopOpts:function(){var t=this.backtopId;return Object.assign({},(0,_ui.getConfig)().layoutBody.backtopConfig,this.backtopConfig,{target:"#"+t})},computeScrollbarOpts:function(){return Object.assign({},(0,_ui.getConfig)().layoutBody.scrollbarConfig,this.scrollbarConfig)},computeScrollbarProps:function(){var t=this,e=t.backtopId,o=t.showBacktop,t=t.computeScrollbarOpts,i=t.className,r=t.viewClassName,a=t.viewInnerClassName;return{width:t.width,height:t.height,autoHide:t.autoHide,visible:t.visible,xConfig:t.xConfig,yConfig:t.yConfig,className:"vxe-layout-body--scrollbar"+(i?" "+i:""),viewAttrs:Object.assign(Object.assign({},t.viewAttrs),{id:o&&e||null}),viewClassName:"vxe-layout-body--scrollbar-view"+(r?" "+r:""),viewInnerClassName:"vxe-layout-body--scrollbar-inner"+(a?" "+a:"")}}}),methods:{dispatchEvent:function(t,e,o){this.$emit(t,(0,_ui.createEvent)(o,{$layoutBody:this},e))},renderVN:function(t){var e=this,o=e.$scopedSlots,i=e.backtopId,r=e.loading,a=e.padding,n=e.showBacktop,u=e.computeIsVScrollbar,l=e.computeBacktopOpts,c=e.computeScrollbarProps,s=e.computeSize,p=o.default,f=o.backtop,d=o.backtopTop||o["backtop-top"],o=o.backtopBottom||o["backtop-bottom"],b={};return f&&(b.default=f),d&&(b.top=d),o&&(b.bottom=o),t("div",{class:["vxe-layout-body",_defineProperty(_defineProperty(_defineProperty({},"size--".concat(s),s),"is--loading",r),"is--padding",a)]},[u?t(_scrollbar.default,{props:c,scopedSlots:{default:function(){return p?p({}):[]}}}):t("div",{attrs:{id:n?i:""},class:"vxe-layout-body--inner"},p?p({}):[]),t(_loading.default,{class:"vxe-layout-body-view--loading",props:{value:r}}),n?t(_backtop.default,{props:l,scopedSlots:b}):(0,_ui.renderEmptyElement)(e)])}},created:function(){this.internalData=createInternalData()},beforeDestroy:function(){var t=this.reactData,e=this.internalData;_xeUtils.default.assign(t,createReactData()),_xeUtils.default.assign(e,createInternalData())},render:function(t){return this.renderVN(t)}});
@@ -319,11 +319,12 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
319
319
  var reactData = $xeList.reactData;
320
320
  var yThumbHeight = reactData.yThumbHeight,
321
321
  xThumbWidth = reactData.xThumbWidth;
322
+ var scrollbarOpts = $xeList.computeScrollbarOpts;
322
323
  var scrollbarXToTop = $xeList.computeScrollbarXToTop;
323
324
  var scrollbarYToLeft = $xeList.computeScrollbarYToLeft;
324
325
  var scrollXVisible = $xeList.computeScrollXVisible;
325
326
  var scrollYVisible = $xeList.computeScrollYVisible;
326
- return domUtils.buildClass(['vxe-scrollbar is--virtual', "ov-x--".concat(scrollXVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(scrollYVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right')], {
327
+ return domUtils.buildClass(['vxe-scrollbar is--virtual', scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', "ov-x--".concat(scrollXVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(scrollYVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right')], {
327
328
  'overflow-y': yThumbHeight,
328
329
  'overflow-x': xThumbWidth
329
330
  });
@@ -2127,13 +2128,17 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
2127
2128
  if (isVScrollbar) {
2128
2129
  if (!scrollObserver) {
2129
2130
  var el = $xeList.$refs.refElem;
2130
- var viewInnerEl = $xeList.$refs.refVirtualSpaceElem;
2131
+ var viewSpaceEl = $xeList.$refs.refVirtualSpaceElem;
2132
+ var viewInnerEl = $xeList.$refs.refVirtualBody;
2131
2133
  var _scrollObserver = globalResize.create(function () {
2132
2134
  $xeList.reScrollFlag++;
2133
2135
  });
2134
2136
  if (el) {
2135
2137
  _scrollObserver.observe(el);
2136
2138
  }
2139
+ if (viewSpaceEl) {
2140
+ _scrollObserver.observe(viewSpaceEl);
2141
+ }
2137
2142
  if (viewInnerEl) {
2138
2143
  _scrollObserver.observe(viewInnerEl);
2139
2144
  }
@@ -1 +1 @@
1
- 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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_store=require("./store"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_vn=require("../../ui/src/vn"),_log=require("../../ui/src/log"),_anime=require("../../ui/src/anime"),_util=require("./util"),_loading=_interopRequireDefault(require("../../loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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 r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,o,i,a,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return i=!(o=!0),{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(i)throw r}}};if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var getConfig=_ui.VxeUI.getConfig,getIcon=_ui.VxeUI.getIcon,getI18n=_ui.VxeUI.getI18n,domUtils=_ui.VxeUI.domUtils,menus=_ui.VxeUI.menus,globalEvents=_ui.VxeUI.globalEvents,globalResize=_ui.VxeUI.globalResize,_createComponentLog=(0,_log.createComponentLog)("tree"),warnLog=_createComponentLog.warnLog,errLog=_createComponentLog.errLog,crossListDragRowObj=null;function eqRowKey(e,t){return""+e==""+t}function getRowKeyByField(e,t){return e?""+(e[t]||""):""}function getRowIdByField(e,t){return e?(e=getRowKeyByField(e,t),(0,_utils.enModelValue)(e)):""}function createReactData(){return{scrollYLoad:!1,bodyHeight:0,headHeight:0,footHeight:0,customHeight:0,customMaxHeight:0,parentHeight:0,topSpaceHeight:0,rowList:[],selectRadioRow:null,currRowFlag:1,updateCheckboxFlag:1,isAllChecked:!1,isAllIndeterminate:!1,yThumbHeight:0,xThumbWidth:0,insertRowFlag:1,removeRowFlag:1,dragRow:null,dragTipText:"",isCrossDragRow:!1}}function createInternalData(){return{fullData:[],afterList:[],fullKeyMaps:{},rowMaps:{},thumbDragOffset:0,yThumbTop:0,xThumbLeft:0,lastScrollTop:0,lastScrollLeft:0,scrollYStore:{startIndex:0,endIndex:0,visibleSize:0,offsetSize:0,rowHeight:0},currentRow:null,selectCheckboxMaps:{},insertRowMaps:{},removeRowMaps:{}}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeList",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.vScrollbarMixin,_ui.globalMixins.initVScrollbarMixin],props:{data:Array,height:[Number,String],maxHeight:[Number,String],loading:Boolean,className:[String,Function],size:{type:String,default:function(){return getConfig().list.size||getConfig().size}},autoResize:{type:Boolean,default:function(){return getConfig().list.autoResize}},syncResize:[Boolean,String,Number],showSeq:{type:Boolean,default:function(){return getConfig().list.showSeq}},showRadio:{type:Boolean,default:function(){return getConfig().list.showRadio}},checkRowKey:[String,Number],radioConfig:Object,showCheckbox:{type:Boolean,default:function(){return getConfig().list.showCheckbox}},checkRowKeys:Array,checkboxConfig:Object,rowConfig:Object,dragConfig:Object,menuConfig:Object,virtualYConfig:Object,scrollY:Object,useScrollbar:{type:Boolean,default:function(){return(0,_utils.getDefaultConfig)(getConfig().list.useScrollbar,getConfig().useScrollbar)}},scrollbarConfig:Object},data:function(){var e=_xeUtils.default.uniqueId(),t=createReactData();return Object.assign(Object.assign({},{}),{xID:e,reactData:t,crossListDragRowInfo:_store.crossListDragRowGlobal,reLayoutFlag:0,reScrollFlag:0})},computed:Object.assign(Object.assign({},{}),{computeRowOpts:function(){return Object.assign({},getConfig().list.rowConfig,this.rowConfig)},computeDragOpts:function(){return Object.assign({},getConfig().list.dragConfig,this.dragConfig)},computeSYOpts:function(){return Object.assign({},getConfig().list.virtualYConfig||getConfig().list.scrollY,this.virtualYConfig||this.scrollY)},computeKeyField:function(){return this.computeRowOpts.keyField||""},computeIsDrag:function(){var e=this.dragConfig,t=this.computeDragOpts;return e&&(0,_utils.isEnableConf)(t)},computeRowHeight:function(){return this.computeRowOpts.height},computeRadioOpts:function(){return Object.assign({showIcon:!0},getConfig().list.radioConfig,this.radioConfig)},computeCheckboxOpts:function(){return Object.assign({showIcon:!0},getConfig().list.checkboxConfig,this.checkboxConfig)},computeMenuOpts:function(){return Object.assign({},getConfig().list.menuConfig,this.menuConfig)},computeWrapperStyles:function(){var e=this.computeRowHeight,t=this.computeScrollYWidth,r=this.computeScrollXHeight,o={};return e&&(o["--vxe-ui-list-row-height"]=(0,_dom.toCssUnit)(e)),(t||r)&&(o["--vxe-ui-scrollbar-y-width"]=(0,_dom.toCssUnit)(t||r),o["--vxe-ui-scrollbar-x-height"]=(0,_dom.toCssUnit)(r||t)),o},computeVirtualStyles:function(){var e=this.reactData,t=this.height,r=this.maxHeight,o=e.customHeight,i=e.customMaxHeight,a=e.headHeight,e=e.footHeight,n={};return t?n.height=(0,_dom.toCssUnit)(Math.max(20,o-a-e)):r&&(n.height="auto",n.maxHeight=(0,_dom.toCssUnit)(Math.max(20,i-a-e))),n},computeScrollbarOpts:function(){return Object.assign({},getConfig().list.scrollbarConfig,this.scrollbarConfig)},computeScrollbarXOpts:function(){var e=this.computeScrollbarOpts;return Object.assign({},getConfig().scrollbar.xConfig,e.xConfig)},computeScrollbarYOpts:function(){var e=this.computeScrollbarOpts;return Object.assign({},getConfig().scrollbar.yConfig,e.yConfig)},computeScrollXHeight:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.height,e.height),getConfig().scrollbar.height)},computeScrollYWidth:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.width,e.width),getConfig().scrollbar.width)},computeScrollXVisible:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)(t.visible,e.visible)},computeScrollYVisible:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)(t.visible,e.visible)},computeScrollXAutoHide:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.autoHide,e.autoHide),getConfig().scrollbar.autoHide)},computeScrollYAutoHide:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.autoHide,e.autoHide),getConfig().scrollbar.autoHide)},computeScrollbarWrapperClss:function(){var e=this,t=e.reactData,r=t.yThumbHeight,t=t.xThumbWidth,o=e.computeScrollbarXToTop,i=e.computeScrollbarYToLeft,a=e.computeScrollYVisible;return domUtils.buildClass(["vxe-scrollbar is--virtual","ov-x--".concat(!1===e.computeScrollXVisible?"hidden":"visible"),"ov-y--".concat(!1===a?"hidden":"visible"),"sx-pos--".concat(o?"top":"bottom"),"sy-pos--".concat(i?"left":"right")],{"overflow-y":r,"overflow-x":t})},computeScrollbarXToTop:function(){return"top"===this.computeScrollbarXOpts.position},computeScrollbarYToLeft:function(){return"left"===this.computeScrollbarYOpts.position}}),methods:{dispatchEvent:function(e,t,r){this.$emit(e,(0,_ui.createEvent)(r,{$list:this},t))},emitCheckboxMode:function(e){this.$emit("update:checkRowKeys",e)},emitRadioMode:function(e){this.$emit("update:checkRowKey",e)},callSlot:function(e,t,r){var o=this.$scopedSlots;return e&&(_xeUtils.default.isString(e)&&(e=o[e]||null),_xeUtils.default.isFunction(e))?(0,_vn.getSlotVNs)(e.call(this,t,r)):[]},getScrollViewElem:function(){return this.$refs.refVirtualWrapper||null},getRowId:function(e){return getRowIdByField(e,this.computeKeyField)},updateRadioModeValue:function(){var e=this.reactData,t=this.internalData,r=this.checkRowKey,t=t.fullKeyMaps;r?(t=t[r],e.selectRadioRow=t||null):e.selectRadioRow=null},updateCheckboxModeValue:function(){var e=this.internalData,t=this.checkRowKeys,r=e.fullKeyMaps,o=this.computeKeyField,i={};if(t&&t.length){var a,n=_createForOfIteratorHelper(t);try{for(n.s();!(a=n.n()).done;){var s=r[a.value];s&&(i[getRowIdByField(s,o)]=s)}}catch(e){n.e(e)}finally{n.f()}}e.selectCheckboxMaps=i,this.updateCheckboxStatus()},updateAfterDataIndex:function(){var e=this.internalData,t=e.afterList,i=e.rowMaps,a=this.computeKeyField,n=0;t.forEach(function(e,t){var r=getRowIdByField(e,a),o=i[r];o?o._index=n:(o={item:e,index:t,$index:-1,_index:n},i[r]=o),n++})},cacheRowMap:function(){var e=this.internalData,t=e.fullData,r=this.computeKeyField,o={};t.forEach(function(e){var t=getRowKeyByField(e,r);o[t]=e}),e.fullKeyMaps=o},loadData:function(e){var t=this,r=t.reactData,o=t.internalData,i=o.scrollYStore,a=t.computeSYOpts,e=e?e.slice(0):[];return Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0}),o.fullData=e,o.insertRowMaps={},r.insertRowFlag++,o.removeRowMaps={},r.removeRowFlag++,r.scrollYLoad=!!a.enabled&&-1<a.gt&&(0===a.gt||a.gt<=e.length),t.cacheRowMap(),t.handleData(!0),t.updateRadioModeValue(),t.updateCheckboxModeValue(),t.computeScrollLoad().then(function(){t.refreshScroll()})},reloadData:function(e){return this.clearScroll(),this.loadData(e)},getFullData:function(){return this.internalData.fullData},getParentElem:function(){var e=this.$refs.refElem;return e?e.parentElement:null},calcTableHeight:function(e){var t=this.reactData.parentHeight,e=this[e],r=0;return r=e?"100%"===e||"auto"===e?t:(r=(0,_dom.isScale)(e)?Math.floor((_xeUtils.default.toInteger(e)||1)/100*t):_xeUtils.default.toNumber(e),Math.max(40,r)):r},updateHeight:function(){var e=this,t=e.reactData,r=e.$refs.refHeaderElem,o=e.$refs.refFooterElem;t.headHeight=r?Math.floor(r.offsetHeight):0,t.footHeight=o?Math.floor(o.offsetHeight):0,t.customHeight=e.calcTableHeight("height"),t.customMaxHeight=e.calcTableHeight("maxHeight")},updateYSpace:function(){var e=this.reactData,t=this.internalData,r=e.scrollYLoad,o=t.scrollYStore;e.bodyHeight=r?t.fullData.length*o.rowHeight:0,e.topSpaceHeight=r?Math.max(o.startIndex*o.rowHeight,0):0},updateAfterFullData:function(){var e=this.internalData,t=e.fullData;e.afterList=t.slice(0),this.updateAfterDataIndex()},handleData:function(e){var t=this,r=t.reactData,o=t.internalData,i=r.scrollYLoad,a=o.fullData,n=o.scrollYStore,s=o.rowMaps,l=t.computeKeyField,o=(e&&t.updateAfterFullData(),i?a.slice(n.startIndex,n.endIndex):a.slice(0));return l&&o.forEach(function(e,t){e=getRowIdByField(e,l),e=s[e];e&&(e.$index=t)}),r.rowList=o,t.$nextTick()},updateYData:function(){this.handleData(),this.updateYSpace()},computeScrollLoad:function(){var n=this,s=n.reactData,l=n.internalData,c=n.browseObj;return n.$nextTick().then(function(){var e,t=s.scrollYLoad,r=l.scrollYStore,o=n.$refs.refVirtualBody,i=n.computeSYOpts,a=0;(e=o?(e=i.sItem?o.querySelector(i.sItem):e)||o.children[0]:e)&&(a=e.offsetHeight),a=Math.max(12,a),r.rowHeight=a,t?(o=n.$refs.refVirtualWrapper,e=Math.max(8,Math.ceil(o.clientHeight/a)),t=i.oSize?_xeUtils.default.toNumber(i.oSize):c.edge?10:0,r.offsetSize=t,r.visibleSize=e,r.endIndex=Math.max(r.startIndex+e+t,r.endIndex),n.updateYData()):n.updateYSpace()})},clearScroll:function(){var e=this.$refs.refVirtualWrapper;return e&&(e.scrollTop=0),this.$nextTick()},scrollTo:function(e,t){var r=this,o=r.reactData,i=r.$refs.refVirtualWrapper;return e&&!_xeUtils.default.isNumber(e)&&(t=e.top,e=e.left),_xeUtils.default.isNumber(e)&&(i.scrollLeft=e),_xeUtils.default.isNumber(t)&&(i.scrollTop=t),o.scrollYLoad?new Promise(function(e){setTimeout(function(){r.$nextTick(function(){e()})},50)}):r.$nextTick()},refreshScroll:function(){var e=this.internalData,t=e.lastScrollLeft,r=e.lastScrollTop;return this.clearScroll().then(function(){if(t||r)return e.lastScrollLeft=0,e.lastScrollTop=0,scrollTo(t,r)})},updateScrollbar:function(){var e=this;return e.computeIsVScrollbar?e.$nextTick().then(function(){e.updateThumbSize(),e.updateThumbOffset()}):Promise.resolve()},recalculate:function(){var e=this,t=e.reactData,r=e.$refs.refElem;if(r){var o,i=r.parentElement,a=0;if((i=i&&(0,_dom.hasClass)(i,"vxe-scrollbar--view-inner")?i.parentElement:i)&&(o=getComputedStyle(i),a=i.clientHeight-Math.ceil(_xeUtils.default.toNumber(o.paddingLeft)+_xeUtils.default.toNumber(o.paddingRight))),t.parentHeight=a,e.updateHeight(),r.clientWidth&&r.clientHeight)return e.computeScrollLoad().then(function(){e.updateScrollbar()})}return e.$nextTick()},loadYData:function(e){var t=this.internalData.scrollYStore,r=t.startIndex,o=t.endIndex,i=t.visibleSize,a=t.offsetSize,e=e.currentTarget.scrollTop,e=Math.floor(e/t.rowHeight),n=Math.max(0,e-1-a),a=e+i+a;!(e<=r||o-i-1<=e)||r===n&&o===a||(t.startIndex=n,t.endIndex=a,this.updateYData())},scrollEvent:function(e){var t=this,r=t.reactData,o=t.internalData,i=e.currentTarget,a=i.scrollTop,i=i.scrollLeft,n=i!==o.lastScrollLeft,s=a!==o.lastScrollTop;t.computeIsVScrollbar&&t.updateThumbOffset(),o.lastScrollTop=a,o.lastScrollLeft=i,r.scrollYLoad&&t.loadYData(e),t.dispatchEvent("scroll",{scrollLeft:i,scrollTop:a,isX:n,isY:s},e)},getRowKey:function(e){return getRowKeyByField(e,this.computeKeyField)},eqRowKey:eqRowKey,eqRow:function(e,t){return!(!e||!t)&&(e===t||eqRowKey(this.getRowId(e),this.getRowId(t)))},eqRowByKey:function(e,t){return e&&eqRowKey(this.getRowKey(e),t)},findRow:function(e,t){var r=this;return t?_xeUtils.default.find(e,function(e){return r.eqRow(e,t)}):null},findRowByKey:function(e,t){var r=this.computeKeyField;return _xeUtils.default.find(e,function(e){return eqRowKey(getRowIdByField(e,r),t)})},findRowIndexOf:function(e,t){var r=this;return t?_xeUtils.default.findIndexOf(e,function(e){return r.eqRow(e,t)}):-1},findRowIndexOfByKey:function(e,t){var r=this.computeKeyField;return _xeUtils.default.findIndexOf(e,function(e){return eqRowKey(getRowIdByField(e,r),t)})},isCheckedByRadioRowKey:function(e){var t=this.reactData.selectRadioRow;return this.getRowKey(t)===e},isCheckedByRadioRow:function(e){return this.isCheckedByRadioRowKey(this.getRowKey(e))},isCheckedByCheckboxRowKey:function(e){var t=this.reactData,r=this.internalData,t=t.updateCheckboxFlag,r=r.selectCheckboxMaps;return!(!t||!r[e])},isCheckedByCheckboxRow:function(e){return this.isCheckedByCheckboxRowKey(this.getRowKey(e))},setCurrentRow:function(e){var t=this.reactData;return this.internalData.currentRow=e,t.currRowFlag++,this.$nextTick()},setCurrentRowByKey:function(e){var t=this.reactData,r=this.internalData,o=r.fullData;return r.currentRow=this.findRowByKey(o,e),t.currRowFlag++,this.$nextTick()},getCurrentRow:function(){return this.internalData.currentRow},getCurrentRowKey:function(){var e=this.internalData.currentRow;return e?this.getRowKey(e):null},clearCurrentRow:function(){var e=this.reactData;return this.internalData.currentRow=null,e.currRowFlag++,this.$nextTick()},setRadioRow:function(e){this.reactData.selectRadioRow=e;e=this.getRowKey(e);return this.emitRadioMode(e),this.$nextTick()},setRadioRowByKey:function(e){var t=this,r=t.reactData,o=t.internalData.fullData,r=(r.selectRadioRow=t.findRowByKey(o,e),e);return t.emitRadioMode(r),t.$nextTick()},getRadioRow:function(){return this.reactData.selectRadioRow},getRadioRowKey:function(){var e=this.reactData.selectRadioRow;return e?this.getRowKey(e):null},clearRadioRow:function(){return this.reactData.selectRadioRow=null,this.emitRadioMode(null),this.$nextTick()},setCheckboxRow:function(e,t){var r=this,o=r.internalData.selectCheckboxMaps,i=r.computeKeyField,e=((e?_xeUtils.default.isArray(e)?e:[e]:[]).forEach(t?function(e){var t=getRowIdByField(e,i);o[t]||(o[t]=e)}:function(e){e=getRowIdByField(e,i);o[e]&&delete o[e]}),r.getCheckboxRowKeys());return r.emitCheckboxMode(e),r.updateCheckboxStatus()},setCheckboxRowByKey:function(e,t){var r=this,o=r.internalData,i=o.selectCheckboxMaps,a=o.fullKeyMaps,n=r.computeKeyField,o=((e?_xeUtils.default.isArray(e)?e:[e]:[]).forEach(t?function(e){var t,e=a[e||""];e&&(t=getRowIdByField(e,n),e)&&!i[t]&&(i[t]=e)}:function(e){var e=a[e||""];e&&(e=getRowIdByField(e,n),i[e])&&delete i[e]}),r.getCheckboxRowKeys());return r.emitCheckboxMode(o),r.updateCheckboxStatus()},getCheckboxRecords:function(){var e=this.reactData,t=this.internalData,e=e.updateCheckboxFlag,t=t.selectCheckboxMaps,r=[];return e&&_xeUtils.default.each(t,function(e){e&&r.push(e)}),r},getCheckboxRows:function(){return this.getCheckboxRecords()},getCheckboxRowKeys:function(){var e=this.reactData,t=this.internalData,e=e.updateCheckboxFlag,t=t.selectCheckboxMaps,r=this.computeKeyField,o=[];return e&&_xeUtils.default.each(t,function(e){e&&(e=getRowKeyByField(e,r),o.push(e))}),o},clearCheckboxRow:function(){var e=this.reactData;this.internalData.selectCheckboxMaps={},e.updateCheckboxFlag++,e.isAllChecked=!1,e.isAllIndeterminate=!1;return this.emitCheckboxMode([]),this.$nextTick()},setAllCheckboxRow:function(e){var t=this,r=t.internalData,o=r.fullData,i=r.selectCheckboxMaps,a=t.computeKeyField;if(e){var n,s=[],l=_createForOfIteratorHelper(o);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=getRowKeyByField(c,a);i[getRowIdByField(c,a)]=c,s.push(u)}}catch(e){l.e(e)}finally{l.f()}return t.emitCheckboxMode(s),t.updateCheckboxStatus()}return t.clearCheckboxRow()},updateCheckboxStatus:function(){var e=this,t=e.reactData,r=e.internalData,o=r.selectCheckboxMaps,r=r.fullData,i=e.computeKeyField,a=e.computeCheckboxOpts.checkMethod,n=!1,s=!1;if(a){var l,c=_createForOfIteratorHelper(r);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(a({row:u,$list:e}))if(o[getRowIdByField(u,i)])n=!0;else if(s=!0,n)break}}catch(e){c.e(e)}finally{c.f()}}else{var d,h=_createForOfIteratorHelper(r);try{for(h.s();!(d=h.n()).done;)if(o[getRowIdByField(d.value,i)])n=!0;else if(s=!0,n)break}catch(e){h.e(e)}finally{h.f()}}return t.isAllChecked=n&&!s,t.isAllIndeterminate=n&&s,t.updateCheckboxFlag++,e.$nextTick()},changeCheckboxAllEvent:function(e){var t=!this.reactData.isAllChecked;t?this.setAllCheckboxRow(!0):this.clearCheckboxRow(),this.dispatchEvent("checkbox-all",{checked:t},e)},changeCheckboxEvent:function(e,t){var r=this,o=r.reactData,i=r.internalData,i=(e.preventDefault(),e.stopPropagation(),i.selectCheckboxMaps),a=r.computeCheckboxOpts.checkMethod,n=r.getRowKey(t);(!a||a({$list:r,row:t}))&&(a=!1,i[n]?delete i[n]:(a=!0,i[n]=t),o.updateCheckboxFlag++,r.updateCheckboxStatus(),n=_xeUtils.default.keys(i).map(_utils.deModelValue),r.emitCheckboxMode(n),r.dispatchEvent("checkbox-change",{row:t,value:n,checked:a},e))},changeCurrentEvent:function(e,t){var r=this.reactData,o=this.internalData;e.preventDefault();var i=this.computeRowOpts.currentMethod,a=!1;(a=i?!i({row:t}):a)||(o.currentRow=t,r.currRowFlag++,this.dispatchEvent("current-change",{row:t,checked:!0},e))},changeRadioEvent:function(e,t){var r,o=this,i=o.reactData,a=(e.preventDefault(),e.stopPropagation(),i.selectRadioRow),n=o.computeRadioOpts,s=n.strict,n=n.checkMethod,l=o.getRowKey(t);(!n||n({$list:o,row:t}))&&(n=l,r=!0,s&&a&&l===o.getRowKey(a)?(r=!1,i.selectRadioRow=null):i.selectRadioRow=t,o.emitRadioMode(n),o.dispatchEvent("radio-change",{row:t,value:n,checked:r},e))},handleRowDragEndClearStatus:function(){this.clearRowDragData(),this.clearCrossListDragStatus(),this.recalculate()},clearRowDropOrigin:function(){var t,e=this.$refs.refElem;e&&_xeUtils.default.arrayEach(e.querySelectorAll(".".concat(t="row--drag-origin")),function(e){(e.draggable=!1,_dom.removeClass)(e,t)})},updateRowDropOrigin:function(e){var t=this.computeSYOpts.sItem,r=this.$refs.refElem;r&&(e=this.getRowId(e),_xeUtils.default.arrayEach(r.querySelectorAll('.vxe-list--row[rowid="'.concat(e,'"]')+(t?"".concat(t,'[rowid="').concat(e,'"]'):"")),function(e){(0,_dom.addClass)(e,"row--drag-origin")}))},updateRowDropTipContent:function(e){var t=this.reactData,r=t.dragRow,o=this.computeDragOpts.tooltipMethod,i="";i=o?"".concat(o({$list:this,row:r})||""):getI18n("vxe.list.dragTip",[e.textContent||""]),t.dragTipText=i},hideDropTip:function(){var e=this.$refs.refDragTipElem,t=this.$refs.refDragRowLineElem;e&&(e.style.display=""),t&&(t.style.display="")},clearCrossListDragStatus:function(){var e=(0,_store.getCrossListDragRowInfo)(this);crossListDragRowObj=null,e.row=null},clearDragStatus:function(){var e=this.reactData;e.dragRow&&(this.hideDropTip(),this.clearRowDropOrigin(),this.clearCrossListDragStatus(),e.dragRow=null)},handleRowDragMousedownEvent:function(e,t){var r=this,o=r.reactData,i=(0,_store.getCrossListDragRowInfo)(r),a=(e.stopPropagation(),t.row),n=r.computeDragOpts,s=n.isCrossListDrag,l=n.dragStartMethod,c=e.currentTarget,n="row"===n.trigger?c:c.parentElement.parentElement;r.clearRowDropOrigin(),l&&!l(t)?(n.draggable=!1,o.dragRow=null,r.hideDropTip()):(s&&(i.row=a,crossListDragRowObj={$oldList:r,$newList:null}),c={row:a},o.dragRow=a,n.draggable=!0,r.updateRowDropOrigin(a),r.updateRowDropTipContent(n),r.dispatchEvent("row-dragstart",c,e))},handleRowDragMouseupEvent:function(){this.clearDragStatus()},showDropTip:function(e,t,r,o){var i,a,n,s,l=this.$refs.refElem;l&&(i=l.getBoundingClientRect(),s=l.clientHeight,t&&(a=this.$refs.refDragRowLineElem)&&(r?(n=t.getBoundingClientRect(),t=t.clientHeight,s<(n=Math.max(1,n.y-i.y))+t&&(t=s-n),a.style.display="block",a.style.top="".concat(n,"px"),a.style.height="".concat(t,"px"),a.setAttribute("drag-pos",o)):a.style.display=""),s=this.$refs.refDragTipElem)&&(s.style.display="block",s.style.top="".concat(Math.min(l.clientHeight-l.scrollTop-s.clientHeight,e.clientY-i.y),"px"),s.style.left="".concat(Math.min(l.clientWidth-l.scrollLeft-s.clientWidth-1,e.clientX-i.x),"px"),s.setAttribute("drag-status",r?"normal":"disabled"))},clearRowDragData:function(){var e=this.reactData,t=this.$refs.refElem;this.hideDropTip(),this.clearRowDropOrigin(),(0,_anime.clearRowAnimate)(t,[".vxe-list--row"]),e.dragRow=null},handleRowDragSwapEvent:function(t,r,o,i){var e,u,d,h,f,a,n,s,l,g=this,p=g.reactData,w=g.internalData,c=w.fullData,m=g.computeDragOpts,v=m.animation,m=m.dragEndMethod||(m?m.dragEndMethod:null),R="bottom"===i?1:0,b=g.$refs.refElem,x={status:!1};if(b&&o&&r){if(o!==r)return e={oldRow:r,newRow:o,dragRow:r,dragPos:i,offsetIndex:R},u=g.getRowId(r),d=g.findRowIndexOfByKey(c,u),n=g.getRowKey(o),h=0,f=-1,v&&(n=b.querySelector('.vxe-list--row[rowid="'.concat(n,'"]')),a=b.querySelector('.vxe-list--row[rowid="'.concat(u,'"]')),(n=n||a)&&(h=n.offsetHeight),a)&&(f=a.offsetTop),l=s=-1,Promise.resolve(!m||m(e)).then(function(e){if(!e)return x;s=g.findRowIndexOf(c,r),c.splice(s,1);e=g.findRowIndexOf(c,o);return l=e+R,c.splice(l,0,r),g.handleData(),p.scrollYLoad&&g.updateYSpace(),t&&g.dispatchEvent("row-dragend",{oldRow:r,newRow:o,dragRow:r,dragPos:i,offsetIndex:R,_index:{newIndex:l,oldIndex:s}},t),g.$nextTick().then(function(){var e,t,r,o,i,a,n,s,l,c;v&&(n=p.rowList,c=w.fullData,l=g.findRowIndexOfByKey(c,u),s=c[0],s=g.findRowIndexOf(c,s),e=b,-1<s&&(i=s+c.length,r=t=-1,o=1,d<s?(t=0,r=l-s):i<d?(t=g.findRowIndexOfByKey(n,u)+1,r=c.length,o=-1):d<l?r=(t=d-s)+l-d:(r=(t=l-s)+d-l+1,o=-1),(i=c.slice(t,r)).length)&&(a=[],i.forEach(function(e){e=g.getRowId(e);a.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),n=e.querySelectorAll(a.join(",")),(0,_anime.moveRowAnimateToTb)(n,o*h)),s=['.vxe-list--row[rowid="'.concat(u,'"]')],c=(l=e.querySelectorAll(s.join(",")))[0],-1<f)&&c&&(0,_anime.moveRowAnimateToTb)(l,f-c.offsetTop),g.recalculate()}).then(function(){return{status:!0}})}).catch(function(){return x}).then(function(e){return g.clearRowDragData(),g.clearCrossListDragStatus(),e});g.clearRowDragData(),g.clearCrossListDragStatus()}return Promise.resolve(x)},handleRowDragDragstartEvent:function(e){e.dataTransfer&&e.dataTransfer.setDragImage((0,_dom.getTpImg)(),0,0)},handleRowDragDragendEvent:function(e){var t=this,r=t.reactData,o=t.internalData,r=r.dragRow,i=o.prevDragRow,o=o.prevDragPos;if(t.computeDragOpts.isCrossListDrag&&crossListDragRowObj){var a=crossListDragRowObj.$newList;if(a&&a.xID!==t.xID)return void a.handleCrossListRowDragInsertEvent(e)}t.handleRowDragSwapEvent(e,r,i,o)},handleRowDragDragoverEvent:function(e){var t,r=this,o=r.reactData,i=r.internalData,o=o.dragRow,a=i.fullData,n=(o||e.preventDefault(),e.currentTarget),s=n.getAttribute("rowid")||"",a=r.findRowByKey(a,s);a&&(e.preventDefault(),t=e.clientY-n.getBoundingClientRect().y<n.clientHeight/2?"top":"bottom",i.prevDragRow=a,i.prevDragPos=t,o&&r.getRowId(o)===s?r.showDropTip(e,n,!1,t):(i={oldRow:o,targetRow:a,dragPos:t,dragRow:o,offsetIndex:"bottom"==t?1:0},r.showDropTip(e,n,!0,t),r.dispatchEvent("row-dragover",i,e)))},handleRowMousedownEvent:function(e,t){var r=this.computeDragOpts,o=this.computeIsDrag,i=r.trigger,r=r.disabledMethod,a=!1,t={row:t,$list:this};!(a=o?"row"===i:a)||r&&r(t)||this.handleRowDragMousedownEvent(e,t)},handleRowClickEvent:function(e,t){var r=this,o=r.reactData,i=r.internalData,a=r.showRadio,n=r.showCheckbox,s=i.currentRow,l=r.computeRadioOpts,c=r.computeCheckboxOpts,u=!1,d=!1,h=!1;r.computeRowOpts.isCurrent?(u=!0,r.changeCurrentEvent(e,t)):s&&(i.currentRow=null,o.currRowFlag++),a&&"row"===l.trigger&&(d=!0,r.changeRadioEvent(e,t)),n&&"row"===c.trigger&&(h=!0,r.changeCheckboxEvent(e,t)),r.dispatchEvent("row-click",{row:t,triggerCurrent:u,triggerRadio:d,triggerCheckbox:h},e)},handleRowDblclickEvent:function(e,t){this.dispatchEvent("row-dblclick",{row:t},e)},insertListRow:function(e,t){var r=this.internalData,o=r.fullData,i=r.rowMaps,a=this.computeKeyField,n=t?"push":"unshift";e.forEach(function(e){var t=getRowIdByField(e,a),r=(0,_util.getItemCacheObj)(e);o[n](e),i[t]=r})},handleInsertRowAt:function(e,t,r){var o=this,i=o.reactData,a=o.internalData,n=a.fullData,s=a.rowMaps,l=a.removeRowMaps,c=a.insertRowMaps,u=o.computeKeyField;if(!u)return errLog("vxe.error.reqSupportProp",["insert() | insertAt() | insertNextAt()","row-config.keyField"]),Promise.resolve({row:null,rows:[]});_xeUtils.default.isArray(e)||(e=[e]);var d,h=t;return(_xeUtils.default.isString(t)||_xeUtils.default.isNumber(t))&&(a=s[t])&&(h=a.item),e.length?(d=e.map(function(e){return _xeUtils.default.assign({},e)}),_xeUtils.default.eqNull(h)?o.insertListRow(d,!1):-1===h?o.insertListRow(d,!0):-1<(t=n.findIndex(function(e){return h[u]===e[u]}))?(d.forEach(function(e){var t=getRowIdByField(e,u),e=(0,_util.getItemCacheObj)(e);s[t]=e}),a=t,r&&(a+=1),n.splice.apply(n,[a,0].concat(_toConsumableArray(d)))):(warnLog("vxe.error.unableInsert"),o.insertListRow(d,!0)),d.forEach(function(e){var t=getRowIdByField(e,u);l[t]?(delete l[t],c[t]&&delete c[t]):c[t]=e}),i.removeRowFlag++,i.insertRowFlag++,o.cacheRowMap(),o.handleData(!0),o.updateAfterDataIndex(),o.updateCheckboxStatus(),i.scrollYLoad&&o.updateYSpace(),o.$nextTick().then(function(){return{row:d.length?d[d.length-1]:null,rows:d}})):Promise.resolve({row:null,rows:[]})},insert:function(e){return this.handleInsertRowAt(e,null)},insertAt:function(e,t){return this.handleInsertRowAt(e,t)},insertNextAt:function(e,t){return this.handleInsertRowAt(e,t,!0)},getInsertRecords:function(){var e=this.internalData.insertRowMaps,t=[];return _xeUtils.default.each(e,function(e){t.push(e)}),t},isInsertByRow:function(e){var t=this.reactData,r=this.internalData,e=this.getRowId(e);return!!t.insertRowFlag&&!!r.insertRowMaps[e]},remove:function(e){var r,o=this,t=o.reactData,i=o.internalData,a=i.fullData,n=i.insertRowMaps,s=i.removeRowMaps;return o.computeKeyField?(r=[],e?_xeUtils.default.isArray(e)||(e=[e]):e=a,e.length?(e.forEach(function(e){var t;o.isInsertByRow(e)||(t=o.getRowId(e),s[t]=e)}),a===e?(e=r=a.slice(0),i.fullData=[]):e.forEach(function(e){var t=o.getRowId(e),e=_xeUtils.default.findIndexOf(a,function(e){return t===o.getRowId(e)});-1<e&&(e=a.splice(e,1),r.push(e[0]))}),e.forEach(function(e){e=o.getRowId(e);n[e]&&delete n[e]}),t.removeRowFlag++,t.insertRowFlag++,o.cacheRowMap(),o.handleData(!0),o.updateAfterDataIndex(),o.updateCheckboxStatus(),t.scrollYLoad&&o.updateYSpace(),o.$nextTick().then(function(){return o.recalculate()}).then(function(){return{row:r.length?r[r.length-1]:null,rows:r}})):Promise.resolve({row:null,rows:[]})):(errLog("vxe.error.reqSupportProp",["insert() | insertAt() | insertNextAt()","row-config.keyField"]),Promise.resolve({row:null,rows:[]}))},getRemoveRecords:function(){var e=this.internalData.removeRowMaps,t=[];return _xeUtils.default.each(e,function(e){t.push(e)}),t},isRemoveByRow:function(e){var t=this.reactData,r=this.internalData,e=this.getRowId(e);return!!t.removeRowFlag&&!!r.removeRowMaps[e]},getRecordset:function(){return{insertRecords:this.getInsertRecords(),removeRecords:this.getRemoveRecords()}},handleCrossListRowDragCancelEvent:function(){this.clearRowDragData(),this.clearCrossListDragStatus()},handleCrossListRowDragFinishEvent:function(e){var r,t,o,i=this,a=i.reactData,n=i.internalData,s=(0,_store.getCrossListDragRowInfo)(i),a=a.rowList,n=n.rowMaps,l=i.computeDragOpts,c=l.animation,u=i.$refs.refElem;u&&l.isCrossListDrag&&crossListDragRowObj&&s&&(l=s.row)&&(n=n[s=i.getRowId(l)],r=0,t=-1,n&&(c&&(s=u.querySelector('.vxe-list--row[rowid="'.concat(s,'"]')))&&(r=s.offsetHeight),t=n.$index),o=-1<t&&t<a.length-1?a.slice(t+1):[],i.remove([l]).then(function(){var t,e;c&&r&&o.length&&(e=u,t=[],o.forEach(function(e){e=i.getRowId(e);t.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),e=e.querySelectorAll(t.join(",")),(0,_anime.moveRowAnimateToTb)(e,r))}),i.dispatchEvent("row-remove-dragend",{row:l},e),i.handleRowDragEndClearStatus())},handleCrossListRowDragoverEmptyEvent:function(e){var t,r,o=this,i=o.reactData,a=o.internalData,n=i.rowList;o.computeDragOpts.isCrossListDrag&&crossListDragRowObj&&!n.length&&(t=(n=crossListDragRowObj).$oldList,n=n.$newList,t)&&(r=t).xID!==o.xID&&(n&&n.xID!==o.xID&&n.hideCrossListRowDropClearStatus(),e.preventDefault(),t.hideCrossListRowDropClearStatus(),crossListDragRowObj.$newList=o,a.prevDragRow=null,i.dragTipText=r.dragTipText,o.showDropTip(e,e.currentTarget,!0,""))},handleCrossListRowDragInsertEvent:function(r){var o,i,n,s,a,l,c=this,u=c.reactData,d=c.internalData,e=(0,_store.getCrossListDragRowInfo)(c),h=d.prevDragRow,f=d.prevDragPos,t=c.computeDragOpts,g=t.animation,p=t.dragEndMethod;t.isCrossListDrag&&crossListDragRowObj&&e&&(o=e.row,i=crossListDragRowObj.$oldList,n=c.$refs.refElem)&&i&&o&&(a=-1,t={oldRow:s=o,newRow:h,dragRow:s,dragPos:f,offsetIndex:a=h?"bottom"===f?1:0:a},l={status:!1},Promise.resolve(!p||p(t)).then(function(e){if(!e)return i&&i.xID!==c.xID&&i.handleCrossListRowDragCancelEvent(r),c.handleRowDragEndClearStatus(),l;var e=Promise.resolve(),t=[s];i.handleCrossListRowDragFinishEvent(r),e=h?"bottom"===f?c.insertNextAt(t,h):c.insertAt(t,h):c.insert(t),c.dispatchEvent("row-insert-dragend",{oldRow:o,newRow:h,dragRow:s,dragPos:f,offsetIndex:a},r),c.clearRowDragData(),e.then(function(){var t,e=u.rowList,r=d.rowMaps,o=c.getRowId(s),r=r[o],i=0,a=-1,o=(r&&(g&&(o=n.querySelector('.vxe-list--row[rowid="'.concat(o,'"]')))&&(i=o.offsetHeight),a=r.$index),-1<a?e.slice(a):[]);g&&i&&o.length&&(r=n,t=[],o.forEach(function(e){e=c.getRowId(e);t.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),e=r.querySelectorAll(t.join(",")),(0,_anime.moveRowAnimateToTb)(e,-i))})}))},hideCrossListRowDropClearStatus:function(){this.hideDropTip()},handleContextmenuEvent:function(o,i){var a=this,e=a.reactData,t=a.internalData,r=a.menuConfig,n=a.computeMenuOpts,s=a.computeRowOpts.isCurrent;(r?(0,_utils.isEnableConf)(n):n.enabled)&&(r=n.options,(n=n.visibleMethod)&&!n({$list:a,options:r,row:i})||(s?a.changeCurrentEvent(o,i):t.currentRow&&(t.currentRow=null,e.currRowFlag++),_ui.VxeUI.contextMenu&&_ui.VxeUI.contextMenu.openByEvent(o,{options:r,events:{optionClick:function(e){var t=e.option,r=menus.get(t.code),r=r?r.listMenuMethod:null,t={menu:t,row:i,$event:o,$list:a};r&&r(t,o),a.dispatchEvent("menu-click",t,e.$event)}}}))),a.dispatchEvent("row-menu",{row:i},o)},bindScrollbarResize:function(){var e,t,r=this,o=r.internalData,i=o.scrollObserver;r.computeIsVScrollbar&&!i&&(i=r.$refs.refElem,e=r.$refs.refVirtualSpaceElem,t=globalResize.create(function(){r.reScrollFlag++}),i&&t.observe(i),e&&t.observe(e),o.scrollObserver=t)},renderDragTip:function(e){var t=this,r=t.reactData,o=r.dragRow,r=r.dragTipText,i=t.computeDragOpts;return t.computeIsDrag?e("div",{class:"vxe-list--drag-wrapper"},[e("div",{ref:"refDragRowLineElem",class:["vxe-list--drag-row-line",{"is--guides":i.showGuidesStatus}]}),o&&i.showDragTip?e("div",{ref:"refDragTipElem",class:"vxe-list--drag-sort-tip"},[e("div",{class:"vxe-list--drag-sort-tip-wrapper"},[e("div",{class:"vxe-list--drag-sort-tip-status"},[e("span",{class:["vxe-list--drag-sort-tip-normal-status",getIcon().LIST_DRAG_STATUS_NODE]}),e("span",{class:["vxe-list--drag-sort-tip-disabled-status",getIcon().LIST_DRAG_DISABLED]})]),e("div",{class:"vxe-list--drag-sort-tip-content"},r)])]):(0,_ui.renderEmptyElement)(t)]):(0,_ui.renderEmptyElement)(t)},renderRadio:function(e,t,r,o,i){var a=this,n=a.showRadio,s=a.computeRadioOpts,l=s.showIcon,s=s.visibleMethod,s=!s||s({$list:a,row:t});return n&&l&&s?e("div",{key:"ct2",class:["vxe-list--radio-option",{"is--checked":i,"is--disabled":o}],on:{click:function(e){o||a.changeRadioEvent(e,t)}}},[e("span",{class:["vxe-radio--icon",i?getIcon().RADIO_CHECKED:o?getIcon().RADIO_DISABLED_UNCHECKED:getIcon().RADIO_UNCHECKED]})]):(0,_ui.renderEmptyElement)(a)},renderCheckbox:function(e,t,r,o,i){var a=this,n=a.showCheckbox,s=a.computeCheckboxOpts,l=s.showIcon,s=s.visibleMethod,s=!s||s({$list:a,row:t});return n&&l&&s?e("div",{key:"ct3",class:["vxe-list--checkbox-option",{"is--checked":i,"is--disabled":o}],on:{click:function(e){o||a.changeCheckboxEvent(e,t)}}},[e("span",{class:["vxe-checkbox--icon",i?getIcon().CHECKBOX_CHECKED:o?getIcon().CHECKBOX_DISABLED_UNCHECKED:getIcon().CHECKBOX_UNCHECKED]})]):(0,_ui.renderEmptyElement)(a)},renderRow:function(e,t,r){var o=this,i=o.reactData,a=o.internalData,n=o.$scopedSlots,s=o.showRadio,l=o.showCheckbox,c=i.selectRadioRow,u=i.currRowFlag,i=i.updateCheckboxFlag,d=a.selectCheckboxMaps,a=a.currentRow,h=n.content,n=n.extra,f=o.computeDragOpts,g=f.trigger,p=f.icon,w=f.disabledMethod,f=f.visibleMethod,m=o.computeRadioOpts,v=o.computeCheckboxOpts,R=o.computeRowOpts,b=R.useKey,x=R.contentField,y=R.className,R=R.isCurrent,D=o.computeIsDrag,C=o.computeKeyField,S=y&&_xeUtils.default.isFunction(y),b=C||b||D||R||s||l,R=b&&C?getRowIdByField(t,C):"",k=(0,_utils.enModelValue)(R),E={row:t,$list:o},_=!1,I=!1,c=(s&&(_=c&&(t===c||o.eqRowByKey(c,R)),I=!!m.checkMethod&&!m.checkMethod({$list:o,row:t})),!1),m=!1,i=(l&&(c=!(!i||!d[k]),m=!!v.checkMethod&&!v.checkMethod({$list:o,row:t})),[]),T=(s&&i.push(o.renderRadio(e,t,k,I,_)),l&&i.push(o.renderCheckbox(e,t,k,m,c)),!1),v=(D&&C&&(!f||f(E))&&(d={},"row"!==g&&(T=!(!w||!w(E)),d.mousedown=function(e){T||o.handleRowDragMousedownEvent(e,E)},d.mouseup=o.handleRowDragMouseupEvent),i.push(e("div",{key:"ct1",class:"vxe-list--row-drag"},[e("span",{class:"vxe-list--drag-handle",on:d},[e("i",{class:p||getIcon().LIST_DRAG})])]))),i.push(e("div",{key:"ct5",class:"vxe-list--row-content"},h?h(E):x?(0,_utils.getText)(t[x]):"")),n&&i.push(e("div",{key:"ct7",class:"vxe-list--row-extra"},n(E))),{mousedown:function(e){o.handleRowMousedownEvent(e,t)},mouseup:o.handleRowDragMouseupEvent,click:function(e){o.handleRowClickEvent(e,t)},dblclick:function(e){o.handleRowDblclickEvent(e,t)},contextmenu:function(e){o.handleContextmenuEvent(e,t)}});return D&&(v.dragstart=o.handleRowDragDragstartEvent,v.dragend=o.handleRowDragDragendEvent,v.dragover=o.handleRowDragDragoverEvent),e("div",{key:b&&C?k:r,class:["vxe-list--row",S?y(E):y||"",{"is--drag-disabled":T,"is--current":u&&a&&o.eqRowByKey(a,R),"is-radio--disabled":I,"is-radio--checked":_,"is-checkbox--disabled":m,"is-checkbox--checked":c}],attrs:b&&C?{rowid:k}:void 0,on:v},i)},renderVN:function(r){var o=this,e=o.reactData,t=o.$scopedSlots,i=o.showCheckbox,a=o.className,n=o.loading,s=e.bodyHeight,l=e.topSpaceHeight,c=e.rowList,u=e.isAllChecked,d=e.isAllIndeterminate,h=e.xThumbWidth,e=e.yThumbHeight,f=t.default,g=t.header,t=t.footer,p=o.computeSize,w=o.computeIsVScrollbar,m=o.computeWrapperStyles,v=o.computeVirtualStyles,R=o.computeRadioOpts,b=o.computeCheckboxOpts,x=o.computeDragOpts,y=x.trigger,D=o.computeRowOpts,C=D.isHover,D=D.padding,S=o.computeIsDrag,k=o.computeScrollbarOpts,E=o.computeScrollXVisible,_=o.computeScrollYVisible,I=o.computeScrollbarXToTop,T=o.computeScrollbarYToLeft,O=o.computeScrollXAutoHide,L=o.computeScrollYAutoHide,M=o.computeScrollbarWrapperClss,i=i&&!1!==b.showHeader,F={};return x.isCrossListDrag&&!c.length&&(F.dragover=o.handleCrossListRowDragoverEmptyEvent),r("div",{ref:"refElem",class:["vxe-list",w?"ov-x--".concat(!1===E?"hidden":"visible"):"",w?"ov-y--".concat(!1===_?"hidden":"visible"):"",w?"sx-pos--".concat(I?"top":"bottom"):"",w?"sy-pos--".concat(T?"left":"right"):"",a?_xeUtils.default.isFunction(a)?a({$list:o}):a:"",_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(p),p),"is--virtual-scrollbar",w),"ov-padding",w&&k.padding),"ov-x--auto-hide",w&&O),"ov-y--auto-hide",w&&L),"overflow-y",e),"overflow-x",h),"is--drag",S),"is--loading",n)],on:F,style:m},[g||i?r("div",{ref:"refHeaderElem",class:"vxe-list--header-wrapper"},[i?r("div",{class:"vxe-list--header-left"},[r("div",{class:["vxe-list--checkbox-header",{"is--checked":u,"is--indeterminate":d}],on:{click:o.changeCheckboxAllEvent}},[r("span",{class:["vxe-checkbox--icon",u?getIcon().CHECKBOX_CHECKED:d?getIcon().CHECKBOX_INDETERMINATE:getIcon().CHECKBOX_UNCHECKED]})])]):(0,_ui.renderEmptyElement)(o),g?r("div",{class:"vxe-list--header-content"},g({items:c,$list:o})):(0,_ui.renderEmptyElement)(o)]):(0,_ui.renderEmptyElement)(o),r("div",{ref:"refVirtualWrapper",class:"vxe-list--virtual-wrapper",style:v,on:{scroll:o.scrollEvent}},[r("div",{ref:"refVirtualSpaceElem",class:"vxe-list--y-space",style:{height:s?"".concat(s,"px"):""}}),r("div",{ref:"refVirtualBody",class:["vxe-list--body",{"trigger--row":"row"===y,"checkbox--highlight":b.highlight,"radio--highlight":R.highlight,"row--hover":C,"is--padding":D}],style:{marginTop:l?"".concat(l,"px"):""}},f?f({items:c,$list:o}):c.map(function(e,t){return o.renderRow(r,e,t)}))]),t?r("div",{ref:"refFooterElem",class:"vxe-list--footer-wrapper"},t({items:c,$list:o})):(0,_ui.renderEmptyElement)(o),w?r("div",{class:M},[!1===E?(0,_ui.renderEmptyElement)(o):r("div",{ref:"refTrackXElem",class:"vxe-scrollbar--track-x",on:{click:o.clickTrackXEvent}},[r("div",{ref:"refThumbXElem",class:"vxe-scrollbar--thumb-x",on:{pointerdown:o.pointerdownThumbXEvent,pointermove:o.pointermoveThumbXEvent,pointerup:o.cleatPointerThumbEvent,pointercancel:o.cleatPointerThumbEvent,lostpointercapture:o.cleatPointerThumbEvent}})]),!1===_?(0,_ui.renderEmptyElement)(o):r("div",{ref:"refTrackYElem",class:"vxe-scrollbar--track-y",on:{click:o.clickTrackYEvent}},[r("div",{ref:"refThumbYElem",class:"vxe-scrollbar--thumb-y",on:{pointerdown:o.pointerdownThumbYEvent,pointermove:o.pointermoveThumbYEvent,pointerup:o.cleatPointerThumbEvent,pointercancel:o.cleatPointerThumbEvent,lostpointercapture:o.cleatPointerThumbEvent}})])]):(0,_ui.renderEmptyElement)(o),o.renderDragTip(r),r(_loading.default,{class:"vxe-list--loading",props:{value:n}})])}},watch:{data:function(){this.loadData(this.data||[])},height:function(){this.reLayoutFlag++},maxHeight:function(){this.reLayoutFlag++},syncResize:function(){this.reLayoutFlag++},computeIsVScrollbar:function(){var e=this;e.$nextTick(function(){e.bindScrollbarResize(),e.$nextTick(function(){e.reLayoutFlag++})})},computeRowHeight:function(){this.reLayoutFlag++},computeScrollYWidth:function(){this.reLayoutFlag++},computeScrollXHeight:function(){this.reLayoutFlag++},computeScrollXVisible:function(){var e=this;e.$nextTick(function(){e.reLayoutFlag++})},computeScrollYVisible:function(){var e=this;e.$nextTick(function(){e.reLayoutFlag++})},reLayoutFlag:function(){var e=this;e.recalculate().then(function(){e.recalculate()})},reScrollFlag:function(){var e=this;e.updateScrollbar().then(function(){e.updateScrollbar()})},checkRowKey:function(){this.updateRadioModeValue()},checkRowKeys:function(){this.updateCheckboxModeValue()}},created:function(){this.internalData=createInternalData(),this.browseObj=_xeUtils.default.browse(),this.loadData(this.data||[])},mounted:function(){var e=this,t=e,r=e.internalData,o=t.showSeq,i=t.showRadio,a=t.showCheckbox,n=t.autoResize,s=e.computeRowOpts,l=s.useKey,s=s.keyField,c=e.computeIsDrag;s||(o&&errLog("vxe.error.reqSupportProp",["show-seq","row-config.keyField"]),i&&errLog("vxe.error.reqSupportProp",["show-radio","row-config.keyField"]),a&&errLog("vxe.error.reqSupportProp",["show-checkbox","row-config.keyField"]),c&&errLog("vxe.error.reqSupportProp",["drag-config","row-config.keyField"])),l&&!s&&errLog("vxe.error.reqSupportProp",["row-config.useKey","row-config.keyField"]),n&&(o=e.$refs.refElem,i=e.getParentElem(),a=globalResize.create(function(){t.autoResize&&e.reLayoutFlag++}),o&&a.observe(o),i&&a.observe(i),r.resizeObserver=a),e.reLayoutFlag++,e.bindScrollbarResize(),globalEvents.on(e,"resize",function(){e.reLayoutFlag++})},activated:function(){var e=this;e.recalculate().then(function(){e.refreshScroll()})},beforeDestroy:function(){var e=this.reactData,t=this.internalData,r=t.scrollObserver,o=t.resizeObserver;o&&o.disconnect(),r&&r.disconnect(),globalEvents.off(this,"resize"),_xeUtils.default.assign(e,createReactData()),_xeUtils.default.assign(t,createInternalData())},render:function(e){return this.renderVN(e)}});
1
+ 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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_store=require("./store"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_vn=require("../../ui/src/vn"),_log=require("../../ui/src/log"),_anime=require("../../ui/src/anime"),_util=require("./util"),_loading=_interopRequireDefault(require("../../loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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 r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,o,i,a,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return i=!(o=!0),{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(i)throw r}}};if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var getConfig=_ui.VxeUI.getConfig,getIcon=_ui.VxeUI.getIcon,getI18n=_ui.VxeUI.getI18n,domUtils=_ui.VxeUI.domUtils,menus=_ui.VxeUI.menus,globalEvents=_ui.VxeUI.globalEvents,globalResize=_ui.VxeUI.globalResize,_createComponentLog=(0,_log.createComponentLog)("tree"),warnLog=_createComponentLog.warnLog,errLog=_createComponentLog.errLog,crossListDragRowObj=null;function eqRowKey(e,t){return""+e==""+t}function getRowKeyByField(e,t){return e?""+(e[t]||""):""}function getRowIdByField(e,t){return e?(e=getRowKeyByField(e,t),(0,_utils.enModelValue)(e)):""}function createReactData(){return{scrollYLoad:!1,bodyHeight:0,headHeight:0,footHeight:0,customHeight:0,customMaxHeight:0,parentHeight:0,topSpaceHeight:0,rowList:[],selectRadioRow:null,currRowFlag:1,updateCheckboxFlag:1,isAllChecked:!1,isAllIndeterminate:!1,yThumbHeight:0,xThumbWidth:0,insertRowFlag:1,removeRowFlag:1,dragRow:null,dragTipText:"",isCrossDragRow:!1}}function createInternalData(){return{fullData:[],afterList:[],fullKeyMaps:{},rowMaps:{},thumbDragOffset:0,yThumbTop:0,xThumbLeft:0,lastScrollTop:0,lastScrollLeft:0,scrollYStore:{startIndex:0,endIndex:0,visibleSize:0,offsetSize:0,rowHeight:0},currentRow:null,selectCheckboxMaps:{},insertRowMaps:{},removeRowMaps:{}}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeList",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.vScrollbarMixin,_ui.globalMixins.initVScrollbarMixin],props:{data:Array,height:[Number,String],maxHeight:[Number,String],loading:Boolean,className:[String,Function],size:{type:String,default:function(){return getConfig().list.size||getConfig().size}},autoResize:{type:Boolean,default:function(){return getConfig().list.autoResize}},syncResize:[Boolean,String,Number],showSeq:{type:Boolean,default:function(){return getConfig().list.showSeq}},showRadio:{type:Boolean,default:function(){return getConfig().list.showRadio}},checkRowKey:[String,Number],radioConfig:Object,showCheckbox:{type:Boolean,default:function(){return getConfig().list.showCheckbox}},checkRowKeys:Array,checkboxConfig:Object,rowConfig:Object,dragConfig:Object,menuConfig:Object,virtualYConfig:Object,scrollY:Object,useScrollbar:{type:Boolean,default:function(){return(0,_utils.getDefaultConfig)(getConfig().list.useScrollbar,getConfig().useScrollbar)}},scrollbarConfig:Object},data:function(){var e=_xeUtils.default.uniqueId(),t=createReactData();return Object.assign(Object.assign({},{}),{xID:e,reactData:t,crossListDragRowInfo:_store.crossListDragRowGlobal,reLayoutFlag:0,reScrollFlag:0})},computed:Object.assign(Object.assign({},{}),{computeRowOpts:function(){return Object.assign({},getConfig().list.rowConfig,this.rowConfig)},computeDragOpts:function(){return Object.assign({},getConfig().list.dragConfig,this.dragConfig)},computeSYOpts:function(){return Object.assign({},getConfig().list.virtualYConfig||getConfig().list.scrollY,this.virtualYConfig||this.scrollY)},computeKeyField:function(){return this.computeRowOpts.keyField||""},computeIsDrag:function(){var e=this.dragConfig,t=this.computeDragOpts;return e&&(0,_utils.isEnableConf)(t)},computeRowHeight:function(){return this.computeRowOpts.height},computeRadioOpts:function(){return Object.assign({showIcon:!0},getConfig().list.radioConfig,this.radioConfig)},computeCheckboxOpts:function(){return Object.assign({showIcon:!0},getConfig().list.checkboxConfig,this.checkboxConfig)},computeMenuOpts:function(){return Object.assign({},getConfig().list.menuConfig,this.menuConfig)},computeWrapperStyles:function(){var e=this.computeRowHeight,t=this.computeScrollYWidth,r=this.computeScrollXHeight,o={};return e&&(o["--vxe-ui-list-row-height"]=(0,_dom.toCssUnit)(e)),(t||r)&&(o["--vxe-ui-scrollbar-y-width"]=(0,_dom.toCssUnit)(t||r),o["--vxe-ui-scrollbar-x-height"]=(0,_dom.toCssUnit)(r||t)),o},computeVirtualStyles:function(){var e=this.reactData,t=this.height,r=this.maxHeight,o=e.customHeight,i=e.customMaxHeight,a=e.headHeight,e=e.footHeight,n={};return t?n.height=(0,_dom.toCssUnit)(Math.max(20,o-a-e)):r&&(n.height="auto",n.maxHeight=(0,_dom.toCssUnit)(Math.max(20,i-a-e))),n},computeScrollbarOpts:function(){return Object.assign({},getConfig().list.scrollbarConfig,this.scrollbarConfig)},computeScrollbarXOpts:function(){var e=this.computeScrollbarOpts;return Object.assign({},getConfig().scrollbar.xConfig,e.xConfig)},computeScrollbarYOpts:function(){var e=this.computeScrollbarOpts;return Object.assign({},getConfig().scrollbar.yConfig,e.yConfig)},computeScrollXHeight:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.height,e.height),getConfig().scrollbar.height)},computeScrollYWidth:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.width,e.width),getConfig().scrollbar.width)},computeScrollXVisible:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)(t.visible,e.visible)},computeScrollYVisible:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)(t.visible,e.visible)},computeScrollXAutoHide:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarXOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.autoHide,e.autoHide),getConfig().scrollbar.autoHide)},computeScrollYAutoHide:function(){var e=this.computeScrollbarOpts,t=this.computeScrollbarYOpts;return(0,_utils.getDefaultConfig)((0,_utils.getDefaultConfig)(t.autoHide,e.autoHide),getConfig().scrollbar.autoHide)},computeScrollbarWrapperClss:function(){var e=this,t=e.reactData,r=t.yThumbHeight,t=t.xThumbWidth,o=e.computeScrollbarXToTop,i=e.computeScrollbarYToLeft,a=e.computeScrollYVisible;return domUtils.buildClass(["vxe-scrollbar is--virtual",e.computeScrollbarOpts.fluentOverlay?"is--fluent-overlay":"is--default-mode","ov-x--".concat(!1===e.computeScrollXVisible?"hidden":"visible"),"ov-y--".concat(!1===a?"hidden":"visible"),"sx-pos--".concat(o?"top":"bottom"),"sy-pos--".concat(i?"left":"right")],{"overflow-y":r,"overflow-x":t})},computeScrollbarXToTop:function(){return"top"===this.computeScrollbarXOpts.position},computeScrollbarYToLeft:function(){return"left"===this.computeScrollbarYOpts.position}}),methods:{dispatchEvent:function(e,t,r){this.$emit(e,(0,_ui.createEvent)(r,{$list:this},t))},emitCheckboxMode:function(e){this.$emit("update:checkRowKeys",e)},emitRadioMode:function(e){this.$emit("update:checkRowKey",e)},callSlot:function(e,t,r){var o=this.$scopedSlots;return e&&(_xeUtils.default.isString(e)&&(e=o[e]||null),_xeUtils.default.isFunction(e))?(0,_vn.getSlotVNs)(e.call(this,t,r)):[]},getScrollViewElem:function(){return this.$refs.refVirtualWrapper||null},getRowId:function(e){return getRowIdByField(e,this.computeKeyField)},updateRadioModeValue:function(){var e=this.reactData,t=this.internalData,r=this.checkRowKey,t=t.fullKeyMaps;r?(t=t[r],e.selectRadioRow=t||null):e.selectRadioRow=null},updateCheckboxModeValue:function(){var e=this.internalData,t=this.checkRowKeys,r=e.fullKeyMaps,o=this.computeKeyField,i={};if(t&&t.length){var a,n=_createForOfIteratorHelper(t);try{for(n.s();!(a=n.n()).done;){var s=r[a.value];s&&(i[getRowIdByField(s,o)]=s)}}catch(e){n.e(e)}finally{n.f()}}e.selectCheckboxMaps=i,this.updateCheckboxStatus()},updateAfterDataIndex:function(){var e=this.internalData,t=e.afterList,i=e.rowMaps,a=this.computeKeyField,n=0;t.forEach(function(e,t){var r=getRowIdByField(e,a),o=i[r];o?o._index=n:(o={item:e,index:t,$index:-1,_index:n},i[r]=o),n++})},cacheRowMap:function(){var e=this.internalData,t=e.fullData,r=this.computeKeyField,o={};t.forEach(function(e){var t=getRowKeyByField(e,r);o[t]=e}),e.fullKeyMaps=o},loadData:function(e){var t=this,r=t.reactData,o=t.internalData,i=o.scrollYStore,a=t.computeSYOpts,e=e?e.slice(0):[];return Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0}),o.fullData=e,o.insertRowMaps={},r.insertRowFlag++,o.removeRowMaps={},r.removeRowFlag++,r.scrollYLoad=!!a.enabled&&-1<a.gt&&(0===a.gt||a.gt<=e.length),t.cacheRowMap(),t.handleData(!0),t.updateRadioModeValue(),t.updateCheckboxModeValue(),t.computeScrollLoad().then(function(){t.refreshScroll()})},reloadData:function(e){return this.clearScroll(),this.loadData(e)},getFullData:function(){return this.internalData.fullData},getParentElem:function(){var e=this.$refs.refElem;return e?e.parentElement:null},calcTableHeight:function(e){var t=this.reactData.parentHeight,e=this[e],r=0;return r=e?"100%"===e||"auto"===e?t:(r=(0,_dom.isScale)(e)?Math.floor((_xeUtils.default.toInteger(e)||1)/100*t):_xeUtils.default.toNumber(e),Math.max(40,r)):r},updateHeight:function(){var e=this,t=e.reactData,r=e.$refs.refHeaderElem,o=e.$refs.refFooterElem;t.headHeight=r?Math.floor(r.offsetHeight):0,t.footHeight=o?Math.floor(o.offsetHeight):0,t.customHeight=e.calcTableHeight("height"),t.customMaxHeight=e.calcTableHeight("maxHeight")},updateYSpace:function(){var e=this.reactData,t=this.internalData,r=e.scrollYLoad,o=t.scrollYStore;e.bodyHeight=r?t.fullData.length*o.rowHeight:0,e.topSpaceHeight=r?Math.max(o.startIndex*o.rowHeight,0):0},updateAfterFullData:function(){var e=this.internalData,t=e.fullData;e.afterList=t.slice(0),this.updateAfterDataIndex()},handleData:function(e){var t=this,r=t.reactData,o=t.internalData,i=r.scrollYLoad,a=o.fullData,n=o.scrollYStore,s=o.rowMaps,l=t.computeKeyField,o=(e&&t.updateAfterFullData(),i?a.slice(n.startIndex,n.endIndex):a.slice(0));return l&&o.forEach(function(e,t){e=getRowIdByField(e,l),e=s[e];e&&(e.$index=t)}),r.rowList=o,t.$nextTick()},updateYData:function(){this.handleData(),this.updateYSpace()},computeScrollLoad:function(){var n=this,s=n.reactData,l=n.internalData,c=n.browseObj;return n.$nextTick().then(function(){var e,t=s.scrollYLoad,r=l.scrollYStore,o=n.$refs.refVirtualBody,i=n.computeSYOpts,a=0;(e=o?(e=i.sItem?o.querySelector(i.sItem):e)||o.children[0]:e)&&(a=e.offsetHeight),a=Math.max(12,a),r.rowHeight=a,t?(o=n.$refs.refVirtualWrapper,e=Math.max(8,Math.ceil(o.clientHeight/a)),t=i.oSize?_xeUtils.default.toNumber(i.oSize):c.edge?10:0,r.offsetSize=t,r.visibleSize=e,r.endIndex=Math.max(r.startIndex+e+t,r.endIndex),n.updateYData()):n.updateYSpace()})},clearScroll:function(){var e=this.$refs.refVirtualWrapper;return e&&(e.scrollTop=0),this.$nextTick()},scrollTo:function(e,t){var r=this,o=r.reactData,i=r.$refs.refVirtualWrapper;return e&&!_xeUtils.default.isNumber(e)&&(t=e.top,e=e.left),_xeUtils.default.isNumber(e)&&(i.scrollLeft=e),_xeUtils.default.isNumber(t)&&(i.scrollTop=t),o.scrollYLoad?new Promise(function(e){setTimeout(function(){r.$nextTick(function(){e()})},50)}):r.$nextTick()},refreshScroll:function(){var e=this.internalData,t=e.lastScrollLeft,r=e.lastScrollTop;return this.clearScroll().then(function(){if(t||r)return e.lastScrollLeft=0,e.lastScrollTop=0,scrollTo(t,r)})},updateScrollbar:function(){var e=this;return e.computeIsVScrollbar?e.$nextTick().then(function(){e.updateThumbSize(),e.updateThumbOffset()}):Promise.resolve()},recalculate:function(){var e=this,t=e.reactData,r=e.$refs.refElem;if(r){var o,i=r.parentElement,a=0;if((i=i&&(0,_dom.hasClass)(i,"vxe-scrollbar--view-inner")?i.parentElement:i)&&(o=getComputedStyle(i),a=i.clientHeight-Math.ceil(_xeUtils.default.toNumber(o.paddingLeft)+_xeUtils.default.toNumber(o.paddingRight))),t.parentHeight=a,e.updateHeight(),r.clientWidth&&r.clientHeight)return e.computeScrollLoad().then(function(){e.updateScrollbar()})}return e.$nextTick()},loadYData:function(e){var t=this.internalData.scrollYStore,r=t.startIndex,o=t.endIndex,i=t.visibleSize,a=t.offsetSize,e=e.currentTarget.scrollTop,e=Math.floor(e/t.rowHeight),n=Math.max(0,e-1-a),a=e+i+a;!(e<=r||o-i-1<=e)||r===n&&o===a||(t.startIndex=n,t.endIndex=a,this.updateYData())},scrollEvent:function(e){var t=this,r=t.reactData,o=t.internalData,i=e.currentTarget,a=i.scrollTop,i=i.scrollLeft,n=i!==o.lastScrollLeft,s=a!==o.lastScrollTop;t.computeIsVScrollbar&&t.updateThumbOffset(),o.lastScrollTop=a,o.lastScrollLeft=i,r.scrollYLoad&&t.loadYData(e),t.dispatchEvent("scroll",{scrollLeft:i,scrollTop:a,isX:n,isY:s},e)},getRowKey:function(e){return getRowKeyByField(e,this.computeKeyField)},eqRowKey:eqRowKey,eqRow:function(e,t){return!(!e||!t)&&(e===t||eqRowKey(this.getRowId(e),this.getRowId(t)))},eqRowByKey:function(e,t){return e&&eqRowKey(this.getRowKey(e),t)},findRow:function(e,t){var r=this;return t?_xeUtils.default.find(e,function(e){return r.eqRow(e,t)}):null},findRowByKey:function(e,t){var r=this.computeKeyField;return _xeUtils.default.find(e,function(e){return eqRowKey(getRowIdByField(e,r),t)})},findRowIndexOf:function(e,t){var r=this;return t?_xeUtils.default.findIndexOf(e,function(e){return r.eqRow(e,t)}):-1},findRowIndexOfByKey:function(e,t){var r=this.computeKeyField;return _xeUtils.default.findIndexOf(e,function(e){return eqRowKey(getRowIdByField(e,r),t)})},isCheckedByRadioRowKey:function(e){var t=this.reactData.selectRadioRow;return this.getRowKey(t)===e},isCheckedByRadioRow:function(e){return this.isCheckedByRadioRowKey(this.getRowKey(e))},isCheckedByCheckboxRowKey:function(e){var t=this.reactData,r=this.internalData,t=t.updateCheckboxFlag,r=r.selectCheckboxMaps;return!(!t||!r[e])},isCheckedByCheckboxRow:function(e){return this.isCheckedByCheckboxRowKey(this.getRowKey(e))},setCurrentRow:function(e){var t=this.reactData;return this.internalData.currentRow=e,t.currRowFlag++,this.$nextTick()},setCurrentRowByKey:function(e){var t=this.reactData,r=this.internalData,o=r.fullData;return r.currentRow=this.findRowByKey(o,e),t.currRowFlag++,this.$nextTick()},getCurrentRow:function(){return this.internalData.currentRow},getCurrentRowKey:function(){var e=this.internalData.currentRow;return e?this.getRowKey(e):null},clearCurrentRow:function(){var e=this.reactData;return this.internalData.currentRow=null,e.currRowFlag++,this.$nextTick()},setRadioRow:function(e){this.reactData.selectRadioRow=e;e=this.getRowKey(e);return this.emitRadioMode(e),this.$nextTick()},setRadioRowByKey:function(e){var t=this,r=t.reactData,o=t.internalData.fullData,r=(r.selectRadioRow=t.findRowByKey(o,e),e);return t.emitRadioMode(r),t.$nextTick()},getRadioRow:function(){return this.reactData.selectRadioRow},getRadioRowKey:function(){var e=this.reactData.selectRadioRow;return e?this.getRowKey(e):null},clearRadioRow:function(){return this.reactData.selectRadioRow=null,this.emitRadioMode(null),this.$nextTick()},setCheckboxRow:function(e,t){var r=this,o=r.internalData.selectCheckboxMaps,i=r.computeKeyField,e=((e?_xeUtils.default.isArray(e)?e:[e]:[]).forEach(t?function(e){var t=getRowIdByField(e,i);o[t]||(o[t]=e)}:function(e){e=getRowIdByField(e,i);o[e]&&delete o[e]}),r.getCheckboxRowKeys());return r.emitCheckboxMode(e),r.updateCheckboxStatus()},setCheckboxRowByKey:function(e,t){var r=this,o=r.internalData,i=o.selectCheckboxMaps,a=o.fullKeyMaps,n=r.computeKeyField,o=((e?_xeUtils.default.isArray(e)?e:[e]:[]).forEach(t?function(e){var t,e=a[e||""];e&&(t=getRowIdByField(e,n),e)&&!i[t]&&(i[t]=e)}:function(e){var e=a[e||""];e&&(e=getRowIdByField(e,n),i[e])&&delete i[e]}),r.getCheckboxRowKeys());return r.emitCheckboxMode(o),r.updateCheckboxStatus()},getCheckboxRecords:function(){var e=this.reactData,t=this.internalData,e=e.updateCheckboxFlag,t=t.selectCheckboxMaps,r=[];return e&&_xeUtils.default.each(t,function(e){e&&r.push(e)}),r},getCheckboxRows:function(){return this.getCheckboxRecords()},getCheckboxRowKeys:function(){var e=this.reactData,t=this.internalData,e=e.updateCheckboxFlag,t=t.selectCheckboxMaps,r=this.computeKeyField,o=[];return e&&_xeUtils.default.each(t,function(e){e&&(e=getRowKeyByField(e,r),o.push(e))}),o},clearCheckboxRow:function(){var e=this.reactData;this.internalData.selectCheckboxMaps={},e.updateCheckboxFlag++,e.isAllChecked=!1,e.isAllIndeterminate=!1;return this.emitCheckboxMode([]),this.$nextTick()},setAllCheckboxRow:function(e){var t=this,r=t.internalData,o=r.fullData,i=r.selectCheckboxMaps,a=t.computeKeyField;if(e){var n,s=[],l=_createForOfIteratorHelper(o);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=getRowKeyByField(c,a);i[getRowIdByField(c,a)]=c,s.push(u)}}catch(e){l.e(e)}finally{l.f()}return t.emitCheckboxMode(s),t.updateCheckboxStatus()}return t.clearCheckboxRow()},updateCheckboxStatus:function(){var e=this,t=e.reactData,r=e.internalData,o=r.selectCheckboxMaps,r=r.fullData,i=e.computeKeyField,a=e.computeCheckboxOpts.checkMethod,n=!1,s=!1;if(a){var l,c=_createForOfIteratorHelper(r);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(a({row:u,$list:e}))if(o[getRowIdByField(u,i)])n=!0;else if(s=!0,n)break}}catch(e){c.e(e)}finally{c.f()}}else{var d,h=_createForOfIteratorHelper(r);try{for(h.s();!(d=h.n()).done;)if(o[getRowIdByField(d.value,i)])n=!0;else if(s=!0,n)break}catch(e){h.e(e)}finally{h.f()}}return t.isAllChecked=n&&!s,t.isAllIndeterminate=n&&s,t.updateCheckboxFlag++,e.$nextTick()},changeCheckboxAllEvent:function(e){var t=!this.reactData.isAllChecked;t?this.setAllCheckboxRow(!0):this.clearCheckboxRow(),this.dispatchEvent("checkbox-all",{checked:t},e)},changeCheckboxEvent:function(e,t){var r=this,o=r.reactData,i=r.internalData,i=(e.preventDefault(),e.stopPropagation(),i.selectCheckboxMaps),a=r.computeCheckboxOpts.checkMethod,n=r.getRowKey(t);(!a||a({$list:r,row:t}))&&(a=!1,i[n]?delete i[n]:(a=!0,i[n]=t),o.updateCheckboxFlag++,r.updateCheckboxStatus(),n=_xeUtils.default.keys(i).map(_utils.deModelValue),r.emitCheckboxMode(n),r.dispatchEvent("checkbox-change",{row:t,value:n,checked:a},e))},changeCurrentEvent:function(e,t){var r=this.reactData,o=this.internalData;e.preventDefault();var i=this.computeRowOpts.currentMethod,a=!1;(a=i?!i({row:t}):a)||(o.currentRow=t,r.currRowFlag++,this.dispatchEvent("current-change",{row:t,checked:!0},e))},changeRadioEvent:function(e,t){var r,o=this,i=o.reactData,a=(e.preventDefault(),e.stopPropagation(),i.selectRadioRow),n=o.computeRadioOpts,s=n.strict,n=n.checkMethod,l=o.getRowKey(t);(!n||n({$list:o,row:t}))&&(n=l,r=!0,s&&a&&l===o.getRowKey(a)?(r=!1,i.selectRadioRow=null):i.selectRadioRow=t,o.emitRadioMode(n),o.dispatchEvent("radio-change",{row:t,value:n,checked:r},e))},handleRowDragEndClearStatus:function(){this.clearRowDragData(),this.clearCrossListDragStatus(),this.recalculate()},clearRowDropOrigin:function(){var t,e=this.$refs.refElem;e&&_xeUtils.default.arrayEach(e.querySelectorAll(".".concat(t="row--drag-origin")),function(e){(e.draggable=!1,_dom.removeClass)(e,t)})},updateRowDropOrigin:function(e){var t=this.computeSYOpts.sItem,r=this.$refs.refElem;r&&(e=this.getRowId(e),_xeUtils.default.arrayEach(r.querySelectorAll('.vxe-list--row[rowid="'.concat(e,'"]')+(t?"".concat(t,'[rowid="').concat(e,'"]'):"")),function(e){(0,_dom.addClass)(e,"row--drag-origin")}))},updateRowDropTipContent:function(e){var t=this.reactData,r=t.dragRow,o=this.computeDragOpts.tooltipMethod,i="";i=o?"".concat(o({$list:this,row:r})||""):getI18n("vxe.list.dragTip",[e.textContent||""]),t.dragTipText=i},hideDropTip:function(){var e=this.$refs.refDragTipElem,t=this.$refs.refDragRowLineElem;e&&(e.style.display=""),t&&(t.style.display="")},clearCrossListDragStatus:function(){var e=(0,_store.getCrossListDragRowInfo)(this);crossListDragRowObj=null,e.row=null},clearDragStatus:function(){var e=this.reactData;e.dragRow&&(this.hideDropTip(),this.clearRowDropOrigin(),this.clearCrossListDragStatus(),e.dragRow=null)},handleRowDragMousedownEvent:function(e,t){var r=this,o=r.reactData,i=(0,_store.getCrossListDragRowInfo)(r),a=(e.stopPropagation(),t.row),n=r.computeDragOpts,s=n.isCrossListDrag,l=n.dragStartMethod,c=e.currentTarget,n="row"===n.trigger?c:c.parentElement.parentElement;r.clearRowDropOrigin(),l&&!l(t)?(n.draggable=!1,o.dragRow=null,r.hideDropTip()):(s&&(i.row=a,crossListDragRowObj={$oldList:r,$newList:null}),c={row:a},o.dragRow=a,n.draggable=!0,r.updateRowDropOrigin(a),r.updateRowDropTipContent(n),r.dispatchEvent("row-dragstart",c,e))},handleRowDragMouseupEvent:function(){this.clearDragStatus()},showDropTip:function(e,t,r,o){var i,a,n,s,l=this.$refs.refElem;l&&(i=l.getBoundingClientRect(),s=l.clientHeight,t&&(a=this.$refs.refDragRowLineElem)&&(r?(n=t.getBoundingClientRect(),t=t.clientHeight,s<(n=Math.max(1,n.y-i.y))+t&&(t=s-n),a.style.display="block",a.style.top="".concat(n,"px"),a.style.height="".concat(t,"px"),a.setAttribute("drag-pos",o)):a.style.display=""),s=this.$refs.refDragTipElem)&&(s.style.display="block",s.style.top="".concat(Math.min(l.clientHeight-l.scrollTop-s.clientHeight,e.clientY-i.y),"px"),s.style.left="".concat(Math.min(l.clientWidth-l.scrollLeft-s.clientWidth-1,e.clientX-i.x),"px"),s.setAttribute("drag-status",r?"normal":"disabled"))},clearRowDragData:function(){var e=this.reactData,t=this.$refs.refElem;this.hideDropTip(),this.clearRowDropOrigin(),(0,_anime.clearRowAnimate)(t,[".vxe-list--row"]),e.dragRow=null},handleRowDragSwapEvent:function(t,r,o,i){var e,u,d,h,f,a,n,s,l,g=this,p=g.reactData,w=g.internalData,c=w.fullData,m=g.computeDragOpts,v=m.animation,m=m.dragEndMethod||(m?m.dragEndMethod:null),R="bottom"===i?1:0,b=g.$refs.refElem,y={status:!1};if(b&&o&&r){if(o!==r)return e={oldRow:r,newRow:o,dragRow:r,dragPos:i,offsetIndex:R},u=g.getRowId(r),d=g.findRowIndexOfByKey(c,u),n=g.getRowKey(o),h=0,f=-1,v&&(n=b.querySelector('.vxe-list--row[rowid="'.concat(n,'"]')),a=b.querySelector('.vxe-list--row[rowid="'.concat(u,'"]')),(n=n||a)&&(h=n.offsetHeight),a)&&(f=a.offsetTop),l=s=-1,Promise.resolve(!m||m(e)).then(function(e){if(!e)return y;s=g.findRowIndexOf(c,r),c.splice(s,1);e=g.findRowIndexOf(c,o);return l=e+R,c.splice(l,0,r),g.handleData(),p.scrollYLoad&&g.updateYSpace(),t&&g.dispatchEvent("row-dragend",{oldRow:r,newRow:o,dragRow:r,dragPos:i,offsetIndex:R,_index:{newIndex:l,oldIndex:s}},t),g.$nextTick().then(function(){var e,t,r,o,i,a,n,s,l,c;v&&(n=p.rowList,c=w.fullData,l=g.findRowIndexOfByKey(c,u),s=c[0],s=g.findRowIndexOf(c,s),e=b,-1<s&&(i=s+c.length,r=t=-1,o=1,d<s?(t=0,r=l-s):i<d?(t=g.findRowIndexOfByKey(n,u)+1,r=c.length,o=-1):d<l?r=(t=d-s)+l-d:(r=(t=l-s)+d-l+1,o=-1),(i=c.slice(t,r)).length)&&(a=[],i.forEach(function(e){e=g.getRowId(e);a.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),n=e.querySelectorAll(a.join(",")),(0,_anime.moveRowAnimateToTb)(n,o*h)),s=['.vxe-list--row[rowid="'.concat(u,'"]')],c=(l=e.querySelectorAll(s.join(",")))[0],-1<f)&&c&&(0,_anime.moveRowAnimateToTb)(l,f-c.offsetTop),g.recalculate()}).then(function(){return{status:!0}})}).catch(function(){return y}).then(function(e){return g.clearRowDragData(),g.clearCrossListDragStatus(),e});g.clearRowDragData(),g.clearCrossListDragStatus()}return Promise.resolve(y)},handleRowDragDragstartEvent:function(e){e.dataTransfer&&e.dataTransfer.setDragImage((0,_dom.getTpImg)(),0,0)},handleRowDragDragendEvent:function(e){var t=this,r=t.reactData,o=t.internalData,r=r.dragRow,i=o.prevDragRow,o=o.prevDragPos;if(t.computeDragOpts.isCrossListDrag&&crossListDragRowObj){var a=crossListDragRowObj.$newList;if(a&&a.xID!==t.xID)return void a.handleCrossListRowDragInsertEvent(e)}t.handleRowDragSwapEvent(e,r,i,o)},handleRowDragDragoverEvent:function(e){var t,r=this,o=r.reactData,i=r.internalData,o=o.dragRow,a=i.fullData,n=(o||e.preventDefault(),e.currentTarget),s=n.getAttribute("rowid")||"",a=r.findRowByKey(a,s);a&&(e.preventDefault(),t=e.clientY-n.getBoundingClientRect().y<n.clientHeight/2?"top":"bottom",i.prevDragRow=a,i.prevDragPos=t,o&&r.getRowId(o)===s?r.showDropTip(e,n,!1,t):(i={oldRow:o,targetRow:a,dragPos:t,dragRow:o,offsetIndex:"bottom"==t?1:0},r.showDropTip(e,n,!0,t),r.dispatchEvent("row-dragover",i,e)))},handleRowMousedownEvent:function(e,t){var r=this.computeDragOpts,o=this.computeIsDrag,i=r.trigger,r=r.disabledMethod,a=!1,t={row:t,$list:this};!(a=o?"row"===i:a)||r&&r(t)||this.handleRowDragMousedownEvent(e,t)},handleRowClickEvent:function(e,t){var r=this,o=r.reactData,i=r.internalData,a=r.showRadio,n=r.showCheckbox,s=i.currentRow,l=r.computeRadioOpts,c=r.computeCheckboxOpts,u=!1,d=!1,h=!1;r.computeRowOpts.isCurrent?(u=!0,r.changeCurrentEvent(e,t)):s&&(i.currentRow=null,o.currRowFlag++),a&&"row"===l.trigger&&(d=!0,r.changeRadioEvent(e,t)),n&&"row"===c.trigger&&(h=!0,r.changeCheckboxEvent(e,t)),r.dispatchEvent("row-click",{row:t,triggerCurrent:u,triggerRadio:d,triggerCheckbox:h},e)},handleRowDblclickEvent:function(e,t){this.dispatchEvent("row-dblclick",{row:t},e)},insertListRow:function(e,t){var r=this.internalData,o=r.fullData,i=r.rowMaps,a=this.computeKeyField,n=t?"push":"unshift";e.forEach(function(e){var t=getRowIdByField(e,a),r=(0,_util.getItemCacheObj)(e);o[n](e),i[t]=r})},handleInsertRowAt:function(e,t,r){var o=this,i=o.reactData,a=o.internalData,n=a.fullData,s=a.rowMaps,l=a.removeRowMaps,c=a.insertRowMaps,u=o.computeKeyField;if(!u)return errLog("vxe.error.reqSupportProp",["insert() | insertAt() | insertNextAt()","row-config.keyField"]),Promise.resolve({row:null,rows:[]});_xeUtils.default.isArray(e)||(e=[e]);var d,h=t;return(_xeUtils.default.isString(t)||_xeUtils.default.isNumber(t))&&(a=s[t])&&(h=a.item),e.length?(d=e.map(function(e){return _xeUtils.default.assign({},e)}),_xeUtils.default.eqNull(h)?o.insertListRow(d,!1):-1===h?o.insertListRow(d,!0):-1<(t=n.findIndex(function(e){return h[u]===e[u]}))?(d.forEach(function(e){var t=getRowIdByField(e,u),e=(0,_util.getItemCacheObj)(e);s[t]=e}),a=t,r&&(a+=1),n.splice.apply(n,[a,0].concat(_toConsumableArray(d)))):(warnLog("vxe.error.unableInsert"),o.insertListRow(d,!0)),d.forEach(function(e){var t=getRowIdByField(e,u);l[t]?(delete l[t],c[t]&&delete c[t]):c[t]=e}),i.removeRowFlag++,i.insertRowFlag++,o.cacheRowMap(),o.handleData(!0),o.updateAfterDataIndex(),o.updateCheckboxStatus(),i.scrollYLoad&&o.updateYSpace(),o.$nextTick().then(function(){return{row:d.length?d[d.length-1]:null,rows:d}})):Promise.resolve({row:null,rows:[]})},insert:function(e){return this.handleInsertRowAt(e,null)},insertAt:function(e,t){return this.handleInsertRowAt(e,t)},insertNextAt:function(e,t){return this.handleInsertRowAt(e,t,!0)},getInsertRecords:function(){var e=this.internalData.insertRowMaps,t=[];return _xeUtils.default.each(e,function(e){t.push(e)}),t},isInsertByRow:function(e){var t=this.reactData,r=this.internalData,e=this.getRowId(e);return!!t.insertRowFlag&&!!r.insertRowMaps[e]},remove:function(e){var r,o=this,t=o.reactData,i=o.internalData,a=i.fullData,n=i.insertRowMaps,s=i.removeRowMaps;return o.computeKeyField?(r=[],e?_xeUtils.default.isArray(e)||(e=[e]):e=a,e.length?(e.forEach(function(e){var t;o.isInsertByRow(e)||(t=o.getRowId(e),s[t]=e)}),a===e?(e=r=a.slice(0),i.fullData=[]):e.forEach(function(e){var t=o.getRowId(e),e=_xeUtils.default.findIndexOf(a,function(e){return t===o.getRowId(e)});-1<e&&(e=a.splice(e,1),r.push(e[0]))}),e.forEach(function(e){e=o.getRowId(e);n[e]&&delete n[e]}),t.removeRowFlag++,t.insertRowFlag++,o.cacheRowMap(),o.handleData(!0),o.updateAfterDataIndex(),o.updateCheckboxStatus(),t.scrollYLoad&&o.updateYSpace(),o.$nextTick().then(function(){return o.recalculate()}).then(function(){return{row:r.length?r[r.length-1]:null,rows:r}})):Promise.resolve({row:null,rows:[]})):(errLog("vxe.error.reqSupportProp",["insert() | insertAt() | insertNextAt()","row-config.keyField"]),Promise.resolve({row:null,rows:[]}))},getRemoveRecords:function(){var e=this.internalData.removeRowMaps,t=[];return _xeUtils.default.each(e,function(e){t.push(e)}),t},isRemoveByRow:function(e){var t=this.reactData,r=this.internalData,e=this.getRowId(e);return!!t.removeRowFlag&&!!r.removeRowMaps[e]},getRecordset:function(){return{insertRecords:this.getInsertRecords(),removeRecords:this.getRemoveRecords()}},handleCrossListRowDragCancelEvent:function(){this.clearRowDragData(),this.clearCrossListDragStatus()},handleCrossListRowDragFinishEvent:function(e){var r,t,o,i=this,a=i.reactData,n=i.internalData,s=(0,_store.getCrossListDragRowInfo)(i),a=a.rowList,n=n.rowMaps,l=i.computeDragOpts,c=l.animation,u=i.$refs.refElem;u&&l.isCrossListDrag&&crossListDragRowObj&&s&&(l=s.row)&&(n=n[s=i.getRowId(l)],r=0,t=-1,n&&(c&&(s=u.querySelector('.vxe-list--row[rowid="'.concat(s,'"]')))&&(r=s.offsetHeight),t=n.$index),o=-1<t&&t<a.length-1?a.slice(t+1):[],i.remove([l]).then(function(){var t,e;c&&r&&o.length&&(e=u,t=[],o.forEach(function(e){e=i.getRowId(e);t.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),e=e.querySelectorAll(t.join(",")),(0,_anime.moveRowAnimateToTb)(e,r))}),i.dispatchEvent("row-remove-dragend",{row:l},e),i.handleRowDragEndClearStatus())},handleCrossListRowDragoverEmptyEvent:function(e){var t,r,o=this,i=o.reactData,a=o.internalData,n=i.rowList;o.computeDragOpts.isCrossListDrag&&crossListDragRowObj&&!n.length&&(t=(n=crossListDragRowObj).$oldList,n=n.$newList,t)&&(r=t).xID!==o.xID&&(n&&n.xID!==o.xID&&n.hideCrossListRowDropClearStatus(),e.preventDefault(),t.hideCrossListRowDropClearStatus(),crossListDragRowObj.$newList=o,a.prevDragRow=null,i.dragTipText=r.dragTipText,o.showDropTip(e,e.currentTarget,!0,""))},handleCrossListRowDragInsertEvent:function(r){var o,i,n,s,a,l,c=this,u=c.reactData,d=c.internalData,e=(0,_store.getCrossListDragRowInfo)(c),h=d.prevDragRow,f=d.prevDragPos,t=c.computeDragOpts,g=t.animation,p=t.dragEndMethod;t.isCrossListDrag&&crossListDragRowObj&&e&&(o=e.row,i=crossListDragRowObj.$oldList,n=c.$refs.refElem)&&i&&o&&(a=-1,t={oldRow:s=o,newRow:h,dragRow:s,dragPos:f,offsetIndex:a=h?"bottom"===f?1:0:a},l={status:!1},Promise.resolve(!p||p(t)).then(function(e){if(!e)return i&&i.xID!==c.xID&&i.handleCrossListRowDragCancelEvent(r),c.handleRowDragEndClearStatus(),l;var e=Promise.resolve(),t=[s];i.handleCrossListRowDragFinishEvent(r),e=h?"bottom"===f?c.insertNextAt(t,h):c.insertAt(t,h):c.insert(t),c.dispatchEvent("row-insert-dragend",{oldRow:o,newRow:h,dragRow:s,dragPos:f,offsetIndex:a},r),c.clearRowDragData(),e.then(function(){var t,e=u.rowList,r=d.rowMaps,o=c.getRowId(s),r=r[o],i=0,a=-1,o=(r&&(g&&(o=n.querySelector('.vxe-list--row[rowid="'.concat(o,'"]')))&&(i=o.offsetHeight),a=r.$index),-1<a?e.slice(a):[]);g&&i&&o.length&&(r=n,t=[],o.forEach(function(e){e=c.getRowId(e);t.push('.vxe-list--row[rowid="'.concat(e,'"]'))}),e=r.querySelectorAll(t.join(",")),(0,_anime.moveRowAnimateToTb)(e,-i))})}))},hideCrossListRowDropClearStatus:function(){this.hideDropTip()},handleContextmenuEvent:function(o,i){var a=this,e=a.reactData,t=a.internalData,r=a.menuConfig,n=a.computeMenuOpts,s=a.computeRowOpts.isCurrent;(r?(0,_utils.isEnableConf)(n):n.enabled)&&(r=n.options,(n=n.visibleMethod)&&!n({$list:a,options:r,row:i})||(s?a.changeCurrentEvent(o,i):t.currentRow&&(t.currentRow=null,e.currRowFlag++),_ui.VxeUI.contextMenu&&_ui.VxeUI.contextMenu.openByEvent(o,{options:r,events:{optionClick:function(e){var t=e.option,r=menus.get(t.code),r=r?r.listMenuMethod:null,t={menu:t,row:i,$event:o,$list:a};r&&r(t,o),a.dispatchEvent("menu-click",t,e.$event)}}}))),a.dispatchEvent("row-menu",{row:i},o)},bindScrollbarResize:function(){var e,t,r,o=this,i=o.internalData,a=i.scrollObserver;o.computeIsVScrollbar&&!a&&(a=o.$refs.refElem,e=o.$refs.refVirtualSpaceElem,t=o.$refs.refVirtualBody,r=globalResize.create(function(){o.reScrollFlag++}),a&&r.observe(a),e&&r.observe(e),t&&r.observe(t),i.scrollObserver=r)},renderDragTip:function(e){var t=this,r=t.reactData,o=r.dragRow,r=r.dragTipText,i=t.computeDragOpts;return t.computeIsDrag?e("div",{class:"vxe-list--drag-wrapper"},[e("div",{ref:"refDragRowLineElem",class:["vxe-list--drag-row-line",{"is--guides":i.showGuidesStatus}]}),o&&i.showDragTip?e("div",{ref:"refDragTipElem",class:"vxe-list--drag-sort-tip"},[e("div",{class:"vxe-list--drag-sort-tip-wrapper"},[e("div",{class:"vxe-list--drag-sort-tip-status"},[e("span",{class:["vxe-list--drag-sort-tip-normal-status",getIcon().LIST_DRAG_STATUS_NODE]}),e("span",{class:["vxe-list--drag-sort-tip-disabled-status",getIcon().LIST_DRAG_DISABLED]})]),e("div",{class:"vxe-list--drag-sort-tip-content"},r)])]):(0,_ui.renderEmptyElement)(t)]):(0,_ui.renderEmptyElement)(t)},renderRadio:function(e,t,r,o,i){var a=this,n=a.showRadio,s=a.computeRadioOpts,l=s.showIcon,s=s.visibleMethod,s=!s||s({$list:a,row:t});return n&&l&&s?e("div",{key:"ct2",class:["vxe-list--radio-option",{"is--checked":i,"is--disabled":o}],on:{click:function(e){o||a.changeRadioEvent(e,t)}}},[e("span",{class:["vxe-radio--icon",i?getIcon().RADIO_CHECKED:o?getIcon().RADIO_DISABLED_UNCHECKED:getIcon().RADIO_UNCHECKED]})]):(0,_ui.renderEmptyElement)(a)},renderCheckbox:function(e,t,r,o,i){var a=this,n=a.showCheckbox,s=a.computeCheckboxOpts,l=s.showIcon,s=s.visibleMethod,s=!s||s({$list:a,row:t});return n&&l&&s?e("div",{key:"ct3",class:["vxe-list--checkbox-option",{"is--checked":i,"is--disabled":o}],on:{click:function(e){o||a.changeCheckboxEvent(e,t)}}},[e("span",{class:["vxe-checkbox--icon",i?getIcon().CHECKBOX_CHECKED:o?getIcon().CHECKBOX_DISABLED_UNCHECKED:getIcon().CHECKBOX_UNCHECKED]})]):(0,_ui.renderEmptyElement)(a)},renderRow:function(e,t,r){var o=this,i=o.reactData,a=o.internalData,n=o.$scopedSlots,s=o.showRadio,l=o.showCheckbox,c=i.selectRadioRow,u=i.currRowFlag,i=i.updateCheckboxFlag,d=a.selectCheckboxMaps,a=a.currentRow,h=n.content,n=n.extra,f=o.computeDragOpts,g=f.trigger,p=f.icon,w=f.disabledMethod,f=f.visibleMethod,m=o.computeRadioOpts,v=o.computeCheckboxOpts,R=o.computeRowOpts,b=R.useKey,y=R.contentField,x=R.className,R=R.isCurrent,D=o.computeIsDrag,C=o.computeKeyField,S=x&&_xeUtils.default.isFunction(x),b=C||b||D||R||s||l,R=b&&C?getRowIdByField(t,C):"",k=(0,_utils.enModelValue)(R),E={row:t,$list:o},_=!1,I=!1,c=(s&&(_=c&&(t===c||o.eqRowByKey(c,R)),I=!!m.checkMethod&&!m.checkMethod({$list:o,row:t})),!1),m=!1,i=(l&&(c=!(!i||!d[k]),m=!!v.checkMethod&&!v.checkMethod({$list:o,row:t})),[]),O=(s&&i.push(o.renderRadio(e,t,k,I,_)),l&&i.push(o.renderCheckbox(e,t,k,m,c)),!1),v=(D&&C&&(!f||f(E))&&(d={},"row"!==g&&(O=!(!w||!w(E)),d.mousedown=function(e){O||o.handleRowDragMousedownEvent(e,E)},d.mouseup=o.handleRowDragMouseupEvent),i.push(e("div",{key:"ct1",class:"vxe-list--row-drag"},[e("span",{class:"vxe-list--drag-handle",on:d},[e("i",{class:p||getIcon().LIST_DRAG})])]))),i.push(e("div",{key:"ct5",class:"vxe-list--row-content"},h?h(E):y?(0,_utils.getText)(t[y]):"")),n&&i.push(e("div",{key:"ct7",class:"vxe-list--row-extra"},n(E))),{mousedown:function(e){o.handleRowMousedownEvent(e,t)},mouseup:o.handleRowDragMouseupEvent,click:function(e){o.handleRowClickEvent(e,t)},dblclick:function(e){o.handleRowDblclickEvent(e,t)},contextmenu:function(e){o.handleContextmenuEvent(e,t)}});return D&&(v.dragstart=o.handleRowDragDragstartEvent,v.dragend=o.handleRowDragDragendEvent,v.dragover=o.handleRowDragDragoverEvent),e("div",{key:b&&C?k:r,class:["vxe-list--row",S?x(E):x||"",{"is--drag-disabled":O,"is--current":u&&a&&o.eqRowByKey(a,R),"is-radio--disabled":I,"is-radio--checked":_,"is-checkbox--disabled":m,"is-checkbox--checked":c}],attrs:b&&C?{rowid:k}:void 0,on:v},i)},renderVN:function(r){var o=this,e=o.reactData,t=o.$scopedSlots,i=o.showCheckbox,a=o.className,n=o.loading,s=e.bodyHeight,l=e.topSpaceHeight,c=e.rowList,u=e.isAllChecked,d=e.isAllIndeterminate,h=e.xThumbWidth,e=e.yThumbHeight,f=t.default,g=t.header,t=t.footer,p=o.computeSize,w=o.computeIsVScrollbar,m=o.computeWrapperStyles,v=o.computeVirtualStyles,R=o.computeRadioOpts,b=o.computeCheckboxOpts,y=o.computeDragOpts,x=y.trigger,D=o.computeRowOpts,C=D.isHover,D=D.padding,S=o.computeIsDrag,k=o.computeScrollbarOpts,E=o.computeScrollXVisible,_=o.computeScrollYVisible,I=o.computeScrollbarXToTop,O=o.computeScrollbarYToLeft,T=o.computeScrollXAutoHide,L=o.computeScrollYAutoHide,M=o.computeScrollbarWrapperClss,i=i&&!1!==b.showHeader,F={};return y.isCrossListDrag&&!c.length&&(F.dragover=o.handleCrossListRowDragoverEmptyEvent),r("div",{ref:"refElem",class:["vxe-list",w?"ov-x--".concat(!1===E?"hidden":"visible"):"",w?"ov-y--".concat(!1===_?"hidden":"visible"):"",w?"sx-pos--".concat(I?"top":"bottom"):"",w?"sy-pos--".concat(O?"left":"right"):"",a?_xeUtils.default.isFunction(a)?a({$list:o}):a:"",_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(p),p),"is--virtual-scrollbar",w),"ov-padding",w&&k.padding),"ov-x--auto-hide",w&&T),"ov-y--auto-hide",w&&L),"overflow-y",e),"overflow-x",h),"is--drag",S),"is--loading",n)],on:F,style:m},[g||i?r("div",{ref:"refHeaderElem",class:"vxe-list--header-wrapper"},[i?r("div",{class:"vxe-list--header-left"},[r("div",{class:["vxe-list--checkbox-header",{"is--checked":u,"is--indeterminate":d}],on:{click:o.changeCheckboxAllEvent}},[r("span",{class:["vxe-checkbox--icon",u?getIcon().CHECKBOX_CHECKED:d?getIcon().CHECKBOX_INDETERMINATE:getIcon().CHECKBOX_UNCHECKED]})])]):(0,_ui.renderEmptyElement)(o),g?r("div",{class:"vxe-list--header-content"},g({items:c,$list:o})):(0,_ui.renderEmptyElement)(o)]):(0,_ui.renderEmptyElement)(o),r("div",{ref:"refVirtualWrapper",class:"vxe-list--virtual-wrapper",style:v,on:{scroll:o.scrollEvent}},[r("div",{ref:"refVirtualSpaceElem",class:"vxe-list--y-space",style:{height:s?"".concat(s,"px"):""}}),r("div",{ref:"refVirtualBody",class:["vxe-list--body",{"trigger--row":"row"===x,"checkbox--highlight":b.highlight,"radio--highlight":R.highlight,"row--hover":C,"is--padding":D}],style:{marginTop:l?"".concat(l,"px"):""}},f?f({items:c,$list:o}):c.map(function(e,t){return o.renderRow(r,e,t)}))]),t?r("div",{ref:"refFooterElem",class:"vxe-list--footer-wrapper"},t({items:c,$list:o})):(0,_ui.renderEmptyElement)(o),w?r("div",{class:M},[!1===E?(0,_ui.renderEmptyElement)(o):r("div",{ref:"refTrackXElem",class:"vxe-scrollbar--track-x",on:{click:o.clickTrackXEvent}},[r("div",{ref:"refThumbXElem",class:"vxe-scrollbar--thumb-x",on:{pointerdown:o.pointerdownThumbXEvent,pointermove:o.pointermoveThumbXEvent,pointerup:o.cleatPointerThumbEvent,pointercancel:o.cleatPointerThumbEvent,lostpointercapture:o.cleatPointerThumbEvent}})]),!1===_?(0,_ui.renderEmptyElement)(o):r("div",{ref:"refTrackYElem",class:"vxe-scrollbar--track-y",on:{click:o.clickTrackYEvent}},[r("div",{ref:"refThumbYElem",class:"vxe-scrollbar--thumb-y",on:{pointerdown:o.pointerdownThumbYEvent,pointermove:o.pointermoveThumbYEvent,pointerup:o.cleatPointerThumbEvent,pointercancel:o.cleatPointerThumbEvent,lostpointercapture:o.cleatPointerThumbEvent}})])]):(0,_ui.renderEmptyElement)(o),o.renderDragTip(r),r(_loading.default,{class:"vxe-list--loading",props:{value:n}})])}},watch:{data:function(){this.loadData(this.data||[])},height:function(){this.reLayoutFlag++},maxHeight:function(){this.reLayoutFlag++},syncResize:function(){this.reLayoutFlag++},computeIsVScrollbar:function(){var e=this;e.$nextTick(function(){e.bindScrollbarResize(),e.$nextTick(function(){e.reLayoutFlag++})})},computeRowHeight:function(){this.reLayoutFlag++},computeScrollYWidth:function(){this.reLayoutFlag++},computeScrollXHeight:function(){this.reLayoutFlag++},computeScrollXVisible:function(){var e=this;e.$nextTick(function(){e.reLayoutFlag++})},computeScrollYVisible:function(){var e=this;e.$nextTick(function(){e.reLayoutFlag++})},reLayoutFlag:function(){var e=this;e.recalculate().then(function(){e.recalculate()})},reScrollFlag:function(){var e=this;e.updateScrollbar().then(function(){e.updateScrollbar()})},checkRowKey:function(){this.updateRadioModeValue()},checkRowKeys:function(){this.updateCheckboxModeValue()}},created:function(){this.internalData=createInternalData(),this.browseObj=_xeUtils.default.browse(),this.loadData(this.data||[])},mounted:function(){var e=this,t=e,r=e.internalData,o=t.showSeq,i=t.showRadio,a=t.showCheckbox,n=t.autoResize,s=e.computeRowOpts,l=s.useKey,s=s.keyField,c=e.computeIsDrag;s||(o&&errLog("vxe.error.reqSupportProp",["show-seq","row-config.keyField"]),i&&errLog("vxe.error.reqSupportProp",["show-radio","row-config.keyField"]),a&&errLog("vxe.error.reqSupportProp",["show-checkbox","row-config.keyField"]),c&&errLog("vxe.error.reqSupportProp",["drag-config","row-config.keyField"])),l&&!s&&errLog("vxe.error.reqSupportProp",["row-config.useKey","row-config.keyField"]),n&&(o=e.$refs.refElem,i=e.getParentElem(),a=globalResize.create(function(){t.autoResize&&e.reLayoutFlag++}),o&&a.observe(o),i&&a.observe(i),r.resizeObserver=a),e.reLayoutFlag++,e.bindScrollbarResize(),globalEvents.on(e,"resize",function(){e.reLayoutFlag++})},activated:function(){var e=this;e.recalculate().then(function(){e.refreshScroll()})},beforeDestroy:function(){var e=this.reactData,t=this.internalData,r=t.scrollObserver,o=t.resizeObserver;o&&o.disconnect(),r&&r.disconnect(),globalEvents.off(this,"resize"),_xeUtils.default.assign(e,createReactData()),_xeUtils.default.assign(t,createInternalData())},render:function(e){return this.renderVN(e)}});
@@ -59,6 +59,12 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
59
59
  return getConfig().scrollbar.native;
60
60
  }
61
61
  },
62
+ fluentOverlay: {
63
+ type: Boolean,
64
+ default: function _default() {
65
+ return getConfig().scrollbar.fluentOverlay;
66
+ }
67
+ },
62
68
  padding: {
63
69
  type: Boolean,
64
70
  default: function _default() {
@@ -222,7 +228,8 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
222
228
  var native = props.native,
223
229
  theme = props.theme,
224
230
  className = props.className,
225
- padding = props.padding;
231
+ padding = props.padding,
232
+ fluentOverlay = props.fluentOverlay;
226
233
  var yThumbHeight = reactData.yThumbHeight,
227
234
  xThumbWidth = reactData.xThumbWidth;
228
235
  var vSize = $xeScrollbar.computeSize;
@@ -232,7 +239,7 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
232
239
  var yVisible = $xeScrollbar.computeYVisible;
233
240
  var xAutoHide = $xeScrollbar.computeXAutoHide;
234
241
  var yAutoHide = $xeScrollbar.computeYAutoHide;
235
- return domUtils.buildClass(['vxe-scrollbar', vSize ? "size--".concat(vSize) : '', theme ? "theme--".concat(theme) : '', "ov-x--".concat(xVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(yVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(xToTop ? 'top' : 'bottom'), "sy-pos--".concat(yToLeft ? 'left' : 'right'), native ? 'is--native' : 'is--virtual', className], {
242
+ return domUtils.buildClass(['vxe-scrollbar', vSize ? "size--".concat(vSize) : '', theme ? "theme--".concat(theme) : '', fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', "ov-x--".concat(xVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(yVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(xToTop ? 'top' : 'bottom'), "sy-pos--".concat(yToLeft ? 'left' : 'right'), native ? 'is--native' : 'is--virtual', className], {
236
243
  'is--padding': padding,
237
244
  'ov-x--auto-hide': xAutoHide,
238
245
  'ov-y--auto-hide': yAutoHide,
@@ -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"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_loading=_interopRequireDefault(require("../../loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var getConfig=_ui.VxeUI.getConfig,createEvent=_ui.VxeUI.createEvent,domUtils=_ui.VxeUI.domUtils,globalResize=_ui.VxeUI.globalResize,globalEvents=_ui.VxeUI.globalEvents,renderEmptyElement=_ui.VxeUI.renderEmptyElement;function createReactData(){return{yThumbHeight:0,xThumbWidth:0}}function createInternalData(){return{thumbDragOffset:0,yThumbTop:0,xThumbLeft:0,lastScrollTop:0,lastScrollLeft:0}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeScrollbar",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.initVScrollbarMixin],props:{id:[String,Number],viewId:[String,Number],theme:{type:String,default:function(){return getConfig().scrollbar.theme}},width:[String,Number],height:[String,Number],minWidth:[String,Number],minHeight:[String,Number],maxWidth:[String,Number],maxHeight:[String,Number],loading:Boolean,native:{type:Boolean,default:function(){return getConfig().scrollbar.native}},padding:{type:Boolean,default:function(){return getConfig().scrollbar.padding}},autoHide:{type:Boolean,default:function(){return getConfig().scrollbar.autoHide}},visible:{type:Boolean,default:function(){return getConfig().scrollbar.visible}},xConfig:Object,yConfig:Object,className:{type:String,default:function(){return getConfig().scrollbar.className}},viewAttrs:{type:Object,default:function(){return getConfig().scrollbar.viewAttrs}},viewStyle:{type:Object,default:function(){return getConfig().scrollbar.viewStyle}},viewClassName:{type:String,default:function(){return getConfig().scrollbar.viewClassName}},viewInnerClassName:{type:String,default:function(){return getConfig().scrollbar.viewInnerClassName}},size:{type:String,default:function(){return getConfig().scrollbar.size||getConfig().size}},autoResize:{type:Boolean,default:function(){return getConfig().scrollbar.autoResize}},syncResize:[Boolean,String,Number]},data:function(){var e=_xeUtils.default.uniqueId(),t=createReactData();return Object.assign(Object.assign({},{}),{xID:e,reactData:t,reFlag:0})},computed:Object.assign(Object.assign({},{}),{computeWrapperStyle:function(){var e=this,t=e.width,i=e.height,r=e.minWidth,n=e.minHeight,o=e.maxWidth,l=e.maxHeight,s=e.computeYWidth,e=e.computeXHeight,a={};return t&&(a.width=(0,_dom.toCssUnit)(t)),i&&(a.height=(0,_dom.toCssUnit)(i)),r&&(a.minWidth=(0,_dom.toCssUnit)(r)),n&&(a.minHeight=(0,_dom.toCssUnit)(n)),o&&(a.maxWidth=(0,_dom.toCssUnit)(o)),l&&(a.maxHeight=(0,_dom.toCssUnit)(l)),(s||e)&&(a["--vxe-ui-scrollbar-y-width"]=(0,_dom.toCssUnit)(s||e),a["--vxe-ui-scrollbar-x-height"]=(0,_dom.toCssUnit)(e||s)),a},computeXHeight:function(){return this.computeXOpts.height},computeYWidth:function(){return this.computeYOpts.width},computeXVisible:function(){var e=this.visible,t=this.computeXOpts;return(0,_utils.getDefaultConfig)(t.visible,e)},computeYVisible:function(){var e=this.visible,t=this.computeYOpts;return(0,_utils.getDefaultConfig)(t.visible,e)},computeXAutoHide:function(){var e=this.autoHide,t=this.computeXOpts;return(0,_utils.getDefaultConfig)(t.autoHide,e)},computeYAutoHide:function(){var e=this.autoHide,t=this.computeYOpts;return(0,_utils.getDefaultConfig)(t.autoHide,e)},computeWrapperClss:function(){var e=this,t=e.reactData,i=e.native,r=e.theme,n=e.className,o=e.padding,l=t.yThumbHeight,t=t.xThumbWidth,s=e.computeSize,a=e.computeXToTop,c=e.computeYToLeft,u=e.computeXVisible,f=e.computeYVisible,m=e.computeXAutoHide,e=e.computeYAutoHide;return domUtils.buildClass(["vxe-scrollbar",s?"size--".concat(s):"",r?"theme--".concat(r):"","ov-x--".concat(!1===u?"hidden":"visible"),"ov-y--".concat(!1===f?"hidden":"visible"),"sx-pos--".concat(a?"top":"bottom"),"sy-pos--".concat(c?"left":"right"),i?"is--native":"is--virtual",n],{"is--padding":o,"ov-x--auto-hide":m,"ov-y--auto-hide":e,"overflow-y":l,"overflow-x":t})},computeViewClss:function(){var e=this.viewClassName;return domUtils.buildClass(["vxe-scrollbar--view",e])},computeViewInnerClss:function(){var e=this.viewInnerClassName;return domUtils.buildClass(["vxe-scrollbar--view-inner",e])},computeXOpts:function(){return Object.assign({},getConfig().scrollbar.xConfig,this.xConfig)},computeYOpts:function(){return Object.assign({},getConfig().scrollbar.yConfig,this.yConfig)},computeXToTop:function(){return"top"===this.computeXOpts.position},computeYToLeft:function(){return"left"===this.computeYOpts.position}}),methods:{dispatchEvent:function(e,t,i){this.$emit(e,createEvent(i,{$scrollbar:this},t))},getScrollViewElem:function(){return this.$refs.refViewElem||null},getScrollViewInnerElem:function(){return this.$refs.refViewInnerElem||null},scrollTo:function(e,t){var i=this.$refs.refViewElem;i&&(_xeUtils.default.isNumber(e)?i.scrollTo(e,t||0):i.scrollTo(e))},scrollIntoView:function(){var e=this.$refs.refViewElem;e&&e.scrollIntoView()},setScrollTop:function(e){var t=this.$refs.refViewElem;t&&(t.scrollTop=e)},setScrollLeft:function(e){var t=this.$refs.refViewElem;t&&(t.scrollLeft=e)},getScrollTop:function(){var e=this.$refs.refViewElem;return e?e.scrollTop:0},getScrollLeft:function(){var e=this.$refs.refViewElem;return e?e.scrollLeft:0},clearScroll:function(){var e=this.$refs.refViewElem;e&&(e.scrollTop=0,e.scrollLeft=0)},recalculate:function(){return this.updateThumbSize(),this.updateThumbOffset(),this.$nextTick()},scrollEvent:function(e){var t,i=this,r=i.reactData,n=i.internalData,o=r.xThumbWidth,r=r.yThumbHeight,l=n.lastScrollTop,s=n.lastScrollLeft,a=i.computeXOpts,c=e.currentTarget,u=c.scrollTop,f=c.scrollLeft,m=c.clientWidth,h=c.clientHeight,d=c.scrollHeight,c=c.scrollWidth,p="",g=!1,v=!1,b=!1,x=!1;l!==u&&(t=_xeUtils.default.toNumber(i.computeYOpts.threshold)||1,l<u?(p="bottom",0<r&&d-t<=u+h&&(v=!0)):(p="top",0<r&&u<=t&&(g=!0))),s!==f&&(l=_xeUtils.default.toNumber(a.threshold)||1,s<f?(p="right",0<o&&c-l<=f+m&&(x=!0)):(p="left",0<o&&f<=l&&(b=!0))),i.updateThumbOffset(),n.lastScrollTop=u,n.lastScrollLeft=f,(v||g||x||b)&&i.dispatchEvent("scroll-boundary",{direction:p,isTop:g,isBottom:v,isLeft:b,isRight:x,scrollTop:u,scrollLeft:f,clientWidth:m,clientHeight:h,scrollHeight:d,scrollWidth:c},e),i.dispatchEvent("scroll",{direction:p,isTop:0<r&&u<=0,isBottom:0<r&&d<=u+h,isLeft:0<o&&f<=0,isRight:0<o&&c<=f+m,scrollTop:u,scrollLeft:f,clientWidth:m,clientHeight:h,scrollHeight:d,scrollWidth:c},e)},renderVN:function(e){var t=this,i=t.$scopedSlots,r=t.id,n=t.native,o=t.loading,l=t.computeViewInnerClss,s=t.computeXVisible,a=t.computeYVisible,i=i.default;return e("div",{ref:"refElem",attrs:{id:r||null},class:t.computeWrapperClss,style:t.computeWrapperStyle},[e("div",{ref:"refViewElem",class:t.computeViewClss,style:t.viewStyle,attrs:Object.assign({id:t.viewId||null},t.viewAttrs),on:{scroll:t.scrollEvent}},[e("div",{key:"vi",ref:"refViewInnerElem",class:l},i?i({}):[])]),n||!1===s?renderEmptyElement(t):e("div",{ref:"refTrackXElem",class:"vxe-scrollbar--track-x",on:{click:t.clickTrackXEvent}},[e("div",{ref:"refThumbXElem",class:"vxe-scrollbar--thumb-x",on:{pointerdown:t.pointerdownThumbXEvent,pointermove:t.pointermoveThumbXEvent,pointerup:t.cleatPointerThumbEvent,pointercancel:t.cleatPointerThumbEvent,lostpointercapture:t.cleatPointerThumbEvent}})]),n||!1===a?renderEmptyElement(t):e("div",{ref:"refTrackYElem",class:"vxe-scrollbar--track-y",on:{click:t.clickTrackYEvent}},[e("div",{ref:"refThumbYElem",class:"vxe-scrollbar--thumb-y",on:{pointerdown:t.pointerdownThumbYEvent,pointermove:t.pointermoveThumbYEvent,pointerup:t.cleatPointerThumbEvent,pointercancel:t.cleatPointerThumbEvent,lostpointercapture:t.cleatPointerThumbEvent}})]),e(_loading.default,{class:"vxe-scrollbar--loading",props:{value:o}})])}},watch:{height:function(){this.reFlag++},width:function(){this.reFlag++},minHeight:function(){this.reFlag++},minWidth:function(){this.reFlag++},maxHeight:function(){this.reFlag++},maxWidth:function(){this.reFlag++},native:function(){this.reFlag++},syncResize:function(){this.reFlag++},computeYWidth:function(){this.reFlag++},computeXHeight:function(){this.reFlag++},computeXVisible:function(){var e=this;e.$nextTick(function(){e.reFlag++})},computeYVisible:function(){var e=this;e.$nextTick(function(){e.reFlag++})},reFlag:function(){var e=this;e.recalculate().then(function(){e.recalculate()})}},created:function(){this.internalData=createInternalData()},mounted:function(){var e=this,t=e,i=e.internalData,r=t.autoResize,n=e.$refs.refViewElem,o=e.$refs.refViewInnerElem;r&&(r=globalResize.create(function(){t.autoResize&&e.reFlag++}),n&&r.observe(n),o&&r.observe(o),i.scrollObserver=r),e.reFlag++,globalEvents.on(e,"resize",function(){e.reFlag++})},beforeDestroy:function(){var e=this.internalData.scrollObserver;e&&e.disconnect(),globalEvents.off(this,"resize")},destroyed:function(){var e=this.reactData,t=this.internalData;_xeUtils.default.assign(e,createReactData()),_xeUtils.default.assign(t,createInternalData())},render:function(e){return this.renderVN(e)}});
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"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_loading=_interopRequireDefault(require("../../loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var getConfig=_ui.VxeUI.getConfig,createEvent=_ui.VxeUI.createEvent,domUtils=_ui.VxeUI.domUtils,globalResize=_ui.VxeUI.globalResize,globalEvents=_ui.VxeUI.globalEvents,renderEmptyElement=_ui.VxeUI.renderEmptyElement;function createReactData(){return{yThumbHeight:0,xThumbWidth:0}}function createInternalData(){return{thumbDragOffset:0,yThumbTop:0,xThumbLeft:0,lastScrollTop:0,lastScrollLeft:0}}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeScrollbar",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.initVScrollbarMixin],props:{id:[String,Number],viewId:[String,Number],theme:{type:String,default:function(){return getConfig().scrollbar.theme}},width:[String,Number],height:[String,Number],minWidth:[String,Number],minHeight:[String,Number],maxWidth:[String,Number],maxHeight:[String,Number],loading:Boolean,native:{type:Boolean,default:function(){return getConfig().scrollbar.native}},fluentOverlay:{type:Boolean,default:function(){return getConfig().scrollbar.fluentOverlay}},padding:{type:Boolean,default:function(){return getConfig().scrollbar.padding}},autoHide:{type:Boolean,default:function(){return getConfig().scrollbar.autoHide}},visible:{type:Boolean,default:function(){return getConfig().scrollbar.visible}},xConfig:Object,yConfig:Object,className:{type:String,default:function(){return getConfig().scrollbar.className}},viewAttrs:{type:Object,default:function(){return getConfig().scrollbar.viewAttrs}},viewStyle:{type:Object,default:function(){return getConfig().scrollbar.viewStyle}},viewClassName:{type:String,default:function(){return getConfig().scrollbar.viewClassName}},viewInnerClassName:{type:String,default:function(){return getConfig().scrollbar.viewInnerClassName}},size:{type:String,default:function(){return getConfig().scrollbar.size||getConfig().size}},autoResize:{type:Boolean,default:function(){return getConfig().scrollbar.autoResize}},syncResize:[Boolean,String,Number]},data:function(){var e=_xeUtils.default.uniqueId(),t=createReactData();return Object.assign(Object.assign({},{}),{xID:e,reactData:t,reFlag:0})},computed:Object.assign(Object.assign({},{}),{computeWrapperStyle:function(){var e=this,t=e.width,i=e.height,r=e.minWidth,n=e.minHeight,o=e.maxWidth,l=e.maxHeight,s=e.computeYWidth,e=e.computeXHeight,a={};return t&&(a.width=(0,_dom.toCssUnit)(t)),i&&(a.height=(0,_dom.toCssUnit)(i)),r&&(a.minWidth=(0,_dom.toCssUnit)(r)),n&&(a.minHeight=(0,_dom.toCssUnit)(n)),o&&(a.maxWidth=(0,_dom.toCssUnit)(o)),l&&(a.maxHeight=(0,_dom.toCssUnit)(l)),(s||e)&&(a["--vxe-ui-scrollbar-y-width"]=(0,_dom.toCssUnit)(s||e),a["--vxe-ui-scrollbar-x-height"]=(0,_dom.toCssUnit)(e||s)),a},computeXHeight:function(){return this.computeXOpts.height},computeYWidth:function(){return this.computeYOpts.width},computeXVisible:function(){var e=this.visible,t=this.computeXOpts;return(0,_utils.getDefaultConfig)(t.visible,e)},computeYVisible:function(){var e=this.visible,t=this.computeYOpts;return(0,_utils.getDefaultConfig)(t.visible,e)},computeXAutoHide:function(){var e=this.autoHide,t=this.computeXOpts;return(0,_utils.getDefaultConfig)(t.autoHide,e)},computeYAutoHide:function(){var e=this.autoHide,t=this.computeYOpts;return(0,_utils.getDefaultConfig)(t.autoHide,e)},computeWrapperClss:function(){var e=this,t=e.reactData,i=e.native,r=e.theme,n=e.className,o=e.padding,l=e.fluentOverlay,s=t.yThumbHeight,t=t.xThumbWidth,a=e.computeSize,u=e.computeXToTop,c=e.computeYToLeft,f=e.computeXVisible,m=e.computeYVisible,h=e.computeXAutoHide,e=e.computeYAutoHide;return domUtils.buildClass(["vxe-scrollbar",a?"size--".concat(a):"",r?"theme--".concat(r):"",l?"is--fluent-overlay":"is--default-mode","ov-x--".concat(!1===f?"hidden":"visible"),"ov-y--".concat(!1===m?"hidden":"visible"),"sx-pos--".concat(u?"top":"bottom"),"sy-pos--".concat(c?"left":"right"),i?"is--native":"is--virtual",n],{"is--padding":o,"ov-x--auto-hide":h,"ov-y--auto-hide":e,"overflow-y":s,"overflow-x":t})},computeViewClss:function(){var e=this.viewClassName;return domUtils.buildClass(["vxe-scrollbar--view",e])},computeViewInnerClss:function(){var e=this.viewInnerClassName;return domUtils.buildClass(["vxe-scrollbar--view-inner",e])},computeXOpts:function(){return Object.assign({},getConfig().scrollbar.xConfig,this.xConfig)},computeYOpts:function(){return Object.assign({},getConfig().scrollbar.yConfig,this.yConfig)},computeXToTop:function(){return"top"===this.computeXOpts.position},computeYToLeft:function(){return"left"===this.computeYOpts.position}}),methods:{dispatchEvent:function(e,t,i){this.$emit(e,createEvent(i,{$scrollbar:this},t))},getScrollViewElem:function(){return this.$refs.refViewElem||null},getScrollViewInnerElem:function(){return this.$refs.refViewInnerElem||null},scrollTo:function(e,t){var i=this.$refs.refViewElem;i&&(_xeUtils.default.isNumber(e)?i.scrollTo(e,t||0):i.scrollTo(e))},scrollIntoView:function(){var e=this.$refs.refViewElem;e&&e.scrollIntoView()},setScrollTop:function(e){var t=this.$refs.refViewElem;t&&(t.scrollTop=e)},setScrollLeft:function(e){var t=this.$refs.refViewElem;t&&(t.scrollLeft=e)},getScrollTop:function(){var e=this.$refs.refViewElem;return e?e.scrollTop:0},getScrollLeft:function(){var e=this.$refs.refViewElem;return e?e.scrollLeft:0},clearScroll:function(){var e=this.$refs.refViewElem;e&&(e.scrollTop=0,e.scrollLeft=0)},recalculate:function(){return this.updateThumbSize(),this.updateThumbOffset(),this.$nextTick()},scrollEvent:function(e){var t,i=this,r=i.reactData,n=i.internalData,o=r.xThumbWidth,r=r.yThumbHeight,l=n.lastScrollTop,s=n.lastScrollLeft,a=i.computeXOpts,u=e.currentTarget,c=u.scrollTop,f=u.scrollLeft,m=u.clientWidth,h=u.clientHeight,d=u.scrollHeight,u=u.scrollWidth,p="",g=!1,v=!1,b=!1,x=!1;l!==c&&(t=_xeUtils.default.toNumber(i.computeYOpts.threshold)||1,l<c?(p="bottom",0<r&&d-t<=c+h&&(v=!0)):(p="top",0<r&&c<=t&&(g=!0))),s!==f&&(l=_xeUtils.default.toNumber(a.threshold)||1,s<f?(p="right",0<o&&u-l<=f+m&&(x=!0)):(p="left",0<o&&f<=l&&(b=!0))),i.updateThumbOffset(),n.lastScrollTop=c,n.lastScrollLeft=f,(v||g||x||b)&&i.dispatchEvent("scroll-boundary",{direction:p,isTop:g,isBottom:v,isLeft:b,isRight:x,scrollTop:c,scrollLeft:f,clientWidth:m,clientHeight:h,scrollHeight:d,scrollWidth:u},e),i.dispatchEvent("scroll",{direction:p,isTop:0<r&&c<=0,isBottom:0<r&&d<=c+h,isLeft:0<o&&f<=0,isRight:0<o&&u<=f+m,scrollTop:c,scrollLeft:f,clientWidth:m,clientHeight:h,scrollHeight:d,scrollWidth:u},e)},renderVN:function(e){var t=this,i=t.$scopedSlots,r=t.id,n=t.native,o=t.loading,l=t.computeViewInnerClss,s=t.computeXVisible,a=t.computeYVisible,i=i.default;return e("div",{ref:"refElem",attrs:{id:r||null},class:t.computeWrapperClss,style:t.computeWrapperStyle},[e("div",{ref:"refViewElem",class:t.computeViewClss,style:t.viewStyle,attrs:Object.assign({id:t.viewId||null},t.viewAttrs),on:{scroll:t.scrollEvent}},[e("div",{key:"vi",ref:"refViewInnerElem",class:l},i?i({}):[])]),n||!1===s?renderEmptyElement(t):e("div",{ref:"refTrackXElem",class:"vxe-scrollbar--track-x",on:{click:t.clickTrackXEvent}},[e("div",{ref:"refThumbXElem",class:"vxe-scrollbar--thumb-x",on:{pointerdown:t.pointerdownThumbXEvent,pointermove:t.pointermoveThumbXEvent,pointerup:t.cleatPointerThumbEvent,pointercancel:t.cleatPointerThumbEvent,lostpointercapture:t.cleatPointerThumbEvent}})]),n||!1===a?renderEmptyElement(t):e("div",{ref:"refTrackYElem",class:"vxe-scrollbar--track-y",on:{click:t.clickTrackYEvent}},[e("div",{ref:"refThumbYElem",class:"vxe-scrollbar--thumb-y",on:{pointerdown:t.pointerdownThumbYEvent,pointermove:t.pointermoveThumbYEvent,pointerup:t.cleatPointerThumbEvent,pointercancel:t.cleatPointerThumbEvent,lostpointercapture:t.cleatPointerThumbEvent}})]),e(_loading.default,{class:"vxe-scrollbar--loading",props:{value:o}})])}},watch:{height:function(){this.reFlag++},width:function(){this.reFlag++},minHeight:function(){this.reFlag++},minWidth:function(){this.reFlag++},maxHeight:function(){this.reFlag++},maxWidth:function(){this.reFlag++},native:function(){this.reFlag++},syncResize:function(){this.reFlag++},computeYWidth:function(){this.reFlag++},computeXHeight:function(){this.reFlag++},computeXVisible:function(){var e=this;e.$nextTick(function(){e.reFlag++})},computeYVisible:function(){var e=this;e.$nextTick(function(){e.reFlag++})},reFlag:function(){var e=this;e.recalculate().then(function(){e.recalculate()})}},created:function(){this.internalData=createInternalData()},mounted:function(){var e=this,t=e,i=e.internalData,r=t.autoResize,n=e.$refs.refViewElem,o=e.$refs.refViewInnerElem;r&&(r=globalResize.create(function(){t.autoResize&&e.reFlag++}),n&&r.observe(n),o&&r.observe(o),i.scrollObserver=r),e.reFlag++,globalEvents.on(e,"resize",function(){e.reFlag++})},beforeDestroy:function(){var e=this.internalData.scrollObserver;e&&e.disconnect(),globalEvents.off(this,"resize")},destroyed:function(){var e=this.reactData,t=this.internalData;_xeUtils.default.assign(e,createReactData()),_xeUtils.default.assign(t,createInternalData())},render:function(e){return this.renderVN(e)}});
@@ -23,8 +23,8 @@
23
23
  transition: opacity 0.8s ease-in-out;
24
24
  }
25
25
  .vxe-scrollbar.is--native > .vxe-scrollbar--view::-webkit-scrollbar {
26
- width: var(--vxe-ui-scrollbar-y-width);
27
- height: var(--vxe-ui-scrollbar-x-height);
26
+ width: var(--vxe-ui-scrollbar-current-y-width);
27
+ height: var(--vxe-ui-scrollbar-current-x-height);
28
28
  }
29
29
  .vxe-scrollbar.is--native > .vxe-scrollbar--view::-webkit-scrollbar-thumb {
30
30
  border-radius: var(--vxe-ui-base-border-radius);
@@ -73,14 +73,14 @@
73
73
  .vxe-scrollbar--track-x {
74
74
  width: 100%;
75
75
  left: 0;
76
- height: var(--vxe-ui-scrollbar-x-height);
76
+ height: var(--vxe-ui-scrollbar-current-x-height);
77
77
  padding: var(--vxe-ui-scrollbar-track-padding) 0;
78
78
  }
79
79
 
80
80
  .vxe-scrollbar--track-y {
81
81
  height: 100%;
82
82
  top: 0;
83
- width: var(--vxe-ui-scrollbar-y-width);
83
+ width: var(--vxe-ui-scrollbar-current-y-width);
84
84
  padding: 0 var(--vxe-ui-scrollbar-track-padding);
85
85
  }
86
86
 
@@ -97,29 +97,42 @@
97
97
  right: 0;
98
98
  }
99
99
  .vxe-scrollbar.overflow-x.overflow-y > .vxe-scrollbar--track-x {
100
- width: calc(100% - var(--vxe-ui-scrollbar-x-height));
100
+ width: calc(100% - var(--vxe-ui-scrollbar-current-x-height));
101
101
  }
102
102
  .vxe-scrollbar.overflow-x.overflow-y > .vxe-scrollbar--track-y {
103
- height: calc(100% - var(--vxe-ui-scrollbar-y-width));
103
+ height: calc(100% - var(--vxe-ui-scrollbar-current-y-width));
104
104
  }
105
105
  .vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--left > .vxe-scrollbar--track-y, .vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--right > .vxe-scrollbar--track-y {
106
- top: var(--vxe-ui-scrollbar-x-height);
106
+ top: var(--vxe-ui-scrollbar-current-x-height);
107
107
  }
108
108
  .vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--top > .vxe-scrollbar--track-x, .vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--bottom > .vxe-scrollbar--track-x {
109
- left: var(--vxe-ui-scrollbar-y-width);
109
+ left: var(--vxe-ui-scrollbar-current-y-width);
110
+ }
111
+
112
+ .vxe-scrollbar.is--fluent-overlay {
113
+ --vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-overlay-y-width);
114
+ --vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-overlay-x-height);
115
+ }
116
+ .vxe-scrollbar.is--fluent-overlay > .vxe-scrollbar--track-x:hover, .vxe-scrollbar.is--fluent-overlay > .vxe-scrollbar--track-y:hover {
117
+ --vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-overlay-action-y-width);
118
+ --vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-overlay-action-x-height);
119
+ }
120
+ .vxe-scrollbar.is--default-mode {
121
+ --vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-y-width);
122
+ --vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-x-height);
110
123
  }
111
124
 
112
125
  .vxe-scrollbar.is--padding.overflow-x.sx-pos--top {
113
- padding-top: var(--vxe-ui-scrollbar-x-height);
126
+ padding-top: var(--vxe-ui-scrollbar-current-x-height);
114
127
  }
115
128
  .vxe-scrollbar.is--padding.overflow-x.sx-pos--bottom {
116
- padding-bottom: var(--vxe-ui-scrollbar-x-height);
129
+ padding-bottom: var(--vxe-ui-scrollbar-current-x-height);
117
130
  }
118
131
  .vxe-scrollbar.is--padding.overflow-y.sy-pos--left {
119
- padding-left: var(--vxe-ui-scrollbar-y-width);
132
+ padding-left: var(--vxe-ui-scrollbar-current-y-width);
120
133
  }
121
134
  .vxe-scrollbar.is--padding.overflow-y.sy-pos--right {
122
- padding-right: var(--vxe-ui-scrollbar-y-width);
135
+ padding-right: var(--vxe-ui-scrollbar-current-y-width);
123
136
  }
124
137
 
125
138
  .vxe-scrollbar--thumb-y {
@@ -1 +1 @@
1
- .vxe-scrollbar{position:relative}.vxe-scrollbar.is--virtual>.vxe-scrollbar--view{scrollbar-width:none;-ms-overflow-style:none}.vxe-scrollbar.is--virtual>.vxe-scrollbar--view::-webkit-scrollbar{display:none}.vxe-scrollbar.is--virtual.ov-x--auto-hide:hover>.vxe-scrollbar--track-x{opacity:1}.vxe-scrollbar.is--virtual.ov-x--auto-hide>.vxe-scrollbar--track-x{opacity:0;transition:opacity .8s ease-in-out}.vxe-scrollbar.is--virtual.ov-y--auto-hide:hover>.vxe-scrollbar--track-y{opacity:1}.vxe-scrollbar.is--virtual.ov-y--auto-hide>.vxe-scrollbar--track-y{opacity:0;transition:opacity .8s ease-in-out}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar{width:var(--vxe-ui-scrollbar-y-width);height:var(--vxe-ui-scrollbar-x-height)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb{border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-scrollbar-thumb-background-color)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb:hover{background-color:var(--vxe-ui-scrollbar-thumb-hover-background-color)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb:active{background-color:var(--vxe-ui-scrollbar-thumb-active-background-color)}.vxe-scrollbar.ov-x--hidden>.vxe-scrollbar--view{overflow-x:hidden}.vxe-scrollbar.ov-y--hidden>.vxe-scrollbar--view{overflow-y:hidden}.vxe-scrollbar--view{height:100%;width:100%;overflow-x:auto;overflow-y:auto}.vxe-scrollbar--track-x,.vxe-scrollbar--track-y{display:none;position:absolute;background-color:var(--vxe-ui-scrollbar-track-background-color);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-scrollbar.overflow-x>.vxe-scrollbar--track-x{display:block}.vxe-scrollbar.overflow-y>.vxe-scrollbar--track-y{display:block}.vxe-scrollbar--track-x{width:100%;left:0;height:var(--vxe-ui-scrollbar-x-height);padding:var(--vxe-ui-scrollbar-track-padding) 0}.vxe-scrollbar--track-y{height:100%;top:0;width:var(--vxe-ui-scrollbar-y-width);padding:0 var(--vxe-ui-scrollbar-track-padding)}.vxe-scrollbar.sx-pos--top>.vxe-scrollbar--track-x{top:0}.vxe-scrollbar.sx-pos--bottom>.vxe-scrollbar--track-x{bottom:0}.vxe-scrollbar.sy-pos--left>.vxe-scrollbar--track-y{left:0}.vxe-scrollbar.sy-pos--right>.vxe-scrollbar--track-y{right:0}.vxe-scrollbar.overflow-x.overflow-y>.vxe-scrollbar--track-x{width:calc(100% - var(--vxe-ui-scrollbar-x-height))}.vxe-scrollbar.overflow-x.overflow-y>.vxe-scrollbar--track-y{height:calc(100% - var(--vxe-ui-scrollbar-y-width))}.vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--left>.vxe-scrollbar--track-y,.vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--right>.vxe-scrollbar--track-y{top:var(--vxe-ui-scrollbar-x-height)}.vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--bottom>.vxe-scrollbar--track-x,.vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--top>.vxe-scrollbar--track-x{left:var(--vxe-ui-scrollbar-y-width)}.vxe-scrollbar.is--padding.overflow-x.sx-pos--top{padding-top:var(--vxe-ui-scrollbar-x-height)}.vxe-scrollbar.is--padding.overflow-x.sx-pos--bottom{padding-bottom:var(--vxe-ui-scrollbar-x-height)}.vxe-scrollbar.is--padding.overflow-y.sy-pos--left{padding-left:var(--vxe-ui-scrollbar-y-width)}.vxe-scrollbar.is--padding.overflow-y.sy-pos--right{padding-right:var(--vxe-ui-scrollbar-y-width)}.vxe-scrollbar--thumb-y{width:100%}.vxe-scrollbar--thumb-x{height:100%}.vxe-scrollbar--thumb-x,.vxe-scrollbar--thumb-y{border-radius:var(--vxe-ui-scrollbar-thumb-border-radius);background-color:var(--vxe-ui-scrollbar-thumb-background-color)}.vxe-scrollbar--thumb-x:hover,.vxe-scrollbar--thumb-y:hover{background-color:var(--vxe-ui-scrollbar-thumb-hover-background-color)}.vxe-scrollbar--thumb-x:active,.vxe-scrollbar--thumb-y:active{background-color:var(--vxe-ui-scrollbar-thumb-active-background-color)}.vxe-scrollbar.theme--light{--vxe-ui-scrollbar-thumb-background-color:rgba(0,0,0,0.4);--vxe-ui-scrollbar-thumb-hover-background-color:rgba(0,0,0,0.5);--vxe-ui-scrollbar-thumb-active-background-color:rgba(0,0,0,0.6)}.vxe-scrollbar.theme--dark{--vxe-ui-scrollbar-thumb-background-color:rgba(255,255,255,0.4);--vxe-ui-scrollbar-thumb-hover-background-color:rgba(255,255,255,0.5);--vxe-ui-scrollbar-thumb-active-background-color:rgba(255,255,255,0.6)}
1
+ .vxe-scrollbar{position:relative}.vxe-scrollbar.is--virtual>.vxe-scrollbar--view{scrollbar-width:none;-ms-overflow-style:none}.vxe-scrollbar.is--virtual>.vxe-scrollbar--view::-webkit-scrollbar{display:none}.vxe-scrollbar.is--virtual.ov-x--auto-hide:hover>.vxe-scrollbar--track-x{opacity:1}.vxe-scrollbar.is--virtual.ov-x--auto-hide>.vxe-scrollbar--track-x{opacity:0;transition:opacity .8s ease-in-out}.vxe-scrollbar.is--virtual.ov-y--auto-hide:hover>.vxe-scrollbar--track-y{opacity:1}.vxe-scrollbar.is--virtual.ov-y--auto-hide>.vxe-scrollbar--track-y{opacity:0;transition:opacity .8s ease-in-out}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar{width:var(--vxe-ui-scrollbar-current-y-width);height:var(--vxe-ui-scrollbar-current-x-height)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb{border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-scrollbar-thumb-background-color)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb:hover{background-color:var(--vxe-ui-scrollbar-thumb-hover-background-color)}.vxe-scrollbar.is--native>.vxe-scrollbar--view::-webkit-scrollbar-thumb:active{background-color:var(--vxe-ui-scrollbar-thumb-active-background-color)}.vxe-scrollbar.ov-x--hidden>.vxe-scrollbar--view{overflow-x:hidden}.vxe-scrollbar.ov-y--hidden>.vxe-scrollbar--view{overflow-y:hidden}.vxe-scrollbar--view{height:100%;width:100%;overflow-x:auto;overflow-y:auto}.vxe-scrollbar--track-x,.vxe-scrollbar--track-y{display:none;position:absolute;background-color:var(--vxe-ui-scrollbar-track-background-color);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-scrollbar.overflow-x>.vxe-scrollbar--track-x{display:block}.vxe-scrollbar.overflow-y>.vxe-scrollbar--track-y{display:block}.vxe-scrollbar--track-x{width:100%;left:0;height:var(--vxe-ui-scrollbar-current-x-height);padding:var(--vxe-ui-scrollbar-track-padding) 0}.vxe-scrollbar--track-y{height:100%;top:0;width:var(--vxe-ui-scrollbar-current-y-width);padding:0 var(--vxe-ui-scrollbar-track-padding)}.vxe-scrollbar.sx-pos--top>.vxe-scrollbar--track-x{top:0}.vxe-scrollbar.sx-pos--bottom>.vxe-scrollbar--track-x{bottom:0}.vxe-scrollbar.sy-pos--left>.vxe-scrollbar--track-y{left:0}.vxe-scrollbar.sy-pos--right>.vxe-scrollbar--track-y{right:0}.vxe-scrollbar.overflow-x.overflow-y>.vxe-scrollbar--track-x{width:calc(100% - var(--vxe-ui-scrollbar-current-x-height))}.vxe-scrollbar.overflow-x.overflow-y>.vxe-scrollbar--track-y{height:calc(100% - var(--vxe-ui-scrollbar-current-y-width))}.vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--left>.vxe-scrollbar--track-y,.vxe-scrollbar.overflow-x.overflow-y.sx-pos--top.sy-pos--right>.vxe-scrollbar--track-y{top:var(--vxe-ui-scrollbar-current-x-height)}.vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--bottom>.vxe-scrollbar--track-x,.vxe-scrollbar.overflow-x.overflow-y.sy-pos--left.sx-pos--top>.vxe-scrollbar--track-x{left:var(--vxe-ui-scrollbar-current-y-width)}.vxe-scrollbar.is--fluent-overlay{--vxe-ui-scrollbar-current-y-width:var(--vxe-ui-scrollbar-overlay-y-width);--vxe-ui-scrollbar-current-x-height:var(--vxe-ui-scrollbar-overlay-x-height)}.vxe-scrollbar.is--fluent-overlay>.vxe-scrollbar--track-x:hover,.vxe-scrollbar.is--fluent-overlay>.vxe-scrollbar--track-y:hover{--vxe-ui-scrollbar-current-y-width:var(--vxe-ui-scrollbar-overlay-action-y-width);--vxe-ui-scrollbar-current-x-height:var(--vxe-ui-scrollbar-overlay-action-x-height)}.vxe-scrollbar.is--default-mode{--vxe-ui-scrollbar-current-y-width:var(--vxe-ui-scrollbar-y-width);--vxe-ui-scrollbar-current-x-height:var(--vxe-ui-scrollbar-x-height)}.vxe-scrollbar.is--padding.overflow-x.sx-pos--top{padding-top:var(--vxe-ui-scrollbar-current-x-height)}.vxe-scrollbar.is--padding.overflow-x.sx-pos--bottom{padding-bottom:var(--vxe-ui-scrollbar-current-x-height)}.vxe-scrollbar.is--padding.overflow-y.sy-pos--left{padding-left:var(--vxe-ui-scrollbar-current-y-width)}.vxe-scrollbar.is--padding.overflow-y.sy-pos--right{padding-right:var(--vxe-ui-scrollbar-current-y-width)}.vxe-scrollbar--thumb-y{width:100%}.vxe-scrollbar--thumb-x{height:100%}.vxe-scrollbar--thumb-x,.vxe-scrollbar--thumb-y{border-radius:var(--vxe-ui-scrollbar-thumb-border-radius);background-color:var(--vxe-ui-scrollbar-thumb-background-color)}.vxe-scrollbar--thumb-x:hover,.vxe-scrollbar--thumb-y:hover{background-color:var(--vxe-ui-scrollbar-thumb-hover-background-color)}.vxe-scrollbar--thumb-x:active,.vxe-scrollbar--thumb-y:active{background-color:var(--vxe-ui-scrollbar-thumb-active-background-color)}.vxe-scrollbar.theme--light{--vxe-ui-scrollbar-thumb-background-color:rgba(0,0,0,0.4);--vxe-ui-scrollbar-thumb-hover-background-color:rgba(0,0,0,0.5);--vxe-ui-scrollbar-thumb-active-background-color:rgba(0,0,0,0.6)}.vxe-scrollbar.theme--dark{--vxe-ui-scrollbar-thumb-background-color:rgba(255,255,255,0.4);--vxe-ui-scrollbar-thumb-hover-background-color:rgba(255,255,255,0.5);--vxe-ui-scrollbar-thumb-active-background-color:rgba(255,255,255,0.6)}
@@ -585,11 +585,12 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
585
585
  var reactData = $xeSelect.reactData;
586
586
  var yThumbHeight = reactData.yThumbHeight,
587
587
  xThumbWidth = reactData.xThumbWidth;
588
+ var scrollbarOpts = $xeSelect.computeScrollbarOpts;
588
589
  var scrollbarXToTop = $xeSelect.computeScrollbarXToTop;
589
590
  var scrollbarYToLeft = $xeSelect.computeScrollbarYToLeft;
590
591
  var scrollXVisible = $xeSelect.computeScrollXVisible;
591
592
  var scrollYVisible = $xeSelect.computeScrollYVisible;
592
- return domUtils.buildClass(['vxe-scrollbar is--virtual', "ov-x--".concat(scrollXVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(scrollYVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right')], {
593
+ return domUtils.buildClass(['vxe-scrollbar is--virtual', scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', "ov-x--".concat(scrollXVisible === false ? 'hidden' : 'visible'), "ov-y--".concat(scrollYVisible === false ? 'hidden' : 'visible'), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right')], {
593
594
  'overflow-y': yThumbHeight,
594
595
  'overflow-x': xThumbWidth
595
596
  });
@@ -1842,13 +1843,17 @@ var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defi
1842
1843
  if (isVScrollbar) {
1843
1844
  if (!scrollObserver) {
1844
1845
  var el = $xeSelect.$refs.refElem;
1845
- var viewInnerEl = $xeSelect.$refs.refVirtualSpaceElem;
1846
+ var viewSpaceEl = $xeSelect.$refs.refVirtualSpaceElem;
1847
+ var viewInnerEl = $xeSelect.$refs.refVirtualBody;
1846
1848
  var _scrollObserver = globalResize.create(function () {
1847
1849
  $xeSelect.reScrollFlag++;
1848
1850
  });
1849
1851
  if (el) {
1850
1852
  _scrollObserver.observe(el);
1851
1853
  }
1854
+ if (viewSpaceEl) {
1855
+ _scrollObserver.observe(viewSpaceEl);
1856
+ }
1852
1857
  if (viewInnerEl) {
1853
1858
  _scrollObserver.observe(viewInnerEl);
1854
1859
  }