xt-element-ui 2.1.61 → 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.
Files changed (202) hide show
  1. package/docs/components/base/xt-bar.md +5 -5
  2. package/docs/components/base/xt-chart.md +5 -5
  3. package/docs/components/base/xt-line.md +4 -4
  4. package/docs/components/base/xt-multi.md +5 -5
  5. package/docs/components/base/xt-pie.md +5 -5
  6. package/lib/index.common.js +503 -165
  7. package/lib/index.css +1 -1
  8. package/lib/index.umd.js +506 -168
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/xt-badge/demo.html +10 -0
  11. package/lib/xt-badge/index.js +1 -0
  12. package/lib/xt-badge/xt-badge.common.js +335 -0
  13. package/lib/xt-badge/xt-badge.css +1 -0
  14. package/lib/xt-badge/xt-badge.umd.js +345 -0
  15. package/lib/xt-badge/xt-badge.umd.min.js +1 -0
  16. package/lib/xt-button/demo.html +10 -0
  17. package/lib/xt-button/index.js +1 -0
  18. package/lib/xt-button/xt-button.common.js +331 -0
  19. package/lib/xt-button/xt-button.css +1 -0
  20. package/lib/xt-button/xt-button.umd.js +341 -0
  21. package/lib/xt-button/xt-button.umd.min.js +1 -0
  22. package/lib/xt-card/demo.html +10 -0
  23. package/lib/xt-card/index.js +1 -0
  24. package/lib/xt-card/xt-card.common.js +325 -0
  25. package/lib/xt-card/xt-card.css +1 -0
  26. package/lib/xt-card/xt-card.umd.js +335 -0
  27. package/lib/xt-card/xt-card.umd.min.js +1 -0
  28. package/lib/xt-card-item/demo.html +10 -0
  29. package/lib/xt-card-item/index.js +1 -0
  30. package/lib/xt-card-item/xt-card-item.common.js +291 -0
  31. package/lib/xt-card-item/xt-card-item.css +1 -0
  32. package/lib/xt-card-item/xt-card-item.umd.js +301 -0
  33. package/lib/xt-card-item/xt-card-item.umd.min.js +1 -0
  34. package/lib/xt-chart/demo.html +10 -0
  35. package/lib/xt-chart/index.js +1 -0
  36. package/lib/xt-chart/xt-chart.common.js +109203 -0
  37. package/lib/xt-chart/xt-chart.css +1 -0
  38. package/lib/xt-chart/xt-chart.umd.js +109213 -0
  39. package/lib/xt-chart/xt-chart.umd.min.js +1 -0
  40. package/lib/xt-config-provider/demo.html +10 -0
  41. package/lib/xt-config-provider/index.js +1 -0
  42. package/lib/xt-config-provider/xt-config-provider.common.js +108388 -0
  43. package/lib/xt-config-provider/xt-config-provider.css +1 -0
  44. package/lib/xt-config-provider/xt-config-provider.umd.js +108398 -0
  45. package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -0
  46. package/lib/xt-date-picker/demo.html +10 -0
  47. package/lib/xt-date-picker/index.js +1 -0
  48. package/lib/xt-date-picker/xt-date-picker.common.js +768 -0
  49. package/lib/xt-date-picker/xt-date-picker.css +1 -0
  50. package/lib/xt-date-picker/xt-date-picker.umd.js +778 -0
  51. package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -0
  52. package/lib/xt-flex-box/demo.html +10 -0
  53. package/lib/xt-flex-box/index.js +1 -0
  54. package/lib/xt-flex-box/xt-flex-box.common.js +303 -0
  55. package/lib/xt-flex-box/xt-flex-box.css +1 -0
  56. package/lib/xt-flex-box/xt-flex-box.umd.js +313 -0
  57. package/lib/xt-flex-box/xt-flex-box.umd.min.js +1 -0
  58. package/lib/xt-form-schema/demo.html +10 -0
  59. package/lib/xt-form-schema/index.js +1 -0
  60. package/lib/xt-form-schema/xt-form-schema.common.js +510 -0
  61. package/lib/xt-form-schema/xt-form-schema.css +1 -0
  62. package/lib/xt-form-schema/xt-form-schema.umd.js +520 -0
  63. package/lib/xt-form-schema/xt-form-schema.umd.min.js +1 -0
  64. package/lib/xt-grid-box/demo.html +10 -0
  65. package/lib/xt-grid-box/index.js +1 -0
  66. package/lib/xt-grid-box/xt-grid-box.common.js +404 -0
  67. package/lib/xt-grid-box/xt-grid-box.css +1 -0
  68. package/lib/xt-grid-box/xt-grid-box.umd.js +414 -0
  69. package/lib/xt-grid-box/xt-grid-box.umd.min.js +1 -0
  70. package/lib/xt-grid-item/demo.html +10 -0
  71. package/lib/xt-grid-item/index.js +1 -0
  72. package/lib/xt-grid-item/xt-grid-item.common.js +381 -0
  73. package/lib/xt-grid-item/xt-grid-item.css +1 -0
  74. package/lib/xt-grid-item/xt-grid-item.umd.js +391 -0
  75. package/lib/xt-grid-item/xt-grid-item.umd.min.js +1 -0
  76. package/lib/xt-icon/demo.html +10 -0
  77. package/lib/xt-icon/index.js +1 -0
  78. package/lib/xt-icon/xt-icon.common.js +430 -0
  79. package/lib/xt-icon/xt-icon.css +1 -0
  80. package/lib/xt-icon/xt-icon.umd.js +440 -0
  81. package/lib/xt-icon/xt-icon.umd.min.js +1 -0
  82. package/lib/xt-input/demo.html +10 -0
  83. package/lib/xt-input/index.js +1 -0
  84. package/lib/xt-input/xt-input.common.js +584 -0
  85. package/lib/xt-input/xt-input.css +1 -0
  86. package/lib/xt-input/xt-input.umd.js +594 -0
  87. package/lib/xt-input/xt-input.umd.min.js +1 -0
  88. package/lib/xt-list/demo.html +10 -0
  89. package/lib/xt-list/index.js +1 -0
  90. package/lib/xt-list/xt-list.common.js +714 -0
  91. package/lib/xt-list/xt-list.css +1 -0
  92. package/lib/xt-list/xt-list.umd.js +724 -0
  93. package/lib/xt-list/xt-list.umd.min.js +1 -0
  94. package/lib/xt-map/demo.html +10 -0
  95. package/lib/xt-map/index.js +1 -0
  96. package/lib/xt-map/xt-map.common.js +1951 -0
  97. package/lib/xt-map/xt-map.css +1 -0
  98. package/lib/xt-map/xt-map.umd.js +1961 -0
  99. package/lib/xt-map/xt-map.umd.min.js +1 -0
  100. package/lib/xt-map-provider/demo.html +10 -0
  101. package/lib/xt-map-provider/index.js +1 -0
  102. package/lib/xt-map-provider/xt-map-provider.common.js +644 -0
  103. package/lib/xt-map-provider/xt-map-provider.css +1 -0
  104. package/lib/xt-map-provider/xt-map-provider.umd.js +654 -0
  105. package/lib/xt-map-provider/xt-map-provider.umd.min.js +1 -0
  106. package/lib/xt-page/demo.html +10 -0
  107. package/lib/xt-page/index.js +1 -0
  108. package/lib/xt-page/xt-page.common.js +353 -0
  109. package/lib/xt-page/xt-page.css +1 -0
  110. package/lib/xt-page/xt-page.umd.js +363 -0
  111. package/lib/xt-page/xt-page.umd.min.js +1 -0
  112. package/lib/xt-progress/demo.html +10 -0
  113. package/lib/xt-progress/index.js +1 -0
  114. package/lib/xt-progress/xt-progress.common.js +327 -0
  115. package/lib/xt-progress/xt-progress.css +1 -0
  116. package/lib/xt-progress/xt-progress.umd.js +337 -0
  117. package/lib/xt-progress/xt-progress.umd.min.js +1 -0
  118. package/lib/xt-scroll-arrow/demo.html +10 -0
  119. package/lib/xt-scroll-arrow/index.js +1 -0
  120. package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +495 -0
  121. package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -0
  122. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +505 -0
  123. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -0
  124. package/lib/xt-select-tree/demo.html +10 -0
  125. package/lib/xt-select-tree/index.js +1 -0
  126. package/lib/xt-select-tree/xt-select-tree.common.js +1791 -0
  127. package/lib/xt-select-tree/xt-select-tree.css +1 -0
  128. package/lib/xt-select-tree/xt-select-tree.umd.js +1801 -0
  129. package/lib/xt-select-tree/xt-select-tree.umd.min.js +1 -0
  130. package/lib/xt-step-price/demo.html +10 -0
  131. package/lib/xt-step-price/index.js +1 -0
  132. package/lib/xt-step-price/xt-step-price.common.js +800 -0
  133. package/lib/xt-step-price/xt-step-price.css +1 -0
  134. package/lib/xt-step-price/xt-step-price.umd.js +810 -0
  135. package/lib/xt-step-price/xt-step-price.umd.min.js +1 -0
  136. package/lib/xt-step-price-item/demo.html +10 -0
  137. package/lib/xt-step-price-item/index.js +1 -0
  138. package/lib/xt-step-price-item/xt-step-price-item.common.js +417 -0
  139. package/lib/xt-step-price-item/xt-step-price-item.umd.js +427 -0
  140. package/lib/xt-step-price-item/xt-step-price-item.umd.min.js +1 -0
  141. package/lib/xt-tab-pane/demo.html +10 -0
  142. package/lib/xt-tab-pane/index.js +1 -0
  143. package/lib/xt-tab-pane/xt-tab-pane.common.js +309 -0
  144. package/lib/xt-tab-pane/xt-tab-pane.umd.js +319 -0
  145. package/lib/xt-tab-pane/xt-tab-pane.umd.min.js +1 -0
  146. package/lib/xt-table/demo.html +10 -0
  147. package/lib/xt-table/index.js +1 -0
  148. package/lib/xt-table/xt-table.common.js +1027 -0
  149. package/lib/xt-table/xt-table.css +1 -0
  150. package/lib/xt-table/xt-table.umd.js +1037 -0
  151. package/lib/xt-table/xt-table.umd.min.js +1 -0
  152. package/lib/xt-tabs/demo.html +10 -0
  153. package/lib/xt-tabs/index.js +1 -0
  154. package/lib/xt-tabs/xt-tabs.common.js +463 -0
  155. package/lib/xt-tabs/xt-tabs.css +1 -0
  156. package/lib/xt-tabs/xt-tabs.umd.js +473 -0
  157. package/lib/xt-tabs/xt-tabs.umd.min.js +1 -0
  158. package/lib/xt-text/demo.html +10 -0
  159. package/lib/xt-text/index.js +1 -0
  160. package/lib/xt-text/xt-text.common.js +536 -0
  161. package/lib/xt-text/xt-text.css +1 -0
  162. package/lib/xt-text/xt-text.umd.js +546 -0
  163. package/lib/xt-text/xt-text.umd.min.js +1 -0
  164. package/lib/xt-time/demo.html +10 -0
  165. package/lib/xt-time/index.js +1 -0
  166. package/lib/xt-time/xt-time.common.js +555 -0
  167. package/lib/xt-time/xt-time.css +1 -0
  168. package/lib/xt-time/xt-time.umd.js +565 -0
  169. package/lib/xt-time/xt-time.umd.min.js +1 -0
  170. package/lib/xt-transfer-tree/demo.html +10 -0
  171. package/lib/xt-transfer-tree/index.js +1 -0
  172. package/lib/xt-transfer-tree/xt-transfer-tree.common.js +594 -0
  173. package/lib/xt-transfer-tree/xt-transfer-tree.css +1 -0
  174. package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +604 -0
  175. package/lib/xt-transfer-tree/xt-transfer-tree.umd.min.js +1 -0
  176. package/lib/xt-upload/demo.html +10 -0
  177. package/lib/xt-upload/index.js +1 -0
  178. package/lib/xt-upload/xt-upload.common.js +1292 -0
  179. package/lib/xt-upload/xt-upload.css +1 -0
  180. package/lib/xt-upload/xt-upload.umd.js +1302 -0
  181. package/lib/xt-upload/xt-upload.umd.min.js +1 -0
  182. package/package.json +10 -7
  183. package/src/components/xt-badge/index.js +8 -7
  184. package/src/components/xt-button/index.js +1 -0
  185. package/src/components/xt-card/index.js +1 -0
  186. package/src/components/xt-card-item/index.js +1 -0
  187. package/src/components/xt-config-provider/index.js +1 -0
  188. package/src/components/xt-flex-box/index.js +1 -0
  189. package/src/components/xt-grid-box/index.js +1 -0
  190. package/src/components/xt-icon/index.js +1 -0
  191. package/src/components/xt-input/index.js +1 -0
  192. package/src/components/xt-map/index.js +1 -0
  193. package/src/components/xt-progress/index.js +8 -7
  194. package/src/components/xt-scroll-arrow/index.js +8 -7
  195. package/src/components/xt-step-price/index.js +1 -0
  196. package/src/components/xt-tab-pane/index.js +10 -0
  197. package/src/components/{xt-tabs/TabPane.vue → xt-tab-pane/index.vue} +14 -1
  198. package/src/components/xt-tabs/index.js +9 -10
  199. package/src/components/xt-tabs/index.vue +303 -44
  200. package/src/components/xt-text/index.js +1 -0
  201. package/src/components/xt-time/index.js +1 -0
  202. package/src/index.js +34 -2
@@ -0,0 +1,724 @@
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-list"] = factory();
8
+ else
9
+ root["xt-list"] = 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
+ /***/ "732a":
100
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
101
+
102
+ "use strict";
103
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_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_53c7db00_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e895");
104
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_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_53c7db00_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_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_53c7db00_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
105
+ /* unused harmony reexport * */
106
+
107
+
108
+ /***/ }),
109
+
110
+ /***/ "e895":
111
+ /***/ (function(module, exports, __webpack_require__) {
112
+
113
+ // extracted by mini-css-extract-plugin
114
+
115
+ /***/ }),
116
+
117
+ /***/ "fb15":
118
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
119
+
120
+ "use strict";
121
+ // ESM COMPAT FLAG
122
+ __webpack_require__.r(__webpack_exports__);
123
+
124
+ // EXPORTS
125
+ __webpack_require__.d(__webpack_exports__, "XtList", function() { return /* reexport */ xt_list; });
126
+
127
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
128
+ // This file is imported into lib/wc client bundles.
129
+
130
+ if (typeof window !== 'undefined') {
131
+ var currentScript = window.document.currentScript
132
+ if (false) { var getCurrentScript; }
133
+
134
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
135
+ if (src) {
136
+ __webpack_require__.p = src[1] // eslint-disable-line
137
+ }
138
+ }
139
+
140
+ // Indicate to webpack that this file can be concatenated
141
+ /* harmony default export */ var setPublicPath = (null);
142
+
143
+ // 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-list/index.vue?vue&type=template&id=53c7db00&scoped=true
144
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-list",class:{ 'xt-list--loading': _vm.loading }},[(_vm.title || _vm.filterable || _vm.sortable || _vm.$slots.toolbar)?_c('div',{staticClass:"xt-list__header"},[(_vm.title)?_c('span',{staticClass:"xt-list__title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('div',{staticClass:"xt-list__toolbar"},[(_vm.filterable)?_c('div',{staticClass:"xt-list__search"},[_c('el-input',{attrs:{"placeholder":_vm.filterPlaceholder,"size":"small","clearable":"","prefix-icon":"el-icon-search"},on:{"input":_vm.handleSearch},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:"searchText"}})],1):_vm._e(),(_vm.sortable && _vm.sortBy)?_c('el-button',{attrs:{"size":"small","icon":"el-icon-sort","type":_vm.currentSortOrder ? 'primary' : 'default',"plain":""},on:{"click":_vm.handleSortToggle}},[_vm._v(" "+_vm._s(_vm.sortLabel)+" ")]):_vm._e(),_vm._t("toolbar")],2)]):_vm._e(),_c('div',{ref:"scrollContainer",staticClass:"xt-list__body",style:(_vm.bodyStyle),on:{"scroll":_vm.onScroll}},[(_vm.virtualScroll)?_c('div',{staticClass:"xt-list__phantom",style:({ height: _vm.totalHeight + 'px' })},[_c('div',{style:({ paddingTop: _vm.offsetY + 'px' })},[(_vm.groupedData.length)?[_vm._l((_vm.visibleGroups),function(group,gIdx){return [_c('div',{key:group._key,staticClass:"xt-list__group"},[_c('div',{staticClass:"xt-list__group-title",on:{"click":function($event){return _vm.toggleGroup(group._key)}}},[_c('span',{staticClass:"xt-list__group-arrow",class:{ 'is-expanded': group._expanded }},[_c('i',{staticClass:"el-icon-arrow-right"})]),_vm._t("group-title",function(){return [_c('span',{staticClass:"xt-list__group-label"},[_vm._v(_vm._s(_vm.getGroupLabel(group)))]),_c('span',{staticClass:"xt-list__group-count"},[_vm._v("("+_vm._s(group._items.length)+")")])]},{"group":group,"items":group._items,"expanded":group._expanded})],2),(group._expanded)?_c('div',{class:['xt-list__cards', 'xt-list__cols-' + _vm.columns]},_vm._l((_vm.getVisibleItems(group)),function(item,idx){return _c('div',{key:item._id || idx,staticClass:"xt-list__item",on:{"click":function($event){return _vm.handleItemClick(item, group._key)}}},[_c('el-card',{attrs:{"shadow":_vm.shadow,"body-style":_vm.cardBodyStyle}},[_vm._t("default",function(){return [(_vm.getImage(item))?_c('div',{staticClass:"xt-list__image"},[_c('img',{attrs:{"src":_vm.getImage(item),"alt":_vm.getConfigValue(_vm.cardConfig.title, item)}})]):_vm._e(),(_vm.getTag(item))?_c('div',{staticClass:"xt-list__tag"},[_c('el-tag',{attrs:{"size":"small","type":_vm.getTagType(item)}},[_vm._v(_vm._s(_vm.getTag(item)))])],1):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.title, item))?_c('div',{staticClass:"xt-list__card-title"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.title, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.subtitle, item))?_c('div',{staticClass:"xt-list__card-subtitle"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.subtitle, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.content, item))?_c('div',{staticClass:"xt-list__card-content"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.content, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.footer, item))?_c('div',{staticClass:"xt-list__card-footer"},[_vm._t("card-footer",function(){return [_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.footer, item))+" ")]},{"item":item,"index":_vm.getItemIndex(item, group)})],2):_vm._e()]},{"item":item,"index":_vm.getItemIndex(item, group),"group":group})],2)],1)}),0):_vm._e()])]})]:(!_vm.loading)?_c('div',{staticClass:"xt-list__empty"},[_vm._t("empty",function(){return [_c('span',[_vm._v(_vm._s(_vm.emptyText))])]})],2):_vm._e()],2)]):(_vm.groupedData.length)?[_vm._l((_vm.groupedData),function(group){return [_c('div',{key:group._key,staticClass:"xt-list__group"},[_c('div',{staticClass:"xt-list__group-title",on:{"click":function($event){return _vm.toggleGroup(group._key)}}},[_c('span',{staticClass:"xt-list__group-arrow",class:{ 'is-expanded': group._expanded }},[_c('i',{staticClass:"el-icon-arrow-right"})]),_vm._t("group-title",function(){return [_c('span',{staticClass:"xt-list__group-label"},[_vm._v(_vm._s(_vm.getGroupLabel(group)))]),_c('span',{staticClass:"xt-list__group-count"},[_vm._v("("+_vm._s(group._items.length)+")")])]},{"group":group,"items":group._items,"expanded":group._expanded})],2),(group._expanded)?_c('div',{class:['xt-list__cards', 'xt-list__cols-' + _vm.columns]},_vm._l((group._items),function(item,idx){return _c('div',{key:item._id || idx,staticClass:"xt-list__item",on:{"click":function($event){return _vm.handleItemClick(item, group._key)}}},[_c('el-card',{attrs:{"shadow":_vm.shadow,"body-style":_vm.cardBodyStyle}},[_vm._t("default",function(){return [(_vm.getImage(item))?_c('div',{staticClass:"xt-list__image"},[_c('img',{attrs:{"src":_vm.getImage(item),"alt":_vm.getConfigValue(_vm.cardConfig.title, item)}})]):_vm._e(),(_vm.getTag(item))?_c('div',{staticClass:"xt-list__tag"},[_c('el-tag',{attrs:{"size":"small","type":_vm.getTagType(item)}},[_vm._v(_vm._s(_vm.getTag(item)))])],1):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.title, item))?_c('div',{staticClass:"xt-list__card-title"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.title, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.subtitle, item))?_c('div',{staticClass:"xt-list__card-subtitle"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.subtitle, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.content, item))?_c('div',{staticClass:"xt-list__card-content"},[_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.content, item))+" ")]):_vm._e(),(_vm.getConfigValue(_vm.cardConfig.footer, item))?_c('div',{staticClass:"xt-list__card-footer"},[_vm._t("card-footer",function(){return [_vm._v(" "+_vm._s(_vm.getConfigValue(_vm.cardConfig.footer, item))+" ")]},{"item":item,"index":idx})],2):_vm._e()]},{"item":item,"index":idx,"group":group})],2)],1)}),0):_vm._e()])]})]:(!_vm.loading)?_c('div',{staticClass:"xt-list__empty"},[_vm._t("empty",function(){return [_c('span',[_vm._v(_vm._s(_vm.emptyText))])]})],2):_vm._e(),(_vm.loadMore && _vm.hasMore && !_vm.loading)?_c('div',{staticClass:"xt-list__loadmore"},[_c('el-button',{attrs:{"type":"text","loading":_vm.loadMoreLoading},on:{"click":_vm.handleLoadMore}},[_vm._v(" "+_vm._s(_vm.loadMoreText)+" ")])],1):_vm._e()],2),(_vm.loading)?_c('div',{staticClass:"xt-list__loading"},[_vm._t("loading",function(){return [_c('i',{staticClass:"el-icon-loading"}),_c('span',[_vm._v("加载中...")])]})],2):_vm._e(),(_vm.showPagination)?_c('div',{staticClass:"xt-list__footer"},[_c('el-pagination',{attrs:{"background":"","small":"","current-page":_vm.pagination.pageNum,"page-size":_vm.pagination.pageSize,"total":_vm.total,"page-sizes":_vm.pagination.pageSizes || [10, 20, 50],"layout":"total, prev, pager, next"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1):_vm._e()])
145
+ }
146
+ var staticRenderFns = []
147
+
148
+
149
+ // CONCATENATED MODULE: ./src/components/xt-list/index.vue?vue&type=template&id=53c7db00&scoped=true
150
+
151
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-list/index.vue?vue&type=script&lang=js
152
+
153
+ const CARD_ITEM_HEIGHT = 160
154
+ const GROUP_HEADER_HEIGHT = 44
155
+
156
+ /* harmony default export */ var xt_listvue_type_script_lang_js = ({
157
+ name: 'XtList',
158
+
159
+ props: {
160
+ data: { type: Array, default: () => [] },
161
+ // 分组配置
162
+ groupBy: { type: String, default: '' },
163
+ groupLabel: { type: [String, Function], default: '' },
164
+ // 卡片配置
165
+ cardConfig: {
166
+ type: Object,
167
+ default: () => ({
168
+ title: 'title',
169
+ subtitle: '',
170
+ content: '',
171
+ image: '',
172
+ tag: '',
173
+ tagType: '',
174
+ footer: ''
175
+ })
176
+ },
177
+ // 显示配置
178
+ title: { type: String, default: '' },
179
+ columns: { type: Number, default: 1 },
180
+ shadow: { type: String, default: 'hover' },
181
+ cardBodyStyle: { type: Object, default: () => ({}) },
182
+ // 虚拟滚动
183
+ virtualScroll: { type: Boolean, default: false },
184
+ itemHeight: { type: Number, default: CARD_ITEM_HEIGHT },
185
+ bufferSize: { type: Number, default: 3 },
186
+ height: { type: [Number, String], default: null },
187
+ maxHeight: { type: [Number, String], default: null },
188
+ // 分组折叠
189
+ expandAll: { type: Boolean, default: true },
190
+ accordion: { type: Boolean, default: false },
191
+ // 分页
192
+ pagination: { type: Object, default: null },
193
+ total: { type: Number, default: 0 },
194
+ // 加载更多
195
+ loadMore: { type: Boolean, default: false },
196
+ hasMore: { type: Boolean, default: false },
197
+ loadMoreText: { type: String, default: '加载更多' },
198
+ loadMoreLoading: { type: Boolean, default: false },
199
+ // 状态
200
+ loading: { type: Boolean, default: false },
201
+ emptyText: { type: String, default: '暂无数据' },
202
+ // 搜索筛选
203
+ filterable: { type: Boolean, default: false },
204
+ filterPlaceholder: { type: String, default: '请输入搜索内容' },
205
+ filterMethod: { type: Function, default: null },
206
+ // 排序
207
+ sortable: { type: Boolean, default: false },
208
+ sortBy: { type: String, default: '' },
209
+ sortOrder: { type: String, default: '' },
210
+ sortMethod: { type: Function, default: null }
211
+ },
212
+
213
+ data() {
214
+ return {
215
+ groupExpandState: {},
216
+ scrollTop: 0,
217
+ containerHeight: 0,
218
+ resizeObserver: null,
219
+ rafId: null,
220
+ searchText: '',
221
+ currentSortOrder: this.sortOrder || ''
222
+ }
223
+ },
224
+
225
+ computed: {
226
+ showPagination() {
227
+ return this.pagination && this.total > 0
228
+ },
229
+ sortLabel() {
230
+ if (!this.currentSortOrder) return '排序'
231
+ return this.currentSortOrder === 'ascending' ? '升序' : '降序'
232
+ },
233
+ bodyStyle() {
234
+ const style = {}
235
+ if (this.height) {
236
+ style.height = typeof this.height === 'number' ? this.height + 'px' : this.height
237
+ }
238
+ if (this.maxHeight) {
239
+ style.maxHeight = typeof this.maxHeight === 'number' ? this.maxHeight + 'px' : this.maxHeight
240
+ }
241
+ if (this.virtualScroll) {
242
+ style.overflowY = 'auto'
243
+ style.overflowX = 'hidden'
244
+ }
245
+ return style
246
+ },
247
+
248
+ // 筛选后的数据
249
+ filteredData() {
250
+ if (!this.filterable || !this.searchText) return this.data
251
+ return this.data.filter(item => {
252
+ if (typeof this.filterMethod === 'function') {
253
+ return this.filterMethod(item, this.searchText)
254
+ }
255
+ return Object.values(item).some(val => {
256
+ if (val == null) return false
257
+ return String(val).toLowerCase().includes(this.searchText.toLowerCase())
258
+ })
259
+ })
260
+ },
261
+
262
+ // 排序后的数据
263
+ sortedData() {
264
+ if (!this.sortable || !this.sortBy || !this.currentSortOrder) return this.filteredData
265
+ const order = this.currentSortOrder === 'ascending' ? 1 : -1
266
+ const sortFn = typeof this.sortMethod === 'function'
267
+ ? this.sortMethod
268
+ : (a, b) => {
269
+ const va = a[this.sortBy]
270
+ const vb = b[this.sortBy]
271
+ if (va == null && vb == null) return 0
272
+ if (va == null) return -1
273
+ if (vb == null) return 1
274
+ if (typeof va === 'number' && typeof vb === 'number') return va - vb
275
+ return String(va).localeCompare(String(vb), undefined, { numeric: true })
276
+ }
277
+ return [...this.filteredData].sort((a, b) => sortFn(a, b) * order)
278
+ },
279
+
280
+ // 分组后的数据
281
+ groupedData() {
282
+ const source = this.sortedData
283
+ if (!source || !source.length) return []
284
+
285
+ if (!this.groupBy) {
286
+ return [{
287
+ _key: '_default',
288
+ _items: source.map((item, idx) => ({ ...item, _id: item._id || `item_${idx}` })),
289
+ _expanded: true
290
+ }]
291
+ }
292
+
293
+ const groups = {}
294
+ source.forEach((item, idx) => {
295
+ const value = item[this.groupBy]
296
+ const key = value != null ? String(value) : '_undefined'
297
+ if (!groups[key]) {
298
+ groups[key] = {
299
+ _key: key,
300
+ _value: value,
301
+ _items: []
302
+ }
303
+ }
304
+ groups[key]._items.push({ ...item, _id: item._id || `item_${idx}` })
305
+ })
306
+
307
+ const result = Object.keys(groups).sort().map(key => {
308
+ const g = groups[key]
309
+ g._expanded = this.groupExpandState[key] !== undefined ? this.groupExpandState[key] : this.expandAll
310
+ return g
311
+ })
312
+
313
+ return result
314
+ },
315
+
316
+ // 虚拟滚动:总高度
317
+ totalHeight() {
318
+ if (!this.virtualScroll) return 0
319
+ let height = 0
320
+ this.groupedData.forEach(group => {
321
+ height += GROUP_HEADER_HEIGHT
322
+ if (group._expanded) {
323
+ const rows = Math.ceil(group._items.length / this.columns)
324
+ height += rows * this.itemHeight
325
+ }
326
+ })
327
+ return height
328
+ },
329
+
330
+ // 虚拟滚动:可见分组
331
+ visibleGroups() {
332
+ if (!this.virtualScroll) return this.groupedData
333
+
334
+ const start = Math.max(0, this.scrollTop - this.bufferSize * this.itemHeight)
335
+ const end = start + this.containerHeight + this.bufferSize * this.itemHeight * 2
336
+ const visible = []
337
+ let currentTop = 0
338
+
339
+ this.groupedData.forEach(group => {
340
+ const groupHeight = GROUP_HEADER_HEIGHT +
341
+ (group._expanded ? Math.ceil(group._items.length / this.columns) * this.itemHeight : 0)
342
+ const groupEnd = currentTop + groupHeight
343
+
344
+ if (groupEnd >= start && currentTop <= end) {
345
+ visible.push(group)
346
+ }
347
+ currentTop = groupEnd
348
+ })
349
+
350
+ return visible
351
+ },
352
+
353
+ // 虚拟滚动:偏移量
354
+ offsetY() {
355
+ if (!this.virtualScroll) return 0
356
+ let offset = 0
357
+ const start = Math.max(0, this.scrollTop - this.bufferSize * this.itemHeight)
358
+
359
+ for (let i = 0; i < this.groupedData.length; i++) {
360
+ const group = this.groupedData[i]
361
+ const h = GROUP_HEADER_HEIGHT +
362
+ (group._expanded ? Math.ceil(group._items.length / this.columns) * this.itemHeight : 0)
363
+ if (offset + h <= start) {
364
+ offset += h
365
+ } else {
366
+ break
367
+ }
368
+ }
369
+ return offset
370
+ }
371
+ },
372
+
373
+ watch: {
374
+ data: {
375
+ handler() {
376
+ this.$nextTick(() => {
377
+ this.updateContainerHeight()
378
+ })
379
+ }
380
+ },
381
+ expandAll(val) {
382
+ const state = {}
383
+ this.groupedData.forEach(g => { state[g._key] = val })
384
+ this.groupExpandState = state
385
+ }
386
+ },
387
+
388
+ mounted() {
389
+ this.$nextTick(() => {
390
+ this.updateContainerHeight()
391
+ this.bindResizeObserver()
392
+ })
393
+ },
394
+
395
+ beforeDestroy() {
396
+ this.unbindResizeObserver()
397
+ if (this.rafId && typeof cancelAnimationFrame !== 'undefined') {
398
+ cancelAnimationFrame(this.rafId)
399
+ this.rafId = null
400
+ }
401
+ },
402
+
403
+ methods: {
404
+ // ========== 分组展开/折叠 ==========
405
+ toggleGroup(key) {
406
+ const newState = { ...this.groupExpandState }
407
+ const current = newState[key] !== undefined ? newState[key] : this.expandAll
408
+
409
+ if (this.accordion && !current) {
410
+ Object.keys(newState).forEach(k => { newState[k] = false })
411
+ }
412
+ newState[key] = !current
413
+ this.groupExpandState = newState
414
+
415
+ this.$nextTick(() => {
416
+ this.updateContainerHeight()
417
+ this.$emit('group-toggle', { key, expanded: newState[key] })
418
+ })
419
+ },
420
+
421
+ getGroupLabel(group) {
422
+ if (this.groupLabel === '') return group._value
423
+ if (typeof this.groupLabel === 'function') return this.groupLabel(group)
424
+ if (typeof this.groupLabel === 'string' && group._items[0]) {
425
+ return group._items[0][this.groupLabel] || group._value
426
+ }
427
+ return group._value
428
+ },
429
+
430
+ // ========== 卡片配置解析 ==========
431
+ getConfigValue(config, item) {
432
+ if (!config) return ''
433
+ if (typeof config === 'function') return config(item)
434
+ if (typeof config === 'string') return item[config] || ''
435
+ return ''
436
+ },
437
+
438
+ getImage(item) {
439
+ return this.getConfigValue(this.cardConfig.image, item)
440
+ },
441
+
442
+ getTag(item) {
443
+ return this.getConfigValue(this.cardConfig.tag, item)
444
+ },
445
+
446
+ getTagType(item) {
447
+ if (this.cardConfig.tagType) {
448
+ if (typeof this.cardConfig.tagType === 'function') return this.cardConfig.tagType(item)
449
+ return this.cardConfig.tagType
450
+ }
451
+ return ''
452
+ },
453
+
454
+ // ========== 虚拟滚动 ==========
455
+ getVisibleItems(group) {
456
+ if (!this.virtualScroll) return group._items
457
+
458
+ const bufferPx = this.bufferSize * this.itemHeight
459
+ const start = Math.max(0, this.scrollTop - bufferPx)
460
+ const end = start + this.containerHeight + bufferPx * 2
461
+
462
+ let currentTop = 0
463
+ let groupStart = 0
464
+ for (let i = 0; i < this.groupedData.length; i++) {
465
+ const g = this.groupedData[i]
466
+ if (g._key === group._key) {
467
+ groupStart = currentTop + GROUP_HEADER_HEIGHT
468
+ break
469
+ }
470
+ currentTop += GROUP_HEADER_HEIGHT +
471
+ (g._expanded ? Math.ceil(g._items.length / this.columns) * this.itemHeight : 0)
472
+ }
473
+
474
+ const groupEnd = groupStart + Math.ceil(group._items.length / this.columns) * this.itemHeight
475
+
476
+ if (groupEnd <= start || groupStart >= end) return []
477
+
478
+ const visibleStart = Math.max(0, Math.floor((start - groupStart) / this.itemHeight) * this.columns)
479
+ const visibleEnd = Math.min(group._items.length, Math.ceil((end - groupStart) / this.itemHeight) * this.columns + bufferPx)
480
+
481
+ return group._items.slice(Math.max(0, visibleStart), visibleEnd)
482
+ },
483
+
484
+ getItemIndex(item, group) {
485
+ return group._items.indexOf(item)
486
+ },
487
+
488
+ onScroll() {
489
+ if (!this.virtualScroll) return
490
+ this.scrollTop = this.$refs.scrollContainer.scrollTop
491
+ if (this.rafId) return
492
+ if (typeof requestAnimationFrame === 'undefined') return
493
+ this.rafId = requestAnimationFrame(() => {
494
+ this.$forceUpdate()
495
+ this.rafId = null
496
+ })
497
+ },
498
+
499
+ updateContainerHeight() {
500
+ if (this.$refs.scrollContainer) {
501
+ this.containerHeight = this.$refs.scrollContainer.clientHeight
502
+ }
503
+ },
504
+
505
+ bindResizeObserver() {
506
+ if (typeof ResizeObserver === 'undefined') return
507
+ const container = this.$refs.scrollContainer
508
+ if (!container) return
509
+ this.resizeObserver = new ResizeObserver(() => {
510
+ this.updateContainerHeight()
511
+ })
512
+ this.resizeObserver.observe(container)
513
+ },
514
+
515
+ unbindResizeObserver() {
516
+ if (this.resizeObserver) {
517
+ this.resizeObserver.disconnect()
518
+ this.resizeObserver = null
519
+ }
520
+ },
521
+
522
+ // ========== 事件处理 ==========
523
+ handleSearch() {
524
+ this.$emit('search', this.searchText)
525
+ },
526
+
527
+ handleSortToggle() {
528
+ const orders = ['', 'ascending', 'descending']
529
+ const idx = orders.indexOf(this.currentSortOrder)
530
+ this.currentSortOrder = orders[(idx + 1) % 3]
531
+ this.$emit('sort-change', { prop: this.sortBy, order: this.currentSortOrder })
532
+ },
533
+
534
+ handleItemClick(item, groupKey) {
535
+ this.$emit('click-item', { item, groupKey })
536
+ },
537
+
538
+ handleLoadMore() {
539
+ this.$emit('load-more')
540
+ },
541
+
542
+ handleSizeChange(size) {
543
+ this.$emit('size-change', size)
544
+ },
545
+
546
+ handleCurrentChange(page) {
547
+ this.$emit('page-change', page)
548
+ },
549
+
550
+ // ========== 对外暴露方法 ==========
551
+ scrollToTop() {
552
+ if (this.$refs.scrollContainer) {
553
+ this.$refs.scrollContainer.scrollTo({ top: 0, behavior: 'smooth' })
554
+ }
555
+ },
556
+
557
+ expandGroup(key) {
558
+ const newState = { ...this.groupExpandState }
559
+ newState[key] = true
560
+ this.groupExpandState = newState
561
+ },
562
+
563
+ collapseGroup(key) {
564
+ const newState = { ...this.groupExpandState }
565
+ newState[key] = false
566
+ this.groupExpandState = newState
567
+ },
568
+
569
+ collapseAll() {
570
+ const newState = {}
571
+ this.groupedData.forEach(g => { newState[g._key] = false })
572
+ this.groupExpandState = newState
573
+ },
574
+
575
+ expandAllGroups() {
576
+ this.groupExpandState = {}
577
+ }
578
+ }
579
+ });
580
+
581
+ // CONCATENATED MODULE: ./src/components/xt-list/index.vue?vue&type=script&lang=js
582
+ /* harmony default export */ var components_xt_listvue_type_script_lang_js = (xt_listvue_type_script_lang_js);
583
+ // EXTERNAL MODULE: ./src/components/xt-list/index.vue?vue&type=style&index=0&id=53c7db00&prod&scoped=true&lang=css
584
+ var xt_listvue_type_style_index_0_id_53c7db00_prod_scoped_true_lang_css = __webpack_require__("732a");
585
+
586
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
587
+ /* globals __VUE_SSR_CONTEXT__ */
588
+
589
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
590
+ // This module is a runtime utility for cleaner component module output and will
591
+ // be included in the final webpack user bundle.
592
+
593
+ function normalizeComponent(
594
+ scriptExports,
595
+ render,
596
+ staticRenderFns,
597
+ functionalTemplate,
598
+ injectStyles,
599
+ scopeId,
600
+ moduleIdentifier /* server only */,
601
+ shadowMode /* vue-cli only */
602
+ ) {
603
+ // Vue.extend constructor export interop
604
+ var options =
605
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
606
+
607
+ // render functions
608
+ if (render) {
609
+ options.render = render
610
+ options.staticRenderFns = staticRenderFns
611
+ options._compiled = true
612
+ }
613
+
614
+ // functional template
615
+ if (functionalTemplate) {
616
+ options.functional = true
617
+ }
618
+
619
+ // scopedId
620
+ if (scopeId) {
621
+ options._scopeId = 'data-v-' + scopeId
622
+ }
623
+
624
+ var hook
625
+ if (moduleIdentifier) {
626
+ // server build
627
+ hook = function (context) {
628
+ // 2.3 injection
629
+ context =
630
+ context || // cached call
631
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
632
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
633
+ // 2.2 with runInNewContext: true
634
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
635
+ context = __VUE_SSR_CONTEXT__
636
+ }
637
+ // inject component styles
638
+ if (injectStyles) {
639
+ injectStyles.call(this, context)
640
+ }
641
+ // register component module identifier for async chunk inferrence
642
+ if (context && context._registeredComponents) {
643
+ context._registeredComponents.add(moduleIdentifier)
644
+ }
645
+ }
646
+ // used by ssr in case component is cached and beforeCreate
647
+ // never gets called
648
+ options._ssrRegister = hook
649
+ } else if (injectStyles) {
650
+ hook = shadowMode
651
+ ? function () {
652
+ injectStyles.call(
653
+ this,
654
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
655
+ )
656
+ }
657
+ : injectStyles
658
+ }
659
+
660
+ if (hook) {
661
+ if (options.functional) {
662
+ // for template-only hot-reload because in that case the render fn doesn't
663
+ // go through the normalizer
664
+ options._injectStyles = hook
665
+ // register for functional component in vue file
666
+ var originalRender = options.render
667
+ options.render = function renderWithStyleInjection(h, context) {
668
+ hook.call(context)
669
+ return originalRender(h, context)
670
+ }
671
+ } else {
672
+ // inject component registration as beforeCreate hook
673
+ var existing = options.beforeCreate
674
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
675
+ }
676
+ }
677
+
678
+ return {
679
+ exports: scriptExports,
680
+ options: options
681
+ }
682
+ }
683
+
684
+ // CONCATENATED MODULE: ./src/components/xt-list/index.vue
685
+
686
+
687
+
688
+
689
+
690
+
691
+ /* normalize component */
692
+
693
+ var component = normalizeComponent(
694
+ components_xt_listvue_type_script_lang_js,
695
+ render,
696
+ staticRenderFns,
697
+ false,
698
+ null,
699
+ "53c7db00",
700
+ null
701
+
702
+ )
703
+
704
+ /* harmony default export */ var xt_list = (component.exports);
705
+ // CONCATENATED MODULE: ./src/components/xt-list/index.js
706
+
707
+
708
+ xt_list.install = function (Vue) {
709
+ Vue.component(xt_list.name, xt_list)
710
+ }
711
+
712
+ /* harmony default export */ var components_xt_list = (xt_list);
713
+
714
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
715
+
716
+
717
+ /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_list);
718
+
719
+
720
+
721
+ /***/ })
722
+
723
+ /******/ });
724
+ });