xt-element-ui 2.1.72 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.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,440 @@
|
|
|
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-icon"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["xt-icon"] = 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
|
+
/***/ "176d":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
// extracted by mini-css-extract-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ "1f11":
|
|
107
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
108
|
+
|
|
109
|
+
// extracted by mini-css-extract-plugin
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ "6b14":
|
|
114
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
115
|
+
|
|
116
|
+
"use strict";
|
|
117
|
+
/* 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_0e301b72_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("176d");
|
|
118
|
+
/* 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_0e301b72_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_0e301b72_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
119
|
+
/* unused harmony reexport * */
|
|
120
|
+
|
|
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__, "XtIcon", function() { return /* reexport */ xt_icon; });
|
|
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-icon/style/index.scss
|
|
151
|
+
var style = __webpack_require__("1f11");
|
|
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-icon/index.vue?vue&type=template&id=0e301b72&scoped=true
|
|
154
|
+
var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_vm.tag,_vm._g({tag:"component",class:_vm.iconClasses,style:(_vm.iconStyle),on:{"click":_vm.handleClick}},_vm.$listeners),[(_vm.isSvgSprite)?_c('svg',{style:(_vm.svgStyle),attrs:{"aria-hidden":"true"}},[_c('use',{attrs:{"href":_vm.svgHref}})]):(_vm.hasDefaultSlot)?_vm._t("default"):_vm._e()],2)
|
|
155
|
+
}
|
|
156
|
+
var staticRenderFns = []
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// CONCATENATED MODULE: ./src/components/xt-icon/index.vue?vue&type=template&id=0e301b72&scoped=true
|
|
160
|
+
|
|
161
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-icon/index.vue?vue&type=script&lang=js
|
|
162
|
+
|
|
163
|
+
const customPrefixes = {}
|
|
164
|
+
|
|
165
|
+
const XtIcon = {
|
|
166
|
+
name: 'XtIcon',
|
|
167
|
+
inheritAttrs: false,
|
|
168
|
+
|
|
169
|
+
props: {
|
|
170
|
+
name: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: ''
|
|
173
|
+
},
|
|
174
|
+
size: {
|
|
175
|
+
type: [String, Number],
|
|
176
|
+
default: ''
|
|
177
|
+
},
|
|
178
|
+
color: {
|
|
179
|
+
type: String,
|
|
180
|
+
default: ''
|
|
181
|
+
},
|
|
182
|
+
spin: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: false
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
computed: {
|
|
189
|
+
hasDefaultSlot() {
|
|
190
|
+
return !!this.$slots.default
|
|
191
|
+
},
|
|
192
|
+
iconName() {
|
|
193
|
+
return (this.name || '').trim()
|
|
194
|
+
},
|
|
195
|
+
isElIcon() {
|
|
196
|
+
return /^el-icon-/.test(this.iconName)
|
|
197
|
+
},
|
|
198
|
+
isSvgInline() {
|
|
199
|
+
return this.iconName.indexOf('<svg') > -1
|
|
200
|
+
},
|
|
201
|
+
isSvgSprite() {
|
|
202
|
+
return /^(#|svg:)/.test(this.iconName)
|
|
203
|
+
},
|
|
204
|
+
isCustomFont() {
|
|
205
|
+
if (!this.iconName) return false
|
|
206
|
+
return !this.isElIcon && !this.isSvgInline && !this.isSvgSprite
|
|
207
|
+
},
|
|
208
|
+
svgHref() {
|
|
209
|
+
if (!this.isSvgSprite) return ''
|
|
210
|
+
const name = this.iconName.replace(/^svg:/, '').replace(/^#/, '')
|
|
211
|
+
return `#${name}`
|
|
212
|
+
},
|
|
213
|
+
needsExIconPrefix() {
|
|
214
|
+
if (!this.isCustomFont) return false
|
|
215
|
+
for (const prefix of Object.keys(customPrefixes)) {
|
|
216
|
+
if (this.iconName.indexOf(prefix) === 0) {
|
|
217
|
+
return false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return true
|
|
221
|
+
},
|
|
222
|
+
tag() {
|
|
223
|
+
if (this.isSvgInline) return 'span'
|
|
224
|
+
return 'i'
|
|
225
|
+
},
|
|
226
|
+
iconClasses() {
|
|
227
|
+
const classes = []
|
|
228
|
+
if (this.isElIcon) {
|
|
229
|
+
classes.push(this.iconName)
|
|
230
|
+
} else if (this.isSvgSprite) {
|
|
231
|
+
classes.push('ex-icon-svg')
|
|
232
|
+
} else if (this.isCustomFont) {
|
|
233
|
+
if (this.needsExIconPrefix) classes.push('ex-icon')
|
|
234
|
+
classes.push(this.iconName)
|
|
235
|
+
} else if (this.isSvgInline) {
|
|
236
|
+
classes.push('ex-icon-inline-svg')
|
|
237
|
+
}
|
|
238
|
+
if (this.spin) classes.push('ex-icon-spin')
|
|
239
|
+
return classes
|
|
240
|
+
},
|
|
241
|
+
iconStyle() {
|
|
242
|
+
const style = {}
|
|
243
|
+
if (this.size) {
|
|
244
|
+
const s = typeof this.size === 'number' ? `${this.size}px` : this.size
|
|
245
|
+
style.fontSize = s
|
|
246
|
+
style.width = s
|
|
247
|
+
style.height = s
|
|
248
|
+
}
|
|
249
|
+
if (this.color) {
|
|
250
|
+
style.color = this.color
|
|
251
|
+
}
|
|
252
|
+
if (this.isSvgInline) {
|
|
253
|
+
style.display = 'inline-block'
|
|
254
|
+
style.verticalAlign = 'middle'
|
|
255
|
+
}
|
|
256
|
+
return style
|
|
257
|
+
},
|
|
258
|
+
svgStyle() {
|
|
259
|
+
return {
|
|
260
|
+
width: '1em',
|
|
261
|
+
height: '1em',
|
|
262
|
+
verticalAlign: '-0.15em',
|
|
263
|
+
fill: 'currentColor',
|
|
264
|
+
overflow: 'hidden'
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
mounted() {
|
|
270
|
+
if (this.isSvgInline && this.$el) {
|
|
271
|
+
this.$el.innerHTML = this.iconName
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
beforeUpdate() {
|
|
276
|
+
if (this.isSvgInline && this.$el) {
|
|
277
|
+
this.$el.innerHTML = this.iconName
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
methods: {
|
|
282
|
+
handleClick(e) {
|
|
283
|
+
this.$emit('click', e)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
XtIcon.registerPrefix = function (prefix) {
|
|
289
|
+
if (prefix && typeof prefix === 'string') {
|
|
290
|
+
customPrefixes[prefix] = true
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* harmony default export */ var xt_iconvue_type_script_lang_js = (XtIcon);
|
|
295
|
+
|
|
296
|
+
// CONCATENATED MODULE: ./src/components/xt-icon/index.vue?vue&type=script&lang=js
|
|
297
|
+
/* harmony default export */ var components_xt_iconvue_type_script_lang_js = (xt_iconvue_type_script_lang_js);
|
|
298
|
+
// EXTERNAL MODULE: ./src/components/xt-icon/index.vue?vue&type=style&index=0&id=0e301b72&prod&lang=scss&scoped=true
|
|
299
|
+
var xt_iconvue_type_style_index_0_id_0e301b72_prod_lang_scss_scoped_true = __webpack_require__("6b14");
|
|
300
|
+
|
|
301
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
302
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
303
|
+
|
|
304
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
305
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
306
|
+
// be included in the final webpack user bundle.
|
|
307
|
+
|
|
308
|
+
function normalizeComponent(
|
|
309
|
+
scriptExports,
|
|
310
|
+
render,
|
|
311
|
+
staticRenderFns,
|
|
312
|
+
functionalTemplate,
|
|
313
|
+
injectStyles,
|
|
314
|
+
scopeId,
|
|
315
|
+
moduleIdentifier /* server only */,
|
|
316
|
+
shadowMode /* vue-cli only */
|
|
317
|
+
) {
|
|
318
|
+
// Vue.extend constructor export interop
|
|
319
|
+
var options =
|
|
320
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
321
|
+
|
|
322
|
+
// render functions
|
|
323
|
+
if (render) {
|
|
324
|
+
options.render = render
|
|
325
|
+
options.staticRenderFns = staticRenderFns
|
|
326
|
+
options._compiled = true
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// functional template
|
|
330
|
+
if (functionalTemplate) {
|
|
331
|
+
options.functional = true
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// scopedId
|
|
335
|
+
if (scopeId) {
|
|
336
|
+
options._scopeId = 'data-v-' + scopeId
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
var hook
|
|
340
|
+
if (moduleIdentifier) {
|
|
341
|
+
// server build
|
|
342
|
+
hook = function (context) {
|
|
343
|
+
// 2.3 injection
|
|
344
|
+
context =
|
|
345
|
+
context || // cached call
|
|
346
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
347
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
348
|
+
// 2.2 with runInNewContext: true
|
|
349
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
350
|
+
context = __VUE_SSR_CONTEXT__
|
|
351
|
+
}
|
|
352
|
+
// inject component styles
|
|
353
|
+
if (injectStyles) {
|
|
354
|
+
injectStyles.call(this, context)
|
|
355
|
+
}
|
|
356
|
+
// register component module identifier for async chunk inferrence
|
|
357
|
+
if (context && context._registeredComponents) {
|
|
358
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
// used by ssr in case component is cached and beforeCreate
|
|
362
|
+
// never gets called
|
|
363
|
+
options._ssrRegister = hook
|
|
364
|
+
} else if (injectStyles) {
|
|
365
|
+
hook = shadowMode
|
|
366
|
+
? function () {
|
|
367
|
+
injectStyles.call(
|
|
368
|
+
this,
|
|
369
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
370
|
+
)
|
|
371
|
+
}
|
|
372
|
+
: injectStyles
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (hook) {
|
|
376
|
+
if (options.functional) {
|
|
377
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
378
|
+
// go through the normalizer
|
|
379
|
+
options._injectStyles = hook
|
|
380
|
+
// register for functional component in vue file
|
|
381
|
+
var originalRender = options.render
|
|
382
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
383
|
+
hook.call(context)
|
|
384
|
+
return originalRender(h, context)
|
|
385
|
+
}
|
|
386
|
+
} else {
|
|
387
|
+
// inject component registration as beforeCreate hook
|
|
388
|
+
var existing = options.beforeCreate
|
|
389
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return {
|
|
394
|
+
exports: scriptExports,
|
|
395
|
+
options: options
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// CONCATENATED MODULE: ./src/components/xt-icon/index.vue
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
/* normalize component */
|
|
407
|
+
|
|
408
|
+
var component = normalizeComponent(
|
|
409
|
+
components_xt_iconvue_type_script_lang_js,
|
|
410
|
+
render,
|
|
411
|
+
staticRenderFns,
|
|
412
|
+
false,
|
|
413
|
+
null,
|
|
414
|
+
"0e301b72",
|
|
415
|
+
null
|
|
416
|
+
|
|
417
|
+
)
|
|
418
|
+
|
|
419
|
+
/* harmony default export */ var xt_icon = (component.exports);
|
|
420
|
+
// CONCATENATED MODULE: ./src/components/xt-icon/index.js
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
xt_icon.install = function (Vue) {
|
|
425
|
+
Vue.component(xt_icon.name, xt_icon)
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* harmony default export */ var components_xt_icon = (xt_icon);
|
|
429
|
+
|
|
430
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_icon);
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
/***/ })
|
|
438
|
+
|
|
439
|
+
/******/ });
|
|
440
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-icon"]=t():e["xt-icon"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"176d":function(e,t,n){},"1f11":function(e,t,n){},"6b14":function(e,t,n){"use strict";n("176d")},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"XtIcon",(function(){return p})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("1f11");var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(e.tag,e._g({tag:"component",class:e.iconClasses,style:e.iconStyle,on:{click:e.handleClick}},e.$listeners),[e.isSvgSprite?t("svg",{style:e.svgStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{href:e.svgHref}})]):e.hasDefaultSlot?e._t("default"):e._e()],2)},s=[];const c={},l={name:"XtIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const e=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+e},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const e of Object.keys(c))if(0===this.iconName.indexOf(e))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const e=[];return this.isElIcon?e.push(this.iconName):this.isSvgSprite?e.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&e.push("ex-icon"),e.push(this.iconName)):this.isSvgInline&&e.push("ex-icon-inline-svg"),this.spin&&e.push("ex-icon-spin"),e},iconStyle(){const e={};if(this.size){const t="number"===typeof this.size?this.size+"px":this.size;e.fontSize=t,e.width=t,e.height=t}return this.color&&(e.color=this.color),this.isSvgInline&&(e.display="inline-block",e.verticalAlign="middle"),e},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(e){this.$emit("click",e)}},registerPrefix:function(e){e&&"string"===typeof e&&(c[e]=!0)}};var u=l,f=u;n("6b14");function a(e,t,n,i,r,o,s,c){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=c?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(e,t){return l.call(t),f(e,t)}}else{var a=u.beforeCreate;u.beforeCreate=a?[].concat(a,l):[l]}return{exports:e,options:u}}var d=a(f,o,s,!1,null,"0e301b72",null),p=d.exports;p.install=function(e){e.component(p.name,p)};var h=p;t["default"]=h}})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./xt-input.common.js');
|