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.
package/lib/index.umd.js CHANGED
@@ -129128,13 +129128,13 @@ 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
+
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
129138
 
129139
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
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:[
@@ -129378,12 +129378,12 @@ var xt_card_component = normalizeComponent(
129378
129378
 
129379
129379
  /* harmony default export */ var xt_card = (xt_card_component.exports);
129380
129380
  // 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
-
129381
+
129382
+
129383
+ xt_card.install = function (Vue) {
129384
+ Vue.component(xt_card.name, xt_card)
129385
+ }
129386
+
129387
129387
  /* harmony default export */ var components_xt_card = (xt_card);
129388
129388
  // 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
129389
  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 +129833,15 @@ xt_config_provider.install = function (Vue) {
129833
129833
  /* harmony default export */ var components_xt_config_provider = (xt_config_provider);
129834
129834
 
129835
129835
 
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:[
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=7f658496
129837
+ 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:[
129838
+ _vm.type ? 'xt-text--' + _vm.type : '',
129839
+ 'xt-text--' + _vm.size,
129840
+ { 'xt-text--bold': _vm.bold },
129841
+ { 'xt-text--money': _vm.format === 'money' },
129842
+ { 'xt-text--ellipsis': _vm.ellipsis },
129843
+ { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129844
+ ],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
129845
  _vm.type ? 'xt-text--' + _vm.type : '',
129839
129846
  'xt-text--' + _vm.size,
129840
129847
  { 'xt-text--bold': _vm.bold },
@@ -129843,10 +129850,10 @@ var xt_textvue_type_template_id_7abe6280_render = function render(){var _vm=this
129843
129850
  { 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
129844
129851
  ],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
129852
  }
129846
- var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129853
+ var xt_textvue_type_template_id_7f658496_staticRenderFns = []
129847
129854
 
129848
129855
 
129849
- // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7abe6280
129856
+ // CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=7f658496
129850
129857
 
129851
129858
  // 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
129859
 
@@ -129884,6 +129891,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129884
129891
  default: 1,
129885
129892
  validator: (val) => val >= 1 && val <= 10
129886
129893
  },
129894
+ showTooltip: {
129895
+ type: Boolean,
129896
+ default: true
129897
+ },
129898
+ tooltipPlacement: {
129899
+ type: String,
129900
+ default: 'top',
129901
+ validator: (val) => ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'].includes(val)
129902
+ },
129903
+ tooltipContent: {
129904
+ type: String,
129905
+ default: ''
129906
+ },
129887
129907
 
129888
129908
  // 格式化模式:normal 普通 | thousand 千分位 | money 金额
129889
129909
  format: {
@@ -129928,6 +129948,11 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129928
129948
  default: ''
129929
129949
  }
129930
129950
  },
129951
+ data() {
129952
+ return {
129953
+ isOverflow: false
129954
+ }
129955
+ },
129931
129956
  computed: {
129932
129957
  // 兼容旧 money 属性:如果传了 money=true,自动切为金额模式
129933
129958
  realFormat() {
@@ -129945,6 +129970,19 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129945
129970
  return style
129946
129971
  },
129947
129972
 
129973
+ displayTooltipContent() {
129974
+ if (this.tooltipContent) {
129975
+ return this.tooltipContent
129976
+ }
129977
+ if (this.formattedValue !== undefined) {
129978
+ return this.formattedValue
129979
+ }
129980
+ if (this.$slots.default && this.$slots.default.length > 0) {
129981
+ return this.extractSlotText(this.$slots.default)
129982
+ }
129983
+ return this.value
129984
+ },
129985
+
129948
129986
  formattedValue() {
129949
129987
  const fmt = this.realFormat
129950
129988
  const { value } = this
@@ -129993,6 +130031,75 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
129993
130031
  return value
129994
130032
  }
129995
130033
  }
130034
+ },
130035
+ methods: {
130036
+ handleMouseEnter() {
130037
+ this.checkOverflow()
130038
+ },
130039
+ checkOverflow() {
130040
+ const el = this.$refs.textRef
130041
+ if (!el) {
130042
+ this.isOverflow = false
130043
+ return
130044
+ }
130045
+
130046
+ if (this.ellipsisRows > 1) {
130047
+ this.isOverflow = el.scrollHeight > el.clientHeight
130048
+ } else {
130049
+ this.isOverflow = el.scrollWidth > el.clientWidth
130050
+ }
130051
+ },
130052
+ extractSlotText(nodes) {
130053
+ let text = ''
130054
+ nodes.forEach(node => {
130055
+ if (typeof node.children === 'string') {
130056
+ text += node.children
130057
+ } else if (typeof node.text === 'string') {
130058
+ text += node.text
130059
+ } else if (node.children && Array.isArray(node.children)) {
130060
+ text += this.extractSlotText(node.children)
130061
+ }
130062
+ })
130063
+ return text.trim()
130064
+ }
130065
+ },
130066
+ mounted() {
130067
+ if (this.ellipsis && this.showTooltip) {
130068
+ this.$nextTick(() => {
130069
+ this.checkOverflow()
130070
+ })
130071
+ }
130072
+ this._resizeObserver = new ResizeObserver(() => {
130073
+ if (this.ellipsis && this.showTooltip) {
130074
+ this.checkOverflow()
130075
+ }
130076
+ })
130077
+ this.$nextTick(() => {
130078
+ if (this.$refs.textRef) {
130079
+ this._resizeObserver.observe(this.$refs.textRef)
130080
+ }
130081
+ })
130082
+ },
130083
+ beforeDestroy() {
130084
+ if (this._resizeObserver) {
130085
+ this._resizeObserver.disconnect()
130086
+ }
130087
+ },
130088
+ watch: {
130089
+ value() {
130090
+ if (this.ellipsis && this.showTooltip) {
130091
+ this.$nextTick(() => {
130092
+ this.checkOverflow()
130093
+ })
130094
+ }
130095
+ },
130096
+ ellipsis(newVal) {
130097
+ if (newVal && this.showTooltip) {
130098
+ this.$nextTick(() => {
130099
+ this.checkOverflow()
130100
+ })
130101
+ }
130102
+ }
129996
130103
  }
129997
130104
  });
129998
130105
 
@@ -130008,8 +130115,8 @@ var xt_textvue_type_template_id_7abe6280_staticRenderFns = []
130008
130115
 
130009
130116
  var xt_text_component = normalizeComponent(
130010
130117
  components_xt_textvue_type_script_lang_js,
130011
- xt_textvue_type_template_id_7abe6280_render,
130012
- xt_textvue_type_template_id_7abe6280_staticRenderFns,
130118
+ xt_textvue_type_template_id_7f658496_render,
130119
+ xt_textvue_type_template_id_7f658496_staticRenderFns,
130013
130120
  false,
130014
130121
  null,
130015
130122
  null,
@@ -130349,21 +130456,21 @@ xt_time.install = function (Vue) {
130349
130456
  /* harmony default export */ var components_xt_time = (xt_time);
130350
130457
 
130351
130458
 
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()])
130459
+ // 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
130460
+ 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()])
130354
130461
  }
130355
- var xt_step_pricevue_type_template_id_1fb68540_staticRenderFns = []
130462
+ var xt_step_pricevue_type_template_id_f2b8f37c_staticRenderFns = []
130356
130463
 
130357
130464
 
130358
- // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=1fb68540
130465
+ // CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=f2b8f37c
130359
130466
 
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)
130467
+ // 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
130468
+ 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)
130362
130469
  }
130363
- var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130470
+ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
130364
130471
 
130365
130472
 
130366
- // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=0606a780
130473
+ // CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=8baafa30
130367
130474
 
130368
130475
  // 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
130476
 
@@ -130473,7 +130580,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130473
130580
  },
130474
130581
 
130475
130582
  onMinBlur() {
130476
- const v = this.safeNumber(this.minInput, 0)
130583
+ let v = this.safeNumber(this.minInput, 0)
130584
+ if (v !== 0) {
130585
+ v = Number(v.toFixed(this.precision))
130586
+ }
130477
130587
  this.minInput = v
130478
130588
  this.$emit('min-change', v, this.index)
130479
130589
  this.emitChange({ [this.keyMin]: v })
@@ -130482,8 +130592,10 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130482
130592
  onMaxBlur() {
130483
130593
  if (this.isLast) return
130484
130594
  const minVal = this.safeNumber(this.minInput, 0)
130485
- let v = this.safeNumber(this.maxInput, minVal + 1)
130486
- if (v <= minVal) v = minVal + 1
130595
+ const stepVal = this.safeNumber(this.step, 1)
130596
+ let v = this.safeNumber(this.maxInput, minVal + stepVal)
130597
+ if (v <= minVal) v = minVal + stepVal
130598
+ v = Number(v.toFixed(this.precision))
130487
130599
  this.maxInput = v
130488
130600
  this.$emit('max-change', v, this.index)
130489
130601
  this.emitChange({ [this.keyMax]: v })
@@ -130515,8 +130627,8 @@ var xt_step_price_itemvue_type_template_id_0606a780_staticRenderFns = []
130515
130627
 
130516
130628
  var xt_step_price_item_component = normalizeComponent(
130517
130629
  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,
130630
+ xt_step_price_itemvue_type_template_id_8baafa30_render,
130631
+ xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns,
130520
130632
  false,
130521
130633
  null,
130522
130634
  null,
@@ -130629,6 +130741,7 @@ var xt_step_price_item_component = normalizeComponent(
130629
130741
  if (next) {
130630
130742
  let curMax = this.safeNumber(cur[this.keyMax], curMin + stepVal)
130631
130743
  if (curMax <= curMin) curMax = curMin + stepVal
130744
+ curMax = Number(curMax.toFixed(this.precision))
130632
130745
  cur[this.keyMax] = curMax
130633
130746
  next[this.keyMin] = curMax
130634
130747
  } else {
@@ -130648,13 +130761,19 @@ var xt_step_price_item_component = normalizeComponent(
130648
130761
  onItemInput(val, idx) {
130649
130762
  const cur = this.localItems[idx]
130650
130763
  if (!cur) return
130651
- if (val && val[this.keyPrice] !== undefined) cur[this.keyPrice] = this.safeNumber(val[this.keyPrice], 0)
130764
+ if (val && val[this.keyPrice] !== undefined) {
130765
+ let p = this.safeNumber(val[this.keyPrice], 0)
130766
+ p = Number(p.toFixed(this.precision))
130767
+ cur[this.keyPrice] = p
130768
+ }
130652
130769
  },
130653
130770
 
130654
130771
  onMaxChange(val, idx) {
130655
130772
  const cur = this.localItems[idx]
130656
130773
  if (!cur) return
130657
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + 1)
130774
+ const stepVal = this.safeNumber(this.step, 1)
130775
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0) + stepVal)
130776
+ n = Number(n.toFixed(this.precision))
130658
130777
  cur[this.keyMax] = n
130659
130778
  const next = this.localItems[idx + 1]
130660
130779
  if (next) next[this.keyMin] = n
@@ -130667,7 +130786,10 @@ var xt_step_price_item_component = normalizeComponent(
130667
130786
  if (idx === 0) {
130668
130787
  cur[this.keyMin] = 0
130669
130788
  } else {
130670
- const n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130789
+ let n = this.safeNumber(val, this.safeNumber(cur[this.keyMin], 0))
130790
+ if (n !== 0) {
130791
+ n = Number(n.toFixed(this.precision))
130792
+ }
130671
130793
  cur[this.keyMin] = n
130672
130794
  const prev = this.localItems[idx - 1]
130673
130795
  if (prev) prev[this.keyMax] = n
@@ -130757,8 +130879,8 @@ var xt_step_price_item_component = normalizeComponent(
130757
130879
 
130758
130880
  var xt_step_price_component = normalizeComponent(
130759
130881
  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,
130882
+ xt_step_pricevue_type_template_id_f2b8f37c_render,
130883
+ xt_step_pricevue_type_template_id_f2b8f37c_staticRenderFns,
130762
130884
  false,
130763
130885
  null,
130764
130886
  null,
@@ -133688,13 +133810,13 @@ var xt_date_picker_component = normalizeComponent(
133688
133810
 
133689
133811
  /* harmony default export */ var xt_date_picker = (xt_date_picker_component.exports);
133690
133812
  // 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);
133813
+
133814
+
133815
+ xt_date_picker.install = function (Vue) {
133816
+ Vue.component(xt_date_picker.name, xt_date_picker)
133817
+ }
133818
+
133819
+ /* harmony default export */ var components_xt_date_picker = (xt_date_picker);
133698
133820
 
133699
133821
  // 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
133822
  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 +134871,13 @@ var xt_chart_component = normalizeComponent(
134749
134871
 
134750
134872
  /* harmony default export */ var xt_chart = (xt_chart_component.exports);
134751
134873
  // 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);
134874
+
134875
+
134876
+ xt_chart.install = function (Vue) {
134877
+ Vue.component(xt_chart.name, xt_chart)
134878
+ }
134879
+
134880
+ /* harmony default export */ var components_xt_chart = (xt_chart);
134759
134881
 
134760
134882
  // 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
134883
  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 +135049,13 @@ var xt_icon_component = normalizeComponent(
134927
135049
 
134928
135050
  /* harmony default export */ var xt_icon = (xt_icon_component.exports);
134929
135051
  // 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);
135052
+
135053
+
135054
+ xt_icon.install = function (Vue) {
135055
+ Vue.component(xt_icon.name, xt_icon)
135056
+ }
135057
+
135058
+ /* harmony default export */ var components_xt_icon = (xt_icon);
134937
135059
 
134938
135060
  // 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
135061
  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 +135712,13 @@ var xt_table_component = normalizeComponent(
135590
135712
 
135591
135713
  /* harmony default export */ var xt_table = (xt_table_component.exports);
135592
135714
  // 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);
135715
+
135716
+
135717
+ xt_table.install = function (Vue) {
135718
+ Vue.component(xt_table.name, xt_table)
135719
+ }
135720
+
135721
+ /* harmony default export */ var components_xt_table = (xt_table);
135600
135722
 
135601
135723
  // CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
135602
135724
  /**