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.
package/lib/index.umd.js CHANGED
@@ -129128,24 +129128,24 @@ var component = normalizeComponent(
129128
129128
 
129129
129129
  /* harmony default export */ var xt_button = (component.exports);
129130
129130
  // CONCATENATED MODULE: ./src/components/xt-button/index.js
129131
+
129132
+
129133
+ xt_button.install = function (Vue) {
129134
+ Vue.component(xt_button.name, xt_button)
129135
+ }
129136
+
129137
+ /* harmony default export */ var components_xt_button = (xt_button);
129131
129138
 
129132
-
129133
- xt_button.install = function (Vue) {
129134
- Vue.component(xt_button.name, xt_button)
129135
- }
129136
-
129137
- /* harmony default export */ var components_xt_button = (xt_button);
129138
-
129139
- // 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
129140
- var xt_inputvue_type_template_id_69bd5491_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
129139
+ // 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
129140
+ var xt_inputvue_type_template_id_6c337ae4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
129141
129141
  _vm.size ? 'xt-input--' + _vm.size : '',
129142
129142
  { 'is-disabled': _vm.disabled }
129143
- ]},[_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)
129143
+ ]},[_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)
129144
129144
  }
129145
- var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129145
+ var xt_inputvue_type_template_id_6c337ae4_staticRenderFns = []
129146
129146
 
129147
129147
 
129148
- // CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=69bd5491
129148
+ // CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
129149
129149
 
129150
129150
  // 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
129151
129151
 
@@ -129178,7 +129178,22 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129178
129178
  default: ''
129179
129179
  }
129180
129180
  },
129181
+ data() {
129182
+ return {
129183
+ currentStr: '',
129184
+ isFocused: false
129185
+ }
129186
+ },
129181
129187
  computed: {
129188
+ isNumberType() {
129189
+ return this.type === 'number'
129190
+ },
129191
+ displayValue() {
129192
+ if (this.isNumberType) {
129193
+ return this.currentStr
129194
+ }
129195
+ return this.value
129196
+ },
129182
129197
  inputStyle() {
129183
129198
  if (this.color) {
129184
129199
  return {
@@ -129187,6 +129202,71 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129187
129202
  }
129188
129203
  return {}
129189
129204
  }
129205
+ },
129206
+ watch: {
129207
+ value: {
129208
+ immediate: true,
129209
+ handler(val) {
129210
+ if (this.isNumberType && !this.isFocused) {
129211
+ this.currentStr = val === null || val === undefined || val === '' ? '' : String(val)
129212
+ }
129213
+ }
129214
+ }
129215
+ },
129216
+ methods: {
129217
+ isValidNumber(str) {
129218
+ return /^[+-]?\d*\.?\d*$/.test(str)
129219
+ },
129220
+ handleInput(val) {
129221
+ if (this.isNumberType) {
129222
+ if (this.isValidNumber(val)) {
129223
+ this.currentStr = val
129224
+ const num = this.parseToNumber(val)
129225
+ if (num !== undefined) {
129226
+ this.$emit('input', num)
129227
+ }
129228
+ }
129229
+ } else {
129230
+ this.$emit('input', val)
129231
+ }
129232
+ },
129233
+ handleChange(val) {
129234
+ if (this.isNumberType) {
129235
+ const num = this.parseToNumber(val)
129236
+ this.$emit('change', num)
129237
+ } else {
129238
+ this.$emit('change', val)
129239
+ }
129240
+ },
129241
+ handleFocus(e) {
129242
+ this.isFocused = true
129243
+ this.$emit('focus', e)
129244
+ },
129245
+ handleBlur(e) {
129246
+ this.isFocused = false
129247
+ if (this.isNumberType) {
129248
+ const num = this.parseToNumber(this.currentStr)
129249
+ this.$emit('blur', num, e)
129250
+ if (num !== undefined) {
129251
+ this.currentStr = String(num)
129252
+ this.$emit('input', num)
129253
+ } else {
129254
+ if (this.currentStr !== '') {
129255
+ this.currentStr = ''
129256
+ this.$emit('input', undefined)
129257
+ }
129258
+ }
129259
+ } else {
129260
+ this.$emit('blur', e)
129261
+ }
129262
+ },
129263
+ parseToNumber(str) {
129264
+ if (!str || str === '+' || str === '-' || str === '.' || str === '+.' || str === '-.' || str === '-.') {
129265
+ return undefined
129266
+ }
129267
+ const num = parseFloat(str)
129268
+ return isNaN(num) ? undefined : num
129269
+ }
129190
129270
  }
129191
129271
  });
129192
129272
 
@@ -129202,8 +129282,8 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
129202
129282
 
129203
129283
  var xt_input_component = normalizeComponent(
129204
129284
  components_xt_inputvue_type_script_lang_js,
129205
- xt_inputvue_type_template_id_69bd5491_render,
129206
- xt_inputvue_type_template_id_69bd5491_staticRenderFns,
129285
+ xt_inputvue_type_template_id_6c337ae4_render,
129286
+ xt_inputvue_type_template_id_6c337ae4_staticRenderFns,
129207
129287
  false,
129208
129288
  null,
129209
129289
  null,
@@ -129378,12 +129458,12 @@ var xt_card_component = normalizeComponent(
129378
129458
 
129379
129459
  /* harmony default export */ var xt_card = (xt_card_component.exports);
129380
129460
  // CONCATENATED MODULE: ./src/components/xt-card/index.js
129381
-
129382
-
129383
- xt_card.install = function (Vue) {
129384
- Vue.component(xt_card.name, xt_card)
129385
- }
129386
-
129461
+
129462
+
129463
+ xt_card.install = function (Vue) {
129464
+ Vue.component(xt_card.name, xt_card)
129465
+ }
129466
+
129387
129467
  /* harmony default export */ var components_xt_card = (xt_card);
129388
129468
  // 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
129389
129469
  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)
@@ -129833,8 +129913,15 @@ xt_config_provider.install = function (Vue) {
129833
129913
  /* harmony default export */ var components_xt_config_provider = (xt_config_provider);
129834
129914
 
129835
129915
 
129836
- // 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
129837
- var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-text",class:[
129916
+ // 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
129917
+ 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:[
129918
+ _vm.type ? 'xt-text--' + _vm.type : '',
129919
+ 'xt-text--' + _vm.size,
129920
+ { 'xt-text--bold': _vm.bold },
129921
+ { 'xt-text--money': _vm.format === 'money' },
129922
+ { 'xt-text--ellipsis': _vm.ellipsis },
129923
+ { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129924
+ ],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:[
129838
129925
  _vm.type ? 'xt-text--' + _vm.type : '',
129839
129926
  'xt-text--' + _vm.size,
129840
129927
  { 'xt-text--bold': _vm.bold },
@@ -129843,10 +129930,10 @@ var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this
129843
129930
  { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129844
129931
  ],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)
129845
129932
  }
129846
- var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129933
+ var xt_textvue_type_template_id_7f658496_staticRenderFns = []
129847
129934
 
129848
129935
 
129849
- // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7abe6280
129936
+ // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7f658496
129850
129937
 
129851
129938
  // 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
129852
129939
 
@@ -129884,6 +129971,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129884
129971
  default: 1,
129885
129972
  validator: (val) => val >= 1 && val <= 10
129886
129973
  },
129974
+ showTooltip: {
129975
+ type: Boolean,
129976
+ default: true
129977
+ },
129978
+ tooltipPlacement: {
129979
+ type: String,
129980
+ default: 'top',
129981
+ validator: (val) => ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'].includes(val)
129982
+ },
129983
+ tooltipContent: {
129984
+ type: String,
129985
+ default: ''
129986
+ },
129887
129987
 
129888
129988
  // 格式化模式:normal 普通 | thousand 千分位 | money 金额
129889
129989
  format: {
@@ -129928,6 +130028,11 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129928
130028
  default: ''
129929
130029
  }
129930
130030
  },
130031
+ data() {
130032
+ return {
130033
+ isOverflow: false
130034
+ }
130035
+ },
129931
130036
  computed: {
129932
130037
  // 兼容旧 money 属性:如果传了 money=true,自动切为金额模式
129933
130038
  realFormat() {
@@ -129945,6 +130050,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129945
130050
  return style
129946
130051
  },
129947
130052
 
130053
+ displayTooltipContent() {
130054
+ if (this.tooltipContent) {
130055
+ return this.tooltipContent
130056
+ }
130057
+ if (this.formattedValue !== undefined) {
130058
+ return this.formattedValue
130059
+ }
130060
+ if (this.$slots.default && this.$slots.default.length > 0) {
130061
+ return this.extractSlotText(this.$slots.default)
130062
+ }
130063
+ return this.value
130064
+ },
130065
+
129948
130066
  formattedValue() {
129949
130067
  const fmt = this.realFormat
129950
130068
  const { value } = this
@@ -129993,6 +130111,75 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129993
130111
  return value
129994
130112
  }
129995
130113
  }
130114
+ },
130115
+ methods: {
130116
+ handleMouseEnter() {
130117
+ this.checkOverflow()
130118
+ },
130119
+ checkOverflow() {
130120
+ const el = this.$refs.textRef
130121
+ if (!el) {
130122
+ this.isOverflow = false
130123
+ return
130124
+ }
130125
+
130126
+ if (this.ellipsisRows > 1) {
130127
+ this.isOverflow = el.scrollHeight > el.clientHeight
130128
+ } else {
130129
+ this.isOverflow = el.scrollWidth > el.clientWidth
130130
+ }
130131
+ },
130132
+ extractSlotText(nodes) {
130133
+ let text = ''
130134
+ nodes.forEach(node => {
130135
+ if (typeof node.children === 'string') {
130136
+ text += node.children
130137
+ } else if (typeof node.text === 'string') {
130138
+ text += node.text
130139
+ } else if (node.children && Array.isArray(node.children)) {
130140
+ text += this.extractSlotText(node.children)
130141
+ }
130142
+ })
130143
+ return text.trim()
130144
+ }
130145
+ },
130146
+ mounted() {
130147
+ if (this.ellipsis && this.showTooltip) {
130148
+ this.$nextTick(() => {
130149
+ this.checkOverflow()
130150
+ })
130151
+ }
130152
+ this._resizeObserver = new ResizeObserver(() => {
130153
+ if (this.ellipsis && this.showTooltip) {
130154
+ this.checkOverflow()
130155
+ }
130156
+ })
130157
+ this.$nextTick(() => {
130158
+ if (this.$refs.textRef) {
130159
+ this._resizeObserver.observe(this.$refs.textRef)
130160
+ }
130161
+ })
130162
+ },
130163
+ beforeDestroy() {
130164
+ if (this._resizeObserver) {
130165
+ this._resizeObserver.disconnect()
130166
+ }
130167
+ },
130168
+ watch: {
130169
+ value() {
130170
+ if (this.ellipsis && this.showTooltip) {
130171
+ this.$nextTick(() => {
130172
+ this.checkOverflow()
130173
+ })
130174
+ }
130175
+ },
130176
+ ellipsis(newVal) {
130177
+ if (newVal && this.showTooltip) {
130178
+ this.$nextTick(() => {
130179
+ this.checkOverflow()
130180
+ })
130181
+ }
130182
+ }
129996
130183
  }
129997
130184
  });
129998
130185
 
@@ -130008,8 +130195,8 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
130008
130195
 
130009
130196
  var xt_text_component = normalizeComponent(
130010
130197
  components_xt_textvue_type_script_lang_js,
130011
- xt_textvue_type_template_id_7abe6280_render,
130012
- xt_textvue_type_template_id_7abe6280_staticRenderFns,
130198
+ xt_textvue_type_template_id_7f658496_render,
130199
+ xt_textvue_type_template_id_7f658496_staticRenderFns,
130013
130200
  false,
130014
130201
  null,
130015
130202
  null,
@@ -130349,21 +130536,21 @@ xt_time.install = function (Vue) {
130349
130536
  /* harmony default export */ var components_xt_time = (xt_time);
130350
130537
 
130351
130538
 
130352
- // 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
130353
- 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()])
130539
+ // 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
130540
+ 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()])
130354
130541
  }
130355
- var xt_step_pricevue_type_template_id_1fb68540_staticRenderFns = []
130542
+ var xt_step_pricevue_type_template_id_10c6e331_staticRenderFns = []
130356
130543
 
130357
130544
 
130358
- // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=1fb68540
130545
+ // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
130359
130546
 
130360
- // 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
130361
- 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)
130547
+ // 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
130548
+ 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)
130362
130549
  }
130363
- var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130550
+ var xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns = []
130364
130551
 
130365
130552
 
130366
- // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=0606a780
130553
+ // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
130367
130554
 
130368
130555
  // 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
130369
130556
 
@@ -130376,6 +130563,7 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130376
130563
  required: true,
130377
130564
  default: () => ({ min: 0, max: null, price: 0 })
130378
130565
  },
130566
+ stepName: { type: String, default: '阶梯' },
130379
130567
  index: { type: Number, default: 0 },
130380
130568
  isFirst: { type: Boolean, default: false },
130381
130569
  isLast: { type: Boolean, default: false },
@@ -130473,7 +130661,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130473
130661
  },
130474
130662
 
130475
130663
  onMinBlur() {
130476
- const v = this.safeNumber(this.minInput, 0)
130664
+ let v = this.safeNumber(this.minInput, 0)
130665
+ if (v !== 0) {
130666
+ v = Number(v.toFixed(this.precision))
130667
+ }
130477
130668
  this.minInput = v
130478
130669
  this.$emit('min-change', v, this.index)
130479
130670
  this.emitChange({ [this.keyMin]: v })
@@ -130482,21 +130673,33 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130482
130673
  onMaxBlur() {
130483
130674
  if (this.isLast) return
130484
130675
  const minVal = this.safeNumber(this.minInput, 0)
130485
- let v = this.safeNumber(this.maxInput, minVal + 1)
130486
- if (v <= minVal) v = minVal + 1
130676
+ const stepVal = this.safeNumber(this.step, 1)
130677
+ let v = this.safeNumber(this.maxInput, minVal + stepVal)
130678
+ if (v <= minVal) v = minVal + stepVal
130679
+ v = Number(v.toFixed(this.precision))
130487
130680
  this.maxInput = v
130488
130681
  this.$emit('max-change', v, this.index)
130489
130682
  this.emitChange({ [this.keyMax]: v })
130490
130683
  },
130491
130684
 
130492
130685
  onPriceBlur() {
130493
- let v = this.safeNumber(this.priceInput, 0)
130686
+ const rawVal = this.priceInput
130687
+ if (rawVal === null || rawVal === undefined || rawVal === '' || isNaN(rawVal)) {
130688
+ this.priceInput = ''
130689
+ this.emitChange({ [this.keyPrice]: '' })
130690
+ return
130691
+ }
130692
+ let v = this.safeNumber(rawVal, 0)
130494
130693
  if (v < 0) v = 0
130495
130694
  v = Number(v.toFixed(this.precision))
130496
130695
  this.priceInput = v
130497
130696
  this.emitChange({ [this.keyPrice]: v })
130498
130697
  },
130499
130698
 
130699
+ onBlur(e) {
130700
+ this.$emit('blur', e)
130701
+ },
130702
+
130500
130703
  onDelete() {
130501
130704
  this.$emit('delete', this.index)
130502
130705
  }
@@ -130515,8 +130718,8 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130515
130718
 
130516
130719
  var xt_step_price_item_component = normalizeComponent(
130517
130720
  components_xt_step_price_itemvue_type_script_lang_js,
130518
- xt_step_price_itemvue_type_template_id_0606a780_render,
130519
- xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns,
130721
+ xt_step_price_itemvue_type_template_id_579d80c1_render,
130722
+ xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns,
130520
130723
  false,
130521
130724
  null,
130522
130725
  null,
@@ -130534,6 +130737,12 @@ var xt_step_price_item_component = normalizeComponent(
130534
130737
 
130535
130738
  components: { XtStepPriceItem: xt_step_price_item },
130536
130739
 
130740
+ inject: {
130741
+ elFormItem: {
130742
+ default: ''
130743
+ }
130744
+ },
130745
+
130537
130746
  computed: {
130538
130747
  keyMin() { return (this.fieldKeys && this.fieldKeys.min) || 'min' },
130539
130748
  keyMax() { return (this.fieldKeys && this.fieldKeys.max) || 'max' },
@@ -130551,6 +130760,7 @@ var xt_step_price_item_component = normalizeComponent(
130551
130760
  },
130552
130761
  title: { type: String, default: '' },
130553
130762
  unit: { type: String, default: '元' },
130763
+ stepName: { type: String, default: '阶梯' },
130554
130764
  precision: { type: Number, default: 2 },
130555
130765
  // 左括号:默认 '[',传空字符串则不显示
130556
130766
  leftBracket: { type: String, default: '[' },
@@ -130600,11 +130810,14 @@ var xt_step_price_item_component = normalizeComponent(
130600
130810
 
130601
130811
  cloneItems(items) {
130602
130812
  if (!Array.isArray(items)) return []
130603
- return items.map((it) => ({
130604
- [this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
130605
- [this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
130606
- [this.keyPrice]: this.safeNumber(it && it[this.keyPrice], 0)
130607
- }))
130813
+ return items.map((it) => {
130814
+ const price = (it && it[this.keyPrice])
130815
+ return {
130816
+ [this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
130817
+ [this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
130818
+ [this.keyPrice]: (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
130819
+ }
130820
+ })
130608
130821
  },
130609
130822
 
130610
130823
  normalize(items) {
@@ -130629,12 +130842,14 @@ var xt_step_price_item_component = normalizeComponent(
130629
130842
  if (next) {
130630
130843
  let curMax = this.safeNumber(cur[this.keyMax], curMin + stepVal)
130631
130844
  if (curMax <= curMin) curMax = curMin + stepVal
130845
+ curMax = Number(curMax.toFixed(this.precision))
130632
130846
  cur[this.keyMax] = curMax
130633
130847
  next[this.keyMin] = curMax
130634
130848
  } else {
130635
130849
  cur[this.keyMax] = null
130636
130850
  }
130637
- cur[this.keyPrice] = this.safeNumber(cur[this.keyPrice], 0)
130851
+ const price = cur[this.keyPrice]
130852
+ cur[this.keyPrice] = (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
130638
130853
  }
130639
130854
  },
130640
130855
 
@@ -130643,18 +130858,127 @@ var xt_step_price_item_component = normalizeComponent(
130643
130858
  const cloned = this.cloneItems(this.localItems)
130644
130859
  this.$emit('input', cloned)
130645
130860
  this.$emit('change', cloned)
130861
+ this.dispatchFormEvent('el.form.change', cloned)
130862
+ },
130863
+
130864
+ dispatchFormEvent(eventName, value) {
130865
+ if (this.elFormItem) {
130866
+ this.elFormItem.$emit(eventName, value)
130867
+ }
130868
+ },
130869
+
130870
+ onFieldBlur() {
130871
+ this.dispatchFormEvent('el.form.blur', this.localItems)
130872
+ },
130873
+
130874
+ validate(callback) {
130875
+ const list = this.localItems
130876
+ if (!Array.isArray(list) || list.length === 0) {
130877
+ callback && callback(false, [{ field: 'stepPrice', message: `请配置${this.stepName}`, type: 'error' }])
130878
+ return false
130879
+ }
130880
+
130881
+ const errors = []
130882
+ for (let i = 0; i < list.length; i++) {
130883
+ const item = list[i]
130884
+ const rawPrice = item[this.keyPrice]
130885
+ const rawMin = item[this.keyMin]
130886
+ const rawMax = item[this.keyMax]
130887
+ const price = this.safeNumber(rawPrice, 0)
130888
+ const min = this.safeNumber(rawMin, 0)
130889
+
130890
+ if (rawPrice === null || rawPrice === undefined || rawPrice === '') {
130891
+ errors.push({
130892
+ field: `stepPrice[${i}].price`,
130893
+ message: `第${i + 1}${this.stepName}价格不能为空`,
130894
+ type: 'error'
130895
+ })
130896
+ } else if (price < 0) {
130897
+ errors.push({
130898
+ field: `stepPrice[${i}].price`,
130899
+ message: `第${i + 1}${this.stepName}价格不能为负数`,
130900
+ type: 'error'
130901
+ })
130902
+ }
130903
+
130904
+ if (rawMin === null || rawMin === undefined || rawMin === '') {
130905
+ errors.push({
130906
+ field: `stepPrice[${i}].min`,
130907
+ message: `第${i + 1}${this.stepName}下限不能为空`,
130908
+ type: 'error'
130909
+ })
130910
+ } else if (min < 0) {
130911
+ errors.push({
130912
+ field: `stepPrice[${i}].min`,
130913
+ message: `第${i + 1}${this.stepName}下限不能为负数`,
130914
+ type: 'error'
130915
+ })
130916
+ }
130917
+
130918
+ if (!this.isLast(i)) {
130919
+ if (rawMax === null || rawMax === undefined || rawMax === '') {
130920
+ errors.push({
130921
+ field: `stepPrice[${i}].max`,
130922
+ message: `第${i + 1}${this.stepName}上限不能为空`,
130923
+ type: 'error'
130924
+ })
130925
+ } else if (this.safeNumber(rawMax, 0) <= min) {
130926
+ errors.push({
130927
+ field: `stepPrice[${i}].max`,
130928
+ message: `第${i + 1}${this.stepName}上限必须大于下限`,
130929
+ type: 'error'
130930
+ })
130931
+ }
130932
+ }
130933
+
130934
+ if (i > 0) {
130935
+ const prev = list[i - 1]
130936
+ const prevMax = prev[this.keyMax]
130937
+ if (prevMax !== null && this.safeNumber(prevMax, 0) !== min) {
130938
+ errors.push({
130939
+ field: `stepPrice[${i}].min`,
130940
+ message: `第${i + 1}${this.stepName}下限必须等于上一${this.stepName}上限`,
130941
+ type: 'error'
130942
+ })
130943
+ }
130944
+ }
130945
+ }
130946
+
130947
+ if (errors.length > 0) {
130948
+ callback && callback(false, errors)
130949
+ return false
130950
+ }
130951
+
130952
+ callback && callback(true)
130953
+ return true
130954
+ },
130955
+
130956
+ isLast(idx) {
130957
+ return idx === this.localItems.length - 1
130646
130958
  },
130647
130959
 
130648
130960
  onItemInput(val, idx) {
130649
130961
  const cur = this.localItems[idx]
130650
130962
  if (!cur) return
130651
- if (val && val[this.keyPrice] !== undefined) cur[this.keyPrice] = this.safeNumber(val[this.keyPrice], 0)
130963
+ if (val && val[this.keyPrice] !== undefined) {
130964
+ const p = val[this.keyPrice]
130965
+ if (p === null || p === undefined || p === '') {
130966
+ cur[this.keyPrice] = ''
130967
+ } else {
130968
+ let num = this.safeNumber(p, 0)
130969
+ num = Number(num.toFixed(this.precision))
130970
+ cur[this.keyPrice] = num
130971
+ }
130972
+ this.emit()
130973
+ }
130652
130974
  },
130653
130975
 
130654
130976
  onMaxChange(val, idx) {
130655
130977
  const cur = this.localItems[idx]
130656
130978
  if (!cur) return
130657
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + 1)
130979
+ const stepVal = this.safeNumber(this.step, 1)
130980
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + stepVal)
130981
+ n = Number(n.toFixed(this.precision))
130658
130982
  cur[this.keyMax] = n
130659
130983
  const next = this.localItems[idx + 1]
130660
130984
  if (next) next[this.keyMin] = n
@@ -130667,7 +130991,10 @@ var xt_step_price_item_component = normalizeComponent(
130667
130991
  if (idx === 0) {
130668
130992
  cur[this.keyMin] = 0
130669
130993
  } else {
130670
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130994
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130995
+ if (n !== 0) {
130996
+ n = Number(n.toFixed(this.precision))
130997
+ }
130671
130998
  cur[this.keyMin] = n
130672
130999
  const prev = this.localItems[idx - 1]
130673
131000
  if (prev) prev[this.keyMax] = n
@@ -130697,15 +131024,8 @@ var xt_step_price_item_component = normalizeComponent(
130697
131024
  const newMin = this.safeNumber(last[this.keyMin], 0)
130698
131025
  const newMax = newMin + stepVal
130699
131026
 
130700
- // 新条 price:优先继承「倒数第二条」的 price,其次用末条 price(>0 时),否则默认 10
130701
- const prev = list[list.length - 2]
130702
- let newPrice = 10
130703
- if (prev) {
130704
- newPrice = this.safeNumber(prev[this.keyPrice], 10)
130705
- } else {
130706
- const lastPrice = this.safeNumber(last[this.keyPrice], 0)
130707
- newPrice = lastPrice > 0 ? lastPrice : 10
130708
- }
131027
+ // 新条 price:使用默认值,由用户自行填写
131028
+ let newPrice = 0
130709
131029
 
130710
131030
  const newArr = [
130711
131031
  ...list.slice(0, -1),
@@ -130757,8 +131077,8 @@ var xt_step_price_item_component = normalizeComponent(
130757
131077
 
130758
131078
  var xt_step_price_component = normalizeComponent(
130759
131079
  components_xt_step_pricevue_type_script_lang_js,
130760
- xt_step_pricevue_type_template_id_1fb68540_render,
130761
- xt_step_pricevue_type_template_id_1fb68540_staticRenderFns,
131080
+ xt_step_pricevue_type_template_id_10c6e331_render,
131081
+ xt_step_pricevue_type_template_id_10c6e331_staticRenderFns,
130762
131082
  false,
130763
131083
  null,
130764
131084
  null,
@@ -133688,13 +134008,13 @@ var xt_date_picker_component = normalizeComponent(
133688
134008
 
133689
134009
  /* harmony default export */ var xt_date_picker = (xt_date_picker_component.exports);
133690
134010
  // CONCATENATED MODULE: ./src/components/xt-date-picker/index.js
133691
-
133692
-
133693
- xt_date_picker.install = function (Vue) {
133694
- Vue.component(xt_date_picker.name, xt_date_picker)
133695
- }
133696
-
133697
- /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
134011
+
134012
+
134013
+ xt_date_picker.install = function (Vue) {
134014
+ Vue.component(xt_date_picker.name, xt_date_picker)
134015
+ }
134016
+
134017
+ /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
133698
134018
 
133699
134019
  // 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
133700
134020
  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()
@@ -134749,13 +135069,13 @@ var xt_chart_component = normalizeComponent(
134749
135069
 
134750
135070
  /* harmony default export */ var xt_chart = (xt_chart_component.exports);
134751
135071
  // CONCATENATED MODULE: ./src/components/xt-chart/index.js
134752
-
134753
-
134754
- xt_chart.install = function (Vue) {
134755
- Vue.component(xt_chart.name, xt_chart)
134756
- }
134757
-
134758
- /* harmony default export */ var components_xt_chart = (xt_chart);
135072
+
135073
+
135074
+ xt_chart.install = function (Vue) {
135075
+ Vue.component(xt_chart.name, xt_chart)
135076
+ }
135077
+
135078
+ /* harmony default export */ var components_xt_chart = (xt_chart);
134759
135079
 
134760
135080
  // 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
134761
135081
  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)
@@ -134927,13 +135247,13 @@ var xt_icon_component = normalizeComponent(
134927
135247
 
134928
135248
  /* harmony default export */ var xt_icon = (xt_icon_component.exports);
134929
135249
  // CONCATENATED MODULE: ./src/components/xt-icon/index.js
134930
-
134931
-
134932
- xt_icon.install = function (Vue) {
134933
- Vue.component(xt_icon.name, xt_icon)
134934
- }
134935
-
134936
- /* harmony default export */ var components_xt_icon = (xt_icon);
135250
+
135251
+
135252
+ xt_icon.install = function (Vue) {
135253
+ Vue.component(xt_icon.name, xt_icon)
135254
+ }
135255
+
135256
+ /* harmony default export */ var components_xt_icon = (xt_icon);
134937
135257
 
134938
135258
  // 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
134939
135259
  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()])
@@ -135590,13 +135910,13 @@ var xt_table_component = normalizeComponent(
135590
135910
 
135591
135911
  /* harmony default export */ var xt_table = (xt_table_component.exports);
135592
135912
  // CONCATENATED MODULE: ./src/components/xt-table/index.js
135593
-
135594
-
135595
- xt_table.install = function (Vue) {
135596
- Vue.component(xt_table.name, xt_table)
135597
- }
135598
-
135599
- /* harmony default export */ var components_xt_table = (xt_table);
135913
+
135914
+
135915
+ xt_table.install = function (Vue) {
135916
+ Vue.component(xt_table.name, xt_table)
135917
+ }
135918
+
135919
+ /* harmony default export */ var components_xt_table = (xt_table);
135600
135920
 
135601
135921
  // CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
135602
135922
  /**