sd-data-grid 1.2.60 → 1.2.62

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.
@@ -1,846 +0,0 @@
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("sd-ay-tree-select", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["sd-ay-tree-select"] = factory();
8
- else
9
- root["sd-ay-tree-select"] = 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, {
50
- /******/ configurable: false,
51
- /******/ enumerable: true,
52
- /******/ get: getter
53
- /******/ });
54
- /******/ }
55
- /******/ };
56
- /******/
57
- /******/ // getDefaultExport function for compatibility with non-harmony modules
58
- /******/ __webpack_require__.n = function(module) {
59
- /******/ var getter = module && module.__esModule ?
60
- /******/ function getDefault() { return module['default']; } :
61
- /******/ function getModuleExports() { return module; };
62
- /******/ __webpack_require__.d(getter, 'a', getter);
63
- /******/ return getter;
64
- /******/ };
65
- /******/
66
- /******/ // Object.prototype.hasOwnProperty.call
67
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
68
- /******/
69
- /******/ // __webpack_public_path__
70
- /******/ __webpack_require__.p = "/dist/";
71
- /******/
72
- /******/ // Load entry module and return exports
73
- /******/ return __webpack_require__(__webpack_require__.s = 1);
74
- /******/ })
75
- /************************************************************************/
76
- /******/ ([
77
- /* 0 */
78
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
79
-
80
- "use strict";
81
- //
82
- //
83
- //
84
- //
85
- //
86
- //
87
- //
88
- //
89
- //
90
- //
91
- //
92
- //
93
- //
94
- //
95
-
96
- /* harmony default export */ __webpack_exports__["a"] = ({
97
- name: 'selectTree',
98
- props: {
99
- value: {
100
- type: String,
101
- default: ''
102
- },
103
- ajlx: {
104
- type: String,
105
- default: '02'
106
- }
107
- },
108
- data: function data() {
109
- return {
110
- selectTreeArr: [],
111
- selectTreeValue: [],
112
- filterText: '',
113
- ayDataList: [],
114
- curNodeId: [],
115
- checkedNodeId: [],
116
- originTreeData: [],
117
-
118
- defaultProps: {
119
- children: 'children',
120
- label: 'label'
121
- }
122
- };
123
- },
124
-
125
- watch: {
126
- value: {
127
- handler: function handler(n, o) {
128
- if (n) {
129
- this.selectTreeValue = n ? n.split(',') : '';
130
- } else {
131
- this.clearAll();
132
- }
133
- },
134
-
135
- deep: true,
136
- immediate: true
137
- },
138
- ajlx: {
139
- handler: function handler(n, o) {
140
- if (n) {
141
- this.initOrgAreaList();
142
- } else {
143
- this.clearAll();
144
- }
145
- },
146
-
147
- deep: true,
148
- immediate: true
149
- }
150
- },
151
- created: function created() {
152
- this.initOrgAreaList();
153
- },
154
-
155
- methods: {
156
- changefilterText: function changefilterText(val) {
157
- this.$refs.treeRef.filter(val);
158
- },
159
-
160
-
161
- // 过滤节点
162
- filterNode: function filterNode(value, data) {
163
- if (!value) return true;
164
- return data.label.indexOf(value) !== -1;
165
- },
166
-
167
- // 移除Tag
168
- removeTag: function removeTag(v) {
169
-
170
- // this.selectTreeValue.splice(index, 1)
171
- var setList = this.$refs.treeRef.getCheckedNodes();
172
- // this.selectTreeValue = setList
173
- var index = setList.findIndex(function (node) {
174
- return node.label == v;
175
- });
176
- setList.splice(index, 1);
177
- this.selectTreeValue.splice(index, 1);
178
-
179
- console.log(this.selectTreeValue);
180
-
181
- this.$refs.treeRef.setCheckedNodes(setList);
182
- this.$refs.treeRef.setCheckedKeys(this.selectTreeValue, true);
183
-
184
- var checkCodes = [];
185
-
186
- checkCodes = this.selectTreeValue.length > 0 ? this.selectTreeValue : [];
187
- // 选中的值传给父组件 根据id 查询列表数据
188
- // checkCodes = checkCodes.map(node => node.id)
189
-
190
- var selectIds = checkCodes ? checkCodes.toString() : [];
191
- this.$emit('input', selectIds);
192
- },
193
-
194
- // 全部删除
195
- clearAll: function clearAll() {
196
- var _this = this;
197
-
198
- this.selectTreeValue = [];
199
- this.selectTreeArr = [];
200
- this.$nextTick(function () {
201
- _this.$refs.treeRef.setCheckedNodes([]);
202
- });
203
- },
204
- handleCheckChange: function handleCheckChange() {
205
- var _this2 = this;
206
-
207
- // getCheckedNodes方法接收两个 boolean 类型的参数: 1. 是否只是叶子节点,默认值为 false 2. 是否包含半选节点,默认值为 false
208
- var dataList = this.$refs.treeRef.getCheckedNodes();
209
- this.selectTreeValue = [];
210
- this.selectTreeArr = [];
211
- var checkCodes = [];
212
-
213
- dataList.forEach(function (item) {
214
-
215
- checkCodes.push(item.id);
216
- _this2.selectTreeValue.push(item.id);
217
- _this2.selectTreeArr.push(item.label);
218
- });
219
- var selectIds = checkCodes.toString();
220
- console.log(selectIds);
221
-
222
- this.$emit('input', selectIds);
223
- },
224
- createTree: function createTree(arr, parentId, type) {
225
- var _this3 = this;
226
-
227
- var tree = [];
228
- arr.forEach(function (e) {
229
- var item = null;
230
-
231
- if (type == '1' && !e.sjflId) {
232
- // 根节点:parentId为空或者parentId不存在的
233
- item = e;
234
- } else if (type == '2' && parentId == e.sjflId) {
235
- item = e;
236
- }
237
-
238
- if (item != null) {
239
- var node = {};
240
- var _item = item,
241
- id = _item.id,
242
- flmc = _item.flmc,
243
- flbh = _item.flbh,
244
- sjflId = _item.sjflId,
245
- flpx = _item.flpx,
246
- flqp = _item.flqp,
247
- fljp = _item.fljp,
248
- fllx = _item.fllx;
249
-
250
- node.editData = {
251
- id: id,
252
- flmc: flmc,
253
- flbh: flbh,
254
- sjflId: sjflId,
255
- flpx: flpx,
256
- flqp: flqp,
257
- fljp: fljp,
258
- fllx: fllx
259
- };
260
- node.title = item.flmc;
261
- node.id = item.id;
262
- node.value = item.id;
263
-
264
- node.label = item.flmc;
265
- node.flbh = item.flbh;
266
- node.parentId = item.sjflId;
267
- node.children = _this3.createTree(arr, item.id, '2');
268
- if (JSON.stringify(node.children) != '[]') {
269
- node.expand = true;
270
- }
271
- // 渲染被选中的状态
272
- if (_this3.curNodeId && item.id == _this3.curNodeId) {
273
- node.selected = true;
274
- }
275
- tree.push(node);
276
- }
277
- });
278
- return tree;
279
- },
280
- initOrgAreaList: function initOrgAreaList() {
281
- var _this4 = this;
282
-
283
- var params = { fllx: this.ajlx };
284
- this.$store.dispatch('authGetRequest', { url: '/icp-admin/admin/ay/fllxAndAy', params: params }).then(function (resp) {
285
- if (resp.success) {
286
- var Id = resp.data.filter(function (item) {
287
- return !item.sjflId;
288
- });
289
- var treeList = resp.data.filter(function (item) {
290
- return item.sjflId;
291
- });
292
- treeList.forEach(function (item) {
293
- if (item.sjflId === Id[0].id) {
294
- item.sjflId = '';
295
- }
296
- });
297
- _this4.originTreeData = treeList;
298
- _this4.ayDataList = _this4.createTree(treeList, '', '1');
299
- }
300
- });
301
- }
302
- }
303
-
304
- });
305
-
306
- /***/ }),
307
- /* 1 */
308
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
309
-
310
- "use strict";
311
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sd_ay_tree_select_vue__ = __webpack_require__(2);
313
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sdAyTreeSelect", function() { return __WEBPACK_IMPORTED_MODULE_0__sd_ay_tree_select_vue__["a"]; });
314
-
315
-
316
- var Plugin = {
317
- install: function install(Vue) {
318
- Vue.component('sd-ay-tree-select', __WEBPACK_IMPORTED_MODULE_0__sd_ay_tree_select_vue__["a" /* default */]);
319
- }
320
- };
321
-
322
- /* harmony default export */ __webpack_exports__["default"] = (Plugin);
323
-
324
- /***/ }),
325
- /* 2 */
326
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
327
-
328
- "use strict";
329
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_sd_ay_tree_select_vue__ = __webpack_require__(0);
330
- /* unused harmony namespace reexport */
331
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7da9bdbc_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_sd_ay_tree_select_vue__ = __webpack_require__(9);
332
- function injectStyle (ssrContext) {
333
- __webpack_require__(3)
334
- }
335
- var normalizeComponent = __webpack_require__(8)
336
- /* script */
337
-
338
-
339
- /* template */
340
-
341
- /* template functional */
342
- var __vue_template_functional__ = false
343
- /* styles */
344
- var __vue_styles__ = injectStyle
345
- /* scopeId */
346
- var __vue_scopeId__ = "data-v-7da9bdbc"
347
- /* moduleIdentifier (server only) */
348
- var __vue_module_identifier__ = null
349
- var Component = normalizeComponent(
350
- __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_sd_ay_tree_select_vue__["a" /* default */],
351
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7da9bdbc_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_sd_ay_tree_select_vue__["a" /* default */],
352
- __vue_template_functional__,
353
- __vue_styles__,
354
- __vue_scopeId__,
355
- __vue_module_identifier__
356
- )
357
-
358
- /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
359
-
360
-
361
- /***/ }),
362
- /* 3 */
363
- /***/ (function(module, exports, __webpack_require__) {
364
-
365
- // style-loader: Adds some css to the DOM by adding a <style> tag
366
-
367
- // load the styles
368
- var content = __webpack_require__(4);
369
- if(typeof content === 'string') content = [[module.i, content, '']];
370
- if(content.locals) module.exports = content.locals;
371
- // add the styles to the DOM
372
- var update = __webpack_require__(6)("4ce68fb8", content, true);
373
-
374
- /***/ }),
375
- /* 4 */
376
- /***/ (function(module, exports, __webpack_require__) {
377
-
378
- exports = module.exports = __webpack_require__(5)(false);
379
- // imports
380
-
381
-
382
- // module
383
- exports.push([module.i, ".setstyle[data-v-7da9bdbc]{height:auto;padding:0!important}.setstyle .setinput[data-v-7da9bdbc]{padding:6px}", ""]);
384
-
385
- // exports
386
-
387
-
388
- /***/ }),
389
- /* 5 */
390
- /***/ (function(module, exports) {
391
-
392
- /*
393
- MIT License http://www.opensource.org/licenses/mit-license.php
394
- Author Tobias Koppers @sokra
395
- */
396
- // css base code, injected by the css-loader
397
- module.exports = function(useSourceMap) {
398
- var list = [];
399
-
400
- // return the list of modules as css string
401
- list.toString = function toString() {
402
- return this.map(function (item) {
403
- var content = cssWithMappingToString(item, useSourceMap);
404
- if(item[2]) {
405
- return "@media " + item[2] + "{" + content + "}";
406
- } else {
407
- return content;
408
- }
409
- }).join("");
410
- };
411
-
412
- // import a list of modules into the list
413
- list.i = function(modules, mediaQuery) {
414
- if(typeof modules === "string")
415
- modules = [[null, modules, ""]];
416
- var alreadyImportedModules = {};
417
- for(var i = 0; i < this.length; i++) {
418
- var id = this[i][0];
419
- if(typeof id === "number")
420
- alreadyImportedModules[id] = true;
421
- }
422
- for(i = 0; i < modules.length; i++) {
423
- var item = modules[i];
424
- // skip already imported module
425
- // this implementation is not 100% perfect for weird media query combinations
426
- // when a module is imported multiple times with different media queries.
427
- // I hope this will never occur (Hey this way we have smaller bundles)
428
- if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
429
- if(mediaQuery && !item[2]) {
430
- item[2] = mediaQuery;
431
- } else if(mediaQuery) {
432
- item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
433
- }
434
- list.push(item);
435
- }
436
- }
437
- };
438
- return list;
439
- };
440
-
441
- function cssWithMappingToString(item, useSourceMap) {
442
- var content = item[1] || '';
443
- var cssMapping = item[3];
444
- if (!cssMapping) {
445
- return content;
446
- }
447
-
448
- if (useSourceMap && typeof btoa === 'function') {
449
- var sourceMapping = toComment(cssMapping);
450
- var sourceURLs = cssMapping.sources.map(function (source) {
451
- return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
452
- });
453
-
454
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
455
- }
456
-
457
- return [content].join('\n');
458
- }
459
-
460
- // Adapted from convert-source-map (MIT)
461
- function toComment(sourceMap) {
462
- // eslint-disable-next-line no-undef
463
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
464
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
465
-
466
- return '/*# ' + data + ' */';
467
- }
468
-
469
-
470
- /***/ }),
471
- /* 6 */
472
- /***/ (function(module, exports, __webpack_require__) {
473
-
474
- /*
475
- MIT License http://www.opensource.org/licenses/mit-license.php
476
- Author Tobias Koppers @sokra
477
- Modified by Evan You @yyx990803
478
- */
479
-
480
- var hasDocument = typeof document !== 'undefined'
481
-
482
- if (typeof DEBUG !== 'undefined' && DEBUG) {
483
- if (!hasDocument) {
484
- throw new Error(
485
- 'vue-style-loader cannot be used in a non-browser environment. ' +
486
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
487
- ) }
488
- }
489
-
490
- var listToStyles = __webpack_require__(7)
491
-
492
- /*
493
- type StyleObject = {
494
- id: number;
495
- parts: Array<StyleObjectPart>
496
- }
497
-
498
- type StyleObjectPart = {
499
- css: string;
500
- media: string;
501
- sourceMap: ?string
502
- }
503
- */
504
-
505
- var stylesInDom = {/*
506
- [id: number]: {
507
- id: number,
508
- refs: number,
509
- parts: Array<(obj?: StyleObjectPart) => void>
510
- }
511
- */}
512
-
513
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
514
- var singletonElement = null
515
- var singletonCounter = 0
516
- var isProduction = false
517
- var noop = function () {}
518
-
519
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
520
- // tags it will allow on a page
521
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
522
-
523
- module.exports = function (parentId, list, _isProduction) {
524
- isProduction = _isProduction
525
-
526
- var styles = listToStyles(parentId, list)
527
- addStylesToDom(styles)
528
-
529
- return function update (newList) {
530
- var mayRemove = []
531
- for (var i = 0; i < styles.length; i++) {
532
- var item = styles[i]
533
- var domStyle = stylesInDom[item.id]
534
- domStyle.refs--
535
- mayRemove.push(domStyle)
536
- }
537
- if (newList) {
538
- styles = listToStyles(parentId, newList)
539
- addStylesToDom(styles)
540
- } else {
541
- styles = []
542
- }
543
- for (var i = 0; i < mayRemove.length; i++) {
544
- var domStyle = mayRemove[i]
545
- if (domStyle.refs === 0) {
546
- for (var j = 0; j < domStyle.parts.length; j++) {
547
- domStyle.parts[j]()
548
- }
549
- delete stylesInDom[domStyle.id]
550
- }
551
- }
552
- }
553
- }
554
-
555
- function addStylesToDom (styles /* Array<StyleObject> */) {
556
- for (var i = 0; i < styles.length; i++) {
557
- var item = styles[i]
558
- var domStyle = stylesInDom[item.id]
559
- if (domStyle) {
560
- domStyle.refs++
561
- for (var j = 0; j < domStyle.parts.length; j++) {
562
- domStyle.parts[j](item.parts[j])
563
- }
564
- for (; j < item.parts.length; j++) {
565
- domStyle.parts.push(addStyle(item.parts[j]))
566
- }
567
- if (domStyle.parts.length > item.parts.length) {
568
- domStyle.parts.length = item.parts.length
569
- }
570
- } else {
571
- var parts = []
572
- for (var j = 0; j < item.parts.length; j++) {
573
- parts.push(addStyle(item.parts[j]))
574
- }
575
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
576
- }
577
- }
578
- }
579
-
580
- function createStyleElement () {
581
- var styleElement = document.createElement('style')
582
- styleElement.type = 'text/css'
583
- head.appendChild(styleElement)
584
- return styleElement
585
- }
586
-
587
- function addStyle (obj /* StyleObjectPart */) {
588
- var update, remove
589
- var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
590
-
591
- if (styleElement) {
592
- if (isProduction) {
593
- // has SSR styles and in production mode.
594
- // simply do nothing.
595
- return noop
596
- } else {
597
- // has SSR styles but in dev mode.
598
- // for some reason Chrome can't handle source map in server-rendered
599
- // style tags - source maps in <style> only works if the style tag is
600
- // created and inserted dynamically. So we remove the server rendered
601
- // styles and inject new ones.
602
- styleElement.parentNode.removeChild(styleElement)
603
- }
604
- }
605
-
606
- if (isOldIE) {
607
- // use singleton mode for IE9.
608
- var styleIndex = singletonCounter++
609
- styleElement = singletonElement || (singletonElement = createStyleElement())
610
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
611
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
612
- } else {
613
- // use multi-style-tag mode in all other cases
614
- styleElement = createStyleElement()
615
- update = applyToTag.bind(null, styleElement)
616
- remove = function () {
617
- styleElement.parentNode.removeChild(styleElement)
618
- }
619
- }
620
-
621
- update(obj)
622
-
623
- return function updateStyle (newObj /* StyleObjectPart */) {
624
- if (newObj) {
625
- if (newObj.css === obj.css &&
626
- newObj.media === obj.media &&
627
- newObj.sourceMap === obj.sourceMap) {
628
- return
629
- }
630
- update(obj = newObj)
631
- } else {
632
- remove()
633
- }
634
- }
635
- }
636
-
637
- var replaceText = (function () {
638
- var textStore = []
639
-
640
- return function (index, replacement) {
641
- textStore[index] = replacement
642
- return textStore.filter(Boolean).join('\n')
643
- }
644
- })()
645
-
646
- function applyToSingletonTag (styleElement, index, remove, obj) {
647
- var css = remove ? '' : obj.css
648
-
649
- if (styleElement.styleSheet) {
650
- styleElement.styleSheet.cssText = replaceText(index, css)
651
- } else {
652
- var cssNode = document.createTextNode(css)
653
- var childNodes = styleElement.childNodes
654
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
655
- if (childNodes.length) {
656
- styleElement.insertBefore(cssNode, childNodes[index])
657
- } else {
658
- styleElement.appendChild(cssNode)
659
- }
660
- }
661
- }
662
-
663
- function applyToTag (styleElement, obj) {
664
- var css = obj.css
665
- var media = obj.media
666
- var sourceMap = obj.sourceMap
667
-
668
- if (media) {
669
- styleElement.setAttribute('media', media)
670
- }
671
-
672
- if (sourceMap) {
673
- // https://developer.chrome.com/devtools/docs/javascript-debugging
674
- // this makes source maps inside style tags work properly in Chrome
675
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
676
- // http://stackoverflow.com/a/26603875
677
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
678
- }
679
-
680
- if (styleElement.styleSheet) {
681
- styleElement.styleSheet.cssText = css
682
- } else {
683
- while (styleElement.firstChild) {
684
- styleElement.removeChild(styleElement.firstChild)
685
- }
686
- styleElement.appendChild(document.createTextNode(css))
687
- }
688
- }
689
-
690
-
691
- /***/ }),
692
- /* 7 */
693
- /***/ (function(module, exports) {
694
-
695
- /**
696
- * Translates the list format produced by css-loader into something
697
- * easier to manipulate.
698
- */
699
- module.exports = function listToStyles (parentId, list) {
700
- var styles = []
701
- var newStyles = {}
702
- for (var i = 0; i < list.length; i++) {
703
- var item = list[i]
704
- var id = item[0]
705
- var css = item[1]
706
- var media = item[2]
707
- var sourceMap = item[3]
708
- var part = {
709
- id: parentId + ':' + i,
710
- css: css,
711
- media: media,
712
- sourceMap: sourceMap
713
- }
714
- if (!newStyles[id]) {
715
- styles.push(newStyles[id] = { id: id, parts: [part] })
716
- } else {
717
- newStyles[id].parts.push(part)
718
- }
719
- }
720
- return styles
721
- }
722
-
723
-
724
- /***/ }),
725
- /* 8 */
726
- /***/ (function(module, exports) {
727
-
728
- /* globals __VUE_SSR_CONTEXT__ */
729
-
730
- // IMPORTANT: Do NOT use ES2015 features in this file.
731
- // This module is a runtime utility for cleaner component module output and will
732
- // be included in the final webpack user bundle.
733
-
734
- module.exports = function normalizeComponent (
735
- rawScriptExports,
736
- compiledTemplate,
737
- functionalTemplate,
738
- injectStyles,
739
- scopeId,
740
- moduleIdentifier /* server only */
741
- ) {
742
- var esModule
743
- var scriptExports = rawScriptExports = rawScriptExports || {}
744
-
745
- // ES6 modules interop
746
- var type = typeof rawScriptExports.default
747
- if (type === 'object' || type === 'function') {
748
- esModule = rawScriptExports
749
- scriptExports = rawScriptExports.default
750
- }
751
-
752
- // Vue.extend constructor export interop
753
- var options = typeof scriptExports === 'function'
754
- ? scriptExports.options
755
- : scriptExports
756
-
757
- // render functions
758
- if (compiledTemplate) {
759
- options.render = compiledTemplate.render
760
- options.staticRenderFns = compiledTemplate.staticRenderFns
761
- options._compiled = true
762
- }
763
-
764
- // functional template
765
- if (functionalTemplate) {
766
- options.functional = true
767
- }
768
-
769
- // scopedId
770
- if (scopeId) {
771
- options._scopeId = scopeId
772
- }
773
-
774
- var hook
775
- if (moduleIdentifier) { // server build
776
- hook = function (context) {
777
- // 2.3 injection
778
- context =
779
- context || // cached call
780
- (this.$vnode && this.$vnode.ssrContext) || // stateful
781
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
782
- // 2.2 with runInNewContext: true
783
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
784
- context = __VUE_SSR_CONTEXT__
785
- }
786
- // inject component styles
787
- if (injectStyles) {
788
- injectStyles.call(this, context)
789
- }
790
- // register component module identifier for async chunk inferrence
791
- if (context && context._registeredComponents) {
792
- context._registeredComponents.add(moduleIdentifier)
793
- }
794
- }
795
- // used by ssr in case component is cached and beforeCreate
796
- // never gets called
797
- options._ssrRegister = hook
798
- } else if (injectStyles) {
799
- hook = injectStyles
800
- }
801
-
802
- if (hook) {
803
- var functional = options.functional
804
- var existing = functional
805
- ? options.render
806
- : options.beforeCreate
807
-
808
- if (!functional) {
809
- // inject component registration as beforeCreate hook
810
- options.beforeCreate = existing
811
- ? [].concat(existing, hook)
812
- : [hook]
813
- } else {
814
- // for template-only hot-reload because in that case the render fn doesn't
815
- // go through the normalizer
816
- options._injectStyles = hook
817
- // register for functioal component in vue file
818
- options.render = function renderWithStyleInjection (h, context) {
819
- hook.call(context)
820
- return existing(h, context)
821
- }
822
- }
823
- }
824
-
825
- return {
826
- esModule: esModule,
827
- exports: scriptExports,
828
- options: options
829
- }
830
- }
831
-
832
-
833
- /***/ }),
834
- /* 9 */
835
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
836
-
837
- "use strict";
838
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('el-select',{staticStyle:{"width":"100%"},attrs:{"size":"small","placeholder":"请选择","popper-append-to-body":false,"multiple":"","filterable":"","filter-method":_vm.changefilterText,"clearable":"","collapse-tags":_vm.selectTreeArr.length > 2 ? true : false,"collapse-tags-tooltip":true},on:{"remove-tag":_vm.removeTag,"clear":_vm.clearAll},model:{value:(_vm.selectTreeArr),callback:function ($$v) {_vm.selectTreeArr=$$v},expression:"selectTreeArr"}},[_c('el-option',{staticClass:"setstyle",attrs:{"value":_vm.selectTreeValue,"disabled":""}},[_c('el-tree',{ref:"treeRef",attrs:{"data":_vm.ayDataList,"show-checkbox":"","node-key":"id","highlight-current":"","filter-node-method":_vm.filterNode,"props":_vm.defaultProps},on:{"check-change":_vm.handleCheckChange}})],1)],1)],1)}
839
- var staticRenderFns = []
840
- var esExports = { render: render, staticRenderFns: staticRenderFns }
841
- /* harmony default export */ __webpack_exports__["a"] = (esExports);
842
-
843
- /***/ })
844
- /******/ ]);
845
- });
846
- //# sourceMappingURL=sd-ay-tree-select.js.map