@mdsfe/mds-ui 0.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/CHANGELOG.md +778 -0
- package/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/_locale/index.js +18 -0
- package/dist/_locale/zh-CN.js +123 -0
- package/dist/_mixin/emitter.js +35 -0
- package/dist/_mixin/focus.js +13 -0
- package/dist/_mixin/locale.js +17 -0
- package/dist/_mixin/popper.js +192 -0
- package/dist/_mixin/tooltip.js +218 -0
- package/dist/_util/__test__/switchcase.test.js +43 -0
- package/dist/_util/autoprefixer.js +249 -0
- package/dist/_util/clickoutside.js +79 -0
- package/dist/_util/date.js +368 -0
- package/dist/_util/dateUtil.js +311 -0
- package/dist/_util/dom.js +240 -0
- package/dist/_util/getRequestAnimationFrame.js +50 -0
- package/dist/_util/getScroll.js +21 -0
- package/dist/_util/loaders/loaders.css.js +52 -0
- package/dist/_util/loaders/loading.js +53 -0
- package/dist/_util/merge.js +18 -0
- package/dist/_util/popper.js +1261 -0
- package/dist/_util/popup/index.js +232 -0
- package/dist/_util/popup/popup-manager.js +205 -0
- package/dist/_util/proptype.js +12 -0
- package/dist/_util/repeatClick.js +30 -0
- package/dist/_util/resize.js +61 -0
- package/dist/_util/resizeEvent.js +59 -0
- package/dist/_util/scrollIntoView.js +38 -0
- package/dist/_util/scrollbar-width.js +37 -0
- package/dist/_util/soda.js +54 -0
- package/dist/_util/switchcase.js +22 -0
- package/dist/_util/throttleByAnimationFrame.js +70 -0
- package/dist/_util/tree/node.js +412 -0
- package/dist/_util/tree/tree.js +410 -0
- package/dist/_util/util.js +166 -0
- package/dist/_util/vue-popper.js +213 -0
- package/dist/affix.js +509 -0
- package/dist/anchor.js +522 -0
- package/dist/avatar.js +437 -0
- package/dist/backtop.js +469 -0
- package/dist/badge.js +439 -0
- package/dist/bordershadow.js +310 -0
- package/dist/breadcrumb.js +434 -0
- package/dist/button.js +579 -0
- package/dist/card.js +514 -0
- package/dist/carousel.js +1326 -0
- package/dist/cascaderpanel.js +2320 -0
- package/dist/checkbox.js +681 -0
- package/dist/col.js +546 -0
- package/dist/collapse.js +671 -0
- package/dist/color.js +306 -0
- package/dist/datepicker.js +8089 -0
- package/dist/divider.js +346 -0
- package/dist/drawer.js +652 -0
- package/dist/dropdown.js +687 -0
- package/dist/empty.js +416 -0
- package/dist/font.js +306 -0
- package/dist/form.js +878 -0
- package/dist/icon.js +401 -0
- package/dist/index.js +1 -0
- package/dist/input.js +1251 -0
- package/dist/inputnumber.js +689 -0
- package/dist/layout.js +786 -0
- package/dist/list.js +789 -0
- package/dist/loading.js +430 -0
- package/dist/mds-ui.min.css +7 -0
- package/dist/mds-ui.min.js +64911 -0
- package/dist/menu.js +1131 -0
- package/dist/message.js +1016 -0
- package/dist/modal.js +895 -0
- package/dist/notification.js +818 -0
- package/dist/pagination.js +1213 -0
- package/dist/popconfirm.js +336 -0
- package/dist/popover.js +206 -0
- package/dist/progress.js +1023 -0
- package/dist/radio.js +760 -0
- package/dist/rate.js +765 -0
- package/dist/row.js +546 -0
- package/dist/select.js +4950 -0
- package/dist/slider.js +1411 -0
- package/dist/slottable.js +1414 -0
- package/dist/steps.js +546 -0
- package/dist/style/affix.css +5524 -0
- package/dist/style/anchor.css +5572 -0
- package/dist/style/avatar.css +5587 -0
- package/dist/style/backtop.css +34 -0
- package/dist/style/badge.css +5655 -0
- package/dist/style/bordershadow.css +5601 -0
- package/dist/style/breadcrumb.css +5551 -0
- package/dist/style/button.css +7679 -0
- package/dist/style/card.css +5670 -0
- package/dist/style/carousel.css +5731 -0
- package/dist/style/cascaderpanel.css +125 -0
- package/dist/style/checkbox.css +5700 -0
- package/dist/style/col.css +8121 -0
- package/dist/style/collapse.css +5593 -0
- package/dist/style/color.css +6136 -0
- package/dist/style/datepicker.css +5977 -0
- package/dist/style/divider.css +5558 -0
- package/dist/style/drawer.css +7979 -0
- package/dist/style/dropdown.css +7950 -0
- package/dist/style/empty.css +5563 -0
- package/dist/style/font.css +5559 -0
- package/dist/style/form.css +5662 -0
- package/dist/style/icon.css +5538 -0
- package/dist/style/input.css +6256 -0
- package/dist/style/inputnumber.css +5828 -0
- package/dist/style/layout.css +5572 -0
- package/dist/style/list.css +5655 -0
- package/dist/style/loading.css +5540 -0
- package/dist/style/menu.css +6183 -0
- package/dist/style/message.css +194 -0
- package/dist/style/modal.css +5637 -0
- package/dist/style/notification.css +5706 -0
- package/dist/style/pagination.css +6683 -0
- package/dist/style/popconfirm.css +7951 -0
- package/dist/style/popover.css +5727 -0
- package/dist/style/progress.css +5714 -0
- package/dist/style/radio.css +5769 -0
- package/dist/style/rate.css +5616 -0
- package/dist/style/row.css +8121 -0
- package/dist/style/select.css +5729 -0
- package/dist/style/slider.css +5594 -0
- package/dist/style/slottable.css +5831 -0
- package/dist/style/steps.css +6100 -0
- package/dist/style/switch.css +5624 -0
- package/dist/style/table.css +8392 -0
- package/dist/style/tabs.css +6047 -0
- package/dist/style/tag.css +5935 -0
- package/dist/style/text.css +5636 -0
- package/dist/style/timeline.css +5602 -0
- package/dist/style/timepicker.css +5904 -0
- package/dist/style/tooltip.css +5686 -0
- package/dist/style/transfer.css +101 -0
- package/dist/style/transition.css +1417 -0
- package/dist/style/tree.css +5598 -0
- package/dist/style/typography.css +5640 -0
- package/dist/style/upload.css +5834 -0
- package/dist/switch.js +448 -0
- package/dist/table.js +3809 -0
- package/dist/tabs.js +1273 -0
- package/dist/tag.js +478 -0
- package/dist/text.js +1100 -0
- package/dist/timeline.js +495 -0
- package/dist/timepicker.js +1567 -0
- package/dist/tooltip.js +179 -0
- package/dist/transfer.js +981 -0
- package/dist/transition.js +246 -0
- package/dist/tree.js +1866 -0
- package/dist/typography.js +469 -0
- package/dist/upload.js +1990 -0
- package/package.json +144 -0
package/dist/tree.js
ADDED
|
@@ -0,0 +1,1866 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("./icon"), require("./transition"), require("./checkbox"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["./icon", "./transition", "./checkbox"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("./icon"), require("./transition"), require("./checkbox")) : factory(root["./icon"], root["./transition"], root["./checkbox"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__28__) {
|
|
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 = "/dist/";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 92);
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ 0:
|
|
100
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
"use strict";
|
|
103
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
104
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
105
|
+
|
|
106
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
107
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
108
|
+
// be included in the final webpack user bundle.
|
|
109
|
+
|
|
110
|
+
function normalizeComponent (
|
|
111
|
+
scriptExports,
|
|
112
|
+
render,
|
|
113
|
+
staticRenderFns,
|
|
114
|
+
functionalTemplate,
|
|
115
|
+
injectStyles,
|
|
116
|
+
scopeId,
|
|
117
|
+
moduleIdentifier, /* server only */
|
|
118
|
+
shadowMode /* vue-cli only */
|
|
119
|
+
) {
|
|
120
|
+
// Vue.extend constructor export interop
|
|
121
|
+
var options = typeof scriptExports === 'function'
|
|
122
|
+
? scriptExports.options
|
|
123
|
+
: scriptExports
|
|
124
|
+
|
|
125
|
+
// render functions
|
|
126
|
+
if (render) {
|
|
127
|
+
options.render = render
|
|
128
|
+
options.staticRenderFns = staticRenderFns
|
|
129
|
+
options._compiled = true
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// functional template
|
|
133
|
+
if (functionalTemplate) {
|
|
134
|
+
options.functional = true
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// scopedId
|
|
138
|
+
if (scopeId) {
|
|
139
|
+
options._scopeId = 'data-v-' + scopeId
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var hook
|
|
143
|
+
if (moduleIdentifier) { // server build
|
|
144
|
+
hook = function (context) {
|
|
145
|
+
// 2.3 injection
|
|
146
|
+
context =
|
|
147
|
+
context || // cached call
|
|
148
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
149
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
150
|
+
// 2.2 with runInNewContext: true
|
|
151
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
152
|
+
context = __VUE_SSR_CONTEXT__
|
|
153
|
+
}
|
|
154
|
+
// inject component styles
|
|
155
|
+
if (injectStyles) {
|
|
156
|
+
injectStyles.call(this, context)
|
|
157
|
+
}
|
|
158
|
+
// register component module identifier for async chunk inferrence
|
|
159
|
+
if (context && context._registeredComponents) {
|
|
160
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// used by ssr in case component is cached and beforeCreate
|
|
164
|
+
// never gets called
|
|
165
|
+
options._ssrRegister = hook
|
|
166
|
+
} else if (injectStyles) {
|
|
167
|
+
hook = shadowMode
|
|
168
|
+
? function () {
|
|
169
|
+
injectStyles.call(
|
|
170
|
+
this,
|
|
171
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
: injectStyles
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (hook) {
|
|
178
|
+
if (options.functional) {
|
|
179
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
180
|
+
// go through the normalizer
|
|
181
|
+
options._injectStyles = hook
|
|
182
|
+
// register for functional component in vue file
|
|
183
|
+
var originalRender = options.render
|
|
184
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
185
|
+
hook.call(context)
|
|
186
|
+
return originalRender(h, context)
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
// inject component registration as beforeCreate hook
|
|
190
|
+
var existing = options.beforeCreate
|
|
191
|
+
options.beforeCreate = existing
|
|
192
|
+
? [].concat(existing, hook)
|
|
193
|
+
: [hook]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
exports: scriptExports,
|
|
199
|
+
options: options
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
|
|
206
|
+
/***/ 13:
|
|
207
|
+
/***/ (function(module, exports) {
|
|
208
|
+
|
|
209
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
|
|
213
|
+
/***/ 131:
|
|
214
|
+
/***/ (function(module, exports) {
|
|
215
|
+
|
|
216
|
+
// removed by extract-text-webpack-plugin
|
|
217
|
+
|
|
218
|
+
/***/ }),
|
|
219
|
+
|
|
220
|
+
/***/ 20:
|
|
221
|
+
/***/ (function(module, exports) {
|
|
222
|
+
|
|
223
|
+
module.exports = require("babel-runtime/core-js/get-iterator");
|
|
224
|
+
|
|
225
|
+
/***/ }),
|
|
226
|
+
|
|
227
|
+
/***/ 227:
|
|
228
|
+
/***/ (function(module, exports) {
|
|
229
|
+
|
|
230
|
+
// removed by extract-text-webpack-plugin
|
|
231
|
+
|
|
232
|
+
/***/ }),
|
|
233
|
+
|
|
234
|
+
/***/ 26:
|
|
235
|
+
/***/ (function(module, exports) {
|
|
236
|
+
|
|
237
|
+
module.exports = require("babel-runtime/helpers/classCallCheck");
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
241
|
+
/***/ 27:
|
|
242
|
+
/***/ (function(module, exports) {
|
|
243
|
+
|
|
244
|
+
module.exports = require("babel-runtime/helpers/createClass");
|
|
245
|
+
|
|
246
|
+
/***/ }),
|
|
247
|
+
|
|
248
|
+
/***/ 28:
|
|
249
|
+
/***/ (function(module, exports) {
|
|
250
|
+
|
|
251
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__28__;
|
|
252
|
+
|
|
253
|
+
/***/ }),
|
|
254
|
+
|
|
255
|
+
/***/ 4:
|
|
256
|
+
/***/ (function(module, exports) {
|
|
257
|
+
|
|
258
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
259
|
+
|
|
260
|
+
/***/ }),
|
|
261
|
+
|
|
262
|
+
/***/ 40:
|
|
263
|
+
/***/ (function(module, exports) {
|
|
264
|
+
|
|
265
|
+
module.exports = require("babel-runtime/core-js/map");
|
|
266
|
+
|
|
267
|
+
/***/ }),
|
|
268
|
+
|
|
269
|
+
/***/ 8:
|
|
270
|
+
/***/ (function(module, exports) {
|
|
271
|
+
|
|
272
|
+
module.exports = require("babel-runtime/helpers/typeof");
|
|
273
|
+
|
|
274
|
+
/***/ }),
|
|
275
|
+
|
|
276
|
+
/***/ 92:
|
|
277
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
278
|
+
|
|
279
|
+
"use strict";
|
|
280
|
+
// ESM COMPAT FLAG
|
|
281
|
+
__webpack_require__.r(__webpack_exports__);
|
|
282
|
+
|
|
283
|
+
// EXTERNAL MODULE: ./components/style/index.less
|
|
284
|
+
var style = __webpack_require__(131);
|
|
285
|
+
|
|
286
|
+
// EXTERNAL MODULE: ./components/tree/style/index.less
|
|
287
|
+
var tree_style = __webpack_require__(227);
|
|
288
|
+
|
|
289
|
+
// CONCATENATED MODULE: ./components/tree/style/index.js
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/tree/tree.vue?vue&type=template&id=e2198d78&
|
|
293
|
+
var render = function () {
|
|
294
|
+
var _vm = this
|
|
295
|
+
var _h = _vm.$createElement
|
|
296
|
+
var _c = _vm._self._c || _h
|
|
297
|
+
return _c(
|
|
298
|
+
"div",
|
|
299
|
+
{ staticClass: "mds-tree", attrs: { flag: "tree" } },
|
|
300
|
+
[
|
|
301
|
+
_vm._l(_vm.root.childNodes, function (item) {
|
|
302
|
+
return _c("mds-tree-item", {
|
|
303
|
+
key: _vm.getNodeKey(item),
|
|
304
|
+
attrs: { node: item, checkboxDisplay: _vm.checkboxDisplay },
|
|
305
|
+
})
|
|
306
|
+
}),
|
|
307
|
+
_vm.isEmpty
|
|
308
|
+
? _c("div", { staticClass: "mds-tree-empty-wrapper" }, [
|
|
309
|
+
_c("div", { staticClass: "mds-tree-empty-text" }, [
|
|
310
|
+
_vm._v(_vm._s(_vm.emptyText)),
|
|
311
|
+
]),
|
|
312
|
+
])
|
|
313
|
+
: _vm._e(),
|
|
314
|
+
],
|
|
315
|
+
2
|
|
316
|
+
)
|
|
317
|
+
}
|
|
318
|
+
var staticRenderFns = []
|
|
319
|
+
render._withStripped = true
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
// CONCATENATED MODULE: ./components/tree/tree.vue?vue&type=template&id=e2198d78&
|
|
323
|
+
|
|
324
|
+
// EXTERNAL MODULE: external "babel-runtime/core-js/get-iterator"
|
|
325
|
+
var get_iterator_ = __webpack_require__(20);
|
|
326
|
+
var get_iterator_default = /*#__PURE__*/__webpack_require__.n(get_iterator_);
|
|
327
|
+
|
|
328
|
+
// EXTERNAL MODULE: external "babel-runtime/core-js/map"
|
|
329
|
+
var map_ = __webpack_require__(40);
|
|
330
|
+
var map_default = /*#__PURE__*/__webpack_require__.n(map_);
|
|
331
|
+
|
|
332
|
+
// EXTERNAL MODULE: external "babel-runtime/helpers/typeof"
|
|
333
|
+
var typeof_ = __webpack_require__(8);
|
|
334
|
+
var typeof_default = /*#__PURE__*/__webpack_require__.n(typeof_);
|
|
335
|
+
|
|
336
|
+
// EXTERNAL MODULE: external "babel-runtime/helpers/classCallCheck"
|
|
337
|
+
var classCallCheck_ = __webpack_require__(26);
|
|
338
|
+
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck_);
|
|
339
|
+
|
|
340
|
+
// EXTERNAL MODULE: external "babel-runtime/helpers/createClass"
|
|
341
|
+
var createClass_ = __webpack_require__(27);
|
|
342
|
+
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass_);
|
|
343
|
+
|
|
344
|
+
// CONCATENATED MODULE: ./components/_util/tree/node.js
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
var defaultId = 0;
|
|
348
|
+
|
|
349
|
+
var node_Node = function () {
|
|
350
|
+
function Node(options) {
|
|
351
|
+
classCallCheck_default()(this, Node);
|
|
352
|
+
|
|
353
|
+
this.id = defaultId++;
|
|
354
|
+
this.checked = false;
|
|
355
|
+
this.indeterminate = false;
|
|
356
|
+
this.data = null;
|
|
357
|
+
this.expanded = false;
|
|
358
|
+
this.parent = null;
|
|
359
|
+
this.isLeaf = false;
|
|
360
|
+
|
|
361
|
+
// 是否显示,用于搜索
|
|
362
|
+
this.visible = true;
|
|
363
|
+
|
|
364
|
+
for (var name in options) {
|
|
365
|
+
if (options.hasOwnProperty(name)) {
|
|
366
|
+
this[name] = options[name];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
this.level = 0;
|
|
371
|
+
// 是否被选中
|
|
372
|
+
this.selected = false;
|
|
373
|
+
// 是否已经加载完毕,用于懒加载
|
|
374
|
+
this.loaded = false;
|
|
375
|
+
// 是否是加载中状态,用于懒加载
|
|
376
|
+
this.loading = false;
|
|
377
|
+
this.childNodes = [];
|
|
378
|
+
this.parent ? this.level = this.parent.level + 1 : this.level = 0;
|
|
379
|
+
this.update();
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
createClass_default()(Node, [{
|
|
383
|
+
key: 'update',
|
|
384
|
+
value: function update() {
|
|
385
|
+
var _this = this;
|
|
386
|
+
|
|
387
|
+
if (!this.data) {
|
|
388
|
+
this.handleIsLeaf();
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
var data = this.data;
|
|
392
|
+
var prop = this.tree.prop;
|
|
393
|
+
|
|
394
|
+
// 生成_nodeId
|
|
395
|
+
// this.markData(data)
|
|
396
|
+
// 非根节点添加到nodesMap中
|
|
397
|
+
this.fillNodesMap();
|
|
398
|
+
// 处理defaultExpandAll
|
|
399
|
+
if (!this.load && this.tree.defaultExpandAll) {
|
|
400
|
+
this.expanded = true;
|
|
401
|
+
}
|
|
402
|
+
// 处理defaultExpandedKeys
|
|
403
|
+
if (!this.load && this.tree.defaultExpandedKeys) {
|
|
404
|
+
this.tree.defaultExpandedKeys.forEach(function (item) {
|
|
405
|
+
if (_this.key === item) {
|
|
406
|
+
_this.expanded = true;
|
|
407
|
+
if (_this.tree.autoExpandParent) {
|
|
408
|
+
_this.getPath(true).forEach(function (node) {
|
|
409
|
+
node.expanded = true;
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// 生成childNodes
|
|
417
|
+
var children = void 0;
|
|
418
|
+
// 根节点的情况把整个data作为children
|
|
419
|
+
if (Array.isArray(data) && this.level === 0) {
|
|
420
|
+
children = data;
|
|
421
|
+
this.id = 'root';
|
|
422
|
+
} else if (data.hasOwnProperty(prop.children)) {
|
|
423
|
+
children = data[prop.children];
|
|
424
|
+
} else {
|
|
425
|
+
if (!this.tree.load) this.isLeaf = true;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (Array.isArray(children) && children.length > 0) {
|
|
429
|
+
children.forEach(function (data) {
|
|
430
|
+
_this.appendChild(data);
|
|
431
|
+
});
|
|
432
|
+
} else {
|
|
433
|
+
if (!this.tree.load) this.isLeaf = true;
|
|
434
|
+
}
|
|
435
|
+
this.handleIsLeaf();
|
|
436
|
+
}
|
|
437
|
+
}, {
|
|
438
|
+
key: 'handleIsLeaf',
|
|
439
|
+
value: function handleIsLeaf() {
|
|
440
|
+
// 懒加载且未加载的情况
|
|
441
|
+
if (this.tree.load && !this.loaded) {
|
|
442
|
+
this.isLeaf = this.getTrueData('isLeaf');
|
|
443
|
+
}
|
|
444
|
+
// 非懒加载或懒加载但已加载的情况
|
|
445
|
+
if (!this.tree.load || this.tree.load && this.loaded) {
|
|
446
|
+
var childNodes = this.childNodes;
|
|
447
|
+
this.isLeaf = !childNodes || childNodes.length === 0;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}, {
|
|
451
|
+
key: 'fillNodesMap',
|
|
452
|
+
value: function fillNodesMap() {
|
|
453
|
+
var key = this.key;
|
|
454
|
+
if (!key && this.level !== 0) {
|
|
455
|
+
throw new Error('必须指定节点的key');
|
|
456
|
+
}
|
|
457
|
+
if (key) {
|
|
458
|
+
// 处理初始选中的节点
|
|
459
|
+
this.handleSelectedKey(key);
|
|
460
|
+
if (this.tree.nodesMap.get(key)) {
|
|
461
|
+
throw new Error('节点的key不能重复');
|
|
462
|
+
}
|
|
463
|
+
this.tree.nodesMap.set(key, this);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}, {
|
|
467
|
+
key: 'handleSelectedKey',
|
|
468
|
+
value: function handleSelectedKey(key) {
|
|
469
|
+
this.selected = false;
|
|
470
|
+
if (this.tree.selectedKey === key) {
|
|
471
|
+
this.selected = true;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}, {
|
|
475
|
+
key: 'appendChild',
|
|
476
|
+
value: function appendChild(data, index) {
|
|
477
|
+
var child = new Node({
|
|
478
|
+
parent: this,
|
|
479
|
+
data: data,
|
|
480
|
+
tree: this.tree
|
|
481
|
+
});
|
|
482
|
+
if (index) {
|
|
483
|
+
this.childNodes.splice(index, 0, child);
|
|
484
|
+
} else {
|
|
485
|
+
this.childNodes.push(child);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}, {
|
|
489
|
+
key: 'getTrueData',
|
|
490
|
+
value: function getTrueData(prop) {
|
|
491
|
+
var props = this.tree.prop[prop];
|
|
492
|
+
var data = this.data;
|
|
493
|
+
if (!data) return;
|
|
494
|
+
if (data.hasOwnProperty(props)) {
|
|
495
|
+
return data[props];
|
|
496
|
+
} else if (data.hasOwnProperty(prop)) {
|
|
497
|
+
return data[prop];
|
|
498
|
+
} else {
|
|
499
|
+
return null;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
key: 'markData',
|
|
504
|
+
value: function markData(data) {
|
|
505
|
+
Object.defineProperty(data, '_node', {
|
|
506
|
+
value: this,
|
|
507
|
+
enumerable: false,
|
|
508
|
+
configurable: false,
|
|
509
|
+
writable: false
|
|
510
|
+
});
|
|
511
|
+
if (!Array.isArray(data)) {
|
|
512
|
+
Object.defineProperty(data, '_nodeId', {
|
|
513
|
+
value: this.id,
|
|
514
|
+
enumerable: false,
|
|
515
|
+
configurable: false,
|
|
516
|
+
writable: false
|
|
517
|
+
});
|
|
518
|
+
} else if (this.level === 0) {
|
|
519
|
+
Object.defineProperty(data, '_nodeId', {
|
|
520
|
+
value: 'root',
|
|
521
|
+
enumerable: false,
|
|
522
|
+
configurable: false,
|
|
523
|
+
writable: false
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}, {
|
|
528
|
+
key: 'changeExpanded',
|
|
529
|
+
value: function changeExpanded(value) {
|
|
530
|
+
if (this.tree.load && !this.loaded) {
|
|
531
|
+
this.loadNode();
|
|
532
|
+
}
|
|
533
|
+
if (!this.tree.load || this.loaded) {
|
|
534
|
+
this.expanded = value;
|
|
535
|
+
}
|
|
536
|
+
// 手风琴模式展开的时候所有兄弟节点收起
|
|
537
|
+
if (this.tree.accordion && value && !this.tree.searchNodeMethod) {
|
|
538
|
+
this.siblingsNodes.forEach(function (node) {
|
|
539
|
+
node.expanded = false;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}, {
|
|
544
|
+
key: 'loadNode',
|
|
545
|
+
value: function loadNode() {
|
|
546
|
+
var _this2 = this;
|
|
547
|
+
|
|
548
|
+
var node = this;
|
|
549
|
+
if (node.loaded || node.loading || node.childNodes.length > 0) {
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
node.loading = true;
|
|
553
|
+
node.tree.load(node.data, function (data) {
|
|
554
|
+
if (!Array.isArray(data)) throw new Error('传入子元素必须是数组');
|
|
555
|
+
data.forEach(function (data) {
|
|
556
|
+
node.appendChild(data);
|
|
557
|
+
});
|
|
558
|
+
node.loading = false;
|
|
559
|
+
node.loaded = true;
|
|
560
|
+
node.check = false;
|
|
561
|
+
node.expanded = true;
|
|
562
|
+
_this2.handleIsLeaf();
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
}, {
|
|
566
|
+
key: 'getPath',
|
|
567
|
+
value: function getPath(nodeFlag) {
|
|
568
|
+
var arr = [];
|
|
569
|
+
var n = 0;
|
|
570
|
+
var node = this;
|
|
571
|
+
// if (Array.isArray(this.tree.root)) {
|
|
572
|
+
// n = 1
|
|
573
|
+
// }
|
|
574
|
+
while (node.level > n) {
|
|
575
|
+
arr.push(nodeFlag ? node : node.data);
|
|
576
|
+
node = node.parent;
|
|
577
|
+
}
|
|
578
|
+
return arr;
|
|
579
|
+
}
|
|
580
|
+
}, {
|
|
581
|
+
key: 'handleCheckChange',
|
|
582
|
+
value: function handleCheckChange() {
|
|
583
|
+
var checked = this.checked;
|
|
584
|
+
this.childNodes.forEach(function (node) {
|
|
585
|
+
node.check = checked;
|
|
586
|
+
});
|
|
587
|
+
if (this.parent) {
|
|
588
|
+
this.parent.handleChildCheckChange();
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}, {
|
|
592
|
+
key: 'handleChildCheckChange',
|
|
593
|
+
value: function handleChildCheckChange() {
|
|
594
|
+
if (Array.isArray(this.data) || this.level === 0) {
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
if (this.childNodes.length === this.checkedChildNodes.length && this.childNodes.length !== 0) {
|
|
598
|
+
this.checked = true;
|
|
599
|
+
this.indeterminate = false;
|
|
600
|
+
} else if (this.checkedChildNodes.length > 0) {
|
|
601
|
+
this.checked = false;
|
|
602
|
+
this.indeterminate = true;
|
|
603
|
+
} else {
|
|
604
|
+
this.checked = false;
|
|
605
|
+
this.indeterminate = false;
|
|
606
|
+
for (var i = 0; i < this.childNodes.length; i++) {
|
|
607
|
+
if (this.childNodes[i].indeterminate) {
|
|
608
|
+
this.indeterminate = true;
|
|
609
|
+
break;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
this.parent.handleChildCheckChange();
|
|
614
|
+
}
|
|
615
|
+
}, {
|
|
616
|
+
key: 'after',
|
|
617
|
+
value: function after(node) {
|
|
618
|
+
var oldIndex = node.index;
|
|
619
|
+
node.parent.childNodes.splice(oldIndex, 1);
|
|
620
|
+
node.parent.handleChildCheckChange();
|
|
621
|
+
if (node.parent.childNodes.length === 0) {
|
|
622
|
+
node.parent.isLeaf = true;
|
|
623
|
+
}
|
|
624
|
+
node.parent = this.parent;
|
|
625
|
+
node.level = this.level;
|
|
626
|
+
this.parent.childNodes.splice(this.index + 1, 0, node);
|
|
627
|
+
this.handleChildCheckChange();
|
|
628
|
+
}
|
|
629
|
+
}, {
|
|
630
|
+
key: 'first',
|
|
631
|
+
value: function first(node) {
|
|
632
|
+
var oldIndex = node.index;
|
|
633
|
+
node.parent.childNodes.splice(oldIndex, 1);
|
|
634
|
+
node.parent.handleChildCheckChange();
|
|
635
|
+
if (node.parent.childNodes.length === 0) {
|
|
636
|
+
node.parent.isLeaf = true;
|
|
637
|
+
}
|
|
638
|
+
this.isLeaf = false;
|
|
639
|
+
node.parent = this;
|
|
640
|
+
node.level = this.level + 1;
|
|
641
|
+
this.childNodes.splice(0, 0, node);
|
|
642
|
+
this.handleChildCheckChange();
|
|
643
|
+
}
|
|
644
|
+
}, {
|
|
645
|
+
key: 'append',
|
|
646
|
+
value: function append(node) {
|
|
647
|
+
var oldIndex = node.index;
|
|
648
|
+
node.parent.childNodes.splice(oldIndex, 1);
|
|
649
|
+
node.parent.handleChildCheckChange();
|
|
650
|
+
if (node.parent.childNodes.length === 0) {
|
|
651
|
+
node.parent.isLeaf = true;
|
|
652
|
+
}
|
|
653
|
+
this.isLeaf = false;
|
|
654
|
+
node.parent = this;
|
|
655
|
+
node.level = this.level + 1;
|
|
656
|
+
this.childNodes.push(node);
|
|
657
|
+
this.handleChildCheckChange();
|
|
658
|
+
}
|
|
659
|
+
}, {
|
|
660
|
+
key: 'moveNode',
|
|
661
|
+
value: function moveNode(node, index) {
|
|
662
|
+
var oldIndex = node.index;
|
|
663
|
+
node.parent.childNodes.splice(oldIndex, 1);
|
|
664
|
+
node.parent.handleChildCheckChange();
|
|
665
|
+
if (node.parent.childNodes.length === 0) {
|
|
666
|
+
node.parent.isLeaf = true;
|
|
667
|
+
}
|
|
668
|
+
this.isLeaf = false;
|
|
669
|
+
node.parent = this;
|
|
670
|
+
node.level = this.level + 1;
|
|
671
|
+
if (index !== null) {
|
|
672
|
+
this.childNodes.splice(index, 0, node);
|
|
673
|
+
} else {
|
|
674
|
+
this.childNodes.push(node);
|
|
675
|
+
}
|
|
676
|
+
this.handleChildCheckChange();
|
|
677
|
+
}
|
|
678
|
+
}, {
|
|
679
|
+
key: 'remove',
|
|
680
|
+
value: function remove() {
|
|
681
|
+
var node = this;
|
|
682
|
+
var index = node.index;
|
|
683
|
+
node.parent.childNodes.splice(index, 1);
|
|
684
|
+
node.parent.handleChildCheckChange();
|
|
685
|
+
node.tree.nodesMap.delete(node.id);
|
|
686
|
+
node = null;
|
|
687
|
+
}
|
|
688
|
+
}, {
|
|
689
|
+
key: 'label',
|
|
690
|
+
get: function get() {
|
|
691
|
+
return this.getTrueData('label');
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
key: 'key',
|
|
695
|
+
get: function get() {
|
|
696
|
+
return this.getTrueData('key');
|
|
697
|
+
}
|
|
698
|
+
}, {
|
|
699
|
+
key: 'disabled',
|
|
700
|
+
get: function get() {
|
|
701
|
+
return this.getTrueData('disabled');
|
|
702
|
+
}
|
|
703
|
+
}, {
|
|
704
|
+
key: 'check',
|
|
705
|
+
get: function get() {
|
|
706
|
+
return this.checked;
|
|
707
|
+
},
|
|
708
|
+
set: function set(val) {
|
|
709
|
+
if (val !== this.checked) {
|
|
710
|
+
this.checked = val;
|
|
711
|
+
this.handleCheckChange();
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}, {
|
|
715
|
+
key: 'siblingsNodes',
|
|
716
|
+
get: function get() {
|
|
717
|
+
var arr = [];
|
|
718
|
+
var currentNode = this;
|
|
719
|
+
this.parent.childNodes.forEach(function (node) {
|
|
720
|
+
if (node.id !== currentNode.id) {
|
|
721
|
+
arr.push(node);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
return arr;
|
|
725
|
+
}
|
|
726
|
+
}, {
|
|
727
|
+
key: 'checkedChildNodes',
|
|
728
|
+
get: function get() {
|
|
729
|
+
var arr = [];
|
|
730
|
+
this.childNodes.forEach(function (node) {
|
|
731
|
+
if (node.checked) arr.push(node);
|
|
732
|
+
});
|
|
733
|
+
return arr;
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
key: 'indeterminateChildNodes',
|
|
737
|
+
get: function get() {
|
|
738
|
+
var arr = [];
|
|
739
|
+
this.childNodes.forEach(function (node) {
|
|
740
|
+
if (node.checked || node.indeterminate) arr.push(node);
|
|
741
|
+
});
|
|
742
|
+
return arr;
|
|
743
|
+
}
|
|
744
|
+
}, {
|
|
745
|
+
key: 'isExpanded',
|
|
746
|
+
get: function get() {
|
|
747
|
+
return this.expanded;
|
|
748
|
+
},
|
|
749
|
+
set: function set(value) {
|
|
750
|
+
this.changeExpanded(value);
|
|
751
|
+
}
|
|
752
|
+
}, {
|
|
753
|
+
key: 'index',
|
|
754
|
+
get: function get() {
|
|
755
|
+
return this.parent.childNodes.indexOf(this);
|
|
756
|
+
}
|
|
757
|
+
}]);
|
|
758
|
+
|
|
759
|
+
return Node;
|
|
760
|
+
}();
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
// CONCATENATED MODULE: ./components/_util/tree/tree.js
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
var tree_Tree = function () {
|
|
772
|
+
function Tree(options) {
|
|
773
|
+
var _this = this;
|
|
774
|
+
|
|
775
|
+
classCallCheck_default()(this, Tree);
|
|
776
|
+
|
|
777
|
+
for (var name in options) {
|
|
778
|
+
if (options.hasOwnProperty(name)) {
|
|
779
|
+
this[name] = options[name];
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if (!this.prop || typeof_default()(this.prop) !== 'object') {
|
|
783
|
+
this.prop = {
|
|
784
|
+
label: 'label',
|
|
785
|
+
key: 'key',
|
|
786
|
+
isLeaf: 'isLeaf',
|
|
787
|
+
disabled: 'disabled',
|
|
788
|
+
children: 'children'
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
this.nodesMap = new map_default.a();
|
|
793
|
+
this.root = new node_Node({
|
|
794
|
+
data: this.data,
|
|
795
|
+
tree: this
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
// 根据load函数渲染根节点
|
|
799
|
+
if (this.load) {
|
|
800
|
+
this.load(this.root, function (arr) {
|
|
801
|
+
if (!Array.isArray(arr)) {
|
|
802
|
+
throw new Error('传入子元素必须是数组');
|
|
803
|
+
}
|
|
804
|
+
arr.forEach(function (item) {
|
|
805
|
+
_this.root.appendChild(item);
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
createClass_default()(Tree, [{
|
|
812
|
+
key: 'setData',
|
|
813
|
+
value: function setData(newVal) {
|
|
814
|
+
var dataChange = newVal !== this.root.data;
|
|
815
|
+
if (dataChange) {
|
|
816
|
+
this.nodesMap = new map_default.a();
|
|
817
|
+
this.root = new node_Node({
|
|
818
|
+
data: newVal,
|
|
819
|
+
tree: this
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}, {
|
|
824
|
+
key: 'handleSelectedChange',
|
|
825
|
+
value: function handleSelectedChange(key) {
|
|
826
|
+
var selectedNode = this.nodesMap.get(key);
|
|
827
|
+
if (!selectedNode.selected) {
|
|
828
|
+
this.nodesMap.forEach(function (node, nodeKey) {
|
|
829
|
+
node.selected = false;
|
|
830
|
+
if (nodeKey === key) {
|
|
831
|
+
node.selected = true;
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
this.$tree.$emit('node-selected-change', selectedNode.data, selectedNode, selectedNode.getPath(), selectedNode.getPath(true));
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}, {
|
|
838
|
+
key: 'handleDefaultCheckedKeys',
|
|
839
|
+
value: function handleDefaultCheckedKeys() {
|
|
840
|
+
var _this2 = this;
|
|
841
|
+
|
|
842
|
+
// 处理defaultCheckedKeys
|
|
843
|
+
if (this.defaultCheckedKeys) {
|
|
844
|
+
this.defaultCheckedKeys.forEach(function (item) {
|
|
845
|
+
_this2.nodesMap.get(item).check = true;
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}, {
|
|
850
|
+
key: 'search',
|
|
851
|
+
value: function search(value) {
|
|
852
|
+
var _this3 = this;
|
|
853
|
+
|
|
854
|
+
var recursionChildren = function recursionChildren(node) {
|
|
855
|
+
var childNodes = node.root ? node.root.childNodes : node.childNodes;
|
|
856
|
+
childNodes.forEach(function (item) {
|
|
857
|
+
item.visible = _this3.searchNodeMethod.call(item, value, item.data, item);
|
|
858
|
+
recursionChildren(item);
|
|
859
|
+
});
|
|
860
|
+
|
|
861
|
+
// 子节点有匹配项的情况父节点需要显示
|
|
862
|
+
if (!node.visible && childNodes.length) {
|
|
863
|
+
var hiddenAllChildren = void 0;
|
|
864
|
+
hiddenAllChildren = !childNodes.some(function (child) {
|
|
865
|
+
return child.visible;
|
|
866
|
+
});
|
|
867
|
+
if (!node.root) {
|
|
868
|
+
node.visible = !hiddenAllChildren;
|
|
869
|
+
} else {
|
|
870
|
+
node.root.visible = false;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
// 节点显示的情况下展开所有子节点
|
|
875
|
+
if (node.visible && !node.isLeaf && !_this3.load) {
|
|
876
|
+
node.changeExpanded(true);
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
recursionChildren(this);
|
|
880
|
+
}
|
|
881
|
+
}, {
|
|
882
|
+
key: 'getCheckedNodes',
|
|
883
|
+
value: function getCheckedNodes(leafOnly) {
|
|
884
|
+
var result = [];
|
|
885
|
+
if (leafOnly) {
|
|
886
|
+
this.nodesMap.forEach(function (item) {
|
|
887
|
+
if (item.checked && !item.data.children) {
|
|
888
|
+
result.push(item.data);
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
} else {
|
|
892
|
+
this.nodesMap.forEach(function (item) {
|
|
893
|
+
if (item.checked) {
|
|
894
|
+
result.push(item.data);
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
return result;
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
key: 'getCheckedKeys',
|
|
902
|
+
value: function getCheckedKeys(leafOnly) {
|
|
903
|
+
var result = [];
|
|
904
|
+
if (leafOnly) {
|
|
905
|
+
this.nodesMap.forEach(function (item) {
|
|
906
|
+
if (item.checked && !item.data.children) {
|
|
907
|
+
result.push(item.key);
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
} else {
|
|
911
|
+
this.nodesMap.forEach(function (item) {
|
|
912
|
+
if (item.checked) {
|
|
913
|
+
result.push(item.key);
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
return result;
|
|
918
|
+
}
|
|
919
|
+
}, {
|
|
920
|
+
key: 'setCheckedKeys',
|
|
921
|
+
value: function setCheckedKeys(checkArr) {
|
|
922
|
+
var _this4 = this;
|
|
923
|
+
|
|
924
|
+
if (!Array.isArray(checkArr)) {
|
|
925
|
+
throw new Error('需要输入一个key数组');
|
|
926
|
+
}
|
|
927
|
+
checkArr.forEach(function (item) {
|
|
928
|
+
_this4.nodesMap.get(item).check = true;
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
}, {
|
|
932
|
+
key: 'setChecked',
|
|
933
|
+
value: function setChecked(key, checkState) {
|
|
934
|
+
var node = this.nodesMap.get(key);
|
|
935
|
+
if (!node) {
|
|
936
|
+
throw new Error('请输入正确的key');
|
|
937
|
+
}
|
|
938
|
+
node.check = checkState;
|
|
939
|
+
}
|
|
940
|
+
}, {
|
|
941
|
+
key: 'getHalfCheckedNodes',
|
|
942
|
+
value: function getHalfCheckedNodes() {
|
|
943
|
+
var result = [];
|
|
944
|
+
this.nodesMap.forEach(function (item) {
|
|
945
|
+
if (item.indeterminate) {
|
|
946
|
+
result.push(item.data);
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
return result;
|
|
950
|
+
}
|
|
951
|
+
}, {
|
|
952
|
+
key: 'getHalfCheckedKeys',
|
|
953
|
+
value: function getHalfCheckedKeys() {
|
|
954
|
+
var result = [];
|
|
955
|
+
this.nodesMap.forEach(function (item) {
|
|
956
|
+
if (item.indeterminate) {
|
|
957
|
+
result.push(item.data.key);
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
return result;
|
|
961
|
+
}
|
|
962
|
+
}, {
|
|
963
|
+
key: 'getCurrentKey',
|
|
964
|
+
value: function getCurrentKey() {
|
|
965
|
+
var _iteratorNormalCompletion = true;
|
|
966
|
+
var _didIteratorError = false;
|
|
967
|
+
var _iteratorError = undefined;
|
|
968
|
+
|
|
969
|
+
try {
|
|
970
|
+
for (var _iterator = get_iterator_default()(this.nodesMap.values()), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
971
|
+
var item = _step.value;
|
|
972
|
+
|
|
973
|
+
if (item.selected) {
|
|
974
|
+
return item.data.key;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
} catch (err) {
|
|
978
|
+
_didIteratorError = true;
|
|
979
|
+
_iteratorError = err;
|
|
980
|
+
} finally {
|
|
981
|
+
try {
|
|
982
|
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
983
|
+
_iterator.return();
|
|
984
|
+
}
|
|
985
|
+
} finally {
|
|
986
|
+
if (_didIteratorError) {
|
|
987
|
+
throw _iteratorError;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
return null;
|
|
993
|
+
}
|
|
994
|
+
}, {
|
|
995
|
+
key: 'getCurrentNode',
|
|
996
|
+
value: function getCurrentNode() {
|
|
997
|
+
var _iteratorNormalCompletion2 = true;
|
|
998
|
+
var _didIteratorError2 = false;
|
|
999
|
+
var _iteratorError2 = undefined;
|
|
1000
|
+
|
|
1001
|
+
try {
|
|
1002
|
+
for (var _iterator2 = get_iterator_default()(this.nodesMap.values()), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
1003
|
+
var item = _step2.value;
|
|
1004
|
+
|
|
1005
|
+
if (item.selected) {
|
|
1006
|
+
return item.data;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
} catch (err) {
|
|
1010
|
+
_didIteratorError2 = true;
|
|
1011
|
+
_iteratorError2 = err;
|
|
1012
|
+
} finally {
|
|
1013
|
+
try {
|
|
1014
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
1015
|
+
_iterator2.return();
|
|
1016
|
+
}
|
|
1017
|
+
} finally {
|
|
1018
|
+
if (_didIteratorError2) {
|
|
1019
|
+
throw _iteratorError2;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
return null;
|
|
1025
|
+
}
|
|
1026
|
+
}, {
|
|
1027
|
+
key: 'setCurrentKey',
|
|
1028
|
+
value: function setCurrentKey(key) {
|
|
1029
|
+
if (key) {
|
|
1030
|
+
this.handleSelectedChange(key);
|
|
1031
|
+
} else {
|
|
1032
|
+
this.nodesMap.forEach(function (node) {
|
|
1033
|
+
node.selected = false;
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}, {
|
|
1038
|
+
key: 'getNode',
|
|
1039
|
+
value: function getNode(key) {
|
|
1040
|
+
var node = this.nodesMap.get(key);
|
|
1041
|
+
if (node) {
|
|
1042
|
+
return node;
|
|
1043
|
+
}
|
|
1044
|
+
return null;
|
|
1045
|
+
}
|
|
1046
|
+
}, {
|
|
1047
|
+
key: 'getCheckNode',
|
|
1048
|
+
value: function getCheckNode(nodeFlag) {
|
|
1049
|
+
var arr = [];
|
|
1050
|
+
this.nodesMap.forEach(function (item) {
|
|
1051
|
+
if (item.checked) {
|
|
1052
|
+
nodeFlag ? arr.push(item) : arr.push(item.data);
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
return arr;
|
|
1056
|
+
}
|
|
1057
|
+
}, {
|
|
1058
|
+
key: 'getCheckNodeKey',
|
|
1059
|
+
value: function getCheckNodeKey() {
|
|
1060
|
+
var arr = [];
|
|
1061
|
+
this.getCheckNode(true).forEach(function (node) {
|
|
1062
|
+
arr.push(node.key);
|
|
1063
|
+
});
|
|
1064
|
+
return arr;
|
|
1065
|
+
}
|
|
1066
|
+
}, {
|
|
1067
|
+
key: 'getIndeterminateNode',
|
|
1068
|
+
value: function getIndeterminateNode(nodeFlag) {
|
|
1069
|
+
var arr = [];
|
|
1070
|
+
this.nodesMap.forEach(function (item) {
|
|
1071
|
+
if (item.indeterminate) {
|
|
1072
|
+
nodeFlag ? arr.push(item) : arr.push(item.data);
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
return arr;
|
|
1076
|
+
}
|
|
1077
|
+
}, {
|
|
1078
|
+
key: 'getIndeterminateNodeKey',
|
|
1079
|
+
value: function getIndeterminateNodeKey() {
|
|
1080
|
+
var arr = [];
|
|
1081
|
+
this.getIndeterminateNode(true).forEach(function (node) {
|
|
1082
|
+
arr.push(node.key);
|
|
1083
|
+
});
|
|
1084
|
+
return arr;
|
|
1085
|
+
}
|
|
1086
|
+
}, {
|
|
1087
|
+
key: 'setCheckNode',
|
|
1088
|
+
value: function setCheckNode(keys) {
|
|
1089
|
+
var bor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1090
|
+
|
|
1091
|
+
var nodesMap = this.nodesMap;
|
|
1092
|
+
|
|
1093
|
+
if (Array.isArray(keys)) {
|
|
1094
|
+
keys.forEach(function (item) {
|
|
1095
|
+
var node = nodesMap.get(item);
|
|
1096
|
+
if (node) node.check = bor;
|
|
1097
|
+
});
|
|
1098
|
+
} else {
|
|
1099
|
+
var node = nodesMap.get(keys);
|
|
1100
|
+
if (node) nodesMap.get(keys).check = bor;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}, {
|
|
1104
|
+
key: 'getCheckNodeTree',
|
|
1105
|
+
value: function getCheckNodeTree() {
|
|
1106
|
+
var _this5 = this;
|
|
1107
|
+
|
|
1108
|
+
var root = this.root;
|
|
1109
|
+
|
|
1110
|
+
if (Array.isArray(root.data)) {
|
|
1111
|
+
var newTree = [];
|
|
1112
|
+
root.indeterminateChildNodes.forEach(function (item) {
|
|
1113
|
+
newTree.push(copyNode(item, _this5));
|
|
1114
|
+
});
|
|
1115
|
+
return newTree;
|
|
1116
|
+
} else {
|
|
1117
|
+
return copyNode(root, this);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}, {
|
|
1121
|
+
key: 'appendNodes',
|
|
1122
|
+
value: function appendNodes(key, nodes) {
|
|
1123
|
+
var parent = this.nodesMap.get(key);
|
|
1124
|
+
if (!parent) {
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
if (Array.isArray(nodes)) {
|
|
1128
|
+
if ((typeof nodes === 'undefined' ? 'undefined' : typeof_default()(nodes)) === 'object') {
|
|
1129
|
+
nodes.forEach(function (item) {
|
|
1130
|
+
parent.appendChild(item);
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
} else if ((typeof nodes === 'undefined' ? 'undefined' : typeof_default()(nodes)) === 'object') {
|
|
1134
|
+
parent.appendChild(nodes);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}, {
|
|
1138
|
+
key: 'delectNodeByKey',
|
|
1139
|
+
value: function delectNodeByKey(keys) {
|
|
1140
|
+
var _this6 = this;
|
|
1141
|
+
|
|
1142
|
+
if (Array.isArray(keys)) {
|
|
1143
|
+
keys.forEach(function (item) {
|
|
1144
|
+
var node = _this6.nodesMap.get(item);
|
|
1145
|
+
if (node) node.remove();
|
|
1146
|
+
});
|
|
1147
|
+
} else {
|
|
1148
|
+
var node = this.nodesMap.get(keys);
|
|
1149
|
+
node.remove();
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}]);
|
|
1153
|
+
|
|
1154
|
+
return Tree;
|
|
1155
|
+
}();
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
var copyData = function copyData(data, tree) {
|
|
1161
|
+
var newData = {};
|
|
1162
|
+
for (var key in data) {
|
|
1163
|
+
if (data.hasOwnProperty(key) && key !== tree.prop.children) {
|
|
1164
|
+
newData[key] = data[key];
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
return newData;
|
|
1168
|
+
};
|
|
1169
|
+
var copyNode = function copyNode(node, tree) {
|
|
1170
|
+
var newData = copyData(node.data, tree);
|
|
1171
|
+
if (node.isLeaf) {
|
|
1172
|
+
return newData;
|
|
1173
|
+
}
|
|
1174
|
+
newData[tree.prop.children] = [];
|
|
1175
|
+
node.indeterminateChildNodes.forEach(function (item) {
|
|
1176
|
+
newData[tree.prop.children].push(copyNode(item, tree));
|
|
1177
|
+
});
|
|
1178
|
+
return newData;
|
|
1179
|
+
};
|
|
1180
|
+
// const deepCopy = function(o) {
|
|
1181
|
+
// if (o instanceof Array) {
|
|
1182
|
+
// let n = []
|
|
1183
|
+
// for (let i = 0; i < o.length; ++i) {
|
|
1184
|
+
// n[i] = deepCopy(o[i])
|
|
1185
|
+
// }
|
|
1186
|
+
// return n
|
|
1187
|
+
// } else if (o instanceof Object) {
|
|
1188
|
+
// let n = {}
|
|
1189
|
+
// for (let i in o) {
|
|
1190
|
+
// n[i] = deepCopy(o[i])
|
|
1191
|
+
// }
|
|
1192
|
+
// return n
|
|
1193
|
+
// } else {
|
|
1194
|
+
// return o
|
|
1195
|
+
// }
|
|
1196
|
+
// }
|
|
1197
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/tree/tree-item.vue?vue&type=template&id=7faeb42c&
|
|
1198
|
+
var tree_itemvue_type_template_id_7faeb42c_render = function () {
|
|
1199
|
+
var _vm = this
|
|
1200
|
+
var _h = _vm.$createElement
|
|
1201
|
+
var _c = _vm._self._c || _h
|
|
1202
|
+
return _c(
|
|
1203
|
+
"div",
|
|
1204
|
+
{ staticClass: "mds-tree-item" },
|
|
1205
|
+
[
|
|
1206
|
+
_c(
|
|
1207
|
+
"div",
|
|
1208
|
+
{
|
|
1209
|
+
directives: [
|
|
1210
|
+
{
|
|
1211
|
+
name: "show",
|
|
1212
|
+
rawName: "v-show",
|
|
1213
|
+
value: _vm.node.visible,
|
|
1214
|
+
expression: "node.visible",
|
|
1215
|
+
},
|
|
1216
|
+
],
|
|
1217
|
+
class: {
|
|
1218
|
+
"mds-tree-content": true,
|
|
1219
|
+
"mds-tree-active": _vm.node.selected,
|
|
1220
|
+
},
|
|
1221
|
+
on: {
|
|
1222
|
+
mouseenter: _vm.contentEnter,
|
|
1223
|
+
mouseleave: _vm.contentLeave,
|
|
1224
|
+
click: function ($event) {
|
|
1225
|
+
$event.stopPropagation()
|
|
1226
|
+
return _vm.handleClick()
|
|
1227
|
+
},
|
|
1228
|
+
contextmenu: function ($event) {
|
|
1229
|
+
return _vm.handleContextMenu($event)
|
|
1230
|
+
},
|
|
1231
|
+
},
|
|
1232
|
+
},
|
|
1233
|
+
[
|
|
1234
|
+
_c(
|
|
1235
|
+
"span",
|
|
1236
|
+
{
|
|
1237
|
+
staticClass: "mds-tree-expand",
|
|
1238
|
+
on: {
|
|
1239
|
+
mousedown: function ($event) {
|
|
1240
|
+
$event.stopPropagation()
|
|
1241
|
+
},
|
|
1242
|
+
click: function ($event) {
|
|
1243
|
+
$event.stopPropagation()
|
|
1244
|
+
return _vm.expanded()
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
},
|
|
1248
|
+
[
|
|
1249
|
+
!_vm.node.isLeaf
|
|
1250
|
+
? _c("mds-icon", {
|
|
1251
|
+
class: { "mds-tree-trans": !_vm.node.expanded },
|
|
1252
|
+
attrs: { type: "fill-solid-down" },
|
|
1253
|
+
})
|
|
1254
|
+
: _vm._e(),
|
|
1255
|
+
],
|
|
1256
|
+
1
|
|
1257
|
+
),
|
|
1258
|
+
_c("mds-icon", {
|
|
1259
|
+
directives: [
|
|
1260
|
+
{
|
|
1261
|
+
name: "show",
|
|
1262
|
+
rawName: "v-show",
|
|
1263
|
+
value: _vm.node.loading,
|
|
1264
|
+
expression: "node.loading",
|
|
1265
|
+
},
|
|
1266
|
+
],
|
|
1267
|
+
staticClass: "mds-tree-loading",
|
|
1268
|
+
attrs: { type: "line-sync", spin: "" },
|
|
1269
|
+
}),
|
|
1270
|
+
_c(
|
|
1271
|
+
"label",
|
|
1272
|
+
{
|
|
1273
|
+
directives: [
|
|
1274
|
+
{
|
|
1275
|
+
name: "show",
|
|
1276
|
+
rawName: "v-show",
|
|
1277
|
+
value: _vm.checkboxDisplay,
|
|
1278
|
+
expression: "checkboxDisplay",
|
|
1279
|
+
},
|
|
1280
|
+
],
|
|
1281
|
+
staticClass: "mds-tree-checkbox",
|
|
1282
|
+
on: {
|
|
1283
|
+
mousedown: function ($event) {
|
|
1284
|
+
$event.stopPropagation()
|
|
1285
|
+
},
|
|
1286
|
+
click: function ($event) {
|
|
1287
|
+
$event.stopPropagation()
|
|
1288
|
+
},
|
|
1289
|
+
},
|
|
1290
|
+
},
|
|
1291
|
+
[
|
|
1292
|
+
_c("mds-checkbox", {
|
|
1293
|
+
attrs: {
|
|
1294
|
+
indeterminate: _vm.node.indeterminate,
|
|
1295
|
+
disabled: _vm.node.disabled,
|
|
1296
|
+
},
|
|
1297
|
+
on: { change: _vm.handleCheck },
|
|
1298
|
+
model: {
|
|
1299
|
+
value: _vm.node.check,
|
|
1300
|
+
callback: function ($$v) {
|
|
1301
|
+
_vm.$set(_vm.node, "check", $$v)
|
|
1302
|
+
},
|
|
1303
|
+
expression: "node.check",
|
|
1304
|
+
},
|
|
1305
|
+
}),
|
|
1306
|
+
],
|
|
1307
|
+
1
|
|
1308
|
+
),
|
|
1309
|
+
_c(
|
|
1310
|
+
"div",
|
|
1311
|
+
{ staticClass: "mds-tree-label-wrapper" },
|
|
1312
|
+
[_c("label-content", { attrs: { node: _vm.node } })],
|
|
1313
|
+
1
|
|
1314
|
+
),
|
|
1315
|
+
],
|
|
1316
|
+
1
|
|
1317
|
+
),
|
|
1318
|
+
_c("div", {
|
|
1319
|
+
class: {
|
|
1320
|
+
"mds-tree-block": true,
|
|
1321
|
+
"mds-tree-block-hover": _vm.topHover,
|
|
1322
|
+
},
|
|
1323
|
+
staticStyle: { height: "4px" },
|
|
1324
|
+
on: { mouseenter: _vm.enterTop, mouseleave: _vm.leaveTop },
|
|
1325
|
+
}),
|
|
1326
|
+
!_vm.node.isLeaf
|
|
1327
|
+
? [
|
|
1328
|
+
_c("mds-transition", { attrs: { type: "collapse" } }, [
|
|
1329
|
+
_vm.node.expanded
|
|
1330
|
+
? _c(
|
|
1331
|
+
"div",
|
|
1332
|
+
{ staticClass: "mds-tree-group" },
|
|
1333
|
+
_vm._l(_vm.node.childNodes, function (item, index) {
|
|
1334
|
+
return _c("mds-tree-item", {
|
|
1335
|
+
key: index,
|
|
1336
|
+
attrs: {
|
|
1337
|
+
checkboxDisplay: _vm.checkboxDisplay,
|
|
1338
|
+
node: item,
|
|
1339
|
+
},
|
|
1340
|
+
})
|
|
1341
|
+
}),
|
|
1342
|
+
1
|
|
1343
|
+
)
|
|
1344
|
+
: _vm._e(),
|
|
1345
|
+
]),
|
|
1346
|
+
]
|
|
1347
|
+
: _vm._e(),
|
|
1348
|
+
],
|
|
1349
|
+
2
|
|
1350
|
+
)
|
|
1351
|
+
}
|
|
1352
|
+
var tree_itemvue_type_template_id_7faeb42c_staticRenderFns = []
|
|
1353
|
+
tree_itemvue_type_template_id_7faeb42c_render._withStripped = true
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
// CONCATENATED MODULE: ./components/tree/tree-item.vue?vue&type=template&id=7faeb42c&
|
|
1357
|
+
|
|
1358
|
+
// EXTERNAL MODULE: external "./icon"
|
|
1359
|
+
var external_icon_ = __webpack_require__(4);
|
|
1360
|
+
var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
|
|
1361
|
+
|
|
1362
|
+
// EXTERNAL MODULE: external "./checkbox"
|
|
1363
|
+
var external_checkbox_ = __webpack_require__(28);
|
|
1364
|
+
var external_checkbox_default = /*#__PURE__*/__webpack_require__.n(external_checkbox_);
|
|
1365
|
+
|
|
1366
|
+
// EXTERNAL MODULE: external "./transition"
|
|
1367
|
+
var external_transition_ = __webpack_require__(13);
|
|
1368
|
+
var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_transition_);
|
|
1369
|
+
|
|
1370
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/tree/tree-item.vue?vue&type=script&lang=js&
|
|
1371
|
+
//
|
|
1372
|
+
//
|
|
1373
|
+
//
|
|
1374
|
+
//
|
|
1375
|
+
//
|
|
1376
|
+
//
|
|
1377
|
+
//
|
|
1378
|
+
//
|
|
1379
|
+
//
|
|
1380
|
+
//
|
|
1381
|
+
//
|
|
1382
|
+
//
|
|
1383
|
+
//
|
|
1384
|
+
//
|
|
1385
|
+
//
|
|
1386
|
+
//
|
|
1387
|
+
//
|
|
1388
|
+
//
|
|
1389
|
+
//
|
|
1390
|
+
//
|
|
1391
|
+
//
|
|
1392
|
+
//
|
|
1393
|
+
//
|
|
1394
|
+
//
|
|
1395
|
+
//
|
|
1396
|
+
//
|
|
1397
|
+
//
|
|
1398
|
+
//
|
|
1399
|
+
//
|
|
1400
|
+
//
|
|
1401
|
+
//
|
|
1402
|
+
//
|
|
1403
|
+
//
|
|
1404
|
+
//
|
|
1405
|
+
//
|
|
1406
|
+
//
|
|
1407
|
+
//
|
|
1408
|
+
//
|
|
1409
|
+
//
|
|
1410
|
+
//
|
|
1411
|
+
//
|
|
1412
|
+
//
|
|
1413
|
+
//
|
|
1414
|
+
//
|
|
1415
|
+
//
|
|
1416
|
+
//
|
|
1417
|
+
//
|
|
1418
|
+
//
|
|
1419
|
+
//
|
|
1420
|
+
//
|
|
1421
|
+
//
|
|
1422
|
+
//
|
|
1423
|
+
//
|
|
1424
|
+
//
|
|
1425
|
+
//
|
|
1426
|
+
//
|
|
1427
|
+
//
|
|
1428
|
+
//
|
|
1429
|
+
//
|
|
1430
|
+
//
|
|
1431
|
+
//
|
|
1432
|
+
//
|
|
1433
|
+
//
|
|
1434
|
+
//
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
/* harmony default export */ var tree_itemvue_type_script_lang_js_ = ({
|
|
1441
|
+
name: 'MdsTreeItem',
|
|
1442
|
+
componentName: 'MdsTreeItem',
|
|
1443
|
+
components: {
|
|
1444
|
+
MdsIcon: external_icon_default.a,
|
|
1445
|
+
MdsCheckbox: external_checkbox_default.a,
|
|
1446
|
+
MdsTransition: external_transition_default.a,
|
|
1447
|
+
labelContent: {
|
|
1448
|
+
props: ['node'],
|
|
1449
|
+
render: function render() {
|
|
1450
|
+
var h = arguments[0];
|
|
1451
|
+
|
|
1452
|
+
var slot = this.node.tree.$tree.$scopedSlots.default;
|
|
1453
|
+
var node = this.node;
|
|
1454
|
+
if (slot) {
|
|
1455
|
+
return slot(node);
|
|
1456
|
+
}
|
|
1457
|
+
return h(
|
|
1458
|
+
'label',
|
|
1459
|
+
{
|
|
1460
|
+
'class': {
|
|
1461
|
+
'mds-tree-label': true,
|
|
1462
|
+
'mds-tree-active-label': node.selected
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
[node.label]
|
|
1466
|
+
);
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
props: {
|
|
1471
|
+
node: {
|
|
1472
|
+
type: Object,
|
|
1473
|
+
required: true
|
|
1474
|
+
},
|
|
1475
|
+
checkboxDisplay: Boolean
|
|
1476
|
+
},
|
|
1477
|
+
data: function data() {
|
|
1478
|
+
return {
|
|
1479
|
+
development: false,
|
|
1480
|
+
topHover: false,
|
|
1481
|
+
blockHover: false
|
|
1482
|
+
};
|
|
1483
|
+
},
|
|
1484
|
+
|
|
1485
|
+
computed: {
|
|
1486
|
+
$tree: function $tree() {
|
|
1487
|
+
return this.node.tree.$tree;
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
methods: {
|
|
1491
|
+
expanded: function expanded() {
|
|
1492
|
+
this.node.changeExpanded(!this.node.expanded);
|
|
1493
|
+
var expandOrCollapse = void 0;
|
|
1494
|
+
if (this.node.expanded) {
|
|
1495
|
+
expandOrCollapse = 'expand';
|
|
1496
|
+
} else {
|
|
1497
|
+
expandOrCollapse = 'collapse';
|
|
1498
|
+
}
|
|
1499
|
+
this.$tree.$emit('node-expand-change', expandOrCollapse, this.node.data, this.node, this.node.getPath(), this.node.getPath(true));
|
|
1500
|
+
},
|
|
1501
|
+
handleCheck: function handleCheck(value) {
|
|
1502
|
+
this.node.check = value;
|
|
1503
|
+
|
|
1504
|
+
this.$tree.$emit('node-check', this.node.data, {
|
|
1505
|
+
checkedNodes: this.node.tree.getCheckNode(),
|
|
1506
|
+
checkedKeys: this.node.tree.getCheckNodeKey(),
|
|
1507
|
+
indeterminateNodes: this.node.tree.getIndeterminateNode(),
|
|
1508
|
+
indeterminateKeys: this.node.tree.getIndeterminateNodeKey()
|
|
1509
|
+
});
|
|
1510
|
+
},
|
|
1511
|
+
handleClick: function handleClick() {
|
|
1512
|
+
this.node.tree.handleSelectedChange(this.node.key);
|
|
1513
|
+
this.$tree.$emit('node-click', this.node.data, this.node, this.node.getPath(), this.node.getPath(true));
|
|
1514
|
+
},
|
|
1515
|
+
handleContextMenu: function handleContextMenu(e) {
|
|
1516
|
+
this.$tree.$emit('node-contextmenu', e, this.node.data, this.node, this.node.getPath(), this.node.getPath(true));
|
|
1517
|
+
},
|
|
1518
|
+
contentEnter: function contentEnter() {
|
|
1519
|
+
if (!this.node.tree.dragStatus) {
|
|
1520
|
+
return false;
|
|
1521
|
+
}
|
|
1522
|
+
this.node.tree.currentTargetNode = this.node;
|
|
1523
|
+
this.node.tree.targetAction = 'append';
|
|
1524
|
+
},
|
|
1525
|
+
contentLeave: function contentLeave() {
|
|
1526
|
+
if (!this.node.tree.dragStatus) {
|
|
1527
|
+
return false;
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
enterTop: function enterTop() {
|
|
1531
|
+
if (!this.node.tree.dragStatus) {
|
|
1532
|
+
return false;
|
|
1533
|
+
}
|
|
1534
|
+
this.topHover = true;
|
|
1535
|
+
this.node.tree.currentTargetNode = this.node;
|
|
1536
|
+
this.node.tree.targetAction = 'first';
|
|
1537
|
+
},
|
|
1538
|
+
leaveTop: function leaveTop() {
|
|
1539
|
+
this.topHover = false;
|
|
1540
|
+
},
|
|
1541
|
+
enterBlock: function enterBlock() {
|
|
1542
|
+
if (!this.node.tree.dragStatus) {
|
|
1543
|
+
return false;
|
|
1544
|
+
}
|
|
1545
|
+
this.blockHover = true;
|
|
1546
|
+
this.node.tree.currentTargetNode = this.node;
|
|
1547
|
+
this.node.tree.targetAction = 'after';
|
|
1548
|
+
},
|
|
1549
|
+
leaveBlock: function leaveBlock() {
|
|
1550
|
+
this.blockHover = false;
|
|
1551
|
+
},
|
|
1552
|
+
listenDrag: function listenDrag() {
|
|
1553
|
+
var _this = this;
|
|
1554
|
+
|
|
1555
|
+
var el = this.$el;
|
|
1556
|
+
el.onmousedown = function (event) {
|
|
1557
|
+
var node = _this.node;
|
|
1558
|
+
var vnode = void 0;
|
|
1559
|
+
var rect = el.getBoundingClientRect();
|
|
1560
|
+
event.stopPropagation();
|
|
1561
|
+
vnode = el.cloneNode(true);
|
|
1562
|
+
vnode.style.position = 'fixed';
|
|
1563
|
+
vnode.style.opacity = '0.6';
|
|
1564
|
+
vnode.style.left = rect.left;
|
|
1565
|
+
vnode.style.top = rect.top;
|
|
1566
|
+
// (clientX, clientY)点击位置距离当前可视区域的坐标(x,y)
|
|
1567
|
+
// offsetLeft, offsetTop 距离上层或父级的左边距和上边距
|
|
1568
|
+
|
|
1569
|
+
// 获取鼠标在弹窗中的位置
|
|
1570
|
+
var mouseX = event.clientX - rect.left;
|
|
1571
|
+
var mouseY = event.clientY - rect.top;
|
|
1572
|
+
// 绑定移动和停止函数
|
|
1573
|
+
document.onmousemove = function (event) {
|
|
1574
|
+
var left = void 0,
|
|
1575
|
+
top = void 0;
|
|
1576
|
+
// 获取新的鼠标位置(event.clientX, event.clientY)
|
|
1577
|
+
// 弹窗应该在的位置(left, top)
|
|
1578
|
+
left = event.clientX - mouseX;
|
|
1579
|
+
top = event.clientY - mouseY;
|
|
1580
|
+
if (Math.abs(left - rect.left) > 10 || Math.abs(top - rect.top) > 10) {
|
|
1581
|
+
document.body.appendChild(vnode);
|
|
1582
|
+
node.tree.currentCathcNode = node;
|
|
1583
|
+
node.tree.dragStatus = true;
|
|
1584
|
+
}
|
|
1585
|
+
// offsetWidth、offsetHeight 当前元素的宽度
|
|
1586
|
+
// innerWidth、innerHeight 浏览器可视区的宽度和高度
|
|
1587
|
+
|
|
1588
|
+
// 获取弹窗在页面中距X轴的最小、最大 位置
|
|
1589
|
+
// let minX = -vnode.offsetWidth / 2 + 150
|
|
1590
|
+
// let maxX = window.innerWidth + vnode.offsetWidth / 2 - 150
|
|
1591
|
+
// if (left <= minX) {
|
|
1592
|
+
// left = minX
|
|
1593
|
+
// } else if (left >= maxX) {
|
|
1594
|
+
// left = maxX
|
|
1595
|
+
// }
|
|
1596
|
+
|
|
1597
|
+
// 获取弹窗在页面中距Y轴的最小、最大 位置
|
|
1598
|
+
// let minY = 20
|
|
1599
|
+
// let maxY = window.innerHeight + vnode.offsetHeight / 2 - 50
|
|
1600
|
+
// if (top <= minY) {
|
|
1601
|
+
// top = minY
|
|
1602
|
+
// } else if (top >= maxY) {
|
|
1603
|
+
// top = maxY
|
|
1604
|
+
// }
|
|
1605
|
+
// 赋值移动
|
|
1606
|
+
vnode.style.left = left + 'px';
|
|
1607
|
+
vnode.style.top = top + 'px';
|
|
1608
|
+
};
|
|
1609
|
+
document.onmouseup = function () {
|
|
1610
|
+
var target = node.tree.currentTargetNode;
|
|
1611
|
+
document.onmousemove = document.onmouseup = null;
|
|
1612
|
+
if (node.tree.dragStatus) {
|
|
1613
|
+
document.body.removeChild(vnode);
|
|
1614
|
+
}
|
|
1615
|
+
node.tree.dragStatus = false;
|
|
1616
|
+
if (target && target !== node) {
|
|
1617
|
+
console.log(node.tree.targetAction);
|
|
1618
|
+
if (node.tree.targetAction === 'first') {
|
|
1619
|
+
target.first(node);
|
|
1620
|
+
} else if (node.tree.targetAction === 'after') {
|
|
1621
|
+
target.after(node);
|
|
1622
|
+
} else if (node.tree.targetAction === 'append') {
|
|
1623
|
+
target.append(node);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
node.tree.currentCathcNode = null;
|
|
1627
|
+
node.tree.currentTargetNode = null;
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
mounted: function mounted() {
|
|
1633
|
+
if (this.node.tree.aollowDrag) {
|
|
1634
|
+
this.listenDrag();
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
|
|
1638
|
+
watch: {
|
|
1639
|
+
'node.check': function nodeCheck() {
|
|
1640
|
+
this.$tree.$emit('node-check-change', this.node.data, this.node.checked);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
});
|
|
1644
|
+
// CONCATENATED MODULE: ./components/tree/tree-item.vue?vue&type=script&lang=js&
|
|
1645
|
+
/* harmony default export */ var tree_tree_itemvue_type_script_lang_js_ = (tree_itemvue_type_script_lang_js_);
|
|
1646
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1647
|
+
var componentNormalizer = __webpack_require__(0);
|
|
1648
|
+
|
|
1649
|
+
// CONCATENATED MODULE: ./components/tree/tree-item.vue
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
/* normalize component */
|
|
1656
|
+
|
|
1657
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
1658
|
+
tree_tree_itemvue_type_script_lang_js_,
|
|
1659
|
+
tree_itemvue_type_template_id_7faeb42c_render,
|
|
1660
|
+
tree_itemvue_type_template_id_7faeb42c_staticRenderFns,
|
|
1661
|
+
false,
|
|
1662
|
+
null,
|
|
1663
|
+
null,
|
|
1664
|
+
null
|
|
1665
|
+
|
|
1666
|
+
)
|
|
1667
|
+
|
|
1668
|
+
/* hot reload */
|
|
1669
|
+
if (false) { var api; }
|
|
1670
|
+
component.options.__file = "components/tree/tree-item.vue"
|
|
1671
|
+
/* harmony default export */ var tree_item = (component.exports);
|
|
1672
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/tree/tree.vue?vue&type=script&lang=js&
|
|
1673
|
+
//
|
|
1674
|
+
//
|
|
1675
|
+
//
|
|
1676
|
+
//
|
|
1677
|
+
//
|
|
1678
|
+
//
|
|
1679
|
+
//
|
|
1680
|
+
//
|
|
1681
|
+
//
|
|
1682
|
+
//
|
|
1683
|
+
//
|
|
1684
|
+
//
|
|
1685
|
+
//
|
|
1686
|
+
//
|
|
1687
|
+
//
|
|
1688
|
+
//
|
|
1689
|
+
//
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
/* harmony default export */ var treevue_type_script_lang_js_ = ({
|
|
1695
|
+
name: 'MdsTree',
|
|
1696
|
+
componentName: 'MdsTree',
|
|
1697
|
+
components: {
|
|
1698
|
+
MdsTreeItem: tree_item
|
|
1699
|
+
},
|
|
1700
|
+
props: {
|
|
1701
|
+
data: Array,
|
|
1702
|
+
prop: {
|
|
1703
|
+
default: function _default() {
|
|
1704
|
+
return {
|
|
1705
|
+
label: 'label',
|
|
1706
|
+
key: 'key',
|
|
1707
|
+
isLeaf: 'isLeaf',
|
|
1708
|
+
disabled: 'disabled',
|
|
1709
|
+
children: 'children'
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
// 选中的节点
|
|
1714
|
+
selectedKey: String,
|
|
1715
|
+
// 设置默认值与展开收起相关属性
|
|
1716
|
+
defaultExpandAll: Boolean,
|
|
1717
|
+
defaultCheckedKeys: Array,
|
|
1718
|
+
autoExpandParent: {
|
|
1719
|
+
type: Boolean,
|
|
1720
|
+
default: true
|
|
1721
|
+
},
|
|
1722
|
+
defaultExpandedKeys: Array,
|
|
1723
|
+
checkboxDisplay: Boolean,
|
|
1724
|
+
searchNodeMethod: Function,
|
|
1725
|
+
|
|
1726
|
+
loadData: Function,
|
|
1727
|
+
drag: Boolean,
|
|
1728
|
+
accordion: Boolean,
|
|
1729
|
+
emptyText: {
|
|
1730
|
+
type: String,
|
|
1731
|
+
default: '暂无数据'
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
computed: {
|
|
1735
|
+
isEmpty: function isEmpty() {
|
|
1736
|
+
var childNodes = this.root.childNodes;
|
|
1737
|
+
var childInvisible = childNodes.every(function (node) {
|
|
1738
|
+
return !node.visible;
|
|
1739
|
+
});
|
|
1740
|
+
return !childNodes || childNodes.length === 0 || childInvisible;
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
data: function data() {
|
|
1744
|
+
return {
|
|
1745
|
+
tree: null,
|
|
1746
|
+
root: null,
|
|
1747
|
+
currentNode: null
|
|
1748
|
+
// dragState: {
|
|
1749
|
+
// showDropIndicator: false,
|
|
1750
|
+
// draggingNode: null,
|
|
1751
|
+
// dropNode: null,
|
|
1752
|
+
// allowDrop: true
|
|
1753
|
+
// }
|
|
1754
|
+
};
|
|
1755
|
+
},
|
|
1756
|
+
|
|
1757
|
+
methods: {
|
|
1758
|
+
getNodeKey: function getNodeKey(node) {
|
|
1759
|
+
var key = this.prop.key;
|
|
1760
|
+
var data = node.data;
|
|
1761
|
+
if (!key) return data['nodeId'];
|
|
1762
|
+
return data[key];
|
|
1763
|
+
},
|
|
1764
|
+
search: function search(value) {
|
|
1765
|
+
if (!this.searchNodeMethod) {
|
|
1766
|
+
return;
|
|
1767
|
+
}
|
|
1768
|
+
this.tree.search(value);
|
|
1769
|
+
},
|
|
1770
|
+
getCheckedNodes: function getCheckedNodes(leafOnly) {
|
|
1771
|
+
return this.tree.getCheckedNodes(leafOnly);
|
|
1772
|
+
},
|
|
1773
|
+
getCheckedKeys: function getCheckedKeys(leafOnly) {
|
|
1774
|
+
return this.tree.getCheckedKeys(leafOnly);
|
|
1775
|
+
},
|
|
1776
|
+
setCheckedKeys: function setCheckedKeys(checkArr) {
|
|
1777
|
+
return this.tree.setCheckedKeys(checkArr);
|
|
1778
|
+
},
|
|
1779
|
+
setChecked: function setChecked(key, checkState) {
|
|
1780
|
+
return this.tree.setChecked(key, checkState);
|
|
1781
|
+
},
|
|
1782
|
+
getHalfCheckedNodes: function getHalfCheckedNodes() {
|
|
1783
|
+
return this.tree.getHalfCheckedNodes();
|
|
1784
|
+
},
|
|
1785
|
+
getHalfCheckedKeys: function getHalfCheckedKeys() {
|
|
1786
|
+
return this.tree.getHalfCheckedKeys();
|
|
1787
|
+
},
|
|
1788
|
+
getCurrentKey: function getCurrentKey() {
|
|
1789
|
+
return this.tree.getCurrentKey();
|
|
1790
|
+
},
|
|
1791
|
+
getCurrentNode: function getCurrentNode() {
|
|
1792
|
+
return this.tree.getCurrentNode();
|
|
1793
|
+
},
|
|
1794
|
+
setCurrentKey: function setCurrentKey(key) {
|
|
1795
|
+
return this.tree.setCurrentKey(key);
|
|
1796
|
+
},
|
|
1797
|
+
getNode: function getNode(key) {
|
|
1798
|
+
return this.tree.getNode(key);
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
created: function created() {
|
|
1802
|
+
this.tree = new tree_Tree({
|
|
1803
|
+
data: this.data,
|
|
1804
|
+
$tree: this,
|
|
1805
|
+
prop: this.prop,
|
|
1806
|
+
load: this.loadData,
|
|
1807
|
+
accordion: this.accordion,
|
|
1808
|
+
selectedKey: this.selectedKey,
|
|
1809
|
+
defaultCheckedKeys: this.defaultCheckedKeys,
|
|
1810
|
+
defaultExpandedKeys: this.defaultExpandedKeys,
|
|
1811
|
+
autoExpandParent: this.autoExpandParent,
|
|
1812
|
+
defaultExpandAll: this.defaultExpandAll,
|
|
1813
|
+
searchNodeMethod: this.searchNodeMethod
|
|
1814
|
+
});
|
|
1815
|
+
this.root = this.tree.root;
|
|
1816
|
+
},
|
|
1817
|
+
mounted: function mounted() {
|
|
1818
|
+
this.tree.handleDefaultCheckedKeys();
|
|
1819
|
+
},
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
watch: {
|
|
1823
|
+
data: function data(newVal) {
|
|
1824
|
+
this.tree.setData(newVal);
|
|
1825
|
+
this.root = this.tree.root;
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1829
|
+
// CONCATENATED MODULE: ./components/tree/tree.vue?vue&type=script&lang=js&
|
|
1830
|
+
/* harmony default export */ var tree_treevue_type_script_lang_js_ = (treevue_type_script_lang_js_);
|
|
1831
|
+
// CONCATENATED MODULE: ./components/tree/tree.vue
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/* normalize component */
|
|
1838
|
+
|
|
1839
|
+
var tree_component = Object(componentNormalizer["a" /* default */])(
|
|
1840
|
+
tree_treevue_type_script_lang_js_,
|
|
1841
|
+
render,
|
|
1842
|
+
staticRenderFns,
|
|
1843
|
+
false,
|
|
1844
|
+
null,
|
|
1845
|
+
null,
|
|
1846
|
+
null
|
|
1847
|
+
|
|
1848
|
+
)
|
|
1849
|
+
|
|
1850
|
+
/* hot reload */
|
|
1851
|
+
if (false) { var tree_api; }
|
|
1852
|
+
tree_component.options.__file = "components/tree/tree.vue"
|
|
1853
|
+
/* harmony default export */ var tree = (tree_component.exports);
|
|
1854
|
+
// CONCATENATED MODULE: ./components/tree/index.js
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
tree.install = function (Vue) {
|
|
1859
|
+
Vue.component(tree.name, tree);
|
|
1860
|
+
};
|
|
1861
|
+
/* harmony default export */ var components_tree = __webpack_exports__["default"] = (tree);
|
|
1862
|
+
|
|
1863
|
+
/***/ })
|
|
1864
|
+
|
|
1865
|
+
/******/ });
|
|
1866
|
+
});
|