xt-element-ui 2.0.1 → 2.0.3
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/docs/README.md +2 -1
- package/docs/components/base/xt-badge.md +2 -2
- package/docs/components/base/xt-scroll-arrow.md +155 -0
- package/lib/index.common.js +455 -64
- package/lib/index.css +1 -1
- package/lib/index.umd.js +455 -64
- package/lib/index.umd.min.js +4 -4
- package/package.json +3 -2
- package/src/components/index.scss +4 -1
- package/src/components/xt-input/index.vue +86 -6
- package/src/components/xt-scroll-arrow/index.js +8 -0
- package/src/components/xt-scroll-arrow/index.vue +190 -0
- package/src/components/xt-scroll-arrow/style/index.scss +89 -0
- package/src/components/xt-step-price/index.vue +129 -20
- package/src/components/xt-step-price-item/index.vue +18 -5
- package/src/index.js +5 -2
package/lib/index.common.js
CHANGED
|
@@ -128932,7 +128932,7 @@ const onConfigChange = function(listener) {
|
|
|
128932
128932
|
onConfigChange
|
|
128933
128933
|
});
|
|
128934
128934
|
|
|
128935
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
128935
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-button/index.vue?vue&type=template&id=153fd404
|
|
128936
128936
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-button',_vm._b({staticClass:"ex-button",class:_vm.buttonClasses,on:{"click":_vm.handleClick}},'el-button',_vm.$attrs,false),[_vm._t("default")],2)
|
|
128937
128937
|
}
|
|
128938
128938
|
var staticRenderFns = []
|
|
@@ -129127,16 +129127,16 @@ xt_button.install = function (Vue) {
|
|
|
129127
129127
|
|
|
129128
129128
|
/* harmony default export */ var components_xt_button = (xt_button);
|
|
129129
129129
|
|
|
129130
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129131
|
-
var
|
|
129130
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
|
|
129131
|
+
var xt_inputvue_type_template_id_6c337ae4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
|
|
129132
129132
|
_vm.size ? 'xt-input--' + _vm.size : '',
|
|
129133
129133
|
{ 'is-disabled': _vm.disabled }
|
|
129134
|
-
]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.
|
|
129134
|
+
]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.displayValue,"placeholder":_vm.placeholder,"type":_vm.isNumberType ? 'text' : _vm.type,"size":_vm.size,"disabled":_vm.disabled,"readonly":_vm.readonly},on:{"input":_vm.handleInput,"change":_vm.handleChange,"focus":_vm.handleFocus,"blur":_vm.handleBlur}})],1)
|
|
129135
129135
|
}
|
|
129136
|
-
var
|
|
129136
|
+
var xt_inputvue_type_template_id_6c337ae4_staticRenderFns = []
|
|
129137
129137
|
|
|
129138
129138
|
|
|
129139
|
-
// CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=
|
|
129139
|
+
// CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
|
|
129140
129140
|
|
|
129141
129141
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=script&lang=js
|
|
129142
129142
|
|
|
@@ -129169,7 +129169,22 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129169
129169
|
default: ''
|
|
129170
129170
|
}
|
|
129171
129171
|
},
|
|
129172
|
+
data() {
|
|
129173
|
+
return {
|
|
129174
|
+
currentStr: '',
|
|
129175
|
+
isFocused: false
|
|
129176
|
+
}
|
|
129177
|
+
},
|
|
129172
129178
|
computed: {
|
|
129179
|
+
isNumberType() {
|
|
129180
|
+
return this.type === 'number'
|
|
129181
|
+
},
|
|
129182
|
+
displayValue() {
|
|
129183
|
+
if (this.isNumberType) {
|
|
129184
|
+
return this.currentStr
|
|
129185
|
+
}
|
|
129186
|
+
return this.value
|
|
129187
|
+
},
|
|
129173
129188
|
inputStyle() {
|
|
129174
129189
|
if (this.color) {
|
|
129175
129190
|
return {
|
|
@@ -129178,6 +129193,71 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129178
129193
|
}
|
|
129179
129194
|
return {}
|
|
129180
129195
|
}
|
|
129196
|
+
},
|
|
129197
|
+
watch: {
|
|
129198
|
+
value: {
|
|
129199
|
+
immediate: true,
|
|
129200
|
+
handler(val) {
|
|
129201
|
+
if (this.isNumberType && !this.isFocused) {
|
|
129202
|
+
this.currentStr = val === null || val === undefined || val === '' ? '' : String(val)
|
|
129203
|
+
}
|
|
129204
|
+
}
|
|
129205
|
+
}
|
|
129206
|
+
},
|
|
129207
|
+
methods: {
|
|
129208
|
+
isValidNumber(str) {
|
|
129209
|
+
return /^[+-]?\d*\.?\d*$/.test(str)
|
|
129210
|
+
},
|
|
129211
|
+
handleInput(val) {
|
|
129212
|
+
if (this.isNumberType) {
|
|
129213
|
+
if (this.isValidNumber(val)) {
|
|
129214
|
+
this.currentStr = val
|
|
129215
|
+
const num = this.parseToNumber(val)
|
|
129216
|
+
if (num !== undefined) {
|
|
129217
|
+
this.$emit('input', num)
|
|
129218
|
+
}
|
|
129219
|
+
}
|
|
129220
|
+
} else {
|
|
129221
|
+
this.$emit('input', val)
|
|
129222
|
+
}
|
|
129223
|
+
},
|
|
129224
|
+
handleChange(val) {
|
|
129225
|
+
if (this.isNumberType) {
|
|
129226
|
+
const num = this.parseToNumber(val)
|
|
129227
|
+
this.$emit('change', num)
|
|
129228
|
+
} else {
|
|
129229
|
+
this.$emit('change', val)
|
|
129230
|
+
}
|
|
129231
|
+
},
|
|
129232
|
+
handleFocus(e) {
|
|
129233
|
+
this.isFocused = true
|
|
129234
|
+
this.$emit('focus', e)
|
|
129235
|
+
},
|
|
129236
|
+
handleBlur(e) {
|
|
129237
|
+
this.isFocused = false
|
|
129238
|
+
if (this.isNumberType) {
|
|
129239
|
+
const num = this.parseToNumber(this.currentStr)
|
|
129240
|
+
this.$emit('blur', num, e)
|
|
129241
|
+
if (num !== undefined) {
|
|
129242
|
+
this.currentStr = String(num)
|
|
129243
|
+
this.$emit('input', num)
|
|
129244
|
+
} else {
|
|
129245
|
+
if (this.currentStr !== '') {
|
|
129246
|
+
this.currentStr = ''
|
|
129247
|
+
this.$emit('input', undefined)
|
|
129248
|
+
}
|
|
129249
|
+
}
|
|
129250
|
+
} else {
|
|
129251
|
+
this.$emit('blur', e)
|
|
129252
|
+
}
|
|
129253
|
+
},
|
|
129254
|
+
parseToNumber(str) {
|
|
129255
|
+
if (!str || str === '+' || str === '-' || str === '.' || str === '+.' || str === '-.' || str === '-.') {
|
|
129256
|
+
return undefined
|
|
129257
|
+
}
|
|
129258
|
+
const num = parseFloat(str)
|
|
129259
|
+
return isNaN(num) ? undefined : num
|
|
129260
|
+
}
|
|
129181
129261
|
}
|
|
129182
129262
|
});
|
|
129183
129263
|
|
|
@@ -129193,8 +129273,8 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129193
129273
|
|
|
129194
129274
|
var xt_input_component = normalizeComponent(
|
|
129195
129275
|
components_xt_inputvue_type_script_lang_js,
|
|
129196
|
-
|
|
129197
|
-
|
|
129276
|
+
xt_inputvue_type_template_id_6c337ae4_render,
|
|
129277
|
+
xt_inputvue_type_template_id_6c337ae4_staticRenderFns,
|
|
129198
129278
|
false,
|
|
129199
129279
|
null,
|
|
129200
129280
|
null,
|
|
@@ -129213,7 +129293,7 @@ xt_input.install = function (Vue) {
|
|
|
129213
129293
|
/* harmony default export */ var components_xt_input = (xt_input);
|
|
129214
129294
|
|
|
129215
129295
|
|
|
129216
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129296
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-flex-box/index.vue?vue&type=template&id=21429280
|
|
129217
129297
|
var xt_flex_boxvue_type_template_id_21429280_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-flex-box",class:_vm.classAttrs,style:(_vm.flexStyle)},[_vm._t("default")],2)
|
|
129218
129298
|
}
|
|
129219
129299
|
var xt_flex_boxvue_type_template_id_21429280_staticRenderFns = []
|
|
@@ -129282,7 +129362,7 @@ xt_flex_box.install = function (Vue) {
|
|
|
129282
129362
|
/* harmony default export */ var components_xt_flex_box = (xt_flex_box);
|
|
129283
129363
|
|
|
129284
129364
|
|
|
129285
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129365
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/index.vue?vue&type=template&id=67b1fb86
|
|
129286
129366
|
var xt_cardvue_type_template_id_67b1fb86_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-card',_vm._b({staticClass:"ex-card",class:_vm.cardClasses,scopedSlots:_vm._u([(_vm.$slots.header || _vm.title)?{key:"header",fn:function(){return [_vm._t("header",function(){return [_vm._v(_vm._s(_vm.title))]})]},proxy:true}:null],null,true)},'el-card',_vm.$attrs,false),[_vm._t("default")],2)
|
|
129287
129367
|
}
|
|
129288
129368
|
var xt_cardvue_type_template_id_67b1fb86_staticRenderFns = []
|
|
@@ -129376,7 +129456,7 @@ xt_card.install = function (Vue) {
|
|
|
129376
129456
|
}
|
|
129377
129457
|
|
|
129378
129458
|
/* harmony default export */ var components_xt_card = (xt_card);
|
|
129379
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129459
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=template&id=dbcd74f4
|
|
129380
129460
|
var xt_card_itemvue_type_template_id_dbcd74f4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.change),callback:function ($$v) {_vm.change=$$v},expression:"change"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
|
|
129381
129461
|
}
|
|
129382
129462
|
var xt_card_itemvue_type_template_id_dbcd74f4_staticRenderFns = []
|
|
@@ -129824,7 +129904,7 @@ xt_config_provider.install = function (Vue) {
|
|
|
129824
129904
|
/* harmony default export */ var components_xt_config_provider = (xt_config_provider);
|
|
129825
129905
|
|
|
129826
129906
|
|
|
129827
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129907
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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
129908
|
var xt_textvue_type_template_id_7f658496_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showTooltip && _vm.ellipsis)?_c('el-tooltip',{attrs:{"content":_vm.displayTooltipContent,"placement":_vm.tooltipPlacement,"disabled":!_vm.isOverflow,"effect":"dark"}},[_c('span',{ref:"textRef",staticClass:"xt-text",class:[
|
|
129829
129909
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
129830
129910
|
'xt-text--' + _vm.size,
|
|
@@ -130126,7 +130206,7 @@ xt_text.install = function (Vue) {
|
|
|
130126
130206
|
/* harmony default export */ var components_xt_text = (xt_text);
|
|
130127
130207
|
|
|
130128
130208
|
|
|
130129
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130209
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-time/index.vue?vue&type=template&id=d29acf2c
|
|
130130
130210
|
var xt_timevue_type_template_id_d29acf2c_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-time",class:[
|
|
130131
130211
|
_vm.typeColor ? 'xt-time--' + _vm.typeColor : '',
|
|
130132
130212
|
'xt-time--' + _vm.size,
|
|
@@ -130447,21 +130527,21 @@ xt_time.install = function (Vue) {
|
|
|
130447
130527
|
/* harmony default export */ var components_xt_time = (xt_time);
|
|
130448
130528
|
|
|
130449
130529
|
|
|
130450
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130451
|
-
var
|
|
130530
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
|
|
130531
|
+
var xt_step_pricevue_type_template_id_10c6e331_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price",class:{ 'is-disabled': _vm.disabled }},[(_vm.title || _vm.$slots.header)?_c('div',{staticClass:"xt-step-price__header"},[(_vm.title)?_c('xt-text',{attrs:{"bold":"","size":"medium"}},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._t("header"),(!_vm.disabled && !_vm.isLimitReached)?_c('xt-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-plus","plain":""},on:{"click":_vm.onAdd}},[_vm._v("新增"+_vm._s(_vm.stepName))]):_vm._e(),(_vm.isLimitReached)?_c('xt-text',{attrs:{"size":"small","type-color":"info"}},[_vm._v("已达上限("+_vm._s(_vm.localItems.length)+"/"+_vm._s(_vm.limit)+")")]):_vm._e()],2):_vm._e(),_c('div',{staticClass:"xt-step-price__list"},_vm._l((_vm.localItems),function(item,idx){return _c('XtStepPriceItem',{key:idx,attrs:{"value":item,"index":idx,"is-first":idx === 0,"is-last":idx === _vm.localItems.length - 1,"items-length":_vm.localItems.length,"removable":idx !== 0,"min-locked":idx !== 0 ? true : false,"unit":_vm.unit,"precision":_vm.precision,"step-name":_vm.stepName,"step":_vm.step,"left-bracket":_vm.leftBracket,"right-bracket":_vm.rightBracket,"field-keys":_vm.fieldKeys,"disabled":_vm.disabled},on:{"input":(val) => _vm.onItemInput(val, idx),"max-change":_vm.onMaxChange,"min-change":_vm.onMinChange,"delete":_vm.onDelete,"blur":_vm.onFieldBlur}})}),1),(_vm.localItems.length === 0)?_c('div',{staticClass:"xt-step-price__empty"},[_c('span',[_vm._v("暂无数据,点击右上角「新增"+_vm._s(_vm.stepName)+"」开始配置")])]):_vm._e(),(_vm.tip || _vm.$slots.tip)?_c('div',{staticClass:"xt-step-price__tip"},[_vm._t("tip",function(){return [_c('xt-text',{attrs:{"size":"small","type-color":"warning"}},[_vm._v(_vm._s(_vm.tip))])]})],2):_vm._e()])
|
|
130452
130532
|
}
|
|
130453
|
-
var
|
|
130533
|
+
var xt_step_pricevue_type_template_id_10c6e331_staticRenderFns = []
|
|
130454
130534
|
|
|
130455
130535
|
|
|
130456
|
-
// CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=
|
|
130536
|
+
// CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
|
|
130457
130537
|
|
|
130458
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130459
|
-
var
|
|
130538
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
|
|
130539
|
+
var xt_step_price_itemvue_type_template_id_579d80c1_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price-item"},[_c('div',{staticClass:"xt-step-price-item__range"},[_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalLeftBracket))]),(_vm.itemsLength > 1)?_c('span',{staticClass:"xt-step-price-item__name"},[_vm._v("第"+_vm._s(_vm.index + 1)+_vm._s(_vm.stepName))]):_vm._e(),_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalRightBracket))]),_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"disabled":_vm.disabled || _vm.minLocked,"size":"small","placeholder":"下限"},on:{"blur":(e) => { _vm.onMinBlur(); _vm.onBlur(e) }},model:{value:(_vm.minInput),callback:function ($$v) {_vm.minInput=_vm._n($$v)},expression:"minInput"}}),_c('span',{staticClass:"xt-step-price-item__comma"},[_vm._v("-")]),(!_vm.isLast)?_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"上限"},on:{"blur":(e) => { _vm.onMaxBlur(); _vm.onBlur(e) }},model:{value:(_vm.maxInput),callback:function ($$v) {_vm.maxInput=_vm._n($$v)},expression:"maxInput"}}):_c('span',{staticClass:"xt-step-price-item__infinity"},[_vm._v("+∞")])],1),_c('div',{staticClass:"xt-step-price-item__price"},[_c('xt-input',{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"价格"},on:{"blur":(e) => { _vm.onPriceBlur(); _vm.onBlur(e) }},model:{value:(_vm.priceInput),callback:function ($$v) {_vm.priceInput=_vm._n($$v)},expression:"priceInput"}}),_c('span',{staticClass:"xt-step-price-item__unit"},[_vm._v(_vm._s(_vm.unit))])],1),(!_vm.disabled && _vm.removable && _vm.itemsLength > 1)?_c('xt-button',{staticClass:"xt-step-price-item__delete",attrs:{"text":"","icon":"el-icon-delete"},on:{"click":_vm.onDelete}}):_vm._e()],1)
|
|
130460
130540
|
}
|
|
130461
|
-
var
|
|
130541
|
+
var xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns = []
|
|
130462
130542
|
|
|
130463
130543
|
|
|
130464
|
-
// CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=
|
|
130544
|
+
// CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
|
|
130465
130545
|
|
|
130466
130546
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=script&lang=js
|
|
130467
130547
|
|
|
@@ -130474,6 +130554,7 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130474
130554
|
required: true,
|
|
130475
130555
|
default: () => ({ min: 0, max: null, price: 0 })
|
|
130476
130556
|
},
|
|
130557
|
+
stepName: { type: String, default: '阶梯' },
|
|
130477
130558
|
index: { type: Number, default: 0 },
|
|
130478
130559
|
isFirst: { type: Boolean, default: false },
|
|
130479
130560
|
isLast: { type: Boolean, default: false },
|
|
@@ -130593,13 +130674,23 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130593
130674
|
},
|
|
130594
130675
|
|
|
130595
130676
|
onPriceBlur() {
|
|
130596
|
-
|
|
130677
|
+
const rawVal = this.priceInput
|
|
130678
|
+
if (rawVal === null || rawVal === undefined || rawVal === '' || isNaN(rawVal)) {
|
|
130679
|
+
this.priceInput = ''
|
|
130680
|
+
this.emitChange({ [this.keyPrice]: '' })
|
|
130681
|
+
return
|
|
130682
|
+
}
|
|
130683
|
+
let v = this.safeNumber(rawVal, 0)
|
|
130597
130684
|
if (v < 0) v = 0
|
|
130598
130685
|
v = Number(v.toFixed(this.precision))
|
|
130599
130686
|
this.priceInput = v
|
|
130600
130687
|
this.emitChange({ [this.keyPrice]: v })
|
|
130601
130688
|
},
|
|
130602
130689
|
|
|
130690
|
+
onBlur(e) {
|
|
130691
|
+
this.$emit('blur', e)
|
|
130692
|
+
},
|
|
130693
|
+
|
|
130603
130694
|
onDelete() {
|
|
130604
130695
|
this.$emit('delete', this.index)
|
|
130605
130696
|
}
|
|
@@ -130618,8 +130709,8 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130618
130709
|
|
|
130619
130710
|
var xt_step_price_item_component = normalizeComponent(
|
|
130620
130711
|
components_xt_step_price_itemvue_type_script_lang_js,
|
|
130621
|
-
|
|
130622
|
-
|
|
130712
|
+
xt_step_price_itemvue_type_template_id_579d80c1_render,
|
|
130713
|
+
xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns,
|
|
130623
130714
|
false,
|
|
130624
130715
|
null,
|
|
130625
130716
|
null,
|
|
@@ -130637,6 +130728,12 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130637
130728
|
|
|
130638
130729
|
components: { XtStepPriceItem: xt_step_price_item },
|
|
130639
130730
|
|
|
130731
|
+
inject: {
|
|
130732
|
+
elFormItem: {
|
|
130733
|
+
default: ''
|
|
130734
|
+
}
|
|
130735
|
+
},
|
|
130736
|
+
|
|
130640
130737
|
computed: {
|
|
130641
130738
|
keyMin() { return (this.fieldKeys && this.fieldKeys.min) || 'min' },
|
|
130642
130739
|
keyMax() { return (this.fieldKeys && this.fieldKeys.max) || 'max' },
|
|
@@ -130654,6 +130751,7 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130654
130751
|
},
|
|
130655
130752
|
title: { type: String, default: '' },
|
|
130656
130753
|
unit: { type: String, default: '元' },
|
|
130754
|
+
stepName: { type: String, default: '阶梯' },
|
|
130657
130755
|
precision: { type: Number, default: 2 },
|
|
130658
130756
|
// 左括号:默认 '[',传空字符串则不显示
|
|
130659
130757
|
leftBracket: { type: String, default: '[' },
|
|
@@ -130703,11 +130801,14 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130703
130801
|
|
|
130704
130802
|
cloneItems(items) {
|
|
130705
130803
|
if (!Array.isArray(items)) return []
|
|
130706
|
-
return items.map((it) =>
|
|
130707
|
-
|
|
130708
|
-
|
|
130709
|
-
|
|
130710
|
-
|
|
130804
|
+
return items.map((it) => {
|
|
130805
|
+
const price = (it && it[this.keyPrice])
|
|
130806
|
+
return {
|
|
130807
|
+
[this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
|
|
130808
|
+
[this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
|
|
130809
|
+
[this.keyPrice]: (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
|
|
130810
|
+
}
|
|
130811
|
+
})
|
|
130711
130812
|
},
|
|
130712
130813
|
|
|
130713
130814
|
normalize(items) {
|
|
@@ -130738,7 +130839,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130738
130839
|
} else {
|
|
130739
130840
|
cur[this.keyMax] = null
|
|
130740
130841
|
}
|
|
130741
|
-
|
|
130842
|
+
const price = cur[this.keyPrice]
|
|
130843
|
+
cur[this.keyPrice] = (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
|
|
130742
130844
|
}
|
|
130743
130845
|
},
|
|
130744
130846
|
|
|
@@ -130747,15 +130849,118 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130747
130849
|
const cloned = this.cloneItems(this.localItems)
|
|
130748
130850
|
this.$emit('input', cloned)
|
|
130749
130851
|
this.$emit('change', cloned)
|
|
130852
|
+
this.dispatchFormEvent('el.form.change', cloned)
|
|
130853
|
+
},
|
|
130854
|
+
|
|
130855
|
+
dispatchFormEvent(eventName, value) {
|
|
130856
|
+
if (this.elFormItem) {
|
|
130857
|
+
this.elFormItem.$emit(eventName, value)
|
|
130858
|
+
}
|
|
130859
|
+
},
|
|
130860
|
+
|
|
130861
|
+
onFieldBlur() {
|
|
130862
|
+
this.dispatchFormEvent('el.form.blur', this.localItems)
|
|
130863
|
+
},
|
|
130864
|
+
|
|
130865
|
+
validate(callback) {
|
|
130866
|
+
const list = this.localItems
|
|
130867
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
130868
|
+
callback && callback(false, [{ field: 'stepPrice', message: `请配置${this.stepName}`, type: 'error' }])
|
|
130869
|
+
return false
|
|
130870
|
+
}
|
|
130871
|
+
|
|
130872
|
+
const errors = []
|
|
130873
|
+
for (let i = 0; i < list.length; i++) {
|
|
130874
|
+
const item = list[i]
|
|
130875
|
+
const rawPrice = item[this.keyPrice]
|
|
130876
|
+
const rawMin = item[this.keyMin]
|
|
130877
|
+
const rawMax = item[this.keyMax]
|
|
130878
|
+
const price = this.safeNumber(rawPrice, 0)
|
|
130879
|
+
const min = this.safeNumber(rawMin, 0)
|
|
130880
|
+
|
|
130881
|
+
if (rawPrice === null || rawPrice === undefined || rawPrice === '') {
|
|
130882
|
+
errors.push({
|
|
130883
|
+
field: `stepPrice[${i}].price`,
|
|
130884
|
+
message: `第${i + 1}${this.stepName}价格不能为空`,
|
|
130885
|
+
type: 'error'
|
|
130886
|
+
})
|
|
130887
|
+
} else if (price < 0) {
|
|
130888
|
+
errors.push({
|
|
130889
|
+
field: `stepPrice[${i}].price`,
|
|
130890
|
+
message: `第${i + 1}${this.stepName}价格不能为负数`,
|
|
130891
|
+
type: 'error'
|
|
130892
|
+
})
|
|
130893
|
+
}
|
|
130894
|
+
|
|
130895
|
+
if (rawMin === null || rawMin === undefined || rawMin === '') {
|
|
130896
|
+
errors.push({
|
|
130897
|
+
field: `stepPrice[${i}].min`,
|
|
130898
|
+
message: `第${i + 1}${this.stepName}下限不能为空`,
|
|
130899
|
+
type: 'error'
|
|
130900
|
+
})
|
|
130901
|
+
} else if (min < 0) {
|
|
130902
|
+
errors.push({
|
|
130903
|
+
field: `stepPrice[${i}].min`,
|
|
130904
|
+
message: `第${i + 1}${this.stepName}下限不能为负数`,
|
|
130905
|
+
type: 'error'
|
|
130906
|
+
})
|
|
130907
|
+
}
|
|
130908
|
+
|
|
130909
|
+
if (!this.isLast(i)) {
|
|
130910
|
+
if (rawMax === null || rawMax === undefined || rawMax === '') {
|
|
130911
|
+
errors.push({
|
|
130912
|
+
field: `stepPrice[${i}].max`,
|
|
130913
|
+
message: `第${i + 1}${this.stepName}上限不能为空`,
|
|
130914
|
+
type: 'error'
|
|
130915
|
+
})
|
|
130916
|
+
} else if (this.safeNumber(rawMax, 0) <= min) {
|
|
130917
|
+
errors.push({
|
|
130918
|
+
field: `stepPrice[${i}].max`,
|
|
130919
|
+
message: `第${i + 1}${this.stepName}上限必须大于下限`,
|
|
130920
|
+
type: 'error'
|
|
130921
|
+
})
|
|
130922
|
+
}
|
|
130923
|
+
}
|
|
130924
|
+
|
|
130925
|
+
if (i > 0) {
|
|
130926
|
+
const prev = list[i - 1]
|
|
130927
|
+
const prevMax = prev[this.keyMax]
|
|
130928
|
+
if (prevMax !== null && this.safeNumber(prevMax, 0) !== min) {
|
|
130929
|
+
errors.push({
|
|
130930
|
+
field: `stepPrice[${i}].min`,
|
|
130931
|
+
message: `第${i + 1}${this.stepName}下限必须等于上一${this.stepName}上限`,
|
|
130932
|
+
type: 'error'
|
|
130933
|
+
})
|
|
130934
|
+
}
|
|
130935
|
+
}
|
|
130936
|
+
}
|
|
130937
|
+
|
|
130938
|
+
if (errors.length > 0) {
|
|
130939
|
+
callback && callback(false, errors)
|
|
130940
|
+
return false
|
|
130941
|
+
}
|
|
130942
|
+
|
|
130943
|
+
callback && callback(true)
|
|
130944
|
+
return true
|
|
130945
|
+
},
|
|
130946
|
+
|
|
130947
|
+
isLast(idx) {
|
|
130948
|
+
return idx === this.localItems.length - 1
|
|
130750
130949
|
},
|
|
130751
130950
|
|
|
130752
130951
|
onItemInput(val, idx) {
|
|
130753
130952
|
const cur = this.localItems[idx]
|
|
130754
130953
|
if (!cur) return
|
|
130755
130954
|
if (val && val[this.keyPrice] !== undefined) {
|
|
130756
|
-
|
|
130757
|
-
p
|
|
130758
|
-
|
|
130955
|
+
const p = val[this.keyPrice]
|
|
130956
|
+
if (p === null || p === undefined || p === '') {
|
|
130957
|
+
cur[this.keyPrice] = ''
|
|
130958
|
+
} else {
|
|
130959
|
+
let num = this.safeNumber(p, 0)
|
|
130960
|
+
num = Number(num.toFixed(this.precision))
|
|
130961
|
+
cur[this.keyPrice] = num
|
|
130962
|
+
}
|
|
130963
|
+
this.emit()
|
|
130759
130964
|
}
|
|
130760
130965
|
},
|
|
130761
130966
|
|
|
@@ -130810,15 +131015,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130810
131015
|
const newMin = this.safeNumber(last[this.keyMin], 0)
|
|
130811
131016
|
const newMax = newMin + stepVal
|
|
130812
131017
|
|
|
130813
|
-
// 新条 price
|
|
130814
|
-
|
|
130815
|
-
let newPrice = 10
|
|
130816
|
-
if (prev) {
|
|
130817
|
-
newPrice = this.safeNumber(prev[this.keyPrice], 10)
|
|
130818
|
-
} else {
|
|
130819
|
-
const lastPrice = this.safeNumber(last[this.keyPrice], 0)
|
|
130820
|
-
newPrice = lastPrice > 0 ? lastPrice : 10
|
|
130821
|
-
}
|
|
131018
|
+
// 新条 price:使用默认值,由用户自行填写
|
|
131019
|
+
let newPrice = 0
|
|
130822
131020
|
|
|
130823
131021
|
const newArr = [
|
|
130824
131022
|
...list.slice(0, -1),
|
|
@@ -130870,8 +131068,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130870
131068
|
|
|
130871
131069
|
var xt_step_price_component = normalizeComponent(
|
|
130872
131070
|
components_xt_step_pricevue_type_script_lang_js,
|
|
130873
|
-
|
|
130874
|
-
|
|
131071
|
+
xt_step_pricevue_type_template_id_10c6e331_render,
|
|
131072
|
+
xt_step_pricevue_type_template_id_10c6e331_staticRenderFns,
|
|
130875
131073
|
false,
|
|
130876
131074
|
null,
|
|
130877
131075
|
null,
|
|
@@ -130901,7 +131099,7 @@ xt_step_price_item.install = function (Vue) {
|
|
|
130901
131099
|
|
|
130902
131100
|
/* harmony default export */ var components_xt_step_price_item = (xt_step_price_item);
|
|
130903
131101
|
|
|
130904
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
131102
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-map/index.vue?vue&type=template&id=0c15823e
|
|
130905
131103
|
var xt_mapvue_type_template_id_0c15823e_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-map-wrapper"},[_c('div',{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":_vm.mergedTheme}}),(_vm.loading)?_c('div',{staticClass:"xt-map-loading"},[_c('span',[_vm._v("地图加载中...")])]):_vm._e(),(_vm.errorMessage)?_c('div',{staticClass:"xt-map-error"},[_c('span',[_vm._v(_vm._s(_vm.errorMessage))])]):_vm._e(),_vm._t("overlay")],2)
|
|
130906
131104
|
}
|
|
130907
131105
|
var xt_mapvue_type_template_id_0c15823e_staticRenderFns = []
|
|
@@ -132618,7 +132816,7 @@ xt_map.install = function (Vue) {
|
|
|
132618
132816
|
/* harmony default export */ var components_xt_map = (xt_map);
|
|
132619
132817
|
|
|
132620
132818
|
|
|
132621
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
132819
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-map/provider.vue?vue&type=template&id=16f243b0&scoped=true
|
|
132622
132820
|
var providervue_type_template_id_16f243b0_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:['xt-map-provider', { 'xt-map-provider--dark': _vm.mergedTheme === 'dark' }],style:(_vm.wrapperStyle)},[_vm._t("default")],2)
|
|
132623
132821
|
}
|
|
132624
132822
|
var providervue_type_template_id_16f243b0_scoped_true_staticRenderFns = []
|
|
@@ -132822,7 +133020,7 @@ xt_map_provider.install = function (Vue) {
|
|
|
132822
133020
|
/* harmony default export */ var components_xt_map_provider = (xt_map_provider);
|
|
132823
133021
|
|
|
132824
133022
|
|
|
132825
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133023
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-grid-box/index.vue?vue&type=template&id=67e197c4
|
|
132826
133024
|
var xt_grid_boxvue_type_template_id_67e197c4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-grid-box",style:(_vm.styleAttrs)},[_vm._t("default")],2)
|
|
132827
133025
|
}
|
|
132828
133026
|
var xt_grid_boxvue_type_template_id_67e197c4_staticRenderFns = []
|
|
@@ -132992,7 +133190,7 @@ xt_grid_box.install = function (Vue) {
|
|
|
132992
133190
|
/* harmony default export */ var components_xt_grid_box = (xt_grid_box);
|
|
132993
133191
|
|
|
132994
133192
|
|
|
132995
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133193
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-grid-item/index.vue?vue&type=template&id=5318efc6&scoped=true
|
|
132996
133194
|
var xt_grid_itemvue_type_template_id_5318efc6_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-grid-item",style:(_vm.styleAttrs)},[_vm._t("default")],2)
|
|
132997
133195
|
}
|
|
132998
133196
|
var xt_grid_itemvue_type_template_id_5318efc6_scoped_true_staticRenderFns = []
|
|
@@ -133132,7 +133330,7 @@ xt_grid_item.install = function (Vue) {
|
|
|
133132
133330
|
/* harmony default export */ var components_xt_grid_item = (xt_grid_item);
|
|
133133
133331
|
|
|
133134
133332
|
|
|
133135
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133333
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-progress/index.vue?vue&type=template&id=76c95a92
|
|
133136
133334
|
var xt_progressvue_type_template_id_76c95a92_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-progress",class:[
|
|
133137
133335
|
`xt-progress--${_vm.type}`,
|
|
133138
133336
|
`xt-progress--${_vm.size}`
|
|
@@ -133228,7 +133426,7 @@ xt_progress.install = function(Vue) {
|
|
|
133228
133426
|
|
|
133229
133427
|
/* harmony default export */ var components_xt_progress = (xt_progress);
|
|
133230
133428
|
|
|
133231
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133429
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-tabs/index.vue?vue&type=template&id=04b02574
|
|
133232
133430
|
var xt_tabsvue_type_template_id_04b02574_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-tabs",class:[
|
|
133233
133431
|
`xt-tabs--${_vm.position}`,
|
|
133234
133432
|
{ 'xt-tabs--card': _vm.type === 'card' }
|
|
@@ -133340,7 +133538,7 @@ var xt_tabs_component = normalizeComponent(
|
|
|
133340
133538
|
)
|
|
133341
133539
|
|
|
133342
133540
|
/* harmony default export */ var xt_tabs = (xt_tabs_component.exports);
|
|
133343
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133541
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-tabs/TabPane.vue?vue&type=template&id=0c2246dc
|
|
133344
133542
|
var TabPanevue_type_template_id_0c2246dc_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"xt-tab-pane"},[_vm._t("default")],2)
|
|
133345
133543
|
}
|
|
133346
133544
|
var TabPanevue_type_template_id_0c2246dc_staticRenderFns = []
|
|
@@ -133413,7 +133611,7 @@ xt_tabs.install = function(Vue) {
|
|
|
133413
133611
|
/* harmony default export */ var components_xt_tabs = (xt_tabs);
|
|
133414
133612
|
|
|
133415
133613
|
|
|
133416
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133614
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-badge/index.vue?vue&type=template&id=20f2da48
|
|
133417
133615
|
var xt_badgevue_type_template_id_20f2da48_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-badge",class:[
|
|
133418
133616
|
`xt-badge--${_vm.type}`,
|
|
133419
133617
|
{ 'xt-badge--dot': _vm.isDot },
|
|
@@ -133507,7 +133705,7 @@ xt_badge.install = function(Vue) {
|
|
|
133507
133705
|
|
|
133508
133706
|
/* harmony default export */ var components_xt_badge = (xt_badge);
|
|
133509
133707
|
|
|
133510
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133708
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-date-picker/index.vue?vue&type=template&id=6a59ddb5&scoped=true
|
|
133511
133709
|
var xt_date_pickervue_type_template_id_6a59ddb5_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"display":"inline-block"}},[(_vm.dateType=='quarter')?_c('FlexBox',{staticClass:"xt-date-picker",class:{focus: _vm.isfocus},style:(_vm.width?{width: `${_vm.width}px`}:{}),attrs:{"type":"inline-flex"}},[_c('Quarter',{attrs:{"format":_vm.format,"placeholder":"开始时间","quarter-type":"quarter-start","clearable":""},model:{value:(_vm.timeStart),callback:function ($$v) {_vm.timeStart=$$v},expression:"timeStart"}}),_c('span',{staticClass:"separator"},[_vm._v(_vm._s(_vm.separator))]),_c('Quarter',{attrs:{"format":_vm.format,"placeholder":"结束时间","quarter-type":"quarter-end","clearable":""},model:{value:(_vm.timeEnd),callback:function ($$v) {_vm.timeEnd=$$v},expression:"timeEnd"}})],1):_c('FlexBox',{staticClass:"xt-date",class:{focus: _vm.isfocus},style:(_vm.width?{width: `${_vm.width}px`}:{}),attrs:{"type":"inline-flex"}},[_c('el-date-picker',{key:"startSelect",ref:"timeStart",attrs:{"size":"small","disabled":_vm.disabled,"append-to-body":"","picker-options":_vm.startTimeRange,"format":_vm.format,"type":_vm.dateType,"placeholder":"开始时间","clearable":""},on:{"blur":function($event){return _vm.$emit('blur')},"focus":function($event){return _vm.$emit('focus')}},model:{value:(_vm.timeStart),callback:function ($$v) {_vm.timeStart=$$v},expression:"timeStart"}}),_c('span',{staticClass:"separator"},[_vm._v(_vm._s(_vm.separator))]),_c('el-date-picker',{key:"endSelect",ref:"timeEnd",attrs:{"size":"small","disabled":_vm.disabled,"append-to-body":"","picker-options":_vm.endTimeRange,"format":_vm.format,"type":_vm.dateType,"placeholder":"结束时间","clearable":""},on:{"blur":function($event){return _vm.$emit('blur')},"focus":function($event){return _vm.$emit('focus')}},model:{value:(_vm.timeEnd),callback:function ($$v) {_vm.timeEnd=$$v},expression:"timeEnd"}})],1)],1)
|
|
133512
133710
|
}
|
|
133513
133711
|
var xt_date_pickervue_type_template_id_6a59ddb5_scoped_true_staticRenderFns = []
|
|
@@ -133515,7 +133713,7 @@ var xt_date_pickervue_type_template_id_6a59ddb5_scoped_true_staticRenderFns = []
|
|
|
133515
133713
|
|
|
133516
133714
|
// CONCATENATED MODULE: ./src/components/xt-date-picker/index.vue?vue&type=template&id=6a59ddb5&scoped=true
|
|
133517
133715
|
|
|
133518
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133716
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-date-picker/quarter.vue?vue&type=template&id=4e3cbf9a
|
|
133519
133717
|
var quartervue_type_template_id_4e3cbf9a_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-popover',{attrs:{"trigger":"click","disabled":_vm.disabled,"transition":"el-zoom-in-top","placement":_vm.placement,"width":_vm.popoverWidth},on:{"hide":_vm.handleBlur},model:{value:(_vm.popoverVisible),callback:function ($$v) {_vm.popoverVisible=$$v},expression:"popoverVisible"}},[_c('div',{staticClass:"quarter-wrapper"},[_c('BaseFlexBox',{attrs:{"content":"between"}},[_c('i',{staticClass:"el-icon-d-arrow-left",on:{"click":_vm.prev}}),_c('span',[_vm._v(_vm._s(_vm.selectYear))]),_c('i',{staticClass:"el-icon-d-arrow-right",on:{"click":_vm.after}})]),_c('BaseFlexBox',{staticStyle:{"margin-top":"10px"},attrs:{"content":"between"}},_vm._l((_vm.quarterList),function(item){return _c('el-button',{key:item.value,attrs:{"disabled":_vm.getDisable(item),"type":_vm.currentyear==_vm.selectYear&&item.value == _vm.currentQuarter ?'primary':'',"size":"mini","round":""},on:{"click":function($event){return _vm.setCurrent(item)}}},[_vm._v(_vm._s(item.label))])}),1)],1),_c('el-input',{ref:"reference",attrs:{"slot":"reference","size":"small","value":_vm.quarterLabel,"readonly":"","title":_vm.value,"placeholder":_vm.placeholder,"prefix-icon":"el-icon-date","clearable":""},slot:"reference"})],1)
|
|
133520
133718
|
}
|
|
133521
133719
|
var quartervue_type_template_id_4e3cbf9a_staticRenderFns = []
|
|
@@ -133809,7 +134007,7 @@ xt_date_picker.install = function (Vue) {
|
|
|
133809
134007
|
|
|
133810
134008
|
/* harmony default export */ var components_xt_date_picker = (xt_date_picker);
|
|
133811
134009
|
|
|
133812
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134010
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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
|
|
133813
134011
|
var xt_chartvue_type_template_id_fcb32ff2_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.type=='bar')?_c('xt-bar',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-bar',_vm.$attrs,false)):(_vm.type=='line')?_c('xt-line',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-line',_vm.$attrs,false)):(_vm.type=='pie')?_c('xt-pie',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-pie',_vm.$attrs,false)):(_vm.type=='multi')?_c('xt-multi',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-multi',_vm.$attrs,false)):_vm._e()
|
|
133814
134012
|
}
|
|
133815
134013
|
var xt_chartvue_type_template_id_fcb32ff2_staticRenderFns = []
|
|
@@ -133817,7 +134015,7 @@ var xt_chartvue_type_template_id_fcb32ff2_staticRenderFns = []
|
|
|
133817
134015
|
|
|
133818
134016
|
// CONCATENATED MODULE: ./src/components/xt-chart/index.vue?vue&type=template&id=fcb32ff2
|
|
133819
134017
|
|
|
133820
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134018
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/XtBar.vue?vue&type=template&id=322352cf&scoped=true
|
|
133821
134019
|
var XtBarvue_type_template_id_322352cf_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"barchart",staticClass:"bar-box"})
|
|
133822
134020
|
}
|
|
133823
134021
|
var XtBarvue_type_template_id_322352cf_scoped_true_staticRenderFns = []
|
|
@@ -134054,7 +134252,7 @@ var XtBar_component = normalizeComponent(
|
|
|
134054
134252
|
)
|
|
134055
134253
|
|
|
134056
134254
|
/* harmony default export */ var XtBar = (XtBar_component.exports);
|
|
134057
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134255
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/XtLine.vue?vue&type=template&id=7dc068e4&scoped=true
|
|
134058
134256
|
var XtLinevue_type_template_id_7dc068e4_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"linechart",staticClass:"line-box"})
|
|
134059
134257
|
}
|
|
134060
134258
|
var XtLinevue_type_template_id_7dc068e4_scoped_true_staticRenderFns = []
|
|
@@ -134237,7 +134435,7 @@ var XtLine_component = normalizeComponent(
|
|
|
134237
134435
|
)
|
|
134238
134436
|
|
|
134239
134437
|
/* harmony default export */ var XtLine = (XtLine_component.exports);
|
|
134240
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134438
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/XtPie.vue?vue&type=template&id=3c07422e&scoped=true
|
|
134241
134439
|
var XtPievue_type_template_id_3c07422e_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"piechart",staticClass:"pie-box"})
|
|
134242
134440
|
}
|
|
134243
134441
|
var XtPievue_type_template_id_3c07422e_scoped_true_staticRenderFns = []
|
|
@@ -134429,7 +134627,7 @@ var XtPie_component = normalizeComponent(
|
|
|
134429
134627
|
)
|
|
134430
134628
|
|
|
134431
134629
|
/* harmony default export */ var XtPie = (XtPie_component.exports);
|
|
134432
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134630
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/XtMulti.vue?vue&type=template&id=43d39824&scoped=true
|
|
134433
134631
|
var XtMultivue_type_template_id_43d39824_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"multilinechart",staticClass:"multiline-box"})
|
|
134434
134632
|
}
|
|
134435
134633
|
var XtMultivue_type_template_id_43d39824_scoped_true_staticRenderFns = []
|
|
@@ -134870,7 +135068,7 @@ xt_chart.install = function (Vue) {
|
|
|
134870
135068
|
|
|
134871
135069
|
/* harmony default export */ var components_xt_chart = (xt_chart);
|
|
134872
135070
|
|
|
134873
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135071
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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
|
|
134874
135072
|
var xt_iconvue_type_template_id_0e301b72_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_vm.tag,_vm._g({tag:"component",class:_vm.iconClasses,style:(_vm.iconStyle),on:{"click":_vm.handleClick}},_vm.$listeners),[(_vm.isSvgSprite)?_c('svg',{style:(_vm.svgStyle),attrs:{"aria-hidden":"true"}},[_c('use',{attrs:{"href":_vm.svgHref}})]):(_vm.hasDefaultSlot)?_vm._t("default"):_vm._e()],2)
|
|
134875
135073
|
}
|
|
134876
135074
|
var xt_iconvue_type_template_id_0e301b72_scoped_true_staticRenderFns = []
|
|
@@ -135048,7 +135246,7 @@ xt_icon.install = function (Vue) {
|
|
|
135048
135246
|
|
|
135049
135247
|
/* harmony default export */ var components_xt_icon = (xt_icon);
|
|
135050
135248
|
|
|
135051
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135249
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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
|
|
135052
135250
|
var xt_tablevue_type_template_id_0fa7d6af_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"ex-table-wrapper"},[(_vm.title || _vm.$slots.toolbar)?_c('div',{staticClass:"ex-table-header"},[(_vm.title)?_c('span',{staticClass:"ex-table-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('div',{staticClass:"ex-table-toolbar"},[_vm._t("toolbar")],2)]):_vm._e(),_c('div',{staticClass:"ex-table-body"},[_c('VirtualElTable',_vm._g(_vm._b({ref:"table",staticClass:"ex-table",attrs:{"data":_vm.processedTableData,"height":_vm.computedHeight,"max-height":_vm.computedMaxHeight,"virtual-scroll":_vm.virtualScroll,"row-height":_vm.rowInitHeight,"buffer-size":_vm.bufferSize,"span-method":_vm.groupColumns.length ? _vm.handleSpanMethod : undefined,"row-class-name":_vm.getRowClassName},on:{"selection-change":_vm.handleSelectionChange,"sort-change":_vm.handleSortChange}},'VirtualElTable',_vm.$attrs,false),_vm.$listeners),[(_vm.selection)?_c('el-table-column',{attrs:{"type":"selection","width":"55","fixed":_vm.selectionFixed}}):_vm._e(),(_vm.showIndex)?_c('el-table-column',{attrs:{"type":"index","width":"60","label":"#","fixed":_vm.indexFixed,"index":_vm.indexMethod}}):_vm._e(),_vm._l((_vm.flattenedColumns),function(col){return [(col.children && col.children.length)?_c('el-table-column',_vm._b({key:col._key},'el-table-column',_vm.getColumnProps(col),false),[_vm._l((col.children),function(child){return [_c('el-table-column',_vm._b({key:child._key,scopedSlots:_vm._u([(child.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(child.render(scope)))]}}:(child.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":child.formatter,"column":child}})]}}:(child.slot)?{key:"default",fn:function(scope){return [_vm._t(child.slot,null,{"row":scope.row,"index":scope.$index,"column":child})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(child),false))]})],2):_c('el-table-column',_vm._b({key:col._key,scopedSlots:_vm._u([(col.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(col.render(scope)))]}}:(col.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":col.formatter,"column":col}})]}}:(col.slot)?{key:"default",fn:function(scope){return [_vm._t(col.slot,null,{"row":scope.row,"index":scope.$index,"column":col})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(col),false))]})],2)],1),(_vm.showPagination)?_c('div',{staticClass:"ex-table-footer"},[_c('el-pagination',{attrs:{"current-page":_vm.pagination.pageNum,"page-size":_vm.pagination.pageSize,"total":_vm.total,"page-sizes":_vm.pagination.pageSizes || [10, 20, 50, 100],"layout":"total, sizes, prev, pager, next, jumper"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1):_vm._e()])
|
|
135053
135251
|
}
|
|
135054
135252
|
var xt_tablevue_type_template_id_0fa7d6af_scoped_true_staticRenderFns = []
|
|
@@ -135102,7 +135300,7 @@ var XtTableCell_component = normalizeComponent(
|
|
|
135102
135300
|
)
|
|
135103
135301
|
|
|
135104
135302
|
/* harmony default export */ var XtTableCell = (XtTableCell_component.exports);
|
|
135105
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135303
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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/VirtualElTable.vue?vue&type=template&id=01f7dcee&scoped=true
|
|
135106
135304
|
var VirtualElTablevue_type_template_id_01f7dcee_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-table',_vm._g(_vm._b({ref:"innerTable",attrs:{"data":_vm.renderList}},'el-table',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)
|
|
135107
135305
|
}
|
|
135108
135306
|
var VirtualElTablevue_type_template_id_01f7dcee_scoped_true_staticRenderFns = []
|
|
@@ -135711,6 +135909,196 @@ xt_table.install = function (Vue) {
|
|
|
135711
135909
|
|
|
135712
135910
|
/* harmony default export */ var components_xt_table = (xt_table);
|
|
135713
135911
|
|
|
135912
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"69a2a4ec-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-scroll-arrow/index.vue?vue&type=template&id=fa161f32
|
|
135913
|
+
var xt_scroll_arrowvue_type_template_id_fa161f32_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-scroll-arrow",class:[`xt-scroll-arrow--${_vm.direction}`],style:(_vm.containerStyle)},[(_vm.showLeftArrow)?_c('div',{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--left",on:{"click":_vm.scrollLeft}},[_c('i',{staticClass:"el-icon-arrow-left"})]):_vm._e(),_c('div',{ref:"scrollContainer",staticClass:"xt-scroll-arrow__content",on:{"scroll":_vm.handleScroll}},[_vm._t("default")],2),(_vm.showRightArrow)?_c('div',{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--right",on:{"click":_vm.scrollRight}},[_c('i',{staticClass:"el-icon-arrow-right"})]):_vm._e(),(_vm.showTopArrow && _vm.direction === 'vertical')?_c('div',{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--top",on:{"click":_vm.scrollTop}},[_c('i',{staticClass:"el-icon-arrow-up"})]):_vm._e(),(_vm.showBottomArrow && _vm.direction === 'vertical')?_c('div',{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--bottom",on:{"click":_vm.scrollBottom}},[_c('i',{staticClass:"el-icon-arrow-down"})]):_vm._e()])
|
|
135914
|
+
}
|
|
135915
|
+
var xt_scroll_arrowvue_type_template_id_fa161f32_staticRenderFns = []
|
|
135916
|
+
|
|
135917
|
+
|
|
135918
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue?vue&type=template&id=fa161f32
|
|
135919
|
+
|
|
135920
|
+
// 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-scroll-arrow/index.vue?vue&type=script&lang=js
|
|
135921
|
+
|
|
135922
|
+
/* harmony default export */ var xt_scroll_arrowvue_type_script_lang_js = ({
|
|
135923
|
+
name: 'XtScrollArrow',
|
|
135924
|
+
props: {
|
|
135925
|
+
direction: {
|
|
135926
|
+
type: String,
|
|
135927
|
+
default: 'horizontal',
|
|
135928
|
+
validator: (val) => ['horizontal', 'vertical'].includes(val)
|
|
135929
|
+
},
|
|
135930
|
+
scrollStep: {
|
|
135931
|
+
type: Number,
|
|
135932
|
+
default: 100
|
|
135933
|
+
},
|
|
135934
|
+
autoHide: {
|
|
135935
|
+
type: Boolean,
|
|
135936
|
+
default: true
|
|
135937
|
+
},
|
|
135938
|
+
height: {
|
|
135939
|
+
type: [String, Number],
|
|
135940
|
+
default: ''
|
|
135941
|
+
},
|
|
135942
|
+
width: {
|
|
135943
|
+
type: [String, Number],
|
|
135944
|
+
default: ''
|
|
135945
|
+
}
|
|
135946
|
+
},
|
|
135947
|
+
data() {
|
|
135948
|
+
return {
|
|
135949
|
+
showLeftArrow: false,
|
|
135950
|
+
showRightArrow: false,
|
|
135951
|
+
showTopArrow: false,
|
|
135952
|
+
showBottomArrow: false
|
|
135953
|
+
}
|
|
135954
|
+
},
|
|
135955
|
+
computed: {
|
|
135956
|
+
containerStyle() {
|
|
135957
|
+
const style = {}
|
|
135958
|
+
if (this.height) {
|
|
135959
|
+
style.height = typeof this.height === 'number' ? `${this.height}px` : this.height
|
|
135960
|
+
}
|
|
135961
|
+
if (this.width) {
|
|
135962
|
+
style.width = typeof this.width === 'number' ? `${this.width}px` : this.width
|
|
135963
|
+
}
|
|
135964
|
+
return style
|
|
135965
|
+
}
|
|
135966
|
+
},
|
|
135967
|
+
watch: {
|
|
135968
|
+
direction() {
|
|
135969
|
+
this.$nextTick(() => {
|
|
135970
|
+
this.checkScroll()
|
|
135971
|
+
})
|
|
135972
|
+
}
|
|
135973
|
+
},
|
|
135974
|
+
mounted() {
|
|
135975
|
+
this.$nextTick(() => {
|
|
135976
|
+
this.checkScroll()
|
|
135977
|
+
})
|
|
135978
|
+
this.addResizeObserver()
|
|
135979
|
+
},
|
|
135980
|
+
beforeDestroy() {
|
|
135981
|
+
this.removeResizeObserver()
|
|
135982
|
+
},
|
|
135983
|
+
methods: {
|
|
135984
|
+
addResizeObserver() {
|
|
135985
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
135986
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
135987
|
+
this.$nextTick(() => {
|
|
135988
|
+
this.checkScroll()
|
|
135989
|
+
})
|
|
135990
|
+
})
|
|
135991
|
+
const container = this.$refs.scrollContainer
|
|
135992
|
+
if (container) {
|
|
135993
|
+
this.resizeObserver.observe(container)
|
|
135994
|
+
}
|
|
135995
|
+
}
|
|
135996
|
+
},
|
|
135997
|
+
removeResizeObserver() {
|
|
135998
|
+
if (this.resizeObserver) {
|
|
135999
|
+
this.resizeObserver.disconnect()
|
|
136000
|
+
}
|
|
136001
|
+
},
|
|
136002
|
+
checkScroll() {
|
|
136003
|
+
const container = this.$refs.scrollContainer
|
|
136004
|
+
if (!container) return
|
|
136005
|
+
|
|
136006
|
+
if (this.direction === 'horizontal') {
|
|
136007
|
+
const scrollLeft = container.scrollLeft
|
|
136008
|
+
const scrollWidth = container.scrollWidth
|
|
136009
|
+
const clientWidth = container.clientWidth
|
|
136010
|
+
const maxScroll = scrollWidth - clientWidth
|
|
136011
|
+
|
|
136012
|
+
this.showTopArrow = false
|
|
136013
|
+
this.showBottomArrow = false
|
|
136014
|
+
|
|
136015
|
+
if (this.autoHide) {
|
|
136016
|
+
this.showLeftArrow = scrollLeft > 0
|
|
136017
|
+
this.showRightArrow = maxScroll > 0 && scrollLeft < maxScroll
|
|
136018
|
+
} else {
|
|
136019
|
+
this.showLeftArrow = maxScroll > 0
|
|
136020
|
+
this.showRightArrow = maxScroll > 0
|
|
136021
|
+
}
|
|
136022
|
+
} else {
|
|
136023
|
+
const scrollTop = container.scrollTop
|
|
136024
|
+
const scrollHeight = container.scrollHeight
|
|
136025
|
+
const clientHeight = container.clientHeight
|
|
136026
|
+
const maxScroll = scrollHeight - clientHeight
|
|
136027
|
+
|
|
136028
|
+
this.showLeftArrow = false
|
|
136029
|
+
this.showRightArrow = false
|
|
136030
|
+
|
|
136031
|
+
if (this.autoHide) {
|
|
136032
|
+
this.showTopArrow = scrollTop > 0
|
|
136033
|
+
this.showBottomArrow = maxScroll > 0 && scrollTop < maxScroll
|
|
136034
|
+
} else {
|
|
136035
|
+
this.showTopArrow = maxScroll > 0
|
|
136036
|
+
this.showBottomArrow = maxScroll > 0
|
|
136037
|
+
}
|
|
136038
|
+
}
|
|
136039
|
+
},
|
|
136040
|
+
handleScroll() {
|
|
136041
|
+
this.checkScroll()
|
|
136042
|
+
this.$emit('scroll', this.$refs.scrollContainer)
|
|
136043
|
+
},
|
|
136044
|
+
scrollLeft() {
|
|
136045
|
+
const container = this.$refs.scrollContainer
|
|
136046
|
+
if (container) {
|
|
136047
|
+
container.scrollBy({ left: -this.scrollStep, behavior: 'smooth' })
|
|
136048
|
+
}
|
|
136049
|
+
},
|
|
136050
|
+
scrollRight() {
|
|
136051
|
+
const container = this.$refs.scrollContainer
|
|
136052
|
+
if (container) {
|
|
136053
|
+
container.scrollBy({ left: this.scrollStep, behavior: 'smooth' })
|
|
136054
|
+
}
|
|
136055
|
+
},
|
|
136056
|
+
scrollTop() {
|
|
136057
|
+
const container = this.$refs.scrollContainer
|
|
136058
|
+
if (container) {
|
|
136059
|
+
container.scrollBy({ top: -this.scrollStep, behavior: 'smooth' })
|
|
136060
|
+
}
|
|
136061
|
+
},
|
|
136062
|
+
scrollBottom() {
|
|
136063
|
+
const container = this.$refs.scrollContainer
|
|
136064
|
+
if (container) {
|
|
136065
|
+
container.scrollBy({ top: this.scrollStep, behavior: 'smooth' })
|
|
136066
|
+
}
|
|
136067
|
+
}
|
|
136068
|
+
}
|
|
136069
|
+
});
|
|
136070
|
+
|
|
136071
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue?vue&type=script&lang=js
|
|
136072
|
+
/* harmony default export */ var components_xt_scroll_arrowvue_type_script_lang_js = (xt_scroll_arrowvue_type_script_lang_js);
|
|
136073
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue
|
|
136074
|
+
|
|
136075
|
+
|
|
136076
|
+
|
|
136077
|
+
|
|
136078
|
+
|
|
136079
|
+
/* normalize component */
|
|
136080
|
+
|
|
136081
|
+
var xt_scroll_arrow_component = normalizeComponent(
|
|
136082
|
+
components_xt_scroll_arrowvue_type_script_lang_js,
|
|
136083
|
+
xt_scroll_arrowvue_type_template_id_fa161f32_render,
|
|
136084
|
+
xt_scroll_arrowvue_type_template_id_fa161f32_staticRenderFns,
|
|
136085
|
+
false,
|
|
136086
|
+
null,
|
|
136087
|
+
null,
|
|
136088
|
+
null
|
|
136089
|
+
|
|
136090
|
+
)
|
|
136091
|
+
|
|
136092
|
+
/* harmony default export */ var xt_scroll_arrow = (xt_scroll_arrow_component.exports);
|
|
136093
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.js
|
|
136094
|
+
|
|
136095
|
+
|
|
136096
|
+
xt_scroll_arrow.install = function (Vue) {
|
|
136097
|
+
Vue.component(xt_scroll_arrow.name, xt_scroll_arrow)
|
|
136098
|
+
}
|
|
136099
|
+
|
|
136100
|
+
/* harmony default export */ var components_xt_scroll_arrow = (xt_scroll_arrow);
|
|
136101
|
+
|
|
135714
136102
|
// CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
|
|
135715
136103
|
/**
|
|
135716
136104
|
* 生成虚拟滚动演示数据
|
|
@@ -135790,6 +136178,7 @@ const { getConfig: src_getConfig, setConfig: src_setConfig, getTheme: src_getThe
|
|
|
135790
136178
|
// XtTable 组件(基于 ElementUI Table 封装)
|
|
135791
136179
|
|
|
135792
136180
|
|
|
136181
|
+
|
|
135793
136182
|
const src_components = [
|
|
135794
136183
|
components_xt_button,
|
|
135795
136184
|
components_xt_input,
|
|
@@ -135811,7 +136200,8 @@ const src_components = [
|
|
|
135811
136200
|
components_xt_date_picker,
|
|
135812
136201
|
components_xt_chart,
|
|
135813
136202
|
components_xt_icon,
|
|
135814
|
-
components_xt_table
|
|
136203
|
+
components_xt_table,
|
|
136204
|
+
components_xt_scroll_arrow
|
|
135815
136205
|
]
|
|
135816
136206
|
|
|
135817
136207
|
const install = function (Vue, options = {}) {
|
|
@@ -135880,7 +136270,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
135880
136270
|
XtBadge: components_xt_badge,
|
|
135881
136271
|
XtDatePicker: components_xt_date_picker,
|
|
135882
136272
|
XtIcon: components_xt_icon,
|
|
135883
|
-
XtTable: components_xt_table
|
|
136273
|
+
XtTable: components_xt_table,
|
|
136274
|
+
XtScrollArrow: components_xt_scroll_arrow
|
|
135884
136275
|
});
|
|
135885
136276
|
|
|
135886
136277
|
// XtChart 组件按需导出(使用时需自行安装 echarts 依赖)
|