xt-element-ui 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129119,24 +129119,24 @@ var component = normalizeComponent(
129119
129119
 
129120
129120
  /* harmony default export */ var xt_button = (component.exports);
129121
129121
  // CONCATENATED MODULE: ./src/components/xt-button/index.js
129122
+
129123
+
129124
+ xt_button.install = function (Vue) {
129125
+ Vue.component(xt_button.name, xt_button)
129126
+ }
129127
+
129128
+ /* harmony default export */ var components_xt_button = (xt_button);
129122
129129
 
129123
-
129124
- xt_button.install = function (Vue) {
129125
- Vue.component(xt_button.name, xt_button)
129126
- }
129127
-
129128
- /* harmony default export */ var components_xt_button = (xt_button);
129129
-
129130
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=template&id=69bd5491
129131
- var xt_inputvue_type_template_id_69bd5491_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
129130
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
129131
+ var xt_inputvue_type_template_id_6c337ae4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
129132
129132
  _vm.size ? 'xt-input--' + _vm.size : '',
129133
129133
  { 'is-disabled': _vm.disabled }
129134
- ]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.value,"placeholder":_vm.placeholder,"type":_vm.type,"size":_vm.size,"disabled":_vm.disabled,"readonly":_vm.readonly},on:{"input":function($event){return _vm.$emit('input', $event)},"change":function($event){return _vm.$emit('change', $event)},"focus":function($event){return _vm.$emit('focus', $event)},"blur":function($event){return _vm.$emit('blur', $event)}}})],1)
129134
+ ]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.displayValue,"placeholder":_vm.placeholder,"type":_vm.isNumberType ? 'text' : _vm.type,"size":_vm.size,"disabled":_vm.disabled,"readonly":_vm.readonly},on:{"input":_vm.handleInput,"change":_vm.handleChange,"focus":_vm.handleFocus,"blur":_vm.handleBlur}})],1)
129135
129135
  }
129136
- var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129136
+ var xt_inputvue_type_template_id_6c337ae4_staticRenderFns = []
129137
129137
 
129138
129138
 
129139
- // CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=69bd5491
129139
+ // CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
129140
129140
 
129141
129141
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=script&lang=js
129142
129142
 
@@ -129169,7 +129169,22 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129169
129169
  default: ''
129170
129170
  }
129171
129171
  },
129172
+ data() {
129173
+ return {
129174
+ currentStr: '',
129175
+ isFocused: false
129176
+ }
129177
+ },
129172
129178
  computed: {
129179
+ isNumberType() {
129180
+ return this.type === 'number'
129181
+ },
129182
+ displayValue() {
129183
+ if (this.isNumberType) {
129184
+ return this.currentStr
129185
+ }
129186
+ return this.value
129187
+ },
129173
129188
  inputStyle() {
129174
129189
  if (this.color) {
129175
129190
  return {
@@ -129178,6 +129193,71 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129178
129193
  }
129179
129194
  return {}
129180
129195
  }
129196
+ },
129197
+ watch: {
129198
+ value: {
129199
+ immediate: true,
129200
+ handler(val) {
129201
+ if (this.isNumberType && !this.isFocused) {
129202
+ this.currentStr = val === null || val === undefined || val === '' ? '' : String(val)
129203
+ }
129204
+ }
129205
+ }
129206
+ },
129207
+ methods: {
129208
+ isValidNumber(str) {
129209
+ return /^[+-]?\d*\.?\d*$/.test(str)
129210
+ },
129211
+ handleInput(val) {
129212
+ if (this.isNumberType) {
129213
+ if (this.isValidNumber(val)) {
129214
+ this.currentStr = val
129215
+ const num = this.parseToNumber(val)
129216
+ if (num !== undefined) {
129217
+ this.$emit('input', num)
129218
+ }
129219
+ }
129220
+ } else {
129221
+ this.$emit('input', val)
129222
+ }
129223
+ },
129224
+ handleChange(val) {
129225
+ if (this.isNumberType) {
129226
+ const num = this.parseToNumber(val)
129227
+ this.$emit('change', num)
129228
+ } else {
129229
+ this.$emit('change', val)
129230
+ }
129231
+ },
129232
+ handleFocus(e) {
129233
+ this.isFocused = true
129234
+ this.$emit('focus', e)
129235
+ },
129236
+ handleBlur(e) {
129237
+ this.isFocused = false
129238
+ if (this.isNumberType) {
129239
+ const num = this.parseToNumber(this.currentStr)
129240
+ this.$emit('blur', num, e)
129241
+ if (num !== undefined) {
129242
+ this.currentStr = String(num)
129243
+ this.$emit('input', num)
129244
+ } else {
129245
+ if (this.currentStr !== '') {
129246
+ this.currentStr = ''
129247
+ this.$emit('input', undefined)
129248
+ }
129249
+ }
129250
+ } else {
129251
+ this.$emit('blur', e)
129252
+ }
129253
+ },
129254
+ parseToNumber(str) {
129255
+ if (!str || str === '+' || str === '-' || str === '.' || str === '+.' || str === '-.' || str === '-.') {
129256
+ return undefined
129257
+ }
129258
+ const num = parseFloat(str)
129259
+ return isNaN(num) ? undefined : num
129260
+ }
129181
129261
  }
129182
129262
  });
129183
129263
 
@@ -129193,8 +129273,8 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129193
129273
 
129194
129274
  var xt_input_component = normalizeComponent(
129195
129275
  components_xt_inputvue_type_script_lang_js,
129196
- xt_inputvue_type_template_id_69bd5491_render,
129197
- xt_inputvue_type_template_id_69bd5491_staticRenderFns,
129276
+ xt_inputvue_type_template_id_6c337ae4_render,
129277
+ xt_inputvue_type_template_id_6c337ae4_staticRenderFns,
129198
129278
  false,
129199
129279
  null,
129200
129280
  null,
@@ -129369,12 +129449,12 @@ var xt_card_component = normalizeComponent(
129369
129449
 
129370
129450
  /* harmony default export */ var xt_card = (xt_card_component.exports);
129371
129451
  // CONCATENATED MODULE: ./src/components/xt-card/index.js
129372
-
129373
-
129374
- xt_card.install = function (Vue) {
129375
- Vue.component(xt_card.name, xt_card)
129376
- }
129377
-
129452
+
129453
+
129454
+ xt_card.install = function (Vue) {
129455
+ Vue.component(xt_card.name, xt_card)
129456
+ }
129457
+
129378
129458
  /* harmony default export */ var components_xt_card = (xt_card);
129379
129459
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=template&id=dbcd74f4
129380
129460
  var xt_card_itemvue_type_template_id_dbcd74f4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.change),callback:function ($$v) {_vm.change=$$v},expression:"change"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
@@ -129824,8 +129904,15 @@ xt_config_provider.install = function (Vue) {
129824
129904
  /* harmony default export */ var components_xt_config_provider = (xt_config_provider);
129825
129905
 
129826
129906
 
129827
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-text/index.vue?vue&type=template&id=7abe6280
129828
- var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-text",class:[
129907
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-text/index.vue?vue&type=template&id=7f658496
129908
+ var xt_textvue_type_template_id_7f658496_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showTooltip && _vm.ellipsis)?_c('el-tooltip',{attrs:{"content":_vm.displayTooltipContent,"placement":_vm.tooltipPlacement,"disabled":!_vm.isOverflow,"effect":"dark"}},[_c('span',{ref:"textRef",staticClass:"xt-text",class:[
129909
+ _vm.type ? 'xt-text--' + _vm.type : '',
129910
+ 'xt-text--' + _vm.size,
129911
+ { 'xt-text--bold': _vm.bold },
129912
+ { 'xt-text--money': _vm.format === 'money' },
129913
+ { 'xt-text--ellipsis': _vm.ellipsis },
129914
+ { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129915
+ ],style:(_vm.customStyle),on:{"mouseenter":_vm.handleMouseEnter}},[_vm._t("prefix",function(){return [_vm._v(_vm._s(_vm.prefix))]}),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),_vm._t("suffix",function(){return [_vm._v(_vm._s(_vm.suffix))]})],2)]):_c('span',{ref:"textRef",staticClass:"xt-text",class:[
129829
129916
  _vm.type ? 'xt-text--' + _vm.type : '',
129830
129917
  'xt-text--' + _vm.size,
129831
129918
  { 'xt-text--bold': _vm.bold },
@@ -129834,10 +129921,10 @@ var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this
129834
129921
  { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129835
129922
  ],style:(_vm.customStyle)},[_vm._t("prefix",function(){return [_vm._v(_vm._s(_vm.prefix))]}),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),_vm._t("suffix",function(){return [_vm._v(_vm._s(_vm.suffix))]})],2)
129836
129923
  }
129837
- var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129924
+ var xt_textvue_type_template_id_7f658496_staticRenderFns = []
129838
129925
 
129839
129926
 
129840
- // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7abe6280
129927
+ // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7f658496
129841
129928
 
129842
129929
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-text/index.vue?vue&type=script&lang=js
129843
129930
 
@@ -129875,6 +129962,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129875
129962
  default: 1,
129876
129963
  validator: (val) => val >= 1 && val <= 10
129877
129964
  },
129965
+ showTooltip: {
129966
+ type: Boolean,
129967
+ default: true
129968
+ },
129969
+ tooltipPlacement: {
129970
+ type: String,
129971
+ default: 'top',
129972
+ validator: (val) => ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'].includes(val)
129973
+ },
129974
+ tooltipContent: {
129975
+ type: String,
129976
+ default: ''
129977
+ },
129878
129978
 
129879
129979
  // 格式化模式:normal 普通 | thousand 千分位 | money 金额
129880
129980
  format: {
@@ -129919,6 +130019,11 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129919
130019
  default: ''
129920
130020
  }
129921
130021
  },
130022
+ data() {
130023
+ return {
130024
+ isOverflow: false
130025
+ }
130026
+ },
129922
130027
  computed: {
129923
130028
  // 兼容旧 money 属性:如果传了 money=true,自动切为金额模式
129924
130029
  realFormat() {
@@ -129936,6 +130041,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129936
130041
  return style
129937
130042
  },
129938
130043
 
130044
+ displayTooltipContent() {
130045
+ if (this.tooltipContent) {
130046
+ return this.tooltipContent
130047
+ }
130048
+ if (this.formattedValue !== undefined) {
130049
+ return this.formattedValue
130050
+ }
130051
+ if (this.$slots.default && this.$slots.default.length > 0) {
130052
+ return this.extractSlotText(this.$slots.default)
130053
+ }
130054
+ return this.value
130055
+ },
130056
+
129939
130057
  formattedValue() {
129940
130058
  const fmt = this.realFormat
129941
130059
  const { value } = this
@@ -129984,6 +130102,75 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129984
130102
  return value
129985
130103
  }
129986
130104
  }
130105
+ },
130106
+ methods: {
130107
+ handleMouseEnter() {
130108
+ this.checkOverflow()
130109
+ },
130110
+ checkOverflow() {
130111
+ const el = this.$refs.textRef
130112
+ if (!el) {
130113
+ this.isOverflow = false
130114
+ return
130115
+ }
130116
+
130117
+ if (this.ellipsisRows > 1) {
130118
+ this.isOverflow = el.scrollHeight > el.clientHeight
130119
+ } else {
130120
+ this.isOverflow = el.scrollWidth > el.clientWidth
130121
+ }
130122
+ },
130123
+ extractSlotText(nodes) {
130124
+ let text = ''
130125
+ nodes.forEach(node => {
130126
+ if (typeof node.children === 'string') {
130127
+ text += node.children
130128
+ } else if (typeof node.text === 'string') {
130129
+ text += node.text
130130
+ } else if (node.children && Array.isArray(node.children)) {
130131
+ text += this.extractSlotText(node.children)
130132
+ }
130133
+ })
130134
+ return text.trim()
130135
+ }
130136
+ },
130137
+ mounted() {
130138
+ if (this.ellipsis && this.showTooltip) {
130139
+ this.$nextTick(() => {
130140
+ this.checkOverflow()
130141
+ })
130142
+ }
130143
+ this._resizeObserver = new ResizeObserver(() => {
130144
+ if (this.ellipsis && this.showTooltip) {
130145
+ this.checkOverflow()
130146
+ }
130147
+ })
130148
+ this.$nextTick(() => {
130149
+ if (this.$refs.textRef) {
130150
+ this._resizeObserver.observe(this.$refs.textRef)
130151
+ }
130152
+ })
130153
+ },
130154
+ beforeDestroy() {
130155
+ if (this._resizeObserver) {
130156
+ this._resizeObserver.disconnect()
130157
+ }
130158
+ },
130159
+ watch: {
130160
+ value() {
130161
+ if (this.ellipsis && this.showTooltip) {
130162
+ this.$nextTick(() => {
130163
+ this.checkOverflow()
130164
+ })
130165
+ }
130166
+ },
130167
+ ellipsis(newVal) {
130168
+ if (newVal && this.showTooltip) {
130169
+ this.$nextTick(() => {
130170
+ this.checkOverflow()
130171
+ })
130172
+ }
130173
+ }
129987
130174
  }
129988
130175
  });
129989
130176
 
@@ -129999,8 +130186,8 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129999
130186
 
130000
130187
  var xt_text_component = normalizeComponent(
130001
130188
  components_xt_textvue_type_script_lang_js,
130002
- xt_textvue_type_template_id_7abe6280_render,
130003
- xt_textvue_type_template_id_7abe6280_staticRenderFns,
130189
+ xt_textvue_type_template_id_7f658496_render,
130190
+ xt_textvue_type_template_id_7f658496_staticRenderFns,
130004
130191
  false,
130005
130192
  null,
130006
130193
  null,
@@ -130340,21 +130527,21 @@ xt_time.install = function (Vue) {
130340
130527
  /* harmony default export */ var components_xt_time = (xt_time);
130341
130528
 
130342
130529
 
130343
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price/index.vue?vue&type=template&id=1fb68540
130344
- var xt_step_pricevue_type_template_id_1fb68540_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price",class:{ 'is-disabled': _vm.disabled }},[(_vm.title || _vm.$slots.header)?_c('div',{staticClass:"xt-step-price__header"},[(_vm.title)?_c('xt-text',{attrs:{"bold":"","size":"medium"}},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._t("header"),(!_vm.disabled && !_vm.isLimitReached)?_c('xt-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-plus","plain":""},on:{"click":_vm.onAdd}},[_vm._v("新增档位")]):_vm._e(),(_vm.isLimitReached)?_c('xt-text',{attrs:{"size":"small","type-color":"info"}},[_vm._v("已达上限("+_vm._s(_vm.localItems.length)+"/"+_vm._s(_vm.limit)+")")]):_vm._e()],2):_vm._e(),_c('div',{staticClass:"xt-step-price__list"},_vm._l((_vm.localItems),function(item,idx){return _c('XtStepPriceItem',{key:idx,attrs:{"value":item,"index":idx,"is-first":idx === 0,"is-last":idx === _vm.localItems.length - 1,"items-length":_vm.localItems.length,"removable":idx !== 0,"min-locked":idx !== 0 ? true : false,"unit":_vm.unit,"precision":_vm.precision,"step":_vm.step,"left-bracket":_vm.leftBracket,"right-bracket":_vm.rightBracket,"field-keys":_vm.fieldKeys,"disabled":_vm.disabled},on:{"input":(val) => _vm.onItemInput(val, idx),"max-change":_vm.onMaxChange,"min-change":_vm.onMinChange,"delete":_vm.onDelete}})}),1),(_vm.localItems.length === 0)?_c('div',{staticClass:"xt-step-price__empty"},[_c('span',[_vm._v("暂无数据,点击右上角「新增档位」开始配置")])]):_vm._e(),(_vm.tip || _vm.$slots.tip)?_c('div',{staticClass:"xt-step-price__tip"},[_vm._t("tip",function(){return [_c('xt-text',{attrs:{"size":"small","type-color":"warning"}},[_vm._v(_vm._s(_vm.tip))])]})],2):_vm._e()])
130530
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
130531
+ var xt_step_pricevue_type_template_id_10c6e331_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price",class:{ 'is-disabled': _vm.disabled }},[(_vm.title || _vm.$slots.header)?_c('div',{staticClass:"xt-step-price__header"},[(_vm.title)?_c('xt-text',{attrs:{"bold":"","size":"medium"}},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._t("header"),(!_vm.disabled && !_vm.isLimitReached)?_c('xt-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-plus","plain":""},on:{"click":_vm.onAdd}},[_vm._v("新增"+_vm._s(_vm.stepName))]):_vm._e(),(_vm.isLimitReached)?_c('xt-text',{attrs:{"size":"small","type-color":"info"}},[_vm._v("已达上限("+_vm._s(_vm.localItems.length)+"/"+_vm._s(_vm.limit)+")")]):_vm._e()],2):_vm._e(),_c('div',{staticClass:"xt-step-price__list"},_vm._l((_vm.localItems),function(item,idx){return _c('XtStepPriceItem',{key:idx,attrs:{"value":item,"index":idx,"is-first":idx === 0,"is-last":idx === _vm.localItems.length - 1,"items-length":_vm.localItems.length,"removable":idx !== 0,"min-locked":idx !== 0 ? true : false,"unit":_vm.unit,"precision":_vm.precision,"step-name":_vm.stepName,"step":_vm.step,"left-bracket":_vm.leftBracket,"right-bracket":_vm.rightBracket,"field-keys":_vm.fieldKeys,"disabled":_vm.disabled},on:{"input":(val) => _vm.onItemInput(val, idx),"max-change":_vm.onMaxChange,"min-change":_vm.onMinChange,"delete":_vm.onDelete,"blur":_vm.onFieldBlur}})}),1),(_vm.localItems.length === 0)?_c('div',{staticClass:"xt-step-price__empty"},[_c('span',[_vm._v("暂无数据,点击右上角「新增"+_vm._s(_vm.stepName)+"」开始配置")])]):_vm._e(),(_vm.tip || _vm.$slots.tip)?_c('div',{staticClass:"xt-step-price__tip"},[_vm._t("tip",function(){return [_c('xt-text',{attrs:{"size":"small","type-color":"warning"}},[_vm._v(_vm._s(_vm.tip))])]})],2):_vm._e()])
130345
130532
  }
130346
- var xt_step_pricevue_type_template_id_1fb68540_staticRenderFns = []
130533
+ var xt_step_pricevue_type_template_id_10c6e331_staticRenderFns = []
130347
130534
 
130348
130535
 
130349
- // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=1fb68540
130536
+ // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
130350
130537
 
130351
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=template&id=0606a780
130352
- var xt_step_price_itemvue_type_template_id_0606a780_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price-item"},[_c('div',{staticClass:"xt-step-price-item__range"},[_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalLeftBracket))]),(_vm.itemsLength > 1)?_c('span',{staticClass:"xt-step-price-item__name"},[_vm._v("第"+_vm._s(_vm.index + 1)+"档")]):_vm._e(),_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalRightBracket))]),_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"disabled":_vm.disabled || _vm.minLocked,"size":"small","placeholder":"下限"},on:{"blur":_vm.onMinBlur},model:{value:(_vm.minInput),callback:function ($$v) {_vm.minInput=_vm._n($$v)},expression:"minInput"}}),_c('span',{staticClass:"xt-step-price-item__comma"},[_vm._v("-")]),(!_vm.isLast)?_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"disabled":_vm.disabled,"size":"small","placeholder":"上限"},on:{"blur":_vm.onMaxBlur},model:{value:(_vm.maxInput),callback:function ($$v) {_vm.maxInput=_vm._n($$v)},expression:"maxInput"}}):_c('span',{staticClass:"xt-step-price-item__infinity"},[_vm._v("+∞")])],1),_c('div',{staticClass:"xt-step-price-item__price"},[_c('xt-input',{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{"disabled":_vm.disabled,"size":"small","placeholder":"价格"},on:{"blur":_vm.onPriceBlur},model:{value:(_vm.priceInput),callback:function ($$v) {_vm.priceInput=_vm._n($$v)},expression:"priceInput"}}),_c('span',{staticClass:"xt-step-price-item__unit"},[_vm._v(_vm._s(_vm.unit))])],1),(!_vm.disabled && _vm.removable && _vm.itemsLength > 1)?_c('xt-button',{staticClass:"xt-step-price-item__delete",attrs:{"text":"","icon":"el-icon-delete"},on:{"click":_vm.onDelete}}):_vm._e()],1)
130538
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
130539
+ var xt_step_price_itemvue_type_template_id_579d80c1_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price-item"},[_c('div',{staticClass:"xt-step-price-item__range"},[_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalLeftBracket))]),(_vm.itemsLength > 1)?_c('span',{staticClass:"xt-step-price-item__name"},[_vm._v("第"+_vm._s(_vm.index + 1)+_vm._s(_vm.stepName))]):_vm._e(),_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalRightBracket))]),_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"disabled":_vm.disabled || _vm.minLocked,"size":"small","placeholder":"下限"},on:{"blur":(e) => { _vm.onMinBlur(); _vm.onBlur(e) }},model:{value:(_vm.minInput),callback:function ($$v) {_vm.minInput=_vm._n($$v)},expression:"minInput"}}),_c('span',{staticClass:"xt-step-price-item__comma"},[_vm._v("-")]),(!_vm.isLast)?_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"上限"},on:{"blur":(e) => { _vm.onMaxBlur(); _vm.onBlur(e) }},model:{value:(_vm.maxInput),callback:function ($$v) {_vm.maxInput=_vm._n($$v)},expression:"maxInput"}}):_c('span',{staticClass:"xt-step-price-item__infinity"},[_vm._v("+∞")])],1),_c('div',{staticClass:"xt-step-price-item__price"},[_c('xt-input',{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"价格"},on:{"blur":(e) => { _vm.onPriceBlur(); _vm.onBlur(e) }},model:{value:(_vm.priceInput),callback:function ($$v) {_vm.priceInput=_vm._n($$v)},expression:"priceInput"}}),_c('span',{staticClass:"xt-step-price-item__unit"},[_vm._v(_vm._s(_vm.unit))])],1),(!_vm.disabled && _vm.removable && _vm.itemsLength > 1)?_c('xt-button',{staticClass:"xt-step-price-item__delete",attrs:{"text":"","icon":"el-icon-delete"},on:{"click":_vm.onDelete}}):_vm._e()],1)
130353
130540
  }
130354
- var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130541
+ var xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns = []
130355
130542
 
130356
130543
 
130357
- // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=0606a780
130544
+ // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
130358
130545
 
130359
130546
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=script&lang=js
130360
130547
 
@@ -130367,6 +130554,7 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130367
130554
  required: true,
130368
130555
  default: () => ({ min: 0, max: null, price: 0 })
130369
130556
  },
130557
+ stepName: { type: String, default: '阶梯' },
130370
130558
  index: { type: Number, default: 0 },
130371
130559
  isFirst: { type: Boolean, default: false },
130372
130560
  isLast: { type: Boolean, default: false },
@@ -130464,7 +130652,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130464
130652
  },
130465
130653
 
130466
130654
  onMinBlur() {
130467
- const v = this.safeNumber(this.minInput, 0)
130655
+ let v = this.safeNumber(this.minInput, 0)
130656
+ if (v !== 0) {
130657
+ v = Number(v.toFixed(this.precision))
130658
+ }
130468
130659
  this.minInput = v
130469
130660
  this.$emit('min-change', v, this.index)
130470
130661
  this.emitChange({ [this.keyMin]: v })
@@ -130473,21 +130664,33 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130473
130664
  onMaxBlur() {
130474
130665
  if (this.isLast) return
130475
130666
  const minVal = this.safeNumber(this.minInput, 0)
130476
- let v = this.safeNumber(this.maxInput, minVal + 1)
130477
- if (v <= minVal) v = minVal + 1
130667
+ const stepVal = this.safeNumber(this.step, 1)
130668
+ let v = this.safeNumber(this.maxInput, minVal + stepVal)
130669
+ if (v <= minVal) v = minVal + stepVal
130670
+ v = Number(v.toFixed(this.precision))
130478
130671
  this.maxInput = v
130479
130672
  this.$emit('max-change', v, this.index)
130480
130673
  this.emitChange({ [this.keyMax]: v })
130481
130674
  },
130482
130675
 
130483
130676
  onPriceBlur() {
130484
- let v = this.safeNumber(this.priceInput, 0)
130677
+ const rawVal = this.priceInput
130678
+ if (rawVal === null || rawVal === undefined || rawVal === '' || isNaN(rawVal)) {
130679
+ this.priceInput = ''
130680
+ this.emitChange({ [this.keyPrice]: '' })
130681
+ return
130682
+ }
130683
+ let v = this.safeNumber(rawVal, 0)
130485
130684
  if (v < 0) v = 0
130486
130685
  v = Number(v.toFixed(this.precision))
130487
130686
  this.priceInput = v
130488
130687
  this.emitChange({ [this.keyPrice]: v })
130489
130688
  },
130490
130689
 
130690
+ onBlur(e) {
130691
+ this.$emit('blur', e)
130692
+ },
130693
+
130491
130694
  onDelete() {
130492
130695
  this.$emit('delete', this.index)
130493
130696
  }
@@ -130506,8 +130709,8 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130506
130709
 
130507
130710
  var xt_step_price_item_component = normalizeComponent(
130508
130711
  components_xt_step_price_itemvue_type_script_lang_js,
130509
- xt_step_price_itemvue_type_template_id_0606a780_render,
130510
- xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns,
130712
+ xt_step_price_itemvue_type_template_id_579d80c1_render,
130713
+ xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns,
130511
130714
  false,
130512
130715
  null,
130513
130716
  null,
@@ -130525,6 +130728,12 @@ var xt_step_price_item_component = normalizeComponent(
130525
130728
 
130526
130729
  components: { XtStepPriceItem: xt_step_price_item },
130527
130730
 
130731
+ inject: {
130732
+ elFormItem: {
130733
+ default: ''
130734
+ }
130735
+ },
130736
+
130528
130737
  computed: {
130529
130738
  keyMin() { return (this.fieldKeys && this.fieldKeys.min) || 'min' },
130530
130739
  keyMax() { return (this.fieldKeys && this.fieldKeys.max) || 'max' },
@@ -130542,6 +130751,7 @@ var xt_step_price_item_component = normalizeComponent(
130542
130751
  },
130543
130752
  title: { type: String, default: '' },
130544
130753
  unit: { type: String, default: '元' },
130754
+ stepName: { type: String, default: '阶梯' },
130545
130755
  precision: { type: Number, default: 2 },
130546
130756
  // 左括号:默认 '[',传空字符串则不显示
130547
130757
  leftBracket: { type: String, default: '[' },
@@ -130591,11 +130801,14 @@ var xt_step_price_item_component = normalizeComponent(
130591
130801
 
130592
130802
  cloneItems(items) {
130593
130803
  if (!Array.isArray(items)) return []
130594
- return items.map((it) => ({
130595
- [this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
130596
- [this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
130597
- [this.keyPrice]: this.safeNumber(it && it[this.keyPrice], 0)
130598
- }))
130804
+ return items.map((it) => {
130805
+ const price = (it && it[this.keyPrice])
130806
+ return {
130807
+ [this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
130808
+ [this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
130809
+ [this.keyPrice]: (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
130810
+ }
130811
+ })
130599
130812
  },
130600
130813
 
130601
130814
  normalize(items) {
@@ -130620,12 +130833,14 @@ var xt_step_price_item_component = normalizeComponent(
130620
130833
  if (next) {
130621
130834
  let curMax = this.safeNumber(cur[this.keyMax], curMin + stepVal)
130622
130835
  if (curMax <= curMin) curMax = curMin + stepVal
130836
+ curMax = Number(curMax.toFixed(this.precision))
130623
130837
  cur[this.keyMax] = curMax
130624
130838
  next[this.keyMin] = curMax
130625
130839
  } else {
130626
130840
  cur[this.keyMax] = null
130627
130841
  }
130628
- cur[this.keyPrice] = this.safeNumber(cur[this.keyPrice], 0)
130842
+ const price = cur[this.keyPrice]
130843
+ cur[this.keyPrice] = (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
130629
130844
  }
130630
130845
  },
130631
130846
 
@@ -130634,18 +130849,127 @@ var xt_step_price_item_component = normalizeComponent(
130634
130849
  const cloned = this.cloneItems(this.localItems)
130635
130850
  this.$emit('input', cloned)
130636
130851
  this.$emit('change', cloned)
130852
+ this.dispatchFormEvent('el.form.change', cloned)
130853
+ },
130854
+
130855
+ dispatchFormEvent(eventName, value) {
130856
+ if (this.elFormItem) {
130857
+ this.elFormItem.$emit(eventName, value)
130858
+ }
130859
+ },
130860
+
130861
+ onFieldBlur() {
130862
+ this.dispatchFormEvent('el.form.blur', this.localItems)
130863
+ },
130864
+
130865
+ validate(callback) {
130866
+ const list = this.localItems
130867
+ if (!Array.isArray(list) || list.length === 0) {
130868
+ callback && callback(false, [{ field: 'stepPrice', message: `请配置${this.stepName}`, type: 'error' }])
130869
+ return false
130870
+ }
130871
+
130872
+ const errors = []
130873
+ for (let i = 0; i < list.length; i++) {
130874
+ const item = list[i]
130875
+ const rawPrice = item[this.keyPrice]
130876
+ const rawMin = item[this.keyMin]
130877
+ const rawMax = item[this.keyMax]
130878
+ const price = this.safeNumber(rawPrice, 0)
130879
+ const min = this.safeNumber(rawMin, 0)
130880
+
130881
+ if (rawPrice === null || rawPrice === undefined || rawPrice === '') {
130882
+ errors.push({
130883
+ field: `stepPrice[${i}].price`,
130884
+ message: `第${i + 1}${this.stepName}价格不能为空`,
130885
+ type: 'error'
130886
+ })
130887
+ } else if (price < 0) {
130888
+ errors.push({
130889
+ field: `stepPrice[${i}].price`,
130890
+ message: `第${i + 1}${this.stepName}价格不能为负数`,
130891
+ type: 'error'
130892
+ })
130893
+ }
130894
+
130895
+ if (rawMin === null || rawMin === undefined || rawMin === '') {
130896
+ errors.push({
130897
+ field: `stepPrice[${i}].min`,
130898
+ message: `第${i + 1}${this.stepName}下限不能为空`,
130899
+ type: 'error'
130900
+ })
130901
+ } else if (min < 0) {
130902
+ errors.push({
130903
+ field: `stepPrice[${i}].min`,
130904
+ message: `第${i + 1}${this.stepName}下限不能为负数`,
130905
+ type: 'error'
130906
+ })
130907
+ }
130908
+
130909
+ if (!this.isLast(i)) {
130910
+ if (rawMax === null || rawMax === undefined || rawMax === '') {
130911
+ errors.push({
130912
+ field: `stepPrice[${i}].max`,
130913
+ message: `第${i + 1}${this.stepName}上限不能为空`,
130914
+ type: 'error'
130915
+ })
130916
+ } else if (this.safeNumber(rawMax, 0) <= min) {
130917
+ errors.push({
130918
+ field: `stepPrice[${i}].max`,
130919
+ message: `第${i + 1}${this.stepName}上限必须大于下限`,
130920
+ type: 'error'
130921
+ })
130922
+ }
130923
+ }
130924
+
130925
+ if (i > 0) {
130926
+ const prev = list[i - 1]
130927
+ const prevMax = prev[this.keyMax]
130928
+ if (prevMax !== null && this.safeNumber(prevMax, 0) !== min) {
130929
+ errors.push({
130930
+ field: `stepPrice[${i}].min`,
130931
+ message: `第${i + 1}${this.stepName}下限必须等于上一${this.stepName}上限`,
130932
+ type: 'error'
130933
+ })
130934
+ }
130935
+ }
130936
+ }
130937
+
130938
+ if (errors.length > 0) {
130939
+ callback && callback(false, errors)
130940
+ return false
130941
+ }
130942
+
130943
+ callback && callback(true)
130944
+ return true
130945
+ },
130946
+
130947
+ isLast(idx) {
130948
+ return idx === this.localItems.length - 1
130637
130949
  },
130638
130950
 
130639
130951
  onItemInput(val, idx) {
130640
130952
  const cur = this.localItems[idx]
130641
130953
  if (!cur) return
130642
- if (val && val[this.keyPrice] !== undefined) cur[this.keyPrice] = this.safeNumber(val[this.keyPrice], 0)
130954
+ if (val && val[this.keyPrice] !== undefined) {
130955
+ const p = val[this.keyPrice]
130956
+ if (p === null || p === undefined || p === '') {
130957
+ cur[this.keyPrice] = ''
130958
+ } else {
130959
+ let num = this.safeNumber(p, 0)
130960
+ num = Number(num.toFixed(this.precision))
130961
+ cur[this.keyPrice] = num
130962
+ }
130963
+ this.emit()
130964
+ }
130643
130965
  },
130644
130966
 
130645
130967
  onMaxChange(val, idx) {
130646
130968
  const cur = this.localItems[idx]
130647
130969
  if (!cur) return
130648
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + 1)
130970
+ const stepVal = this.safeNumber(this.step, 1)
130971
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + stepVal)
130972
+ n = Number(n.toFixed(this.precision))
130649
130973
  cur[this.keyMax] = n
130650
130974
  const next = this.localItems[idx + 1]
130651
130975
  if (next) next[this.keyMin] = n
@@ -130658,7 +130982,10 @@ var xt_step_price_item_component = normalizeComponent(
130658
130982
  if (idx === 0) {
130659
130983
  cur[this.keyMin] = 0
130660
130984
  } else {
130661
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130985
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130986
+ if (n !== 0) {
130987
+ n = Number(n.toFixed(this.precision))
130988
+ }
130662
130989
  cur[this.keyMin] = n
130663
130990
  const prev = this.localItems[idx - 1]
130664
130991
  if (prev) prev[this.keyMax] = n
@@ -130688,15 +131015,8 @@ var xt_step_price_item_component = normalizeComponent(
130688
131015
  const newMin = this.safeNumber(last[this.keyMin], 0)
130689
131016
  const newMax = newMin + stepVal
130690
131017
 
130691
- // 新条 price:优先继承「倒数第二条」的 price,其次用末条 price(>0 时),否则默认 10
130692
- const prev = list[list.length - 2]
130693
- let newPrice = 10
130694
- if (prev) {
130695
- newPrice = this.safeNumber(prev[this.keyPrice], 10)
130696
- } else {
130697
- const lastPrice = this.safeNumber(last[this.keyPrice], 0)
130698
- newPrice = lastPrice > 0 ? lastPrice : 10
130699
- }
131018
+ // 新条 price:使用默认值,由用户自行填写
131019
+ let newPrice = 0
130700
131020
 
130701
131021
  const newArr = [
130702
131022
  ...list.slice(0, -1),
@@ -130748,8 +131068,8 @@ var xt_step_price_item_component = normalizeComponent(
130748
131068
 
130749
131069
  var xt_step_price_component = normalizeComponent(
130750
131070
  components_xt_step_pricevue_type_script_lang_js,
130751
- xt_step_pricevue_type_template_id_1fb68540_render,
130752
- xt_step_pricevue_type_template_id_1fb68540_staticRenderFns,
131071
+ xt_step_pricevue_type_template_id_10c6e331_render,
131072
+ xt_step_pricevue_type_template_id_10c6e331_staticRenderFns,
130753
131073
  false,
130754
131074
  null,
130755
131075
  null,
@@ -133679,13 +133999,13 @@ var xt_date_picker_component = normalizeComponent(
133679
133999
 
133680
134000
  /* harmony default export */ var xt_date_picker = (xt_date_picker_component.exports);
133681
134001
  // CONCATENATED MODULE: ./src/components/xt-date-picker/index.js
133682
-
133683
-
133684
- xt_date_picker.install = function (Vue) {
133685
- Vue.component(xt_date_picker.name, xt_date_picker)
133686
- }
133687
-
133688
- /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
134002
+
134003
+
134004
+ xt_date_picker.install = function (Vue) {
134005
+ Vue.component(xt_date_picker.name, xt_date_picker)
134006
+ }
134007
+
134008
+ /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
133689
134009
 
133690
134010
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-chart/index.vue?vue&type=template&id=fcb32ff2
133691
134011
  var xt_chartvue_type_template_id_fcb32ff2_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.type=='bar')?_c('xt-bar',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-bar',_vm.$attrs,false)):(_vm.type=='line')?_c('xt-line',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-line',_vm.$attrs,false)):(_vm.type=='pie')?_c('xt-pie',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-pie',_vm.$attrs,false)):(_vm.type=='multi')?_c('xt-multi',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-multi',_vm.$attrs,false)):_vm._e()
@@ -134740,13 +135060,13 @@ var xt_chart_component = normalizeComponent(
134740
135060
 
134741
135061
  /* harmony default export */ var xt_chart = (xt_chart_component.exports);
134742
135062
  // CONCATENATED MODULE: ./src/components/xt-chart/index.js
134743
-
134744
-
134745
- xt_chart.install = function (Vue) {
134746
- Vue.component(xt_chart.name, xt_chart)
134747
- }
134748
-
134749
- /* harmony default export */ var components_xt_chart = (xt_chart);
135063
+
135064
+
135065
+ xt_chart.install = function (Vue) {
135066
+ Vue.component(xt_chart.name, xt_chart)
135067
+ }
135068
+
135069
+ /* harmony default export */ var components_xt_chart = (xt_chart);
134750
135070
 
134751
135071
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-icon/index.vue?vue&type=template&id=0e301b72&scoped=true
134752
135072
  var xt_iconvue_type_template_id_0e301b72_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_vm.tag,_vm._g({tag:"component",class:_vm.iconClasses,style:(_vm.iconStyle),on:{"click":_vm.handleClick}},_vm.$listeners),[(_vm.isSvgSprite)?_c('svg',{style:(_vm.svgStyle),attrs:{"aria-hidden":"true"}},[_c('use',{attrs:{"href":_vm.svgHref}})]):(_vm.hasDefaultSlot)?_vm._t("default"):_vm._e()],2)
@@ -134918,13 +135238,13 @@ var xt_icon_component = normalizeComponent(
134918
135238
 
134919
135239
  /* harmony default export */ var xt_icon = (xt_icon_component.exports);
134920
135240
  // CONCATENATED MODULE: ./src/components/xt-icon/index.js
134921
-
134922
-
134923
- xt_icon.install = function (Vue) {
134924
- Vue.component(xt_icon.name, xt_icon)
134925
- }
134926
-
134927
- /* harmony default export */ var components_xt_icon = (xt_icon);
135241
+
135242
+
135243
+ xt_icon.install = function (Vue) {
135244
+ Vue.component(xt_icon.name, xt_icon)
135245
+ }
135246
+
135247
+ /* harmony default export */ var components_xt_icon = (xt_icon);
134928
135248
 
134929
135249
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"267e1ec1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-table/index.vue?vue&type=template&id=0fa7d6af&scoped=true
134930
135250
  var xt_tablevue_type_template_id_0fa7d6af_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"ex-table-wrapper"},[(_vm.title || _vm.$slots.toolbar)?_c('div',{staticClass:"ex-table-header"},[(_vm.title)?_c('span',{staticClass:"ex-table-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('div',{staticClass:"ex-table-toolbar"},[_vm._t("toolbar")],2)]):_vm._e(),_c('div',{staticClass:"ex-table-body"},[_c('VirtualElTable',_vm._g(_vm._b({ref:"table",staticClass:"ex-table",attrs:{"data":_vm.processedTableData,"height":_vm.computedHeight,"max-height":_vm.computedMaxHeight,"virtual-scroll":_vm.virtualScroll,"row-height":_vm.rowInitHeight,"buffer-size":_vm.bufferSize,"span-method":_vm.groupColumns.length ? _vm.handleSpanMethod : undefined,"row-class-name":_vm.getRowClassName},on:{"selection-change":_vm.handleSelectionChange,"sort-change":_vm.handleSortChange}},'VirtualElTable',_vm.$attrs,false),_vm.$listeners),[(_vm.selection)?_c('el-table-column',{attrs:{"type":"selection","width":"55","fixed":_vm.selectionFixed}}):_vm._e(),(_vm.showIndex)?_c('el-table-column',{attrs:{"type":"index","width":"60","label":"#","fixed":_vm.indexFixed,"index":_vm.indexMethod}}):_vm._e(),_vm._l((_vm.flattenedColumns),function(col){return [(col.children && col.children.length)?_c('el-table-column',_vm._b({key:col._key},'el-table-column',_vm.getColumnProps(col),false),[_vm._l((col.children),function(child){return [_c('el-table-column',_vm._b({key:child._key,scopedSlots:_vm._u([(child.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(child.render(scope)))]}}:(child.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":child.formatter,"column":child}})]}}:(child.slot)?{key:"default",fn:function(scope){return [_vm._t(child.slot,null,{"row":scope.row,"index":scope.$index,"column":child})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(child),false))]})],2):_c('el-table-column',_vm._b({key:col._key,scopedSlots:_vm._u([(col.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(col.render(scope)))]}}:(col.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":col.formatter,"column":col}})]}}:(col.slot)?{key:"default",fn:function(scope){return [_vm._t(col.slot,null,{"row":scope.row,"index":scope.$index,"column":col})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(col),false))]})],2)],1),(_vm.showPagination)?_c('div',{staticClass:"ex-table-footer"},[_c('el-pagination',{attrs:{"current-page":_vm.pagination.pageNum,"page-size":_vm.pagination.pageSize,"total":_vm.total,"page-sizes":_vm.pagination.pageSizes || [10, 20, 50, 100],"layout":"total, sizes, prev, pager, next, jumper"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1):_vm._e()])
@@ -135581,13 +135901,13 @@ var xt_table_component = normalizeComponent(
135581
135901
 
135582
135902
  /* harmony default export */ var xt_table = (xt_table_component.exports);
135583
135903
  // CONCATENATED MODULE: ./src/components/xt-table/index.js
135584
-
135585
-
135586
- xt_table.install = function (Vue) {
135587
- Vue.component(xt_table.name, xt_table)
135588
- }
135589
-
135590
- /* harmony default export */ var components_xt_table = (xt_table);
135904
+
135905
+
135906
+ xt_table.install = function (Vue) {
135907
+ Vue.component(xt_table.name, xt_table)
135908
+ }
135909
+
135910
+ /* harmony default export */ var components_xt_table = (xt_table);
135591
135911
 
135592
135912
  // CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
135593
135913
  /**