xt-element-ui 2.2.1 → 2.2.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/README.md +1 -1
- package/docs/README.md +10 -3
- package/docs/components/base/xt-button.md +11 -4
- package/docs/components/base/xt-card.md +5 -11
- package/docs/components/base/xt-config-provider.md +2 -0
- package/docs/components/base/xt-date-picker.md +7 -26
- package/docs/components/base/xt-flow.md +404 -0
- package/docs/components/base/xt-grid-box.md +34 -34
- package/docs/components/base/xt-multi.md +5 -5
- package/docs/components/base/xt-tabs.md +51 -6
- package/docs/components/base/xt-text.md +20 -3
- package/docs/components/business/xt-chart.md +1 -0
- package/lib/css/1.87a493be.css +1 -0
- package/lib/index.common.1.js +294 -0
- package/lib/index.common.2.js +141 -0
- package/lib/index.common.js +12125 -118823
- package/lib/index.css +1 -1
- package/lib/index.umd.1.js +294 -0
- package/lib/index.umd.2.js +141 -0
- package/lib/index.umd.js +12131 -118828
- package/lib/index.umd.min.1.js +1 -0
- package/lib/index.umd.min.2.js +1 -0
- package/lib/index.umd.min.js +1 -1
- package/lib/xt-badge/xt-badge.common.js +1 -1
- package/lib/xt-badge/xt-badge.css +1 -1
- package/lib/xt-badge/xt-badge.umd.js +1 -1
- package/lib/xt-button/xt-button.common.js +13 -8
- package/lib/xt-button/xt-button.css +1 -1
- package/lib/xt-button/xt-button.umd.js +13 -8
- package/lib/xt-button/xt-button.umd.min.js +1 -1
- package/lib/xt-card/xt-card.common.js +5 -5
- package/lib/xt-card/xt-card.umd.js +5 -5
- package/lib/xt-card/xt-card.umd.min.js +1 -1
- package/lib/xt-card-item/xt-card-item.common.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -1
- package/lib/xt-chart/xt-chart.common.js +1969 -108924
- package/lib/xt-chart/xt-chart.css +1 -1
- package/lib/xt-chart/xt-chart.umd.js +1975 -108929
- package/lib/xt-chart/xt-chart.umd.min.js +1 -1
- package/lib/xt-config-provider/xt-config-provider.common.js +561 -107504
- package/lib/xt-config-provider/xt-config-provider.css +1 -1
- package/lib/xt-config-provider/xt-config-provider.umd.js +567 -107509
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -1
- package/lib/xt-date-picker/css/1.87a493be.css +1 -0
- package/lib/xt-date-picker/xt-date-picker.common.1.js +294 -0
- package/lib/xt-date-picker/xt-date-picker.common.2.js +141 -0
- package/lib/xt-date-picker/xt-date-picker.common.js +201 -332
- package/lib/xt-date-picker/xt-date-picker.css +1 -1
- package/lib/xt-date-picker/xt-date-picker.umd.1.js +294 -0
- package/lib/xt-date-picker/xt-date-picker.umd.2.js +141 -0
- package/lib/xt-date-picker/xt-date-picker.umd.js +201 -332
- package/lib/xt-date-picker/xt-date-picker.umd.min.1.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.2.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.common.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.umd.js +1 -1
- package/lib/xt-flow/demo.html +10 -0
- package/lib/xt-flow/index.js +1 -0
- package/lib/xt-flow/xt-flow.common.js +638 -0
- package/lib/xt-flow/xt-flow.css +1 -0
- package/lib/xt-flow/xt-flow.umd.js +648 -0
- package/lib/xt-flow/xt-flow.umd.min.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +1 -1
- package/lib/xt-form-schema/xt-form-schema.umd.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.common.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.umd.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.common.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.umd.js +1 -1
- package/lib/xt-icon/xt-icon.common.js +1 -1
- package/lib/xt-icon/xt-icon.umd.js +1 -1
- package/lib/xt-input/xt-input.common.js +1 -1
- package/lib/xt-input/xt-input.umd.js +1 -1
- package/lib/xt-list/xt-list.common.js +1 -1
- package/lib/xt-list/xt-list.umd.js +1 -1
- package/lib/xt-map/xt-map.common.js +1 -1
- package/lib/xt-map/xt-map.umd.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.common.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.umd.js +1 -1
- package/lib/xt-page/xt-page.common.js +1 -1
- package/lib/xt-page/xt-page.umd.js +1 -1
- package/lib/xt-progress/xt-progress.common.js +1 -1
- package/lib/xt-progress/xt-progress.umd.js +1 -1
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +1 -1
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.common.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.umd.js +1 -1
- package/lib/xt-step-price/xt-step-price.common.js +2 -2
- package/lib/xt-step-price/xt-step-price.umd.js +2 -2
- package/lib/xt-step-price-item/xt-step-price-item.common.js +1 -1
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.common.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +1 -1
- package/lib/xt-table/xt-table.common.js +2 -2
- package/lib/xt-table/xt-table.umd.js +2 -2
- package/lib/xt-tabs/xt-tabs.common.js +5 -27
- package/lib/xt-tabs/xt-tabs.css +1 -1
- package/lib/xt-tabs/xt-tabs.umd.js +5 -27
- package/lib/xt-tabs/xt-tabs.umd.min.js +1 -1
- package/lib/xt-text/xt-text.common.js +7 -4
- package/lib/xt-text/xt-text.css +1 -1
- package/lib/xt-text/xt-text.umd.js +7 -4
- package/lib/xt-text/xt-text.umd.min.js +1 -1
- package/lib/xt-time/xt-time.common.js +1 -1
- package/lib/xt-time/xt-time.umd.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +1 -1
- package/lib/xt-upload/xt-upload.common.js +11 -11
- package/lib/xt-upload/xt-upload.umd.js +12 -12
- package/lib/xt-upload/xt-upload.umd.min.js +1 -1
- package/package.json +5 -6
- package/src/components/index.scss +7 -1
- package/src/components/xt-badge/style/index.scss +6 -6
- package/src/components/xt-button/index.vue +11 -6
- package/src/components/xt-button/style/index.scss +7 -5
- package/src/components/xt-card/index.vue +3 -3
- package/src/components/xt-card-item/index.vue +2 -2
- package/src/components/xt-chart/XtMulti.vue +8 -18
- package/src/components/xt-chart/XtPie.vue +1 -0
- package/src/components/xt-chart/utils.js +84 -50
- package/src/components/xt-config-provider/index.vue +56 -54
- package/src/components/xt-date-picker/component/Picker.vue +2 -46
- package/src/components/xt-date-picker/component/RangeDate.vue +4 -4
- package/src/components/xt-date-picker/index.js +1 -0
- package/src/components/xt-date-picker/index.vue +3 -23
- package/src/components/xt-date-picker/style/index.scss +62 -0
- package/src/components/xt-flow/flowable-parser.js +244 -0
- package/src/components/xt-flow/index.js +8 -0
- package/src/components/xt-flow/index.vue +226 -0
- package/src/components/xt-flow/style/index.scss +359 -0
- package/src/components/xt-input/style/index.scss +1 -1
- package/src/components/xt-tabs/index.vue +3 -174
- package/src/components/xt-tabs/style/index.scss +131 -121
- package/src/components/xt-text/index.vue +5 -2
- package/src/components/xt-text/style/index.scss +6 -6
- package/src/index.js +8 -13
- package/src/styles/css-variables.scss +73 -1
- package/src/styles/theme/index.scss +0 -1
- package/src/styles/theme/dark-variables.scss +0 -0
|
@@ -87,24 +87,6 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/ "2f86":
|
|
91
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
// extracted by mini-css-extract-plugin
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ "d273":
|
|
98
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
"use strict";
|
|
101
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2f86");
|
|
102
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
103
|
-
/* unused harmony reexport * */
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/***/ }),
|
|
107
|
-
|
|
108
90
|
/***/ "e8d2":
|
|
109
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
110
92
|
|
|
@@ -141,7 +123,7 @@ if (typeof window !== 'undefined') {
|
|
|
141
123
|
// EXTERNAL MODULE: ./src/components/xt-tabs/style/index.scss
|
|
142
124
|
var style = __webpack_require__("e8d2");
|
|
143
125
|
|
|
144
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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=6fedb3e8
|
|
145
127
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"tabsWrap",staticClass:"xt-tabs",class:[
|
|
146
128
|
`xt-tabs--${_vm.actualPosition}`,
|
|
147
129
|
{ 'xt-tabs--card': _vm.type === 'card' },
|
|
@@ -155,7 +137,7 @@ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref
|
|
|
155
137
|
var staticRenderFns = []
|
|
156
138
|
|
|
157
139
|
|
|
158
|
-
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=template&id=
|
|
140
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=template&id=6fedb3e8
|
|
159
141
|
|
|
160
142
|
// CONCATENATED MODULE: ./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=script&lang=js
|
|
161
143
|
|
|
@@ -168,8 +150,8 @@ var staticRenderFns = []
|
|
|
168
150
|
},
|
|
169
151
|
type: {
|
|
170
152
|
type: String,
|
|
171
|
-
default: '
|
|
172
|
-
validator: (val) => ['
|
|
153
|
+
default: '',
|
|
154
|
+
validator: (val) => ['', 'card', 'border-card'].includes(val)
|
|
173
155
|
},
|
|
174
156
|
position: {
|
|
175
157
|
type: String,
|
|
@@ -318,9 +300,6 @@ var staticRenderFns = []
|
|
|
318
300
|
|
|
319
301
|
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=script&lang=js
|
|
320
302
|
/* harmony default export */ var components_xt_tabsvue_type_script_lang_js = (xt_tabsvue_type_script_lang_js);
|
|
321
|
-
// EXTERNAL MODULE: ./src/components/xt-tabs/index.vue?vue&type=style&index=0&id=3859f3fa&prod&lang=scss&scoped=true
|
|
322
|
-
var xt_tabsvue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true = __webpack_require__("d273");
|
|
323
|
-
|
|
324
303
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
325
304
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
326
305
|
|
|
@@ -425,7 +404,6 @@ function normalizeComponent(
|
|
|
425
404
|
|
|
426
405
|
|
|
427
406
|
|
|
428
|
-
|
|
429
407
|
/* normalize component */
|
|
430
408
|
|
|
431
409
|
var component = normalizeComponent(
|
|
@@ -434,7 +412,7 @@ var component = normalizeComponent(
|
|
|
434
412
|
staticRenderFns,
|
|
435
413
|
false,
|
|
436
414
|
null,
|
|
437
|
-
|
|
415
|
+
null,
|
|
438
416
|
null
|
|
439
417
|
|
|
440
418
|
)
|
package/lib/xt-tabs/xt-tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.xt-tabs{display:flex
|
|
1
|
+
.xt-tabs{display:flex}.xt-tabs,.xt-tabs--bottom,.xt-tabs--top{flex-direction:column}.xt-tabs--bottom .xt-tabs__header,.xt-tabs--top .xt-tabs__header{width:100%}.xt-tabs--left,.xt-tabs--right{flex-direction:row}.xt-tabs--left .xt-tabs__header,.xt-tabs--right .xt-tabs__header{flex-direction:column;width:auto}.xt-tabs--left .xt-tabs__nav,.xt-tabs--right .xt-tabs__nav{flex-direction:column}.xt-tabs--left .xt-tabs__nav-indicator,.xt-tabs--right .xt-tabs__nav-indicator{width:2px;height:auto}.xt-tabs--left .xt-tabs__content,.xt-tabs--right .xt-tabs__content{border-left:1px solid #dcdfe6;border-top:none}.xt-tabs--left--right .xt-tabs__content,.xt-tabs--right--right .xt-tabs__content{border-left:none;border-right:1px solid #dcdfe6}.xt-tabs--top .xt-tabs__nav-indicator{bottom:0}.xt-tabs--bottom .xt-tabs__nav-indicator{top:0}.xt-tabs--left .xt-tabs__nav-indicator{right:0}.xt-tabs--right .xt-tabs__nav-indicator{left:0}.xt-tabs--card .xt-tabs__header{margin-bottom:-1px}.xt-tabs--card .xt-tabs__nav-item{border:1px solid transparent;border-bottom:none;background:#f5f7fa}.xt-tabs--card .xt-tabs__nav-item--active{background:#fff;border-color:#dcdfe6;border-bottom-color:#fff}.xt-tabs--card--left .xt-tabs__nav-item,.xt-tabs--card--right .xt-tabs__nav-item{border-bottom:1px solid transparent;border-right:none}.xt-tabs--card--left .xt-tabs__nav-item--active,.xt-tabs--card--right .xt-tabs__nav-item--active{border-right-color:#fff;border-bottom-color:#dcdfe6}.xt-tabs--border-card{border:1px solid #dcdfe6;border-radius:4px;overflow:hidden}.xt-tabs--border-card .xt-tabs__nav-item--active{background:#ecf5ff;color:#409eff}.xt-tabs--editable .xt-tabs__close{display:inline-block}.xt-tabs__header{position:relative;display:flex}.xt-tabs__nav{display:flex;flex-wrap:nowrap}.xt-tabs__nav-item{position:relative;padding:12px 20px;margin-right:10px;cursor:pointer;font-size:14px;color:#606266;transition:all .3s;white-space:nowrap}.xt-tabs__nav-item--active{color:#409eff}.xt-tabs__nav-item--disabled{cursor:not-allowed;color:#c0c4cc}.xt-tabs__nav-item--add{color:#909399;font-size:20px}.xt-tabs__nav-item:hover:not(.xt-tabs__nav-item--disabled){color:#409eff;background-color:#ecf5ff}.xt-tabs__nav-link{display:inline-block}.xt-tabs__close{display:none;margin-left:8px;font-size:16px;line-height:1;color:#909399;vertical-align:middle}.xt-tabs__close:hover{color:#f56c6c}.xt-tabs__nav-indicator{position:absolute;height:2px;background-color:#409eff}.xt-tabs__content{flex:1;padding:16px;border-top:1px solid #dcdfe6}.xt-tabs__pane{min-height:40px}
|
|
@@ -96,24 +96,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
-
/***/ "2f86":
|
|
100
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
-
|
|
102
|
-
// extracted by mini-css-extract-plugin
|
|
103
|
-
|
|
104
|
-
/***/ }),
|
|
105
|
-
|
|
106
|
-
/***/ "d273":
|
|
107
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
108
|
-
|
|
109
|
-
"use strict";
|
|
110
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2f86");
|
|
111
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
112
|
-
/* unused harmony reexport * */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
/***/ }),
|
|
116
|
-
|
|
117
99
|
/***/ "e8d2":
|
|
118
100
|
/***/ (function(module, exports, __webpack_require__) {
|
|
119
101
|
|
|
@@ -150,7 +132,7 @@ if (typeof window !== 'undefined') {
|
|
|
150
132
|
// EXTERNAL MODULE: ./src/components/xt-tabs/style/index.scss
|
|
151
133
|
var style = __webpack_require__("e8d2");
|
|
152
134
|
|
|
153
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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=6fedb3e8
|
|
154
136
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"tabsWrap",staticClass:"xt-tabs",class:[
|
|
155
137
|
`xt-tabs--${_vm.actualPosition}`,
|
|
156
138
|
{ 'xt-tabs--card': _vm.type === 'card' },
|
|
@@ -164,7 +146,7 @@ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref
|
|
|
164
146
|
var staticRenderFns = []
|
|
165
147
|
|
|
166
148
|
|
|
167
|
-
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=template&id=
|
|
149
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=template&id=6fedb3e8
|
|
168
150
|
|
|
169
151
|
// CONCATENATED MODULE: ./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=script&lang=js
|
|
170
152
|
|
|
@@ -177,8 +159,8 @@ var staticRenderFns = []
|
|
|
177
159
|
},
|
|
178
160
|
type: {
|
|
179
161
|
type: String,
|
|
180
|
-
default: '
|
|
181
|
-
validator: (val) => ['
|
|
162
|
+
default: '',
|
|
163
|
+
validator: (val) => ['', 'card', 'border-card'].includes(val)
|
|
182
164
|
},
|
|
183
165
|
position: {
|
|
184
166
|
type: String,
|
|
@@ -327,9 +309,6 @@ var staticRenderFns = []
|
|
|
327
309
|
|
|
328
310
|
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=script&lang=js
|
|
329
311
|
/* harmony default export */ var components_xt_tabsvue_type_script_lang_js = (xt_tabsvue_type_script_lang_js);
|
|
330
|
-
// EXTERNAL MODULE: ./src/components/xt-tabs/index.vue?vue&type=style&index=0&id=3859f3fa&prod&lang=scss&scoped=true
|
|
331
|
-
var xt_tabsvue_type_style_index_0_id_3859f3fa_prod_lang_scss_scoped_true = __webpack_require__("d273");
|
|
332
|
-
|
|
333
312
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
334
313
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
335
314
|
|
|
@@ -434,7 +413,6 @@ function normalizeComponent(
|
|
|
434
413
|
|
|
435
414
|
|
|
436
415
|
|
|
437
|
-
|
|
438
416
|
/* normalize component */
|
|
439
417
|
|
|
440
418
|
var component = normalizeComponent(
|
|
@@ -443,7 +421,7 @@ var component = normalizeComponent(
|
|
|
443
421
|
staticRenderFns,
|
|
444
422
|
false,
|
|
445
423
|
null,
|
|
446
|
-
|
|
424
|
+
null,
|
|
447
425
|
null
|
|
448
426
|
|
|
449
427
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-tabs"]=e():t["xt-tabs"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-tabs"]=e():t["xt-tabs"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({e8d2:function(t,e,a){},fb15:function(t,e,a){"use strict";if(a.r(e),a.d(e,"XtTabs",(function(){return p})),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(a.p=i[1])}a("e8d2");var s=function(){var t=this,e=t._self._c;return e("div",{ref:"tabsWrap",staticClass:"xt-tabs",class:["xt-tabs--"+t.actualPosition,{"xt-tabs--card":"card"===t.type},{"xt-tabs--border-card":"border-card"===t.type},{"xt-tabs--editable":t.editable}]},[e("div",{ref:"tabsHeader",staticClass:"xt-tabs__header"},[e("div",{ref:"tabsNav",staticClass:"xt-tabs__nav"},[t._l(t.panes,(function(a,n){return e("div",{key:a.name,staticClass:"xt-tabs__nav-item",class:{"xt-tabs__nav-item--active":t.activeName===a.name,"xt-tabs__nav-item--disabled":a.disabled},on:{click:function(e){return t.handleTabClick(a)}}},[e("span",{staticClass:"xt-tabs__nav-link"},[t._v(t._s(a.label))]),!t.closable&&!a.closable||t.editable?t._e():e("span",{staticClass:"xt-tabs__close",on:{click:function(e){return e.stopPropagation(),t.handleTabRemove(a.name)}}},[t._v("×")])])})),t.addable||t.editable?e("div",{staticClass:"xt-tabs__nav-item xt-tabs__nav-item--add",on:{click:t.handleTabAdd}},[e("span",[t._v("+")])]):t._e()],2),e("div",{staticClass:"xt-tabs__nav-indicator",style:t.indicatorStyle})]),e("div",{staticClass:"xt-tabs__content"},[t._t("default")],2)])},o=[],r={name:"XtTabs",props:{value:{type:[String,Number],default:""},type:{type:String,default:"",validator:t=>["","card","border-card"].includes(t)},position:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},tabPosition:{type:String,default:""},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data(){return{panes:[],activeName:this.value}},computed:{actualPosition(){return this.tabPosition||this.position},indicatorStyle(){const t=this.panes.findIndex(t=>t.name===this.activeName);if(-1===t||!this.$refs.tabsNav)return{display:"none"};const e=this.$refs.tabsNav.querySelectorAll(".xt-tabs__nav-item:not(.xt-tabs__nav-item--add)");if(!e||0===e.length)return{display:"none"};const a=e[t];if(!a)return{display:"none"};const n=this.actualPosition,i={transition:"all 0.3s ease"};return"top"===n||"bottom"===n?{...i,left:a.offsetLeft+"px",width:a.offsetWidth+"px",height:"2px",bottom:"top"===n?0:"auto",top:"bottom"===n?0:"auto",display:"block"}:{...i,top:a.offsetTop+"px",height:a.offsetHeight+"px",width:"2px",left:"left"===n?"auto":0,right:"right"===n?0:"auto",display:"block"}}},watch:{value(t){this.activeName=t},activeName(t){this.$emit("input",t),this.$emit("change",t),this.$nextTick(()=>this.$forceUpdate())},panes:{handler(){this.$nextTick(()=>this.$forceUpdate())},deep:!0}},methods:{handleTabClick(t){t.disabled||(this.activeName=t.name,this.$emit("tab-click",t))},handleTabRemove(t){this.$emit("tab-remove",t),this.$emit("edit",t,"remove");const e=this.panes.findIndex(e=>e.name===t);e>-1&&(this.panes.splice(e,1),this.activeName===t&&this.panes.length>0&&(this.activeName=this.panes[0].name))},handleTabAdd(){this.$emit("tab-add"),this.$emit("edit",null,"add")},addPane(t){const e=this.panes.some(e=>e.name===t.name);e||(this.panes.push(t),this.activeName||1!==this.panes.length||(this.activeName=t.name),this.$nextTick(()=>this.$forceUpdate()))},removePane(t){const e=this.panes.findIndex(e=>e.name===t);e>-1&&(this.panes.splice(e,1),this.$nextTick(()=>this.$forceUpdate()))},collectPanes(){this.panes=[],this.$children.forEach(t=>{"XtTabPane"===t.$options.name&&this.addPane({name:t.name,label:t.label,disabled:t.disabled,closable:t.closable})})}},mounted(){this.$nextTick(()=>{this.collectPanes(),this.$watch(()=>this.$children,()=>{this.collectPanes()},{flush:"post"})})}},l=r;function d(t,e,a,n,i,s,o,r){var l,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=a,d._compiled=!0),n&&(d.functional=!0),s&&(d._scopeId="data-v-"+s),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=l):i&&(l=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:d}}var c=d(l,s,o,!1,null,null,null),p=c.exports;p.install=function(t){t.component(p.name,p)};var u=p;e["default"]=u}})}));
|
|
@@ -123,27 +123,27 @@ if (typeof window !== 'undefined') {
|
|
|
123
123
|
// EXTERNAL MODULE: ./src/components/xt-text/style/index.scss
|
|
124
124
|
var style = __webpack_require__("86ae");
|
|
125
125
|
|
|
126
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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=50bc2d50
|
|
127
127
|
var 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:[
|
|
128
128
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
129
129
|
'xt-text--' + _vm.size,
|
|
130
130
|
{ 'xt-text--bold': _vm.bold },
|
|
131
131
|
{ 'xt-text--money': _vm.format === 'money' },
|
|
132
|
-
{ 'xt-text--ellipsis': _vm.ellipsis },
|
|
132
|
+
{ 'xt-text--ellipsis': _vm.ellipsis && _vm.ellipsisRows == 1 },
|
|
133
133
|
{ 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
|
|
134
134
|
],style:(_vm.customStyle),on:{"mouseenter":_vm.handleMouseEnter}},[(_vm.$slots.prefix)?[_vm._t("prefix")]:(_vm.prefix)?[_vm._v(_vm._s(_vm.prefix))]:_vm._e(),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),(_vm.$slots.suffix)?[_vm._t("suffix")]:(_vm.suffix)?[_vm._v(_vm._s(_vm.suffix))]:_vm._e()],2)]):_c('span',{ref:"textRef",staticClass:"xt-text",class:[
|
|
135
135
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
136
136
|
'xt-text--' + _vm.size,
|
|
137
137
|
{ 'xt-text--bold': _vm.bold },
|
|
138
138
|
{ 'xt-text--money': _vm.format === 'money' },
|
|
139
|
-
{ 'xt-text--ellipsis': _vm.ellipsis },
|
|
139
|
+
{ 'xt-text--ellipsis': _vm.ellipsis && _vm.ellipsisRows == 1 },
|
|
140
140
|
{ 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
|
|
141
141
|
],style:(_vm.customStyle)},[(_vm.$slots.prefix)?[_vm._t("prefix")]:(_vm.prefix)?[_vm._v(_vm._s(_vm.prefix))]:_vm._e(),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),(_vm.$slots.suffix)?[_vm._t("suffix")]:(_vm.suffix)?[_vm._v(_vm._s(_vm.suffix))]:_vm._e()],2)
|
|
142
142
|
}
|
|
143
143
|
var staticRenderFns = []
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
// CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=
|
|
146
|
+
// CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=50bc2d50
|
|
147
147
|
|
|
148
148
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-text/index.vue?vue&type=script&lang=js
|
|
149
149
|
|
|
@@ -240,6 +240,7 @@ var staticRenderFns = []
|
|
|
240
240
|
},
|
|
241
241
|
data() {
|
|
242
242
|
return {
|
|
243
|
+
ellipsisWidth: undefined,
|
|
243
244
|
isOverflow: false
|
|
244
245
|
}
|
|
245
246
|
},
|
|
@@ -256,6 +257,7 @@ var staticRenderFns = []
|
|
|
256
257
|
}
|
|
257
258
|
if (this.ellipsis && this.ellipsisRows > 1) {
|
|
258
259
|
style.WebkitLineClamp = this.ellipsisRows
|
|
260
|
+
style.width = `${this.ellipsisWidth}px`
|
|
259
261
|
}
|
|
260
262
|
return style
|
|
261
263
|
},
|
|
@@ -335,6 +337,7 @@ var staticRenderFns = []
|
|
|
335
337
|
|
|
336
338
|
if (this.ellipsisRows > 1) {
|
|
337
339
|
this.isOverflow = el.scrollHeight > el.clientHeight
|
|
340
|
+
this.ellipsisWidth = el.clientWidth;
|
|
338
341
|
} else {
|
|
339
342
|
this.isOverflow = el.scrollWidth > el.clientWidth
|
|
340
343
|
}
|
package/lib/xt-text/xt-text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.xt-text{letter-spacing:normal}.xt-text--extra-large{font-size:var(--xt-font-size-extra-large)}.xt-text--large{font-size:var(--xt-font-size-large)}.xt-text--medium{font-size:var(--xt-font-size-medium)}.xt-text--small{font-size:var(--xt-font-size-small)}.xt-text--mini{font-size:calc(var(--xt-font-size-mini))}.xt-text--extra-small{font-size:calc(var(--xt-font-size-extra-small))}.xt-text--primary{color:var(--xt-color-primary,#1890ff)}.xt-text--success{color
|
|
1
|
+
.xt-text{letter-spacing:normal}.xt-text--extra-large{font-size:var(--xt-font-size-extra-large)}.xt-text--large{font-size:var(--xt-font-size-large)}.xt-text--medium{font-size:var(--xt-font-size-medium)}.xt-text--small{font-size:var(--xt-font-size-small)}.xt-text--mini{font-size:calc(var(--xt-font-size-mini))}.xt-text--extra-small{font-size:calc(var(--xt-font-size-extra-small))}.xt-text--primary{color:var(--xt-color-primary,#1890ff)}.xt-text--success{color:var(--xt-color-success)}.xt-text--warning{color:var(--xt-color-warning)}.xt-text--danger{color:var(--xt-color-danger)}.xt-text--bold{font-weight:700}.xt-text--ellipsis{display:inline-block;white-space:nowrap}.xt-text--ellipsis,.xt-text--ellipsis-multiline{overflow:hidden;text-overflow:ellipsis;max-width:100%}.xt-text--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical}.xt-text--money{font-family:Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:500;letter-spacing:0}.xt-text--money.xt-text--primary{color:var(--xt-color-primary,#1890ff)}.xt-text--money.xt-text--success{color:var(--xt-color-success)}.xt-text--money.xt-text--warning{color:var(--xt-color-warning)}.xt-text--money.xt-text--danger{color:var(--xt-color-danger)}
|
|
@@ -132,27 +132,27 @@ if (typeof window !== 'undefined') {
|
|
|
132
132
|
// EXTERNAL MODULE: ./src/components/xt-text/style/index.scss
|
|
133
133
|
var style = __webpack_require__("86ae");
|
|
134
134
|
|
|
135
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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=50bc2d50
|
|
136
136
|
var 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:[
|
|
137
137
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
138
138
|
'xt-text--' + _vm.size,
|
|
139
139
|
{ 'xt-text--bold': _vm.bold },
|
|
140
140
|
{ 'xt-text--money': _vm.format === 'money' },
|
|
141
|
-
{ 'xt-text--ellipsis': _vm.ellipsis },
|
|
141
|
+
{ 'xt-text--ellipsis': _vm.ellipsis && _vm.ellipsisRows == 1 },
|
|
142
142
|
{ 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
|
|
143
143
|
],style:(_vm.customStyle),on:{"mouseenter":_vm.handleMouseEnter}},[(_vm.$slots.prefix)?[_vm._t("prefix")]:(_vm.prefix)?[_vm._v(_vm._s(_vm.prefix))]:_vm._e(),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),(_vm.$slots.suffix)?[_vm._t("suffix")]:(_vm.suffix)?[_vm._v(_vm._s(_vm.suffix))]:_vm._e()],2)]):_c('span',{ref:"textRef",staticClass:"xt-text",class:[
|
|
144
144
|
_vm.type ? 'xt-text--' + _vm.type : '',
|
|
145
145
|
'xt-text--' + _vm.size,
|
|
146
146
|
{ 'xt-text--bold': _vm.bold },
|
|
147
147
|
{ 'xt-text--money': _vm.format === 'money' },
|
|
148
|
-
{ 'xt-text--ellipsis': _vm.ellipsis },
|
|
148
|
+
{ 'xt-text--ellipsis': _vm.ellipsis && _vm.ellipsisRows == 1 },
|
|
149
149
|
{ 'xt-text--ellipsis-multiline': _vm.ellipsis && _vm.ellipsisRows > 1 }
|
|
150
150
|
],style:(_vm.customStyle)},[(_vm.$slots.prefix)?[_vm._t("prefix")]:(_vm.prefix)?[_vm._v(_vm._s(_vm.prefix))]:_vm._e(),_vm._t("default",function(){return [(_vm.formattedValue !== undefined)?[_vm._v(_vm._s(_vm.formattedValue))]:_vm._e()]}),(_vm.$slots.suffix)?[_vm._t("suffix")]:(_vm.suffix)?[_vm._v(_vm._s(_vm.suffix))]:_vm._e()],2)
|
|
151
151
|
}
|
|
152
152
|
var staticRenderFns = []
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
// CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=
|
|
155
|
+
// CONCATENATED MODULE: ./src/components/xt-text/index.vue?vue&type=template&id=50bc2d50
|
|
156
156
|
|
|
157
157
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-text/index.vue?vue&type=script&lang=js
|
|
158
158
|
|
|
@@ -249,6 +249,7 @@ var staticRenderFns = []
|
|
|
249
249
|
},
|
|
250
250
|
data() {
|
|
251
251
|
return {
|
|
252
|
+
ellipsisWidth: undefined,
|
|
252
253
|
isOverflow: false
|
|
253
254
|
}
|
|
254
255
|
},
|
|
@@ -265,6 +266,7 @@ var staticRenderFns = []
|
|
|
265
266
|
}
|
|
266
267
|
if (this.ellipsis && this.ellipsisRows > 1) {
|
|
267
268
|
style.WebkitLineClamp = this.ellipsisRows
|
|
269
|
+
style.width = `${this.ellipsisWidth}px`
|
|
268
270
|
}
|
|
269
271
|
return style
|
|
270
272
|
},
|
|
@@ -344,6 +346,7 @@ var staticRenderFns = []
|
|
|
344
346
|
|
|
345
347
|
if (this.ellipsisRows > 1) {
|
|
346
348
|
this.isOverflow = el.scrollHeight > el.clientHeight
|
|
349
|
+
this.ellipsisWidth = el.clientWidth;
|
|
347
350
|
} else {
|
|
348
351
|
this.isOverflow = el.scrollWidth > el.clientWidth
|
|
349
352
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-text"]=e():t["xt-text"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function i(s){if(e[s])return e[s].exports;var
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-text"]=e():t["xt-text"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function i(s){if(e[s])return e[s].exports;var o=e[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(s,o,function(e){return t[e]}.bind(null,o));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({"86ae":function(t,e,i){},fb15:function(t,e,i){"use strict";if(i.r(e),i.d(e,"XtText",(function(){return c})),"undefined"!==typeof window){var s=window.document.currentScript,o=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(i.p=o[1])}i("86ae");var r=function(){var t=this,e=t._self._c;return t.showTooltip&&t.ellipsis?e("el-tooltip",{attrs:{content:t.displayTooltipContent,placement:t.tooltipPlacement,disabled:!t.isOverflow,effect:"dark"}},[e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis&&1==t.ellipsisRows},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle,on:{mouseenter:t.handleMouseEnter}},[t.$slots.prefix?[t._t("prefix")]:t.prefix?[t._v(t._s(t.prefix))]:t._e(),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t.$slots.suffix?[t._t("suffix")]:t.suffix?[t._v(t._s(t.suffix))]:t._e()],2)]):e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis&&1==t.ellipsisRows},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle},[t.$slots.prefix?[t._t("prefix")]:t.prefix?[t._v(t._s(t.prefix))]:t._e(),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t.$slots.suffix?[t._t("suffix")]:t.suffix?[t._v(t._s(t.suffix))]:t._e()],2)},l=[],n={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"small",validator:t=>["extra-large","large","medium","small","mini","extra-small"].includes(t)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},ellipsis:{type:Boolean,default:!1},ellipsisRows:{type:Number,default:1,validator:t=>t>=1&&t<=10},showTooltip:{type:Boolean,default:!0},tooltipPlacement:{type:String,default:"top",validator:t=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"].includes(t)},tooltipContent:{type:String,default:""},format:{type:String,default:"normal",validator:t=>["normal","thousand","money"].includes(t)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:t=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(t)},decimals:{type:Number,default:2,validator:t=>t>=0&&t<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},data(){return{ellipsisWidth:void 0,isOverflow:!1}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const t={};return this.letterSpacing&&(t.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),this.ellipsis&&this.ellipsisRows>1&&(t.WebkitLineClamp=this.ellipsisRows,t.width=this.ellipsisWidth+"px"),t},displayTooltipContent(){return this.tooltipContent?this.tooltipContent:void 0!==this.formattedValue?this.formattedValue:this.$slots.default&&this.$slots.default.length>0?this.extractSlotText(this.$slots.default):this.value},formattedValue(){const t=this.realFormat,{value:e}=this;if(""===e||void 0===e||null===e)return;const i="string"===typeof e?parseFloat(e):e;if(isNaN(i))return e;try{let e="";const s=this.showSign?"always":"auto";switch(t){case"thousand":e=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:s}).format(i);break;case"money":e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:s}).format(i);break;default:return}return e}catch(s){return e}}},methods:{handleMouseEnter(){this.checkOverflow()},checkOverflow(){const t=this.$refs.textRef;t?this.ellipsisRows>1?(this.isOverflow=t.scrollHeight>t.clientHeight,this.ellipsisWidth=t.clientWidth):this.isOverflow=t.scrollWidth>t.clientWidth:this.isOverflow=!1},extractSlotText(t){let e="";return t.forEach(t=>{"string"===typeof t.children?e+=t.children:"string"===typeof t.text?e+=t.text:t.children&&Array.isArray(t.children)&&(e+=this.extractSlotText(t.children))}),e.trim()}},mounted(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()}),this._resizeObserver=new ResizeObserver(()=>{this.ellipsis&&this.showTooltip&&this.checkOverflow()}),this.$nextTick(()=>{this.$refs.textRef&&this._resizeObserver.observe(this.$refs.textRef)})},beforeDestroy(){this._resizeObserver&&this._resizeObserver.disconnect()},watch:{value(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})},ellipsis(t){t&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})}}},a=n;function f(t,e,i,s,o,r,l,n){var a,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=i,f._compiled=!0),s&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),l?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},f._ssrRegister=a):o&&(a=n?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var u=f.render;f.render=function(t,e){return a.call(e),u(t,e)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,a):[a]}return{exports:t,options:f}}var u=f(a,r,l,!1,null,null,null),c=u.exports;c.install=function(t){t.component(c.name,c)};var p=c;e["default"]=p}})}));
|
|
@@ -123,7 +123,7 @@ if (typeof window !== 'undefined') {
|
|
|
123
123
|
// EXTERNAL MODULE: ./src/components/xt-time/style/index.scss
|
|
124
124
|
var style = __webpack_require__("6c9e");
|
|
125
125
|
|
|
126
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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
|
|
127
127
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-time",class:[
|
|
128
128
|
_vm.typeColor ? 'xt-time--' + _vm.typeColor : '',
|
|
129
129
|
'xt-time--' + _vm.size,
|
|
@@ -132,7 +132,7 @@ if (typeof window !== 'undefined') {
|
|
|
132
132
|
// EXTERNAL MODULE: ./src/components/xt-time/style/index.scss
|
|
133
133
|
var style = __webpack_require__("6c9e");
|
|
134
134
|
|
|
135
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./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
|
|
136
136
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:"xt-time",class:[
|
|
137
137
|
_vm.typeColor ? 'xt-time--' + _vm.typeColor : '',
|
|
138
138
|
'xt-time--' + _vm.size,
|
|
@@ -131,7 +131,7 @@ if (typeof window !== 'undefined') {
|
|
|
131
131
|
// Indicate to webpack that this file can be concatenated
|
|
132
132
|
/* harmony default export */ var setPublicPath = (null);
|
|
133
133
|
|
|
134
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
134
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-transfer-tree/index.vue?vue&type=template&id=561bec94&scoped=true
|
|
135
135
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-transfer-tree"},[_c('div',{staticClass:"xt-transfer-tree__panel xt-transfer-tree__source"},[_c('div',{staticClass:"xt-transfer-tree__header"},[_c('span',{staticClass:"xt-transfer-tree__title"},[_vm._v(_vm._s(_vm.leftTitle))]),_c('span',{staticClass:"xt-transfer-tree__count"},[_vm._v(_vm._s(_vm.leftCheckedCount)+"/"+_vm._s(_vm.leftTotalCount))])]),(_vm.filterable)?_c('div',{staticClass:"xt-transfer-tree__search"},[_c('el-input',{attrs:{"placeholder":"搜索","prefix-icon":"el-icon-search","size":"small"},model:{value:(_vm.leftFilterText),callback:function ($$v) {_vm.leftFilterText=$$v},expression:"leftFilterText"}})],1):_vm._e(),_c('div',{staticClass:"xt-transfer-tree__body"},[_c('el-tree',{ref:"leftTree",attrs:{"data":_vm.sourceData,"props":_vm.treeProps,"default-expand-all":_vm.defaultExpandAll,"filter-node-method":_vm.filterLeftNode,"show-checkbox":_vm.showCheckbox,"check-strictly":!_vm.cascade,"default-checked-keys":_vm.leftCheckedKeys},on:{"check-change":_vm.handleLeftCheckChange,"node-click":_vm.handleLeftNodeClick},scopedSlots:_vm._u([{key:"default",fn:function({ node, data }){return _c('span',{staticClass:"xt-transfer-tree__node"},[_c('span',[_vm._v(_vm._s(node.label))]),(data.children && data.children.length)?_c('span',{staticClass:"xt-transfer-tree__node-count"},[_vm._v(" ("+_vm._s(data.children.length)+") ")]):_vm._e()])}}])})],1)]),_c('div',{staticClass:"xt-transfer-tree__buttons"},[_c('el-button',{attrs:{"type":"primary","disabled":!_vm.leftCheckedCount,"size":_vm.buttonSize},on:{"click":_vm.transferToRight}},[_c('i',{staticClass:"el-icon-arrow-right"})]),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.rightCheckedCount,"size":_vm.buttonSize},on:{"click":_vm.transferToLeft}},[_c('i',{staticClass:"el-icon-arrow-left"})])],1),_c('div',{staticClass:"xt-transfer-tree__panel xt-transfer-tree__target"},[_c('div',{staticClass:"xt-transfer-tree__header"},[_c('span',{staticClass:"xt-transfer-tree__title"},[_vm._v(_vm._s(_vm.rightTitle))]),_c('span',{staticClass:"xt-transfer-tree__count"},[_vm._v(_vm._s(_vm.rightCheckedCount)+"/"+_vm._s(_vm.rightTotalCount))])]),(_vm.filterable)?_c('div',{staticClass:"xt-transfer-tree__search"},[_c('el-input',{attrs:{"placeholder":"搜索","prefix-icon":"el-icon-search","size":"small"},model:{value:(_vm.rightFilterText),callback:function ($$v) {_vm.rightFilterText=$$v},expression:"rightFilterText"}})],1):_vm._e(),_c('div',{staticClass:"xt-transfer-tree__body"},[_c('el-tree',{ref:"rightTree",attrs:{"data":_vm.targetData,"props":_vm.treeProps,"default-expand-all":_vm.defaultExpandAll,"filter-node-method":_vm.filterRightNode,"show-checkbox":_vm.showCheckbox,"check-strictly":!_vm.cascade,"default-checked-keys":_vm.rightCheckedKeys},on:{"check-change":_vm.handleRightCheckChange,"node-click":_vm.handleRightNodeClick},scopedSlots:_vm._u([{key:"default",fn:function({ node, data }){return _c('span',{staticClass:"xt-transfer-tree__node"},[_c('span',[_vm._v(_vm._s(node.label))]),(data.children && data.children.length)?_c('span',{staticClass:"xt-transfer-tree__node-count"},[_vm._v(" ("+_vm._s(data.children.length)+") ")]):_vm._e()])}}])})],1)])])
|
|
136
136
|
}
|
|
137
137
|
var staticRenderFns = []
|
|
@@ -140,7 +140,7 @@ if (typeof window !== 'undefined') {
|
|
|
140
140
|
// Indicate to webpack that this file can be concatenated
|
|
141
141
|
/* harmony default export */ var setPublicPath = (null);
|
|
142
142
|
|
|
143
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
143
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-transfer-tree/index.vue?vue&type=template&id=561bec94&scoped=true
|
|
144
144
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-transfer-tree"},[_c('div',{staticClass:"xt-transfer-tree__panel xt-transfer-tree__source"},[_c('div',{staticClass:"xt-transfer-tree__header"},[_c('span',{staticClass:"xt-transfer-tree__title"},[_vm._v(_vm._s(_vm.leftTitle))]),_c('span',{staticClass:"xt-transfer-tree__count"},[_vm._v(_vm._s(_vm.leftCheckedCount)+"/"+_vm._s(_vm.leftTotalCount))])]),(_vm.filterable)?_c('div',{staticClass:"xt-transfer-tree__search"},[_c('el-input',{attrs:{"placeholder":"搜索","prefix-icon":"el-icon-search","size":"small"},model:{value:(_vm.leftFilterText),callback:function ($$v) {_vm.leftFilterText=$$v},expression:"leftFilterText"}})],1):_vm._e(),_c('div',{staticClass:"xt-transfer-tree__body"},[_c('el-tree',{ref:"leftTree",attrs:{"data":_vm.sourceData,"props":_vm.treeProps,"default-expand-all":_vm.defaultExpandAll,"filter-node-method":_vm.filterLeftNode,"show-checkbox":_vm.showCheckbox,"check-strictly":!_vm.cascade,"default-checked-keys":_vm.leftCheckedKeys},on:{"check-change":_vm.handleLeftCheckChange,"node-click":_vm.handleLeftNodeClick},scopedSlots:_vm._u([{key:"default",fn:function({ node, data }){return _c('span',{staticClass:"xt-transfer-tree__node"},[_c('span',[_vm._v(_vm._s(node.label))]),(data.children && data.children.length)?_c('span',{staticClass:"xt-transfer-tree__node-count"},[_vm._v(" ("+_vm._s(data.children.length)+") ")]):_vm._e()])}}])})],1)]),_c('div',{staticClass:"xt-transfer-tree__buttons"},[_c('el-button',{attrs:{"type":"primary","disabled":!_vm.leftCheckedCount,"size":_vm.buttonSize},on:{"click":_vm.transferToRight}},[_c('i',{staticClass:"el-icon-arrow-right"})]),_c('el-button',{attrs:{"type":"primary","disabled":!_vm.rightCheckedCount,"size":_vm.buttonSize},on:{"click":_vm.transferToLeft}},[_c('i',{staticClass:"el-icon-arrow-left"})])],1),_c('div',{staticClass:"xt-transfer-tree__panel xt-transfer-tree__target"},[_c('div',{staticClass:"xt-transfer-tree__header"},[_c('span',{staticClass:"xt-transfer-tree__title"},[_vm._v(_vm._s(_vm.rightTitle))]),_c('span',{staticClass:"xt-transfer-tree__count"},[_vm._v(_vm._s(_vm.rightCheckedCount)+"/"+_vm._s(_vm.rightTotalCount))])]),(_vm.filterable)?_c('div',{staticClass:"xt-transfer-tree__search"},[_c('el-input',{attrs:{"placeholder":"搜索","prefix-icon":"el-icon-search","size":"small"},model:{value:(_vm.rightFilterText),callback:function ($$v) {_vm.rightFilterText=$$v},expression:"rightFilterText"}})],1):_vm._e(),_c('div',{staticClass:"xt-transfer-tree__body"},[_c('el-tree',{ref:"rightTree",attrs:{"data":_vm.targetData,"props":_vm.treeProps,"default-expand-all":_vm.defaultExpandAll,"filter-node-method":_vm.filterRightNode,"show-checkbox":_vm.showCheckbox,"check-strictly":!_vm.cascade,"default-checked-keys":_vm.rightCheckedKeys},on:{"check-change":_vm.handleRightCheckChange,"node-click":_vm.handleRightNodeClick},scopedSlots:_vm._u([{key:"default",fn:function({ node, data }){return _c('span',{staticClass:"xt-transfer-tree__node"},[_c('span',[_vm._v(_vm._s(node.label))]),(data.children && data.children.length)?_c('span',{staticClass:"xt-transfer-tree__node-count"},[_vm._v(" ("+_vm._s(data.children.length)+") ")]):_vm._e()])}}])})],1)])])
|
|
145
145
|
}
|
|
146
146
|
var staticRenderFns = []
|
|
@@ -138,7 +138,7 @@ if (typeof window !== 'undefined') {
|
|
|
138
138
|
// Indicate to webpack that this file can be concatenated
|
|
139
139
|
/* harmony default export */ var setPublicPath = (null);
|
|
140
140
|
|
|
141
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
141
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-upload/index.vue?vue&type=template&id=03e2de58
|
|
142
142
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('XtFlexBox',{attrs:{"type":"inline-flex","gap":"5px"}},[(_vm.action)?_c('el-upload',{ref:"uploadFile",attrs:{"disabled":_vm.disabled || _vm.uploading,"action":_vm.YSSQP + _vm.action,"file-list":_vm.fileList,"data":{accessToken: _vm.accessToken,..._vm.data},"multiple":_vm.multiple,"limit":_vm.limit,"on-success":_vm.uploadSuccess,"show-file-list":false,"auto-upload":_vm.autoUpload,"before-upload":_vm.uploadBefore,"accept":_vm.accept}},[_c('span',{staticStyle:{"font-size":"20px","padding":"20px","background":"#f0f0f1","color":"#409EFF"},style:({padding: _vm.plusPx / 2 + 'px',cursor:_vm.disabled ? 'not-allowed':'pointer'})},[_vm._t("default",function(){return [_c('i',{class:_vm.icon})]})],2)]):_vm._e(),(_vm.fileList!==null&&_vm.fileList.length>0)?_c('XtFlexBox',{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{"flex":"1"},attrs:{"gap":"5px","wrap":"wrap"}},_vm._l((_vm.fileList),function(ite,index){return _c('li',{key:index,staticClass:"el-upload-list__item is-ready",staticStyle:{"margin":"0","width":"62px","height":"62px"},style:({ width: (_vm.plusPx + 22)+ 'px',height: (_vm.plusPx + 22)+ 'px'})},[_c('el-image',{staticClass:"el-upload-list__item-thumbnail",attrs:{"src":_vm.YSSQP+'/'+ite,"alt":""},on:{"click":_vm.clickHandler}}),_c('span',{staticClass:"el-upload-list__item-actions",on:{"click":function($event){return _vm.preShowPicture(ite, index)}}},[_c('span',{staticClass:"el-upload-list__item-preview",on:{"click":function($event){$event.stopPropagation();return _vm.preShowPicture(ite, index)}}},[_c('i',{staticClass:"el-icon-zoom-in"})]),(!_vm.uploading&&!_vm.disabled)?_c('span',{staticClass:"el-upload-list__item-delete",staticStyle:{"margin-left":"0"},on:{"click":function($event){$event.stopPropagation();return _vm.handleRemove(index)}}},[_c('i',{staticClass:"el-icon-delete"})]):_vm._e()])],1)}),0):_vm._e(),(_vm.preview)?[(_vm.previewVisible)?_c('ImageViewer',{attrs:{"z-index":3000,"base-url":_vm.baseUrl + '/',"infiniteLoop":false,"initial-index":_vm.imageIndex,"url-list":_vm.allFileList || _vm.fileList,"on-close":_vm.closeViewer}}):_vm._e()]:_vm._e()],2)
|
|
143
143
|
}
|
|
144
144
|
var staticRenderFns = []
|
|
@@ -146,7 +146,7 @@ var staticRenderFns = []
|
|
|
146
146
|
|
|
147
147
|
// CONCATENATED MODULE: ./src/components/xt-upload/index.vue?vue&type=template&id=03e2de58
|
|
148
148
|
|
|
149
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
149
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d8e97dbc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-upload/preview.vue?vue&type=template&id=236adf7f&scoped=true
|
|
150
150
|
var previewvue_type_template_id_236adf7f_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{"name":"viewer-fade"}},[_c('div',{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:({ 'z-index': _vm.zIndex }),attrs:{"tabindex":"-1"}},[_c('div',{staticClass:"el-image-viewer__mask",on:{"click":_vm.hide}}),_c('span',{staticClass:"el-image-viewer__btn fix_close",on:{"click":_vm.hide}},[_c('i',{staticClass:"el-icon-close"})]),(!_vm.isSingle)?[_c('span',{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{ 'is-disabled': !_vm.infinite && _vm.isFirst },on:{"click":_vm.prev}},[_c('i',{staticClass:"el-icon-arrow-left"})]),_c('span',{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{ 'is-disabled': !_vm.infinite && _vm.isLast },on:{"click":_vm.next}},[_c('i',{staticClass:"el-icon-arrow-right"})])]:_vm._e(),_c('div',{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[_c('div',{staticClass:"el-image-viewer__actions__inner"},[_c('i',{staticClass:"el-icon-zoom-out",on:{"click":function($event){$event.stopPropagation();return _vm.handleActions('zoomOut')}}}),_c('i',{staticClass:"el-icon-zoom-in",on:{"click":function($event){$event.stopPropagation();return _vm.handleActions('zoomIn')}}}),_c('i',{staticClass:"el-image-viewer__actions__divider"}),_c('i',{class:_vm.mode.icon,on:{"click":function($event){$event.stopPropagation();return _vm.toggleMode.apply(null, arguments)}}}),_c('i',{staticClass:"el-image-viewer__actions__divider"}),_c('i',{staticClass:"el-icon-refresh-left",on:{"click":function($event){$event.stopPropagation();return _vm.handleActions('anticlocelise')}}}),_c('i',{staticClass:"el-icon-refresh-right",on:{"click":function($event){$event.stopPropagation();return _vm.handleActions('clocelise')}}})])]),_c('div',{staticClass:"el-image-viewer__canvas"},_vm._l((_vm.urlList),function(url,i){return (i === _vm.index)?_c('img',{key:url,ref:"img",refInFor:true,staticClass:"el-image-viewer__img",style:(_vm.imgStyle),attrs:{"src":_vm.currentImg},on:{"load":_vm.handleImgLoad,"error":_vm.handleImgError,"mousedown":_vm.handleMouseDown}}):_vm._e()}),0)],2)])
|
|
151
151
|
}
|
|
152
152
|
var previewvue_type_template_id_236adf7f_scoped_true_staticRenderFns = []
|
|
@@ -154,16 +154,16 @@ var previewvue_type_template_id_236adf7f_scoped_true_staticRenderFns = []
|
|
|
154
154
|
|
|
155
155
|
// CONCATENATED MODULE: ./src/components/xt-upload/preview.vue?vue&type=template&id=236adf7f&scoped=true
|
|
156
156
|
|
|
157
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
158
|
-
var
|
|
159
|
-
var
|
|
157
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"}
|
|
158
|
+
var external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
159
|
+
var external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_);
|
|
160
160
|
|
|
161
161
|
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/dom.js
|
|
162
162
|
/* istanbul ignore next */
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
const isServer =
|
|
166
|
+
const isServer = external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer;
|
|
167
167
|
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
168
168
|
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
169
169
|
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
@@ -411,7 +411,7 @@ let isFunction = (functionToCheck) => {
|
|
|
411
411
|
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
412
412
|
};
|
|
413
413
|
|
|
414
|
-
if ( true && typeof Int8Array !== 'object' && (
|
|
414
|
+
if ( true && typeof Int8Array !== 'object' && (external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
415
415
|
isFunction = function(obj) {
|
|
416
416
|
return typeof obj === 'function' || false;
|
|
417
417
|
};
|
|
@@ -545,15 +545,15 @@ const coerceTruthyValueToArray = function(val) {
|
|
|
545
545
|
};
|
|
546
546
|
|
|
547
547
|
const isIE = function() {
|
|
548
|
-
return !
|
|
548
|
+
return !external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
549
549
|
};
|
|
550
550
|
|
|
551
551
|
const isEdge = function() {
|
|
552
|
-
return !
|
|
552
|
+
return !external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
const isFirefox = function() {
|
|
556
|
-
return !
|
|
556
|
+
return !external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
const autoprefixer = function(style) {
|
|
@@ -671,7 +671,7 @@ function objToArray(obj) {
|
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
const isMac = function() {
|
|
674
|
-
return !
|
|
674
|
+
return !external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
675
675
|
};
|
|
676
676
|
|
|
677
677
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-upload/preview.vue?vue&type=script&lang=js
|