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.umd.js
CHANGED
|
@@ -128941,7 +128941,7 @@ const onConfigChange = function(listener) {
|
|
|
128941
128941
|
onConfigChange
|
|
128942
128942
|
});
|
|
128943
128943
|
|
|
128944
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
128944
|
+
// 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
|
|
128945
128945
|
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)
|
|
128946
128946
|
}
|
|
128947
128947
|
var staticRenderFns = []
|
|
@@ -129136,16 +129136,16 @@ xt_button.install = function (Vue) {
|
|
|
129136
129136
|
|
|
129137
129137
|
/* harmony default export */ var components_xt_button = (xt_button);
|
|
129138
129138
|
|
|
129139
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129140
|
-
var
|
|
129139
|
+
// 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
|
|
129140
|
+
var xt_inputvue_type_template_id_6c337ae4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-input",class:[
|
|
129141
129141
|
_vm.size ? 'xt-input--' + _vm.size : '',
|
|
129142
129142
|
{ 'is-disabled': _vm.disabled }
|
|
129143
|
-
]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.
|
|
129143
|
+
]},[_c('el-input',{style:(_vm.inputStyle),attrs:{"value":_vm.displayValue,"placeholder":_vm.placeholder,"type":_vm.isNumberType ? 'text' : _vm.type,"size":_vm.size,"disabled":_vm.disabled,"readonly":_vm.readonly},on:{"input":_vm.handleInput,"change":_vm.handleChange,"focus":_vm.handleFocus,"blur":_vm.handleBlur}})],1)
|
|
129144
129144
|
}
|
|
129145
|
-
var
|
|
129145
|
+
var xt_inputvue_type_template_id_6c337ae4_staticRenderFns = []
|
|
129146
129146
|
|
|
129147
129147
|
|
|
129148
|
-
// CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=
|
|
129148
|
+
// CONCATENATED MODULE: ./src/components/xt-input/index.vue?vue&type=template&id=6c337ae4
|
|
129149
129149
|
|
|
129150
129150
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-input/index.vue?vue&type=script&lang=js
|
|
129151
129151
|
|
|
@@ -129178,7 +129178,22 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129178
129178
|
default: ''
|
|
129179
129179
|
}
|
|
129180
129180
|
},
|
|
129181
|
+
data() {
|
|
129182
|
+
return {
|
|
129183
|
+
currentStr: '',
|
|
129184
|
+
isFocused: false
|
|
129185
|
+
}
|
|
129186
|
+
},
|
|
129181
129187
|
computed: {
|
|
129188
|
+
isNumberType() {
|
|
129189
|
+
return this.type === 'number'
|
|
129190
|
+
},
|
|
129191
|
+
displayValue() {
|
|
129192
|
+
if (this.isNumberType) {
|
|
129193
|
+
return this.currentStr
|
|
129194
|
+
}
|
|
129195
|
+
return this.value
|
|
129196
|
+
},
|
|
129182
129197
|
inputStyle() {
|
|
129183
129198
|
if (this.color) {
|
|
129184
129199
|
return {
|
|
@@ -129187,6 +129202,71 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129187
129202
|
}
|
|
129188
129203
|
return {}
|
|
129189
129204
|
}
|
|
129205
|
+
},
|
|
129206
|
+
watch: {
|
|
129207
|
+
value: {
|
|
129208
|
+
immediate: true,
|
|
129209
|
+
handler(val) {
|
|
129210
|
+
if (this.isNumberType && !this.isFocused) {
|
|
129211
|
+
this.currentStr = val === null || val === undefined || val === '' ? '' : String(val)
|
|
129212
|
+
}
|
|
129213
|
+
}
|
|
129214
|
+
}
|
|
129215
|
+
},
|
|
129216
|
+
methods: {
|
|
129217
|
+
isValidNumber(str) {
|
|
129218
|
+
return /^[+-]?\d*\.?\d*$/.test(str)
|
|
129219
|
+
},
|
|
129220
|
+
handleInput(val) {
|
|
129221
|
+
if (this.isNumberType) {
|
|
129222
|
+
if (this.isValidNumber(val)) {
|
|
129223
|
+
this.currentStr = val
|
|
129224
|
+
const num = this.parseToNumber(val)
|
|
129225
|
+
if (num !== undefined) {
|
|
129226
|
+
this.$emit('input', num)
|
|
129227
|
+
}
|
|
129228
|
+
}
|
|
129229
|
+
} else {
|
|
129230
|
+
this.$emit('input', val)
|
|
129231
|
+
}
|
|
129232
|
+
},
|
|
129233
|
+
handleChange(val) {
|
|
129234
|
+
if (this.isNumberType) {
|
|
129235
|
+
const num = this.parseToNumber(val)
|
|
129236
|
+
this.$emit('change', num)
|
|
129237
|
+
} else {
|
|
129238
|
+
this.$emit('change', val)
|
|
129239
|
+
}
|
|
129240
|
+
},
|
|
129241
|
+
handleFocus(e) {
|
|
129242
|
+
this.isFocused = true
|
|
129243
|
+
this.$emit('focus', e)
|
|
129244
|
+
},
|
|
129245
|
+
handleBlur(e) {
|
|
129246
|
+
this.isFocused = false
|
|
129247
|
+
if (this.isNumberType) {
|
|
129248
|
+
const num = this.parseToNumber(this.currentStr)
|
|
129249
|
+
this.$emit('blur', num, e)
|
|
129250
|
+
if (num !== undefined) {
|
|
129251
|
+
this.currentStr = String(num)
|
|
129252
|
+
this.$emit('input', num)
|
|
129253
|
+
} else {
|
|
129254
|
+
if (this.currentStr !== '') {
|
|
129255
|
+
this.currentStr = ''
|
|
129256
|
+
this.$emit('input', undefined)
|
|
129257
|
+
}
|
|
129258
|
+
}
|
|
129259
|
+
} else {
|
|
129260
|
+
this.$emit('blur', e)
|
|
129261
|
+
}
|
|
129262
|
+
},
|
|
129263
|
+
parseToNumber(str) {
|
|
129264
|
+
if (!str || str === '+' || str === '-' || str === '.' || str === '+.' || str === '-.' || str === '-.') {
|
|
129265
|
+
return undefined
|
|
129266
|
+
}
|
|
129267
|
+
const num = parseFloat(str)
|
|
129268
|
+
return isNaN(num) ? undefined : num
|
|
129269
|
+
}
|
|
129190
129270
|
}
|
|
129191
129271
|
});
|
|
129192
129272
|
|
|
@@ -129202,8 +129282,8 @@ var xt_inputvue_type_template_id_69bd5491_staticRenderFns = []
|
|
|
129202
129282
|
|
|
129203
129283
|
var xt_input_component = normalizeComponent(
|
|
129204
129284
|
components_xt_inputvue_type_script_lang_js,
|
|
129205
|
-
|
|
129206
|
-
|
|
129285
|
+
xt_inputvue_type_template_id_6c337ae4_render,
|
|
129286
|
+
xt_inputvue_type_template_id_6c337ae4_staticRenderFns,
|
|
129207
129287
|
false,
|
|
129208
129288
|
null,
|
|
129209
129289
|
null,
|
|
@@ -129222,7 +129302,7 @@ xt_input.install = function (Vue) {
|
|
|
129222
129302
|
/* harmony default export */ var components_xt_input = (xt_input);
|
|
129223
129303
|
|
|
129224
129304
|
|
|
129225
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129305
|
+
// 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
|
|
129226
129306
|
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)
|
|
129227
129307
|
}
|
|
129228
129308
|
var xt_flex_boxvue_type_template_id_21429280_staticRenderFns = []
|
|
@@ -129291,7 +129371,7 @@ xt_flex_box.install = function (Vue) {
|
|
|
129291
129371
|
/* harmony default export */ var components_xt_flex_box = (xt_flex_box);
|
|
129292
129372
|
|
|
129293
129373
|
|
|
129294
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129374
|
+
// 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
|
|
129295
129375
|
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)
|
|
129296
129376
|
}
|
|
129297
129377
|
var xt_cardvue_type_template_id_67b1fb86_staticRenderFns = []
|
|
@@ -129385,7 +129465,7 @@ xt_card.install = function (Vue) {
|
|
|
129385
129465
|
}
|
|
129386
129466
|
|
|
129387
129467
|
/* harmony default export */ var components_xt_card = (xt_card);
|
|
129388
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129468
|
+
// 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
|
|
129389
129469
|
var xt_card_itemvue_type_template_id_dbcd74f4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.change),callback:function ($$v) {_vm.change=$$v},expression:"change"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
|
|
129390
129470
|
}
|
|
129391
129471
|
var xt_card_itemvue_type_template_id_dbcd74f4_staticRenderFns = []
|
|
@@ -129833,7 +129913,7 @@ xt_config_provider.install = function (Vue) {
|
|
|
129833
129913
|
/* harmony default export */ var components_xt_config_provider = (xt_config_provider);
|
|
129834
129914
|
|
|
129835
129915
|
|
|
129836
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
129916
|
+
// 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
|
|
129837
129917
|
var xt_textvue_type_template_id_7f658496_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showTooltip && _vm.ellipsis)?_c('el-tooltip',{attrs:{"content":_vm.displayTooltipContent,"placement":_vm.tooltipPlacement,"disabled":!_vm.isOverflow,"effect":"dark"}},[_c('span',{ref:"textRef",staticClass:"xt-text",class:[
|
|
129838
129918
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
129839
129919
|
'xt-text--' + _vm.size,
|
|
@@ -130135,7 +130215,7 @@ xt_text.install = function (Vue) {
|
|
|
130135
130215
|
/* harmony default export */ var components_xt_text = (xt_text);
|
|
130136
130216
|
|
|
130137
130217
|
|
|
130138
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130218
|
+
// 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
|
|
130139
130219
|
var xt_timevue_type_template_id_d29acf2c_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-time",class:[
|
|
130140
130220
|
_vm.typeColor ? 'xt-time--' + _vm.typeColor : '',
|
|
130141
130221
|
'xt-time--' + _vm.size,
|
|
@@ -130456,21 +130536,21 @@ xt_time.install = function (Vue) {
|
|
|
130456
130536
|
/* harmony default export */ var components_xt_time = (xt_time);
|
|
130457
130537
|
|
|
130458
130538
|
|
|
130459
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130460
|
-
var
|
|
130539
|
+
// 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
|
|
130540
|
+
var xt_step_pricevue_type_template_id_10c6e331_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price",class:{ 'is-disabled': _vm.disabled }},[(_vm.title || _vm.$slots.header)?_c('div',{staticClass:"xt-step-price__header"},[(_vm.title)?_c('xt-text',{attrs:{"bold":"","size":"medium"}},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._t("header"),(!_vm.disabled && !_vm.isLimitReached)?_c('xt-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-plus","plain":""},on:{"click":_vm.onAdd}},[_vm._v("新增"+_vm._s(_vm.stepName))]):_vm._e(),(_vm.isLimitReached)?_c('xt-text',{attrs:{"size":"small","type-color":"info"}},[_vm._v("已达上限("+_vm._s(_vm.localItems.length)+"/"+_vm._s(_vm.limit)+")")]):_vm._e()],2):_vm._e(),_c('div',{staticClass:"xt-step-price__list"},_vm._l((_vm.localItems),function(item,idx){return _c('XtStepPriceItem',{key:idx,attrs:{"value":item,"index":idx,"is-first":idx === 0,"is-last":idx === _vm.localItems.length - 1,"items-length":_vm.localItems.length,"removable":idx !== 0,"min-locked":idx !== 0 ? true : false,"unit":_vm.unit,"precision":_vm.precision,"step-name":_vm.stepName,"step":_vm.step,"left-bracket":_vm.leftBracket,"right-bracket":_vm.rightBracket,"field-keys":_vm.fieldKeys,"disabled":_vm.disabled},on:{"input":(val) => _vm.onItemInput(val, idx),"max-change":_vm.onMaxChange,"min-change":_vm.onMinChange,"delete":_vm.onDelete,"blur":_vm.onFieldBlur}})}),1),(_vm.localItems.length === 0)?_c('div',{staticClass:"xt-step-price__empty"},[_c('span',[_vm._v("暂无数据,点击右上角「新增"+_vm._s(_vm.stepName)+"」开始配置")])]):_vm._e(),(_vm.tip || _vm.$slots.tip)?_c('div',{staticClass:"xt-step-price__tip"},[_vm._t("tip",function(){return [_c('xt-text',{attrs:{"size":"small","type-color":"warning"}},[_vm._v(_vm._s(_vm.tip))])]})],2):_vm._e()])
|
|
130461
130541
|
}
|
|
130462
|
-
var
|
|
130542
|
+
var xt_step_pricevue_type_template_id_10c6e331_staticRenderFns = []
|
|
130463
130543
|
|
|
130464
130544
|
|
|
130465
|
-
// CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=
|
|
130545
|
+
// CONCATENATED MODULE: ./src/components/xt-step-price/index.vue?vue&type=template&id=10c6e331
|
|
130466
130546
|
|
|
130467
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130468
|
-
var
|
|
130547
|
+
// 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
|
|
130548
|
+
var xt_step_price_itemvue_type_template_id_579d80c1_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-step-price-item"},[_c('div',{staticClass:"xt-step-price-item__range"},[_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalLeftBracket))]),(_vm.itemsLength > 1)?_c('span',{staticClass:"xt-step-price-item__name"},[_vm._v("第"+_vm._s(_vm.index + 1)+_vm._s(_vm.stepName))]):_vm._e(),_c('span',{staticClass:"xt-step-price-item__bracket"},[_vm._v(_vm._s(_vm.finalRightBracket))]),_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"disabled":_vm.disabled || _vm.minLocked,"size":"small","placeholder":"下限"},on:{"blur":(e) => { _vm.onMinBlur(); _vm.onBlur(e) }},model:{value:(_vm.minInput),callback:function ($$v) {_vm.minInput=_vm._n($$v)},expression:"minInput"}}),_c('span',{staticClass:"xt-step-price-item__comma"},[_vm._v("-")]),(!_vm.isLast)?_c('xt-input',{staticClass:"xt-step-price-item__input",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"上限"},on:{"blur":(e) => { _vm.onMaxBlur(); _vm.onBlur(e) }},model:{value:(_vm.maxInput),callback:function ($$v) {_vm.maxInput=_vm._n($$v)},expression:"maxInput"}}):_c('span',{staticClass:"xt-step-price-item__infinity"},[_vm._v("+∞")])],1),_c('div',{staticClass:"xt-step-price-item__price"},[_c('xt-input',{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{"type":"number","disabled":_vm.disabled,"size":"small","placeholder":"价格"},on:{"blur":(e) => { _vm.onPriceBlur(); _vm.onBlur(e) }},model:{value:(_vm.priceInput),callback:function ($$v) {_vm.priceInput=_vm._n($$v)},expression:"priceInput"}}),_c('span',{staticClass:"xt-step-price-item__unit"},[_vm._v(_vm._s(_vm.unit))])],1),(!_vm.disabled && _vm.removable && _vm.itemsLength > 1)?_c('xt-button',{staticClass:"xt-step-price-item__delete",attrs:{"text":"","icon":"el-icon-delete"},on:{"click":_vm.onDelete}}):_vm._e()],1)
|
|
130469
130549
|
}
|
|
130470
|
-
var
|
|
130550
|
+
var xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns = []
|
|
130471
130551
|
|
|
130472
130552
|
|
|
130473
|
-
// CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=
|
|
130553
|
+
// CONCATENATED MODULE: ./src/components/xt-step-price-item/index.vue?vue&type=template&id=579d80c1
|
|
130474
130554
|
|
|
130475
130555
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-step-price-item/index.vue?vue&type=script&lang=js
|
|
130476
130556
|
|
|
@@ -130483,6 +130563,7 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130483
130563
|
required: true,
|
|
130484
130564
|
default: () => ({ min: 0, max: null, price: 0 })
|
|
130485
130565
|
},
|
|
130566
|
+
stepName: { type: String, default: '阶梯' },
|
|
130486
130567
|
index: { type: Number, default: 0 },
|
|
130487
130568
|
isFirst: { type: Boolean, default: false },
|
|
130488
130569
|
isLast: { type: Boolean, default: false },
|
|
@@ -130602,13 +130683,23 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130602
130683
|
},
|
|
130603
130684
|
|
|
130604
130685
|
onPriceBlur() {
|
|
130605
|
-
|
|
130686
|
+
const rawVal = this.priceInput
|
|
130687
|
+
if (rawVal === null || rawVal === undefined || rawVal === '' || isNaN(rawVal)) {
|
|
130688
|
+
this.priceInput = ''
|
|
130689
|
+
this.emitChange({ [this.keyPrice]: '' })
|
|
130690
|
+
return
|
|
130691
|
+
}
|
|
130692
|
+
let v = this.safeNumber(rawVal, 0)
|
|
130606
130693
|
if (v < 0) v = 0
|
|
130607
130694
|
v = Number(v.toFixed(this.precision))
|
|
130608
130695
|
this.priceInput = v
|
|
130609
130696
|
this.emitChange({ [this.keyPrice]: v })
|
|
130610
130697
|
},
|
|
130611
130698
|
|
|
130699
|
+
onBlur(e) {
|
|
130700
|
+
this.$emit('blur', e)
|
|
130701
|
+
},
|
|
130702
|
+
|
|
130612
130703
|
onDelete() {
|
|
130613
130704
|
this.$emit('delete', this.index)
|
|
130614
130705
|
}
|
|
@@ -130627,8 +130718,8 @@ var xt_step_price_itemvue_type_template_id_8baafa30_staticRenderFns = []
|
|
|
130627
130718
|
|
|
130628
130719
|
var xt_step_price_item_component = normalizeComponent(
|
|
130629
130720
|
components_xt_step_price_itemvue_type_script_lang_js,
|
|
130630
|
-
|
|
130631
|
-
|
|
130721
|
+
xt_step_price_itemvue_type_template_id_579d80c1_render,
|
|
130722
|
+
xt_step_price_itemvue_type_template_id_579d80c1_staticRenderFns,
|
|
130632
130723
|
false,
|
|
130633
130724
|
null,
|
|
130634
130725
|
null,
|
|
@@ -130646,6 +130737,12 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130646
130737
|
|
|
130647
130738
|
components: { XtStepPriceItem: xt_step_price_item },
|
|
130648
130739
|
|
|
130740
|
+
inject: {
|
|
130741
|
+
elFormItem: {
|
|
130742
|
+
default: ''
|
|
130743
|
+
}
|
|
130744
|
+
},
|
|
130745
|
+
|
|
130649
130746
|
computed: {
|
|
130650
130747
|
keyMin() { return (this.fieldKeys && this.fieldKeys.min) || 'min' },
|
|
130651
130748
|
keyMax() { return (this.fieldKeys && this.fieldKeys.max) || 'max' },
|
|
@@ -130663,6 +130760,7 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130663
130760
|
},
|
|
130664
130761
|
title: { type: String, default: '' },
|
|
130665
130762
|
unit: { type: String, default: '元' },
|
|
130763
|
+
stepName: { type: String, default: '阶梯' },
|
|
130666
130764
|
precision: { type: Number, default: 2 },
|
|
130667
130765
|
// 左括号:默认 '[',传空字符串则不显示
|
|
130668
130766
|
leftBracket: { type: String, default: '[' },
|
|
@@ -130712,11 +130810,14 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130712
130810
|
|
|
130713
130811
|
cloneItems(items) {
|
|
130714
130812
|
if (!Array.isArray(items)) return []
|
|
130715
|
-
return items.map((it) =>
|
|
130716
|
-
|
|
130717
|
-
|
|
130718
|
-
|
|
130719
|
-
|
|
130813
|
+
return items.map((it) => {
|
|
130814
|
+
const price = (it && it[this.keyPrice])
|
|
130815
|
+
return {
|
|
130816
|
+
[this.keyMin]: this.safeNumber(it && it[this.keyMin], 0),
|
|
130817
|
+
[this.keyMax]: (it && it[this.keyMax] == null) || (it && it[this.keyMax] === '') ? null : this.safeNumber(it[this.keyMax], null),
|
|
130818
|
+
[this.keyPrice]: (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
|
|
130819
|
+
}
|
|
130820
|
+
})
|
|
130720
130821
|
},
|
|
130721
130822
|
|
|
130722
130823
|
normalize(items) {
|
|
@@ -130747,7 +130848,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130747
130848
|
} else {
|
|
130748
130849
|
cur[this.keyMax] = null
|
|
130749
130850
|
}
|
|
130750
|
-
|
|
130851
|
+
const price = cur[this.keyPrice]
|
|
130852
|
+
cur[this.keyPrice] = (price === null || price === undefined || price === '') ? '' : this.safeNumber(price, 0)
|
|
130751
130853
|
}
|
|
130752
130854
|
},
|
|
130753
130855
|
|
|
@@ -130756,15 +130858,118 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130756
130858
|
const cloned = this.cloneItems(this.localItems)
|
|
130757
130859
|
this.$emit('input', cloned)
|
|
130758
130860
|
this.$emit('change', cloned)
|
|
130861
|
+
this.dispatchFormEvent('el.form.change', cloned)
|
|
130862
|
+
},
|
|
130863
|
+
|
|
130864
|
+
dispatchFormEvent(eventName, value) {
|
|
130865
|
+
if (this.elFormItem) {
|
|
130866
|
+
this.elFormItem.$emit(eventName, value)
|
|
130867
|
+
}
|
|
130868
|
+
},
|
|
130869
|
+
|
|
130870
|
+
onFieldBlur() {
|
|
130871
|
+
this.dispatchFormEvent('el.form.blur', this.localItems)
|
|
130872
|
+
},
|
|
130873
|
+
|
|
130874
|
+
validate(callback) {
|
|
130875
|
+
const list = this.localItems
|
|
130876
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
130877
|
+
callback && callback(false, [{ field: 'stepPrice', message: `请配置${this.stepName}`, type: 'error' }])
|
|
130878
|
+
return false
|
|
130879
|
+
}
|
|
130880
|
+
|
|
130881
|
+
const errors = []
|
|
130882
|
+
for (let i = 0; i < list.length; i++) {
|
|
130883
|
+
const item = list[i]
|
|
130884
|
+
const rawPrice = item[this.keyPrice]
|
|
130885
|
+
const rawMin = item[this.keyMin]
|
|
130886
|
+
const rawMax = item[this.keyMax]
|
|
130887
|
+
const price = this.safeNumber(rawPrice, 0)
|
|
130888
|
+
const min = this.safeNumber(rawMin, 0)
|
|
130889
|
+
|
|
130890
|
+
if (rawPrice === null || rawPrice === undefined || rawPrice === '') {
|
|
130891
|
+
errors.push({
|
|
130892
|
+
field: `stepPrice[${i}].price`,
|
|
130893
|
+
message: `第${i + 1}${this.stepName}价格不能为空`,
|
|
130894
|
+
type: 'error'
|
|
130895
|
+
})
|
|
130896
|
+
} else if (price < 0) {
|
|
130897
|
+
errors.push({
|
|
130898
|
+
field: `stepPrice[${i}].price`,
|
|
130899
|
+
message: `第${i + 1}${this.stepName}价格不能为负数`,
|
|
130900
|
+
type: 'error'
|
|
130901
|
+
})
|
|
130902
|
+
}
|
|
130903
|
+
|
|
130904
|
+
if (rawMin === null || rawMin === undefined || rawMin === '') {
|
|
130905
|
+
errors.push({
|
|
130906
|
+
field: `stepPrice[${i}].min`,
|
|
130907
|
+
message: `第${i + 1}${this.stepName}下限不能为空`,
|
|
130908
|
+
type: 'error'
|
|
130909
|
+
})
|
|
130910
|
+
} else if (min < 0) {
|
|
130911
|
+
errors.push({
|
|
130912
|
+
field: `stepPrice[${i}].min`,
|
|
130913
|
+
message: `第${i + 1}${this.stepName}下限不能为负数`,
|
|
130914
|
+
type: 'error'
|
|
130915
|
+
})
|
|
130916
|
+
}
|
|
130917
|
+
|
|
130918
|
+
if (!this.isLast(i)) {
|
|
130919
|
+
if (rawMax === null || rawMax === undefined || rawMax === '') {
|
|
130920
|
+
errors.push({
|
|
130921
|
+
field: `stepPrice[${i}].max`,
|
|
130922
|
+
message: `第${i + 1}${this.stepName}上限不能为空`,
|
|
130923
|
+
type: 'error'
|
|
130924
|
+
})
|
|
130925
|
+
} else if (this.safeNumber(rawMax, 0) <= min) {
|
|
130926
|
+
errors.push({
|
|
130927
|
+
field: `stepPrice[${i}].max`,
|
|
130928
|
+
message: `第${i + 1}${this.stepName}上限必须大于下限`,
|
|
130929
|
+
type: 'error'
|
|
130930
|
+
})
|
|
130931
|
+
}
|
|
130932
|
+
}
|
|
130933
|
+
|
|
130934
|
+
if (i > 0) {
|
|
130935
|
+
const prev = list[i - 1]
|
|
130936
|
+
const prevMax = prev[this.keyMax]
|
|
130937
|
+
if (prevMax !== null && this.safeNumber(prevMax, 0) !== min) {
|
|
130938
|
+
errors.push({
|
|
130939
|
+
field: `stepPrice[${i}].min`,
|
|
130940
|
+
message: `第${i + 1}${this.stepName}下限必须等于上一${this.stepName}上限`,
|
|
130941
|
+
type: 'error'
|
|
130942
|
+
})
|
|
130943
|
+
}
|
|
130944
|
+
}
|
|
130945
|
+
}
|
|
130946
|
+
|
|
130947
|
+
if (errors.length > 0) {
|
|
130948
|
+
callback && callback(false, errors)
|
|
130949
|
+
return false
|
|
130950
|
+
}
|
|
130951
|
+
|
|
130952
|
+
callback && callback(true)
|
|
130953
|
+
return true
|
|
130954
|
+
},
|
|
130955
|
+
|
|
130956
|
+
isLast(idx) {
|
|
130957
|
+
return idx === this.localItems.length - 1
|
|
130759
130958
|
},
|
|
130760
130959
|
|
|
130761
130960
|
onItemInput(val, idx) {
|
|
130762
130961
|
const cur = this.localItems[idx]
|
|
130763
130962
|
if (!cur) return
|
|
130764
130963
|
if (val && val[this.keyPrice] !== undefined) {
|
|
130765
|
-
|
|
130766
|
-
p
|
|
130767
|
-
|
|
130964
|
+
const p = val[this.keyPrice]
|
|
130965
|
+
if (p === null || p === undefined || p === '') {
|
|
130966
|
+
cur[this.keyPrice] = ''
|
|
130967
|
+
} else {
|
|
130968
|
+
let num = this.safeNumber(p, 0)
|
|
130969
|
+
num = Number(num.toFixed(this.precision))
|
|
130970
|
+
cur[this.keyPrice] = num
|
|
130971
|
+
}
|
|
130972
|
+
this.emit()
|
|
130768
130973
|
}
|
|
130769
130974
|
},
|
|
130770
130975
|
|
|
@@ -130819,15 +131024,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130819
131024
|
const newMin = this.safeNumber(last[this.keyMin], 0)
|
|
130820
131025
|
const newMax = newMin + stepVal
|
|
130821
131026
|
|
|
130822
|
-
// 新条 price
|
|
130823
|
-
|
|
130824
|
-
let newPrice = 10
|
|
130825
|
-
if (prev) {
|
|
130826
|
-
newPrice = this.safeNumber(prev[this.keyPrice], 10)
|
|
130827
|
-
} else {
|
|
130828
|
-
const lastPrice = this.safeNumber(last[this.keyPrice], 0)
|
|
130829
|
-
newPrice = lastPrice > 0 ? lastPrice : 10
|
|
130830
|
-
}
|
|
131027
|
+
// 新条 price:使用默认值,由用户自行填写
|
|
131028
|
+
let newPrice = 0
|
|
130831
131029
|
|
|
130832
131030
|
const newArr = [
|
|
130833
131031
|
...list.slice(0, -1),
|
|
@@ -130879,8 +131077,8 @@ var xt_step_price_item_component = normalizeComponent(
|
|
|
130879
131077
|
|
|
130880
131078
|
var xt_step_price_component = normalizeComponent(
|
|
130881
131079
|
components_xt_step_pricevue_type_script_lang_js,
|
|
130882
|
-
|
|
130883
|
-
|
|
131080
|
+
xt_step_pricevue_type_template_id_10c6e331_render,
|
|
131081
|
+
xt_step_pricevue_type_template_id_10c6e331_staticRenderFns,
|
|
130884
131082
|
false,
|
|
130885
131083
|
null,
|
|
130886
131084
|
null,
|
|
@@ -130910,7 +131108,7 @@ xt_step_price_item.install = function (Vue) {
|
|
|
130910
131108
|
|
|
130911
131109
|
/* harmony default export */ var components_xt_step_price_item = (xt_step_price_item);
|
|
130912
131110
|
|
|
130913
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
131111
|
+
// 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
|
|
130914
131112
|
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)
|
|
130915
131113
|
}
|
|
130916
131114
|
var xt_mapvue_type_template_id_0c15823e_staticRenderFns = []
|
|
@@ -132627,7 +132825,7 @@ xt_map.install = function (Vue) {
|
|
|
132627
132825
|
/* harmony default export */ var components_xt_map = (xt_map);
|
|
132628
132826
|
|
|
132629
132827
|
|
|
132630
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
132828
|
+
// 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
|
|
132631
132829
|
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)
|
|
132632
132830
|
}
|
|
132633
132831
|
var providervue_type_template_id_16f243b0_scoped_true_staticRenderFns = []
|
|
@@ -132831,7 +133029,7 @@ xt_map_provider.install = function (Vue) {
|
|
|
132831
133029
|
/* harmony default export */ var components_xt_map_provider = (xt_map_provider);
|
|
132832
133030
|
|
|
132833
133031
|
|
|
132834
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133032
|
+
// 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
|
|
132835
133033
|
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)
|
|
132836
133034
|
}
|
|
132837
133035
|
var xt_grid_boxvue_type_template_id_67e197c4_staticRenderFns = []
|
|
@@ -133001,7 +133199,7 @@ xt_grid_box.install = function (Vue) {
|
|
|
133001
133199
|
/* harmony default export */ var components_xt_grid_box = (xt_grid_box);
|
|
133002
133200
|
|
|
133003
133201
|
|
|
133004
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133202
|
+
// 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
|
|
133005
133203
|
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)
|
|
133006
133204
|
}
|
|
133007
133205
|
var xt_grid_itemvue_type_template_id_5318efc6_scoped_true_staticRenderFns = []
|
|
@@ -133141,7 +133339,7 @@ xt_grid_item.install = function (Vue) {
|
|
|
133141
133339
|
/* harmony default export */ var components_xt_grid_item = (xt_grid_item);
|
|
133142
133340
|
|
|
133143
133341
|
|
|
133144
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133342
|
+
// 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
|
|
133145
133343
|
var xt_progressvue_type_template_id_76c95a92_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-progress",class:[
|
|
133146
133344
|
`xt-progress--${_vm.type}`,
|
|
133147
133345
|
`xt-progress--${_vm.size}`
|
|
@@ -133237,7 +133435,7 @@ xt_progress.install = function(Vue) {
|
|
|
133237
133435
|
|
|
133238
133436
|
/* harmony default export */ var components_xt_progress = (xt_progress);
|
|
133239
133437
|
|
|
133240
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133438
|
+
// 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
|
|
133241
133439
|
var xt_tabsvue_type_template_id_04b02574_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-tabs",class:[
|
|
133242
133440
|
`xt-tabs--${_vm.position}`,
|
|
133243
133441
|
{ 'xt-tabs--card': _vm.type === 'card' }
|
|
@@ -133349,7 +133547,7 @@ var xt_tabs_component = normalizeComponent(
|
|
|
133349
133547
|
)
|
|
133350
133548
|
|
|
133351
133549
|
/* harmony default export */ var xt_tabs = (xt_tabs_component.exports);
|
|
133352
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133550
|
+
// 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
|
|
133353
133551
|
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)
|
|
133354
133552
|
}
|
|
133355
133553
|
var TabPanevue_type_template_id_0c2246dc_staticRenderFns = []
|
|
@@ -133422,7 +133620,7 @@ xt_tabs.install = function(Vue) {
|
|
|
133422
133620
|
/* harmony default export */ var components_xt_tabs = (xt_tabs);
|
|
133423
133621
|
|
|
133424
133622
|
|
|
133425
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133623
|
+
// 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
|
|
133426
133624
|
var xt_badgevue_type_template_id_20f2da48_render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-badge",class:[
|
|
133427
133625
|
`xt-badge--${_vm.type}`,
|
|
133428
133626
|
{ 'xt-badge--dot': _vm.isDot },
|
|
@@ -133516,7 +133714,7 @@ xt_badge.install = function(Vue) {
|
|
|
133516
133714
|
|
|
133517
133715
|
/* harmony default export */ var components_xt_badge = (xt_badge);
|
|
133518
133716
|
|
|
133519
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133717
|
+
// 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
|
|
133520
133718
|
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)
|
|
133521
133719
|
}
|
|
133522
133720
|
var xt_date_pickervue_type_template_id_6a59ddb5_scoped_true_staticRenderFns = []
|
|
@@ -133524,7 +133722,7 @@ var xt_date_pickervue_type_template_id_6a59ddb5_scoped_true_staticRenderFns = []
|
|
|
133524
133722
|
|
|
133525
133723
|
// CONCATENATED MODULE: ./src/components/xt-date-picker/index.vue?vue&type=template&id=6a59ddb5&scoped=true
|
|
133526
133724
|
|
|
133527
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
133725
|
+
// 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
|
|
133528
133726
|
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)
|
|
133529
133727
|
}
|
|
133530
133728
|
var quartervue_type_template_id_4e3cbf9a_staticRenderFns = []
|
|
@@ -133818,7 +134016,7 @@ xt_date_picker.install = function (Vue) {
|
|
|
133818
134016
|
|
|
133819
134017
|
/* harmony default export */ var components_xt_date_picker = (xt_date_picker);
|
|
133820
134018
|
|
|
133821
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134019
|
+
// 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
|
|
133822
134020
|
var xt_chartvue_type_template_id_fcb32ff2_render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.type=='bar')?_c('xt-bar',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-bar',_vm.$attrs,false)):(_vm.type=='line')?_c('xt-line',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-line',_vm.$attrs,false)):(_vm.type=='pie')?_c('xt-pie',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-pie',_vm.$attrs,false)):(_vm.type=='multi')?_c('xt-multi',_vm._b({attrs:{"theme":_vm.myTheme,"size":_vm.mySize}},'xt-multi',_vm.$attrs,false)):_vm._e()
|
|
133823
134021
|
}
|
|
133824
134022
|
var xt_chartvue_type_template_id_fcb32ff2_staticRenderFns = []
|
|
@@ -133826,7 +134024,7 @@ var xt_chartvue_type_template_id_fcb32ff2_staticRenderFns = []
|
|
|
133826
134024
|
|
|
133827
134025
|
// CONCATENATED MODULE: ./src/components/xt-chart/index.vue?vue&type=template&id=fcb32ff2
|
|
133828
134026
|
|
|
133829
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134027
|
+
// 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
|
|
133830
134028
|
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"})
|
|
133831
134029
|
}
|
|
133832
134030
|
var XtBarvue_type_template_id_322352cf_scoped_true_staticRenderFns = []
|
|
@@ -134063,7 +134261,7 @@ var XtBar_component = normalizeComponent(
|
|
|
134063
134261
|
)
|
|
134064
134262
|
|
|
134065
134263
|
/* harmony default export */ var XtBar = (XtBar_component.exports);
|
|
134066
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134264
|
+
// 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
|
|
134067
134265
|
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"})
|
|
134068
134266
|
}
|
|
134069
134267
|
var XtLinevue_type_template_id_7dc068e4_scoped_true_staticRenderFns = []
|
|
@@ -134246,7 +134444,7 @@ var XtLine_component = normalizeComponent(
|
|
|
134246
134444
|
)
|
|
134247
134445
|
|
|
134248
134446
|
/* harmony default export */ var XtLine = (XtLine_component.exports);
|
|
134249
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134447
|
+
// 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
|
|
134250
134448
|
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"})
|
|
134251
134449
|
}
|
|
134252
134450
|
var XtPievue_type_template_id_3c07422e_scoped_true_staticRenderFns = []
|
|
@@ -134438,7 +134636,7 @@ var XtPie_component = normalizeComponent(
|
|
|
134438
134636
|
)
|
|
134439
134637
|
|
|
134440
134638
|
/* harmony default export */ var XtPie = (XtPie_component.exports);
|
|
134441
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134639
|
+
// 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
|
|
134442
134640
|
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"})
|
|
134443
134641
|
}
|
|
134444
134642
|
var XtMultivue_type_template_id_43d39824_scoped_true_staticRenderFns = []
|
|
@@ -134879,7 +135077,7 @@ xt_chart.install = function (Vue) {
|
|
|
134879
135077
|
|
|
134880
135078
|
/* harmony default export */ var components_xt_chart = (xt_chart);
|
|
134881
135079
|
|
|
134882
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135080
|
+
// 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
|
|
134883
135081
|
var xt_iconvue_type_template_id_0e301b72_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_vm.tag,_vm._g({tag:"component",class:_vm.iconClasses,style:(_vm.iconStyle),on:{"click":_vm.handleClick}},_vm.$listeners),[(_vm.isSvgSprite)?_c('svg',{style:(_vm.svgStyle),attrs:{"aria-hidden":"true"}},[_c('use',{attrs:{"href":_vm.svgHref}})]):(_vm.hasDefaultSlot)?_vm._t("default"):_vm._e()],2)
|
|
134884
135082
|
}
|
|
134885
135083
|
var xt_iconvue_type_template_id_0e301b72_scoped_true_staticRenderFns = []
|
|
@@ -135057,7 +135255,7 @@ xt_icon.install = function (Vue) {
|
|
|
135057
135255
|
|
|
135058
135256
|
/* harmony default export */ var components_xt_icon = (xt_icon);
|
|
135059
135257
|
|
|
135060
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135258
|
+
// 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
|
|
135061
135259
|
var xt_tablevue_type_template_id_0fa7d6af_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"ex-table-wrapper"},[(_vm.title || _vm.$slots.toolbar)?_c('div',{staticClass:"ex-table-header"},[(_vm.title)?_c('span',{staticClass:"ex-table-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('div',{staticClass:"ex-table-toolbar"},[_vm._t("toolbar")],2)]):_vm._e(),_c('div',{staticClass:"ex-table-body"},[_c('VirtualElTable',_vm._g(_vm._b({ref:"table",staticClass:"ex-table",attrs:{"data":_vm.processedTableData,"height":_vm.computedHeight,"max-height":_vm.computedMaxHeight,"virtual-scroll":_vm.virtualScroll,"row-height":_vm.rowInitHeight,"buffer-size":_vm.bufferSize,"span-method":_vm.groupColumns.length ? _vm.handleSpanMethod : undefined,"row-class-name":_vm.getRowClassName},on:{"selection-change":_vm.handleSelectionChange,"sort-change":_vm.handleSortChange}},'VirtualElTable',_vm.$attrs,false),_vm.$listeners),[(_vm.selection)?_c('el-table-column',{attrs:{"type":"selection","width":"55","fixed":_vm.selectionFixed}}):_vm._e(),(_vm.showIndex)?_c('el-table-column',{attrs:{"type":"index","width":"60","label":"#","fixed":_vm.indexFixed,"index":_vm.indexMethod}}):_vm._e(),_vm._l((_vm.flattenedColumns),function(col){return [(col.children && col.children.length)?_c('el-table-column',_vm._b({key:col._key},'el-table-column',_vm.getColumnProps(col),false),[_vm._l((col.children),function(child){return [_c('el-table-column',_vm._b({key:child._key,scopedSlots:_vm._u([(child.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(child.render(scope)))]}}:(child.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":child.formatter,"column":child}})]}}:(child.slot)?{key:"default",fn:function(scope){return [_vm._t(child.slot,null,{"row":scope.row,"index":scope.$index,"column":child})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(child),false))]})],2):_c('el-table-column',_vm._b({key:col._key,scopedSlots:_vm._u([(col.render)?{key:"default",fn:function(scope){return [_vm._v(_vm._s(col.render(scope)))]}}:(col.formatter)?{key:"default",fn:function(scope){return [_c('XtTableCell',{attrs:{"row":scope.row,"index":scope.$index,"formatter":col.formatter,"column":col}})]}}:(col.slot)?{key:"default",fn:function(scope){return [_vm._t(col.slot,null,{"row":scope.row,"index":scope.$index,"column":col})]}}:null],null,true)},'el-table-column',_vm.getColumnProps(col),false))]})],2)],1),(_vm.showPagination)?_c('div',{staticClass:"ex-table-footer"},[_c('el-pagination',{attrs:{"current-page":_vm.pagination.pageNum,"page-size":_vm.pagination.pageSize,"total":_vm.total,"page-sizes":_vm.pagination.pageSizes || [10, 20, 50, 100],"layout":"total, sizes, prev, pager, next, jumper"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1):_vm._e()])
|
|
135062
135260
|
}
|
|
135063
135261
|
var xt_tablevue_type_template_id_0fa7d6af_scoped_true_staticRenderFns = []
|
|
@@ -135111,7 +135309,7 @@ var XtTableCell_component = normalizeComponent(
|
|
|
135111
135309
|
)
|
|
135112
135310
|
|
|
135113
135311
|
/* harmony default export */ var XtTableCell = (XtTableCell_component.exports);
|
|
135114
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135312
|
+
// 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
|
|
135115
135313
|
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)
|
|
135116
135314
|
}
|
|
135117
135315
|
var VirtualElTablevue_type_template_id_01f7dcee_scoped_true_staticRenderFns = []
|
|
@@ -135720,6 +135918,196 @@ xt_table.install = function (Vue) {
|
|
|
135720
135918
|
|
|
135721
135919
|
/* harmony default export */ var components_xt_table = (xt_table);
|
|
135722
135920
|
|
|
135921
|
+
// 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
|
|
135922
|
+
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()])
|
|
135923
|
+
}
|
|
135924
|
+
var xt_scroll_arrowvue_type_template_id_fa161f32_staticRenderFns = []
|
|
135925
|
+
|
|
135926
|
+
|
|
135927
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue?vue&type=template&id=fa161f32
|
|
135928
|
+
|
|
135929
|
+
// 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
|
|
135930
|
+
|
|
135931
|
+
/* harmony default export */ var xt_scroll_arrowvue_type_script_lang_js = ({
|
|
135932
|
+
name: 'XtScrollArrow',
|
|
135933
|
+
props: {
|
|
135934
|
+
direction: {
|
|
135935
|
+
type: String,
|
|
135936
|
+
default: 'horizontal',
|
|
135937
|
+
validator: (val) => ['horizontal', 'vertical'].includes(val)
|
|
135938
|
+
},
|
|
135939
|
+
scrollStep: {
|
|
135940
|
+
type: Number,
|
|
135941
|
+
default: 100
|
|
135942
|
+
},
|
|
135943
|
+
autoHide: {
|
|
135944
|
+
type: Boolean,
|
|
135945
|
+
default: true
|
|
135946
|
+
},
|
|
135947
|
+
height: {
|
|
135948
|
+
type: [String, Number],
|
|
135949
|
+
default: ''
|
|
135950
|
+
},
|
|
135951
|
+
width: {
|
|
135952
|
+
type: [String, Number],
|
|
135953
|
+
default: ''
|
|
135954
|
+
}
|
|
135955
|
+
},
|
|
135956
|
+
data() {
|
|
135957
|
+
return {
|
|
135958
|
+
showLeftArrow: false,
|
|
135959
|
+
showRightArrow: false,
|
|
135960
|
+
showTopArrow: false,
|
|
135961
|
+
showBottomArrow: false
|
|
135962
|
+
}
|
|
135963
|
+
},
|
|
135964
|
+
computed: {
|
|
135965
|
+
containerStyle() {
|
|
135966
|
+
const style = {}
|
|
135967
|
+
if (this.height) {
|
|
135968
|
+
style.height = typeof this.height === 'number' ? `${this.height}px` : this.height
|
|
135969
|
+
}
|
|
135970
|
+
if (this.width) {
|
|
135971
|
+
style.width = typeof this.width === 'number' ? `${this.width}px` : this.width
|
|
135972
|
+
}
|
|
135973
|
+
return style
|
|
135974
|
+
}
|
|
135975
|
+
},
|
|
135976
|
+
watch: {
|
|
135977
|
+
direction() {
|
|
135978
|
+
this.$nextTick(() => {
|
|
135979
|
+
this.checkScroll()
|
|
135980
|
+
})
|
|
135981
|
+
}
|
|
135982
|
+
},
|
|
135983
|
+
mounted() {
|
|
135984
|
+
this.$nextTick(() => {
|
|
135985
|
+
this.checkScroll()
|
|
135986
|
+
})
|
|
135987
|
+
this.addResizeObserver()
|
|
135988
|
+
},
|
|
135989
|
+
beforeDestroy() {
|
|
135990
|
+
this.removeResizeObserver()
|
|
135991
|
+
},
|
|
135992
|
+
methods: {
|
|
135993
|
+
addResizeObserver() {
|
|
135994
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
135995
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
135996
|
+
this.$nextTick(() => {
|
|
135997
|
+
this.checkScroll()
|
|
135998
|
+
})
|
|
135999
|
+
})
|
|
136000
|
+
const container = this.$refs.scrollContainer
|
|
136001
|
+
if (container) {
|
|
136002
|
+
this.resizeObserver.observe(container)
|
|
136003
|
+
}
|
|
136004
|
+
}
|
|
136005
|
+
},
|
|
136006
|
+
removeResizeObserver() {
|
|
136007
|
+
if (this.resizeObserver) {
|
|
136008
|
+
this.resizeObserver.disconnect()
|
|
136009
|
+
}
|
|
136010
|
+
},
|
|
136011
|
+
checkScroll() {
|
|
136012
|
+
const container = this.$refs.scrollContainer
|
|
136013
|
+
if (!container) return
|
|
136014
|
+
|
|
136015
|
+
if (this.direction === 'horizontal') {
|
|
136016
|
+
const scrollLeft = container.scrollLeft
|
|
136017
|
+
const scrollWidth = container.scrollWidth
|
|
136018
|
+
const clientWidth = container.clientWidth
|
|
136019
|
+
const maxScroll = scrollWidth - clientWidth
|
|
136020
|
+
|
|
136021
|
+
this.showTopArrow = false
|
|
136022
|
+
this.showBottomArrow = false
|
|
136023
|
+
|
|
136024
|
+
if (this.autoHide) {
|
|
136025
|
+
this.showLeftArrow = scrollLeft > 0
|
|
136026
|
+
this.showRightArrow = maxScroll > 0 && scrollLeft < maxScroll
|
|
136027
|
+
} else {
|
|
136028
|
+
this.showLeftArrow = maxScroll > 0
|
|
136029
|
+
this.showRightArrow = maxScroll > 0
|
|
136030
|
+
}
|
|
136031
|
+
} else {
|
|
136032
|
+
const scrollTop = container.scrollTop
|
|
136033
|
+
const scrollHeight = container.scrollHeight
|
|
136034
|
+
const clientHeight = container.clientHeight
|
|
136035
|
+
const maxScroll = scrollHeight - clientHeight
|
|
136036
|
+
|
|
136037
|
+
this.showLeftArrow = false
|
|
136038
|
+
this.showRightArrow = false
|
|
136039
|
+
|
|
136040
|
+
if (this.autoHide) {
|
|
136041
|
+
this.showTopArrow = scrollTop > 0
|
|
136042
|
+
this.showBottomArrow = maxScroll > 0 && scrollTop < maxScroll
|
|
136043
|
+
} else {
|
|
136044
|
+
this.showTopArrow = maxScroll > 0
|
|
136045
|
+
this.showBottomArrow = maxScroll > 0
|
|
136046
|
+
}
|
|
136047
|
+
}
|
|
136048
|
+
},
|
|
136049
|
+
handleScroll() {
|
|
136050
|
+
this.checkScroll()
|
|
136051
|
+
this.$emit('scroll', this.$refs.scrollContainer)
|
|
136052
|
+
},
|
|
136053
|
+
scrollLeft() {
|
|
136054
|
+
const container = this.$refs.scrollContainer
|
|
136055
|
+
if (container) {
|
|
136056
|
+
container.scrollBy({ left: -this.scrollStep, behavior: 'smooth' })
|
|
136057
|
+
}
|
|
136058
|
+
},
|
|
136059
|
+
scrollRight() {
|
|
136060
|
+
const container = this.$refs.scrollContainer
|
|
136061
|
+
if (container) {
|
|
136062
|
+
container.scrollBy({ left: this.scrollStep, behavior: 'smooth' })
|
|
136063
|
+
}
|
|
136064
|
+
},
|
|
136065
|
+
scrollTop() {
|
|
136066
|
+
const container = this.$refs.scrollContainer
|
|
136067
|
+
if (container) {
|
|
136068
|
+
container.scrollBy({ top: -this.scrollStep, behavior: 'smooth' })
|
|
136069
|
+
}
|
|
136070
|
+
},
|
|
136071
|
+
scrollBottom() {
|
|
136072
|
+
const container = this.$refs.scrollContainer
|
|
136073
|
+
if (container) {
|
|
136074
|
+
container.scrollBy({ top: this.scrollStep, behavior: 'smooth' })
|
|
136075
|
+
}
|
|
136076
|
+
}
|
|
136077
|
+
}
|
|
136078
|
+
});
|
|
136079
|
+
|
|
136080
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue?vue&type=script&lang=js
|
|
136081
|
+
/* harmony default export */ var components_xt_scroll_arrowvue_type_script_lang_js = (xt_scroll_arrowvue_type_script_lang_js);
|
|
136082
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.vue
|
|
136083
|
+
|
|
136084
|
+
|
|
136085
|
+
|
|
136086
|
+
|
|
136087
|
+
|
|
136088
|
+
/* normalize component */
|
|
136089
|
+
|
|
136090
|
+
var xt_scroll_arrow_component = normalizeComponent(
|
|
136091
|
+
components_xt_scroll_arrowvue_type_script_lang_js,
|
|
136092
|
+
xt_scroll_arrowvue_type_template_id_fa161f32_render,
|
|
136093
|
+
xt_scroll_arrowvue_type_template_id_fa161f32_staticRenderFns,
|
|
136094
|
+
false,
|
|
136095
|
+
null,
|
|
136096
|
+
null,
|
|
136097
|
+
null
|
|
136098
|
+
|
|
136099
|
+
)
|
|
136100
|
+
|
|
136101
|
+
/* harmony default export */ var xt_scroll_arrow = (xt_scroll_arrow_component.exports);
|
|
136102
|
+
// CONCATENATED MODULE: ./src/components/xt-scroll-arrow/index.js
|
|
136103
|
+
|
|
136104
|
+
|
|
136105
|
+
xt_scroll_arrow.install = function (Vue) {
|
|
136106
|
+
Vue.component(xt_scroll_arrow.name, xt_scroll_arrow)
|
|
136107
|
+
}
|
|
136108
|
+
|
|
136109
|
+
/* harmony default export */ var components_xt_scroll_arrow = (xt_scroll_arrow);
|
|
136110
|
+
|
|
135723
136111
|
// CONCATENATED MODULE: ./src/components/xt-table/virtualScrollData.js
|
|
135724
136112
|
/**
|
|
135725
136113
|
* 生成虚拟滚动演示数据
|
|
@@ -135799,6 +136187,7 @@ const { getConfig: src_getConfig, setConfig: src_setConfig, getTheme: src_getThe
|
|
|
135799
136187
|
// XtTable 组件(基于 ElementUI Table 封装)
|
|
135800
136188
|
|
|
135801
136189
|
|
|
136190
|
+
|
|
135802
136191
|
const src_components = [
|
|
135803
136192
|
components_xt_button,
|
|
135804
136193
|
components_xt_input,
|
|
@@ -135820,7 +136209,8 @@ const src_components = [
|
|
|
135820
136209
|
components_xt_date_picker,
|
|
135821
136210
|
components_xt_chart,
|
|
135822
136211
|
components_xt_icon,
|
|
135823
|
-
components_xt_table
|
|
136212
|
+
components_xt_table,
|
|
136213
|
+
components_xt_scroll_arrow
|
|
135824
136214
|
]
|
|
135825
136215
|
|
|
135826
136216
|
const install = function (Vue, options = {}) {
|
|
@@ -135889,7 +136279,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
135889
136279
|
XtBadge: components_xt_badge,
|
|
135890
136280
|
XtDatePicker: components_xt_date_picker,
|
|
135891
136281
|
XtIcon: components_xt_icon,
|
|
135892
|
-
XtTable: components_xt_table
|
|
136282
|
+
XtTable: components_xt_table,
|
|
136283
|
+
XtScrollArrow: components_xt_scroll_arrow
|
|
135893
136284
|
});
|
|
135894
136285
|
|
|
135895
136286
|
// XtChart 组件按需导出(使用时需自行安装 echarts 依赖)
|