xt-element-ui 2.1.72 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.common.js +267 -61
- package/lib/index.css +1 -1
- package/lib/index.umd.js +267 -61
- package/lib/index.umd.min.js +1 -1
- package/lib/xt-badge/demo.html +10 -0
- package/lib/xt-badge/index.js +1 -0
- package/lib/xt-badge/xt-badge.common.js +335 -0
- package/lib/xt-badge/xt-badge.css +1 -0
- package/lib/xt-badge/xt-badge.umd.js +345 -0
- package/lib/xt-badge/xt-badge.umd.min.js +1 -0
- package/lib/xt-button/demo.html +10 -0
- package/lib/xt-button/index.js +1 -0
- package/lib/xt-button/xt-button.common.js +331 -0
- package/lib/xt-button/xt-button.css +1 -0
- package/lib/xt-button/xt-button.umd.js +341 -0
- package/lib/xt-button/xt-button.umd.min.js +1 -0
- package/lib/xt-card/demo.html +10 -0
- package/lib/xt-card/index.js +1 -0
- package/lib/xt-card/xt-card.common.js +325 -0
- package/lib/xt-card/xt-card.css +1 -0
- package/lib/xt-card/xt-card.umd.js +335 -0
- package/lib/xt-card/xt-card.umd.min.js +1 -0
- package/lib/xt-card-item/demo.html +10 -0
- package/lib/xt-card-item/index.js +1 -0
- package/lib/xt-card-item/xt-card-item.common.js +291 -0
- package/lib/xt-card-item/xt-card-item.css +1 -0
- package/lib/xt-card-item/xt-card-item.umd.js +301 -0
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -0
- package/lib/xt-chart/demo.html +10 -0
- package/lib/xt-chart/index.js +1 -0
- package/lib/xt-chart/xt-chart.common.js +109203 -0
- package/lib/xt-chart/xt-chart.css +1 -0
- package/lib/xt-chart/xt-chart.umd.js +109213 -0
- package/lib/xt-chart/xt-chart.umd.min.js +1 -0
- package/lib/xt-config-provider/demo.html +10 -0
- package/lib/xt-config-provider/index.js +1 -0
- package/lib/xt-config-provider/xt-config-provider.common.js +108388 -0
- package/lib/xt-config-provider/xt-config-provider.css +1 -0
- package/lib/xt-config-provider/xt-config-provider.umd.js +108398 -0
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -0
- package/lib/xt-date-picker/demo.html +10 -0
- package/lib/xt-date-picker/index.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.common.js +768 -0
- package/lib/xt-date-picker/xt-date-picker.css +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.js +778 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -0
- package/lib/xt-flex-box/demo.html +10 -0
- package/lib/xt-flex-box/index.js +1 -0
- package/lib/xt-flex-box/xt-flex-box.common.js +303 -0
- package/lib/xt-flex-box/xt-flex-box.css +1 -0
- package/lib/xt-flex-box/xt-flex-box.umd.js +313 -0
- package/lib/xt-flex-box/xt-flex-box.umd.min.js +1 -0
- package/lib/xt-form-schema/demo.html +10 -0
- package/lib/xt-form-schema/index.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +510 -0
- package/lib/xt-form-schema/xt-form-schema.css +1 -0
- package/lib/xt-form-schema/xt-form-schema.umd.js +520 -0
- package/lib/xt-form-schema/xt-form-schema.umd.min.js +1 -0
- package/lib/xt-grid-box/demo.html +10 -0
- package/lib/xt-grid-box/index.js +1 -0
- package/lib/xt-grid-box/xt-grid-box.common.js +404 -0
- package/lib/xt-grid-box/xt-grid-box.css +1 -0
- package/lib/xt-grid-box/xt-grid-box.umd.js +414 -0
- package/lib/xt-grid-box/xt-grid-box.umd.min.js +1 -0
- package/lib/xt-grid-item/demo.html +10 -0
- package/lib/xt-grid-item/index.js +1 -0
- package/lib/xt-grid-item/xt-grid-item.common.js +381 -0
- package/lib/xt-grid-item/xt-grid-item.css +1 -0
- package/lib/xt-grid-item/xt-grid-item.umd.js +391 -0
- package/lib/xt-grid-item/xt-grid-item.umd.min.js +1 -0
- package/lib/xt-icon/demo.html +10 -0
- package/lib/xt-icon/index.js +1 -0
- package/lib/xt-icon/xt-icon.common.js +430 -0
- package/lib/xt-icon/xt-icon.css +1 -0
- package/lib/xt-icon/xt-icon.umd.js +440 -0
- package/lib/xt-icon/xt-icon.umd.min.js +1 -0
- package/lib/xt-input/demo.html +10 -0
- package/lib/xt-input/index.js +1 -0
- package/lib/xt-input/xt-input.common.js +584 -0
- package/lib/xt-input/xt-input.css +1 -0
- package/lib/xt-input/xt-input.umd.js +594 -0
- package/lib/xt-input/xt-input.umd.min.js +1 -0
- package/lib/xt-list/demo.html +10 -0
- package/lib/xt-list/index.js +1 -0
- package/lib/xt-list/xt-list.common.js +714 -0
- package/lib/xt-list/xt-list.css +1 -0
- package/lib/xt-list/xt-list.umd.js +724 -0
- package/lib/xt-list/xt-list.umd.min.js +1 -0
- package/lib/xt-map/demo.html +10 -0
- package/lib/xt-map/index.js +1 -0
- package/lib/xt-map/xt-map.common.js +1951 -0
- package/lib/xt-map/xt-map.css +1 -0
- package/lib/xt-map/xt-map.umd.js +1961 -0
- package/lib/xt-map/xt-map.umd.min.js +1 -0
- package/lib/xt-map-provider/demo.html +10 -0
- package/lib/xt-map-provider/index.js +1 -0
- package/lib/xt-map-provider/xt-map-provider.common.js +644 -0
- package/lib/xt-map-provider/xt-map-provider.css +1 -0
- package/lib/xt-map-provider/xt-map-provider.umd.js +654 -0
- package/lib/xt-map-provider/xt-map-provider.umd.min.js +1 -0
- package/lib/xt-page/demo.html +10 -0
- package/lib/xt-page/index.js +1 -0
- package/lib/xt-page/xt-page.common.js +353 -0
- package/lib/xt-page/xt-page.css +1 -0
- package/lib/xt-page/xt-page.umd.js +363 -0
- package/lib/xt-page/xt-page.umd.min.js +1 -0
- package/lib/xt-progress/demo.html +10 -0
- package/lib/xt-progress/index.js +1 -0
- package/lib/xt-progress/xt-progress.common.js +327 -0
- package/lib/xt-progress/xt-progress.css +1 -0
- package/lib/xt-progress/xt-progress.umd.js +337 -0
- package/lib/xt-progress/xt-progress.umd.min.js +1 -0
- package/lib/xt-scroll-arrow/demo.html +10 -0
- package/lib/xt-scroll-arrow/index.js +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +495 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +505 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -0
- package/lib/xt-select-tree/demo.html +10 -0
- package/lib/xt-select-tree/index.js +1 -0
- package/lib/xt-select-tree/xt-select-tree.common.js +1791 -0
- package/lib/xt-select-tree/xt-select-tree.css +1 -0
- package/lib/xt-select-tree/xt-select-tree.umd.js +1801 -0
- package/lib/xt-select-tree/xt-select-tree.umd.min.js +1 -0
- package/lib/xt-step-price/demo.html +10 -0
- package/lib/xt-step-price/index.js +1 -0
- package/lib/xt-step-price/xt-step-price.common.js +800 -0
- package/lib/xt-step-price/xt-step-price.css +1 -0
- package/lib/xt-step-price/xt-step-price.umd.js +810 -0
- package/lib/xt-step-price/xt-step-price.umd.min.js +1 -0
- package/lib/xt-step-price-item/demo.html +10 -0
- package/lib/xt-step-price-item/index.js +1 -0
- package/lib/xt-step-price-item/xt-step-price-item.common.js +417 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +427 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.min.js +1 -0
- package/lib/xt-tab-pane/demo.html +10 -0
- package/lib/xt-tab-pane/index.js +1 -0
- package/lib/xt-tab-pane/xt-tab-pane.common.js +309 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +319 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.min.js +1 -0
- package/lib/xt-table/demo.html +10 -0
- package/lib/xt-table/index.js +1 -0
- package/lib/xt-table/xt-table.common.js +1027 -0
- package/lib/xt-table/xt-table.css +1 -0
- package/lib/xt-table/xt-table.umd.js +1037 -0
- package/lib/xt-table/xt-table.umd.min.js +1 -0
- package/lib/xt-tabs/demo.html +10 -0
- package/lib/xt-tabs/index.js +1 -0
- package/lib/xt-tabs/xt-tabs.common.js +463 -0
- package/lib/xt-tabs/xt-tabs.css +1 -0
- package/lib/xt-tabs/xt-tabs.umd.js +473 -0
- package/lib/xt-tabs/xt-tabs.umd.min.js +1 -0
- package/lib/xt-text/demo.html +10 -0
- package/lib/xt-text/index.js +1 -0
- package/lib/xt-text/xt-text.common.js +536 -0
- package/lib/xt-text/xt-text.css +1 -0
- package/lib/xt-text/xt-text.umd.js +546 -0
- package/lib/xt-text/xt-text.umd.min.js +1 -0
- package/lib/xt-time/demo.html +10 -0
- package/lib/xt-time/index.js +1 -0
- package/lib/xt-time/xt-time.common.js +555 -0
- package/lib/xt-time/xt-time.css +1 -0
- package/lib/xt-time/xt-time.umd.js +565 -0
- package/lib/xt-time/xt-time.umd.min.js +1 -0
- package/lib/xt-transfer-tree/demo.html +10 -0
- package/lib/xt-transfer-tree/index.js +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +594 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.css +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +604 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.min.js +1 -0
- package/lib/xt-upload/demo.html +10 -0
- package/lib/xt-upload/index.js +1 -0
- package/lib/xt-upload/xt-upload.common.js +1292 -0
- package/lib/xt-upload/xt-upload.css +1 -0
- package/lib/xt-upload/xt-upload.umd.js +1302 -0
- package/lib/xt-upload/xt-upload.umd.min.js +1 -0
- package/package.json +4 -2
- package/src/components/xt-badge/index.js +8 -7
- package/src/components/xt-button/index.js +1 -0
- package/src/components/xt-card/index.js +1 -0
- package/src/components/xt-card-item/index.js +1 -0
- package/src/components/xt-config-provider/index.js +1 -0
- package/src/components/xt-flex-box/index.js +1 -0
- package/src/components/xt-grid-box/index.js +1 -0
- package/src/components/xt-icon/index.js +1 -0
- package/src/components/xt-input/index.js +1 -0
- package/src/components/xt-map/index.js +1 -0
- package/src/components/xt-progress/index.js +8 -7
- package/src/components/xt-scroll-arrow/index.js +8 -7
- package/src/components/xt-step-price/index.js +1 -0
- package/src/components/xt-tabs/index.js +9 -8
- package/src/components/xt-text/index.js +1 -0
- package/src/components/xt-time/index.js +1 -0
- package/src/index.js +32 -2
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["xt-tabs"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["xt-tabs"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
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
|
+
/***/ "e8d2":
|
|
118
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
119
|
+
|
|
120
|
+
// extracted by mini-css-extract-plugin
|
|
121
|
+
|
|
122
|
+
/***/ }),
|
|
123
|
+
|
|
124
|
+
/***/ "fb15":
|
|
125
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
126
|
+
|
|
127
|
+
"use strict";
|
|
128
|
+
// ESM COMPAT FLAG
|
|
129
|
+
__webpack_require__.r(__webpack_exports__);
|
|
130
|
+
|
|
131
|
+
// EXPORTS
|
|
132
|
+
__webpack_require__.d(__webpack_exports__, "XtTabs", function() { return /* reexport */ xt_tabs; });
|
|
133
|
+
|
|
134
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
135
|
+
// This file is imported into lib/wc client bundles.
|
|
136
|
+
|
|
137
|
+
if (typeof window !== 'undefined') {
|
|
138
|
+
var currentScript = window.document.currentScript
|
|
139
|
+
if (false) { var getCurrentScript; }
|
|
140
|
+
|
|
141
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
142
|
+
if (src) {
|
|
143
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Indicate to webpack that this file can be concatenated
|
|
148
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
149
|
+
|
|
150
|
+
// EXTERNAL MODULE: ./src/components/xt-tabs/style/index.scss
|
|
151
|
+
var style = __webpack_require__("e8d2");
|
|
152
|
+
|
|
153
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-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=3859f3fa&scoped=true
|
|
154
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"tabsWrap",staticClass:"xt-tabs",class:[
|
|
155
|
+
`xt-tabs--${_vm.actualPosition}`,
|
|
156
|
+
{ 'xt-tabs--card': _vm.type === 'card' },
|
|
157
|
+
{ 'xt-tabs--border-card': _vm.type === 'border-card' },
|
|
158
|
+
{ 'xt-tabs--editable': _vm.editable }
|
|
159
|
+
]},[_c('div',{ref:"tabsHeader",staticClass:"xt-tabs__header"},[_c('div',{ref:"tabsNav",staticClass:"xt-tabs__nav"},[_vm._l((_vm.panes),function(pane,index){return _c('div',{key:pane.name,staticClass:"xt-tabs__nav-item",class:{
|
|
160
|
+
'xt-tabs__nav-item--active': _vm.activeName === pane.name,
|
|
161
|
+
'xt-tabs__nav-item--disabled': pane.disabled
|
|
162
|
+
},on:{"click":function($event){return _vm.handleTabClick(pane)}}},[_c('span',{staticClass:"xt-tabs__nav-link"},[_vm._v(_vm._s(pane.label))]),((_vm.closable || pane.closable) && !_vm.editable)?_c('span',{staticClass:"xt-tabs__close",on:{"click":function($event){$event.stopPropagation();return _vm.handleTabRemove(pane.name)}}},[_vm._v("×")]):_vm._e()])}),(_vm.addable || _vm.editable)?_c('div',{staticClass:"xt-tabs__nav-item xt-tabs__nav-item--add",on:{"click":_vm.handleTabAdd}},[_c('span',[_vm._v("+")])]):_vm._e()],2),_c('div',{staticClass:"xt-tabs__nav-indicator",style:(_vm.indicatorStyle)})]),_c('div',{staticClass:"xt-tabs__content"},[_vm._t("default")],2)])
|
|
163
|
+
}
|
|
164
|
+
var staticRenderFns = []
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=template&id=3859f3fa&scoped=true
|
|
168
|
+
|
|
169
|
+
// 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
|
+
|
|
171
|
+
/* harmony default export */ var xt_tabsvue_type_script_lang_js = ({
|
|
172
|
+
name: 'XtTabs',
|
|
173
|
+
props: {
|
|
174
|
+
value: {
|
|
175
|
+
type: [String, Number],
|
|
176
|
+
default: ''
|
|
177
|
+
},
|
|
178
|
+
type: {
|
|
179
|
+
type: String,
|
|
180
|
+
default: 'card',
|
|
181
|
+
validator: (val) => ['default', 'card', 'border-card'].includes(val)
|
|
182
|
+
},
|
|
183
|
+
position: {
|
|
184
|
+
type: String,
|
|
185
|
+
default: 'top',
|
|
186
|
+
validator: (val) => ['top', 'bottom', 'left', 'right'].includes(val)
|
|
187
|
+
},
|
|
188
|
+
tabPosition: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: ''
|
|
191
|
+
},
|
|
192
|
+
closable: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
default: false
|
|
195
|
+
},
|
|
196
|
+
addable: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: false
|
|
199
|
+
},
|
|
200
|
+
editable: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
data() {
|
|
206
|
+
return {
|
|
207
|
+
panes: [],
|
|
208
|
+
activeName: this.value
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
computed: {
|
|
212
|
+
actualPosition() {
|
|
213
|
+
return this.tabPosition || this.position
|
|
214
|
+
},
|
|
215
|
+
indicatorStyle() {
|
|
216
|
+
const activeIndex = this.panes.findIndex(p => p.name === this.activeName)
|
|
217
|
+
if (activeIndex === -1 || !this.$refs.tabsNav) return { display: 'none' }
|
|
218
|
+
|
|
219
|
+
const navItems = this.$refs.tabsNav.querySelectorAll('.xt-tabs__nav-item:not(.xt-tabs__nav-item--add)')
|
|
220
|
+
if (!navItems || navItems.length === 0) return { display: 'none' }
|
|
221
|
+
|
|
222
|
+
const activeItem = navItems[activeIndex]
|
|
223
|
+
if (!activeItem) return { display: 'none' }
|
|
224
|
+
|
|
225
|
+
const pos = this.actualPosition
|
|
226
|
+
const base = { transition: 'all 0.3s ease' }
|
|
227
|
+
if (pos === 'top' || pos === 'bottom') {
|
|
228
|
+
return {
|
|
229
|
+
...base,
|
|
230
|
+
left: `${activeItem.offsetLeft}px`,
|
|
231
|
+
width: `${activeItem.offsetWidth}px`,
|
|
232
|
+
height: '2px',
|
|
233
|
+
bottom: pos === 'top' ? 0 : 'auto',
|
|
234
|
+
top: pos === 'bottom' ? 0 : 'auto',
|
|
235
|
+
display: 'block'
|
|
236
|
+
}
|
|
237
|
+
} else {
|
|
238
|
+
return {
|
|
239
|
+
...base,
|
|
240
|
+
top: `${activeItem.offsetTop}px`,
|
|
241
|
+
height: `${activeItem.offsetHeight}px`,
|
|
242
|
+
width: '2px',
|
|
243
|
+
left: pos === 'left' ? 'auto' : 0,
|
|
244
|
+
right: pos === 'right' ? 0 : 'auto',
|
|
245
|
+
display: 'block'
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
watch: {
|
|
251
|
+
value(val) {
|
|
252
|
+
this.activeName = val
|
|
253
|
+
},
|
|
254
|
+
activeName(val) {
|
|
255
|
+
this.$emit('input', val)
|
|
256
|
+
this.$emit('change', val)
|
|
257
|
+
this.$nextTick(() => this.$forceUpdate())
|
|
258
|
+
},
|
|
259
|
+
panes: {
|
|
260
|
+
handler() {
|
|
261
|
+
this.$nextTick(() => this.$forceUpdate())
|
|
262
|
+
},
|
|
263
|
+
deep: true
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
methods: {
|
|
267
|
+
handleTabClick(pane) {
|
|
268
|
+
if (pane.disabled) return
|
|
269
|
+
this.activeName = pane.name
|
|
270
|
+
this.$emit('tab-click', pane)
|
|
271
|
+
},
|
|
272
|
+
handleTabRemove(name) {
|
|
273
|
+
this.$emit('tab-remove', name)
|
|
274
|
+
this.$emit('edit', name, 'remove')
|
|
275
|
+
const index = this.panes.findIndex(p => p.name === name)
|
|
276
|
+
if (index > -1) {
|
|
277
|
+
this.panes.splice(index, 1)
|
|
278
|
+
if (this.activeName === name && this.panes.length > 0) {
|
|
279
|
+
this.activeName = this.panes[0].name
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
handleTabAdd() {
|
|
284
|
+
this.$emit('tab-add')
|
|
285
|
+
this.$emit('edit', null, 'add')
|
|
286
|
+
},
|
|
287
|
+
addPane(pane) {
|
|
288
|
+
const exist = this.panes.some(p => p.name === pane.name)
|
|
289
|
+
if (!exist) {
|
|
290
|
+
this.panes.push(pane)
|
|
291
|
+
if (!this.activeName && this.panes.length === 1) {
|
|
292
|
+
this.activeName = pane.name
|
|
293
|
+
}
|
|
294
|
+
this.$nextTick(() => this.$forceUpdate())
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
removePane(name) {
|
|
298
|
+
const idx = this.panes.findIndex(p => p.name === name)
|
|
299
|
+
if (idx > -1) {
|
|
300
|
+
this.panes.splice(idx, 1)
|
|
301
|
+
this.$nextTick(() => this.$forceUpdate())
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
collectPanes() {
|
|
305
|
+
this.panes = []
|
|
306
|
+
this.$children.forEach(child => {
|
|
307
|
+
if (child.$options.name === 'XtTabPane') {
|
|
308
|
+
this.addPane({
|
|
309
|
+
name: child.name,
|
|
310
|
+
label: child.label,
|
|
311
|
+
disabled: child.disabled,
|
|
312
|
+
closable: child.closable
|
|
313
|
+
})
|
|
314
|
+
}
|
|
315
|
+
})
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
mounted() {
|
|
319
|
+
this.$nextTick(() => {
|
|
320
|
+
this.collectPanes()
|
|
321
|
+
this.$watch(() => this.$children, () => {
|
|
322
|
+
this.collectPanes()
|
|
323
|
+
}, { flush: 'post' })
|
|
324
|
+
})
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue?vue&type=script&lang=js
|
|
329
|
+
/* 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
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
334
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
335
|
+
|
|
336
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
337
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
338
|
+
// be included in the final webpack user bundle.
|
|
339
|
+
|
|
340
|
+
function normalizeComponent(
|
|
341
|
+
scriptExports,
|
|
342
|
+
render,
|
|
343
|
+
staticRenderFns,
|
|
344
|
+
functionalTemplate,
|
|
345
|
+
injectStyles,
|
|
346
|
+
scopeId,
|
|
347
|
+
moduleIdentifier /* server only */,
|
|
348
|
+
shadowMode /* vue-cli only */
|
|
349
|
+
) {
|
|
350
|
+
// Vue.extend constructor export interop
|
|
351
|
+
var options =
|
|
352
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
353
|
+
|
|
354
|
+
// render functions
|
|
355
|
+
if (render) {
|
|
356
|
+
options.render = render
|
|
357
|
+
options.staticRenderFns = staticRenderFns
|
|
358
|
+
options._compiled = true
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// functional template
|
|
362
|
+
if (functionalTemplate) {
|
|
363
|
+
options.functional = true
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// scopedId
|
|
367
|
+
if (scopeId) {
|
|
368
|
+
options._scopeId = 'data-v-' + scopeId
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
var hook
|
|
372
|
+
if (moduleIdentifier) {
|
|
373
|
+
// server build
|
|
374
|
+
hook = function (context) {
|
|
375
|
+
// 2.3 injection
|
|
376
|
+
context =
|
|
377
|
+
context || // cached call
|
|
378
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
379
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
380
|
+
// 2.2 with runInNewContext: true
|
|
381
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
382
|
+
context = __VUE_SSR_CONTEXT__
|
|
383
|
+
}
|
|
384
|
+
// inject component styles
|
|
385
|
+
if (injectStyles) {
|
|
386
|
+
injectStyles.call(this, context)
|
|
387
|
+
}
|
|
388
|
+
// register component module identifier for async chunk inferrence
|
|
389
|
+
if (context && context._registeredComponents) {
|
|
390
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
// used by ssr in case component is cached and beforeCreate
|
|
394
|
+
// never gets called
|
|
395
|
+
options._ssrRegister = hook
|
|
396
|
+
} else if (injectStyles) {
|
|
397
|
+
hook = shadowMode
|
|
398
|
+
? function () {
|
|
399
|
+
injectStyles.call(
|
|
400
|
+
this,
|
|
401
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
402
|
+
)
|
|
403
|
+
}
|
|
404
|
+
: injectStyles
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (hook) {
|
|
408
|
+
if (options.functional) {
|
|
409
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
410
|
+
// go through the normalizer
|
|
411
|
+
options._injectStyles = hook
|
|
412
|
+
// register for functional component in vue file
|
|
413
|
+
var originalRender = options.render
|
|
414
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
415
|
+
hook.call(context)
|
|
416
|
+
return originalRender(h, context)
|
|
417
|
+
}
|
|
418
|
+
} else {
|
|
419
|
+
// inject component registration as beforeCreate hook
|
|
420
|
+
var existing = options.beforeCreate
|
|
421
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return {
|
|
426
|
+
exports: scriptExports,
|
|
427
|
+
options: options
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.vue
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
/* normalize component */
|
|
439
|
+
|
|
440
|
+
var component = normalizeComponent(
|
|
441
|
+
components_xt_tabsvue_type_script_lang_js,
|
|
442
|
+
render,
|
|
443
|
+
staticRenderFns,
|
|
444
|
+
false,
|
|
445
|
+
null,
|
|
446
|
+
"3859f3fa",
|
|
447
|
+
null
|
|
448
|
+
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
/* harmony default export */ var xt_tabs = (component.exports);
|
|
452
|
+
// CONCATENATED MODULE: ./src/components/xt-tabs/index.js
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
xt_tabs.install = function(Vue) {
|
|
457
|
+
Vue.component(xt_tabs.name, xt_tabs)
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* harmony default export */ var components_xt_tabs = (xt_tabs);
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_tabs);
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
/***/ })
|
|
471
|
+
|
|
472
|
+
/******/ });
|
|
473
|
+
});
|
|
@@ -0,0 +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")}({"2f86":function(t,e,a){},d273:function(t,e,a){"use strict";a("2f86")},e8d2:function(t,e,a){},fb15:function(t,e,a){"use strict";if(a.r(e),a.d(e,"XtTabs",(function(){return f})),"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:"card",validator:t=>["default","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;a("d273");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 f=d.beforeCreate;d.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:d}}var c=d(l,s,o,!1,null,"3859f3fa",null),f=c.exports;f.install=function(t){t.component(f.name,f)};var u=f;e["default"]=u}})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./xt-text.common.js');
|