xt-element-ui 2.0.0 → 2.0.1

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,13 +129119,13 @@ 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
+
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
129129
 
129130
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
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:[
@@ -129369,12 +129369,12 @@ var xt_card_component = normalizeComponent(
129369
129369
 
129370
129370
  /* harmony default export */ var xt_card = (xt_card_component.exports);
129371
129371
  // 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
-
129372
+
129373
+
129374
+ xt_card.install = function (Vue) {
129375
+ Vue.component(xt_card.name, xt_card)
129376
+ }
129377
+
129378
129378
  /* harmony default export */ var components_xt_card = (xt_card);
129379
129379
  // 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
129380
  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 +129824,15 @@ xt_config_provider.install = function (Vue) {
129824
129824
  /* harmony default export */ var components_xt_config_provider = (xt_config_provider);
129825
129825
 
129826
129826
 
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:[
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=7f658496
129828
+ 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:[
129829
+ _vm.type ? 'xt-text--' + _vm.type : '',
129830
+ 'xt-text--' + _vm.size,
129831
+ { 'xt-text--bold': _vm.bold },
129832
+ { 'xt-text--money': _vm.format === 'money' },
129833
+ { 'xt-text--ellipsis': _vm.ellipsis },
129834
+ { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129835
+ ],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
129836
  _vm.type ? 'xt-text--' + _vm.type : '',
129830
129837
  'xt-text--' + _vm.size,
129831
129838
  { 'xt-text--bold': _vm.bold },
@@ -129834,10 +129841,10 @@ var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this
129834
129841
  { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129835
129842
  ],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
129843
  }
129837
- var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129844
+ var xt_textvue_type_template_id_7f658496_staticRenderFns = []
129838
129845
 
129839
129846
 
129840
- // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7abe6280
129847
+ // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7f658496
129841
129848
 
129842
129849
  // 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
129850
 
@@ -129875,6 +129882,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129875
129882
  default: 1,
129876
129883
  validator: (val) => val >= 1 && val <= 10
129877
129884
  },
129885
+ showTooltip: {
129886
+ type: Boolean,
129887
+ default: true
129888
+ },
129889
+ tooltipPlacement: {
129890
+ type: String,
129891
+ default: 'top',
129892
+ validator: (val) => ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'].includes(val)
129893
+ },
129894
+ tooltipContent: {
129895
+ type: String,
129896
+ default: ''
129897
+ },
129878
129898
 
129879
129899
  // 格式化模式:normal 普通 | thousand 千分位 | money 金额
129880
129900
  format: {
@@ -129919,6 +129939,11 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129919
129939
  default: ''
129920
129940
  }
129921
129941
  },
129942
+ data() {
129943
+ return {
129944
+ isOverflow: false
129945
+ }
129946
+ },
129922
129947
  computed: {
129923
129948
  // 兼容旧 money 属性:如果传了 money=true,自动切为金额模式
129924
129949
  realFormat() {
@@ -129936,6 +129961,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129936
129961
  return style
129937
129962
  },
129938
129963
 
129964
+ displayTooltipContent() {
129965
+ if (this.tooltipContent) {
129966
+ return this.tooltipContent
129967
+ }
129968
+ if (this.formattedValue !== undefined) {
129969
+ return this.formattedValue
129970
+ }
129971
+ if (this.$slots.default && this.$slots.default.length > 0) {
129972
+ return this.extractSlotText(this.$slots.default)
129973
+ }
129974
+ return this.value
129975
+ },
129976
+
129939
129977
  formattedValue() {
129940
129978
  const fmt = this.realFormat
129941
129979
  const { value } = this
@@ -129984,6 +130022,75 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129984
130022
  return value
129985
130023
  }
129986
130024
  }
130025
+ },
130026
+ methods: {
130027
+ handleMouseEnter() {
130028
+ this.checkOverflow()
130029
+ },
130030
+ checkOverflow() {
130031
+ const el = this.$refs.textRef
130032
+ if (!el) {
130033
+ this.isOverflow = false
130034
+ return
130035
+ }
130036
+
130037
+ if (this.ellipsisRows > 1) {
130038
+ this.isOverflow = el.scrollHeight > el.clientHeight
130039
+ } else {
130040
+ this.isOverflow = el.scrollWidth > el.clientWidth
130041
+ }
130042
+ },
130043
+ extractSlotText(nodes) {
130044
+ let text = ''
130045
+ nodes.forEach(node => {
130046
+ if (typeof node.children === 'string') {
130047
+ text += node.children
130048
+ } else if (typeof node.text === 'string') {
130049
+ text += node.text
130050
+ } else if (node.children && Array.isArray(node.children)) {
130051
+ text += this.extractSlotText(node.children)
130052
+ }
130053
+ })
130054
+ return text.trim()
130055
+ }
130056
+ },
130057
+ mounted() {
130058
+ if (this.ellipsis && this.showTooltip) {
130059
+ this.$nextTick(() => {
130060
+ this.checkOverflow()
130061
+ })
130062
+ }
130063
+ this._resizeObserver = new ResizeObserver(() => {
130064
+ if (this.ellipsis && this.showTooltip) {
130065
+ this.checkOverflow()
130066
+ }
130067
+ })
130068
+ this.$nextTick(() => {
130069
+ if (this.$refs.textRef) {
130070
+ this._resizeObserver.observe(this.$refs.textRef)
130071
+ }
130072
+ })
130073
+ },
130074
+ beforeDestroy() {
130075
+ if (this._resizeObserver) {
130076
+ this._resizeObserver.disconnect()
130077
+ }
130078
+ },
130079
+ watch: {
130080
+ value() {
130081
+ if (this.ellipsis && this.showTooltip) {
130082
+ this.$nextTick(() => {
130083
+ this.checkOverflow()
130084
+ })
130085
+ }
130086
+ },
130087
+ ellipsis(newVal) {
130088
+ if (newVal && this.showTooltip) {
130089
+ this.$nextTick(() => {
130090
+ this.checkOverflow()
130091
+ })
130092
+ }
130093
+ }
129987
130094
  }
129988
130095
  });
129989
130096
 
@@ -129999,8 +130106,8 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129999
130106
 
130000
130107
  var xt_text_component = normalizeComponent(
130001
130108
  components_xt_textvue_type_script_lang_js,
130002
- xt_textvue_type_template_id_7abe6280_render,
130003
- xt_textvue_type_template_id_7abe6280_staticRenderFns,
130109
+ xt_textvue_type_template_id_7f658496_render,
130110
+ xt_textvue_type_template_id_7f658496_staticRenderFns,
130004
130111
  false,
130005
130112
  null,
130006
130113
  null,
@@ -130340,21 +130447,21 @@ xt_time.install = function (Vue) {
130340
130447
  /* harmony default export */ var components_xt_time = (xt_time);
130341
130448
 
130342
130449
 
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()])
130450
+ // 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=f2b8f37c
130451
+ var xt_step_pricevue_type_template_id_f2b8f37c_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()])
130345
130452
  }
130346
- var xt_step_pricevue_type_template_id_1fb68540_staticRenderFns = []
130453
+ var xt_step_pricevue_type_template_id_f2b8f37c_staticRenderFns = []
130347
130454
 
130348
130455
 
130349
- // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=1fb68540
130456
+ // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=f2b8f37c
130350
130457
 
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)
130458
+ // 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=8baafa30
130459
+ var xt_step_price_itemvue_type_template_id_8baafa30_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)
130353
130460
  }
130354
- var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130461
+ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
130355
130462
 
130356
130463
 
130357
- // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=0606a780
130464
+ // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=8baafa30
130358
130465
 
130359
130466
  // 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
130467
 
@@ -130464,7 +130571,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130464
130571
  },
130465
130572
 
130466
130573
  onMinBlur() {
130467
- const v = this.safeNumber(this.minInput, 0)
130574
+ let v = this.safeNumber(this.minInput, 0)
130575
+ if (v !== 0) {
130576
+ v = Number(v.toFixed(this.precision))
130577
+ }
130468
130578
  this.minInput = v
130469
130579
  this.$emit('min-change', v, this.index)
130470
130580
  this.emitChange({ [this.keyMin]: v })
@@ -130473,8 +130583,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130473
130583
  onMaxBlur() {
130474
130584
  if (this.isLast) return
130475
130585
  const minVal = this.safeNumber(this.minInput, 0)
130476
- let v = this.safeNumber(this.maxInput, minVal + 1)
130477
- if (v <= minVal) v = minVal + 1
130586
+ const stepVal = this.safeNumber(this.step, 1)
130587
+ let v = this.safeNumber(this.maxInput, minVal + stepVal)
130588
+ if (v <= minVal) v = minVal + stepVal
130589
+ v = Number(v.toFixed(this.precision))
130478
130590
  this.maxInput = v
130479
130591
  this.$emit('max-change', v, this.index)
130480
130592
  this.emitChange({ [this.keyMax]: v })
@@ -130506,8 +130618,8 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130506
130618
 
130507
130619
  var xt_step_price_item_component = normalizeComponent(
130508
130620
  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,
130621
+ xt_step_price_itemvue_type_template_id_8baafa30_render,
130622
+ xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns,
130511
130623
  false,
130512
130624
  null,
130513
130625
  null,
@@ -130620,6 +130732,7 @@ var xt_step_price_item_component = normalizeComponent(
130620
130732
  if (next) {
130621
130733
  let curMax = this.safeNumber(cur[this.keyMax], curMin + stepVal)
130622
130734
  if (curMax <= curMin) curMax = curMin + stepVal
130735
+ curMax = Number(curMax.toFixed(this.precision))
130623
130736
  cur[this.keyMax] = curMax
130624
130737
  next[this.keyMin] = curMax
130625
130738
  } else {
@@ -130639,13 +130752,19 @@ var xt_step_price_item_component = normalizeComponent(
130639
130752
  onItemInput(val, idx) {
130640
130753
  const cur = this.localItems[idx]
130641
130754
  if (!cur) return
130642
- if (val && val[this.keyPrice] !== undefined) cur[this.keyPrice] = this.safeNumber(val[this.keyPrice], 0)
130755
+ if (val && val[this.keyPrice] !== undefined) {
130756
+ let p = this.safeNumber(val[this.keyPrice], 0)
130757
+ p = Number(p.toFixed(this.precision))
130758
+ cur[this.keyPrice] = p
130759
+ }
130643
130760
  },
130644
130761
 
130645
130762
  onMaxChange(val, idx) {
130646
130763
  const cur = this.localItems[idx]
130647
130764
  if (!cur) return
130648
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + 1)
130765
+ const stepVal = this.safeNumber(this.step, 1)
130766
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + stepVal)
130767
+ n = Number(n.toFixed(this.precision))
130649
130768
  cur[this.keyMax] = n
130650
130769
  const next = this.localItems[idx + 1]
130651
130770
  if (next) next[this.keyMin] = n
@@ -130658,7 +130777,10 @@ var xt_step_price_item_component = normalizeComponent(
130658
130777
  if (idx === 0) {
130659
130778
  cur[this.keyMin] = 0
130660
130779
  } else {
130661
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130780
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130781
+ if (n !== 0) {
130782
+ n = Number(n.toFixed(this.precision))
130783
+ }
130662
130784
  cur[this.keyMin] = n
130663
130785
  const prev = this.localItems[idx - 1]
130664
130786
  if (prev) prev[this.keyMax] = n
@@ -130748,8 +130870,8 @@ var xt_step_price_item_component = normalizeComponent(
130748
130870
 
130749
130871
  var xt_step_price_component = normalizeComponent(
130750
130872
  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,
130873
+ xt_step_pricevue_type_template_id_f2b8f37c_render,
130874
+ xt_step_pricevue_type_template_id_f2b8f37c_staticRenderFns,
130753
130875
  false,
130754
130876
  null,
130755
130877
  null,
@@ -133679,13 +133801,13 @@ var xt_date_picker_component = normalizeComponent(
133679
133801
 
133680
133802
  /* harmony default export */ var xt_date_picker = (xt_date_picker_component.exports);
133681
133803
  // 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);
133804
+
133805
+
133806
+ xt_date_picker.install = function (Vue) {
133807
+ Vue.component(xt_date_picker.name, xt_date_picker)
133808
+ }
133809
+
133810
+ /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
133689
133811
 
133690
133812
  // 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
133813
  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 +134862,13 @@ var xt_chart_component = normalizeComponent(
134740
134862
 
134741
134863
  /* harmony default export */ var xt_chart = (xt_chart_component.exports);
134742
134864
  // 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);
134865
+
134866
+
134867
+ xt_chart.install = function (Vue) {
134868
+ Vue.component(xt_chart.name, xt_chart)
134869
+ }
134870
+
134871
+ /* harmony default export */ var components_xt_chart = (xt_chart);
134750
134872
 
134751
134873
  // 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
134874
  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 +135040,13 @@ var xt_icon_component = normalizeComponent(
134918
135040
 
134919
135041
  /* harmony default export */ var xt_icon = (xt_icon_component.exports);
134920
135042
  // 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);
135043
+
135044
+
135045
+ xt_icon.install = function (Vue) {
135046
+ Vue.component(xt_icon.name, xt_icon)
135047
+ }
135048
+
135049
+ /* harmony default export */ var components_xt_icon = (xt_icon);
134928
135050
 
134929
135051
  // 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
135052
  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 +135703,13 @@ var xt_table_component = normalizeComponent(
135581
135703
 
135582
135704
  /* harmony default export */ var xt_table = (xt_table_component.exports);
135583
135705
  // 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);
135706
+
135707
+
135708
+ xt_table.install = function (Vue) {
135709
+ Vue.component(xt_table.name, xt_table)
135710
+ }
135711
+
135712
+ /* harmony default export */ var components_xt_table = (xt_table);
135591
135713
 
135592
135714
  // CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
135593
135715
  /**