eoss-mobiles 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/lib/action-sheet.js +2 -2
  3. package/lib/button-group.js +2 -2
  4. package/lib/button.js +2 -2
  5. package/lib/calendar.js +2 -2
  6. package/lib/cascader.js +2 -2
  7. package/lib/cell.js +2 -2
  8. package/lib/checkbox.js +108 -108
  9. package/lib/circle.js +2 -2
  10. package/lib/count-down.js +2 -2
  11. package/lib/date.js +2 -2
  12. package/lib/empty.js +2 -2
  13. package/lib/eoss-mobile.common.js +507 -151
  14. package/lib/esign.js +522 -0
  15. package/lib/field.js +2 -2
  16. package/lib/flow.js +108 -108
  17. package/lib/form.js +2 -2
  18. package/lib/grid-item.js +2 -2
  19. package/lib/grid.js +2 -2
  20. package/lib/image-preview.js +2 -2
  21. package/lib/image.js +2 -2
  22. package/lib/index.js +1 -1
  23. package/lib/list.js +2 -2
  24. package/lib/loading.js +2 -2
  25. package/lib/nav-bar.js +2 -2
  26. package/lib/pagination.js +4 -4
  27. package/lib/picker.js +107 -107
  28. package/lib/popover.js +2 -2
  29. package/lib/popup.js +2 -2
  30. package/lib/radio.js +107 -107
  31. package/lib/rate.js +2 -2
  32. package/lib/search.js +2 -2
  33. package/lib/selector.js +297 -257
  34. package/lib/skeleton.js +2 -2
  35. package/lib/stepper.js +2 -2
  36. package/lib/switch.js +2 -2
  37. package/lib/tab.js +2 -2
  38. package/lib/table-column.js +106 -106
  39. package/lib/table.js +110 -110
  40. package/lib/tabs.js +2 -2
  41. package/lib/tag.js +2 -2
  42. package/lib/theme-chalk/esign.css +1 -0
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/tabs.css +1 -1
  45. package/lib/uploader.js +2 -2
  46. package/package.json +3 -2
  47. package/packages/esign/index.js +5 -0
  48. package/packages/esign/src/main.vue +144 -0
  49. package/packages/selector/src/selector-tree.vue +91 -75
  50. package/packages/selector/src/tree.vue +9 -4
  51. package/packages/theme-chalk/lib/esign.css +1 -0
  52. package/packages/theme-chalk/lib/index.css +1 -1
  53. package/packages/theme-chalk/lib/tabs.css +1 -1
  54. package/packages/theme-chalk/src/esign.scss +52 -0
  55. package/packages/theme-chalk/src/index.scss +1 -0
  56. package/packages/theme-chalk/src/tabs.scss +11 -1
  57. package/src/index.js +4 -1
package/lib/selector.js CHANGED
@@ -89,6 +89,110 @@ module.exports =
89
89
  /* 0 */
90
90
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
91
 
92
+ "use strict";
93
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
94
+ /* globals __VUE_SSR_CONTEXT__ */
95
+
96
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
97
+ // This module is a runtime utility for cleaner component module output and will
98
+ // be included in the final webpack user bundle.
99
+
100
+ function normalizeComponent(
101
+ scriptExports,
102
+ render,
103
+ staticRenderFns,
104
+ functionalTemplate,
105
+ injectStyles,
106
+ scopeId,
107
+ moduleIdentifier /* server only */,
108
+ shadowMode /* vue-cli only */
109
+ ) {
110
+ // Vue.extend constructor export interop
111
+ var options =
112
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
113
+
114
+ // render functions
115
+ if (render) {
116
+ options.render = render
117
+ options.staticRenderFns = staticRenderFns
118
+ options._compiled = true
119
+ }
120
+
121
+ // functional template
122
+ if (functionalTemplate) {
123
+ options.functional = true
124
+ }
125
+
126
+ // scopedId
127
+ if (scopeId) {
128
+ options._scopeId = 'data-v-' + scopeId
129
+ }
130
+
131
+ var hook
132
+ if (moduleIdentifier) {
133
+ // server build
134
+ hook = function (context) {
135
+ // 2.3 injection
136
+ context =
137
+ context || // cached call
138
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
139
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
140
+ // 2.2 with runInNewContext: true
141
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
142
+ context = __VUE_SSR_CONTEXT__
143
+ }
144
+ // inject component styles
145
+ if (injectStyles) {
146
+ injectStyles.call(this, context)
147
+ }
148
+ // register component module identifier for async chunk inferrence
149
+ if (context && context._registeredComponents) {
150
+ context._registeredComponents.add(moduleIdentifier)
151
+ }
152
+ }
153
+ // used by ssr in case component is cached and beforeCreate
154
+ // never gets called
155
+ options._ssrRegister = hook
156
+ } else if (injectStyles) {
157
+ hook = shadowMode
158
+ ? function () {
159
+ injectStyles.call(
160
+ this,
161
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
162
+ )
163
+ }
164
+ : injectStyles
165
+ }
166
+
167
+ if (hook) {
168
+ if (options.functional) {
169
+ // for template-only hot-reload because in that case the render fn doesn't
170
+ // go through the normalizer
171
+ options._injectStyles = hook
172
+ // register for functional component in vue file
173
+ var originalRender = options.render
174
+ options.render = function renderWithStyleInjection(h, context) {
175
+ hook.call(context)
176
+ return originalRender(h, context)
177
+ }
178
+ } else {
179
+ // inject component registration as beforeCreate hook
180
+ var existing = options.beforeCreate
181
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
182
+ }
183
+ }
184
+
185
+ return {
186
+ exports: scriptExports,
187
+ options: options
188
+ }
189
+ }
190
+
191
+
192
+ /***/ }),
193
+ /* 1 */
194
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
195
+
92
196
  "use strict";
93
197
  /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
94
198
  /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_eoss_design_color__WEBPACK_IMPORTED_MODULE_0__);
@@ -1404,110 +1508,6 @@ var exclAttribute = function exclAttribute(_ref4) {
1404
1508
  exportXls: exportXls
1405
1509
  });
1406
1510
 
1407
- /***/ }),
1408
- /* 1 */
1409
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1410
-
1411
- "use strict";
1412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
1413
- /* globals __VUE_SSR_CONTEXT__ */
1414
-
1415
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1416
- // This module is a runtime utility for cleaner component module output and will
1417
- // be included in the final webpack user bundle.
1418
-
1419
- function normalizeComponent(
1420
- scriptExports,
1421
- render,
1422
- staticRenderFns,
1423
- functionalTemplate,
1424
- injectStyles,
1425
- scopeId,
1426
- moduleIdentifier /* server only */,
1427
- shadowMode /* vue-cli only */
1428
- ) {
1429
- // Vue.extend constructor export interop
1430
- var options =
1431
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1432
-
1433
- // render functions
1434
- if (render) {
1435
- options.render = render
1436
- options.staticRenderFns = staticRenderFns
1437
- options._compiled = true
1438
- }
1439
-
1440
- // functional template
1441
- if (functionalTemplate) {
1442
- options.functional = true
1443
- }
1444
-
1445
- // scopedId
1446
- if (scopeId) {
1447
- options._scopeId = 'data-v-' + scopeId
1448
- }
1449
-
1450
- var hook
1451
- if (moduleIdentifier) {
1452
- // server build
1453
- hook = function (context) {
1454
- // 2.3 injection
1455
- context =
1456
- context || // cached call
1457
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1458
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1459
- // 2.2 with runInNewContext: true
1460
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1461
- context = __VUE_SSR_CONTEXT__
1462
- }
1463
- // inject component styles
1464
- if (injectStyles) {
1465
- injectStyles.call(this, context)
1466
- }
1467
- // register component module identifier for async chunk inferrence
1468
- if (context && context._registeredComponents) {
1469
- context._registeredComponents.add(moduleIdentifier)
1470
- }
1471
- }
1472
- // used by ssr in case component is cached and beforeCreate
1473
- // never gets called
1474
- options._ssrRegister = hook
1475
- } else if (injectStyles) {
1476
- hook = shadowMode
1477
- ? function () {
1478
- injectStyles.call(
1479
- this,
1480
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1481
- )
1482
- }
1483
- : injectStyles
1484
- }
1485
-
1486
- if (hook) {
1487
- if (options.functional) {
1488
- // for template-only hot-reload because in that case the render fn doesn't
1489
- // go through the normalizer
1490
- options._injectStyles = hook
1491
- // register for functional component in vue file
1492
- var originalRender = options.render
1493
- options.render = function renderWithStyleInjection(h, context) {
1494
- hook.call(context)
1495
- return originalRender(h, context)
1496
- }
1497
- } else {
1498
- // inject component registration as beforeCreate hook
1499
- var existing = options.beforeCreate
1500
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1501
- }
1502
- }
1503
-
1504
- return {
1505
- exports: scriptExports,
1506
- options: options
1507
- }
1508
- }
1509
-
1510
-
1511
1511
  /***/ }),
1512
1512
  /* 2 */
1513
1513
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1542,7 +1542,7 @@ function normalizeComponent(
1542
1542
  /* unused harmony export toTwoOfficesDispatch */
1543
1543
  /* unused harmony export twoOfficesDispatch */
1544
1544
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isCanStartSubFlow; });
1545
- /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1545
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1546
1546
 
1547
1547
  var activiti = '/bpm';
1548
1548
  var pending = '/bpm';
@@ -1634,7 +1634,7 @@ var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_)
1634
1634
  var external_eoss_mobile_vant_ = __webpack_require__(6);
1635
1635
 
1636
1636
  // EXTERNAL MODULE: ./src/utils/util.js
1637
- var util = __webpack_require__(0);
1637
+ var util = __webpack_require__(1);
1638
1638
 
1639
1639
  // EXTERNAL MODULE: external "qs"
1640
1640
  var external_qs_ = __webpack_require__(4);
@@ -2026,8 +2026,8 @@ render._withStripped = true
2026
2026
 
2027
2027
  // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=5a850d32&
2028
2028
 
2029
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=6e05ca06&
2030
- var selector_treevue_type_template_id_6e05ca06_render = function () {
2029
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=342bbb9c&
2030
+ var selector_treevue_type_template_id_342bbb9c_render = function () {
2031
2031
  var _vm = this
2032
2032
  var _h = _vm.$createElement
2033
2033
  var _c = _vm._self._c || _h
@@ -2103,36 +2103,42 @@ var selector_treevue_type_template_id_6e05ca06_render = function () {
2103
2103
  { staticClass: "em-tree-box" },
2104
2104
  [
2105
2105
  _vm.personnel && _vm.personnel.length > 0
2106
- ? _c("em-tree", {
2107
- attrs: {
2108
- model: _vm.personnel,
2109
- "value-key": _vm.valueKey,
2110
- "label-key": _vm.labelKey,
2111
- enterprise: _vm.isEnterprise,
2112
- department: _vm.isDepartment,
2113
- departmentLabelKey: _vm.departmentLabelKey,
2114
- departmentValueKey: _vm.departmentValueKey,
2115
- nodeKey: _vm.nodeKey,
2116
- isTreeIcon: _vm.isTreeIcon,
2117
- showTree: _vm.showTree,
2118
- oldIsSearch: _vm.oldIsSearch,
2119
- isSearch: _vm.isSearch,
2120
- isOtherUnit: _vm.isOtherUnit,
2121
- filid: _vm.filid,
2122
- },
2123
- on: { popen: _vm.open, checke: _vm.checked },
2124
- scopedSlots: _vm._u([
2106
+ ? _c(
2107
+ "em-tree",
2108
+ _vm._g(
2125
2109
  {
2126
- key: "tree-icon",
2127
- fn: function (ref) {
2128
- var value = ref.value
2129
- return _vm.$scopedSlots["tree-icon"]
2130
- ? [_vm._t("tree-icon", null, { value: value })]
2131
- : undefined
2110
+ attrs: {
2111
+ model: _vm.personnel,
2112
+ "value-key": _vm.valueKey,
2113
+ "label-key": _vm.labelKey,
2114
+ enterprise: _vm.isEnterprise,
2115
+ department: _vm.isDepartment,
2116
+ departmentLabelKey: _vm.departmentLabelKey,
2117
+ departmentValueKey: _vm.departmentValueKey,
2118
+ nodeKey: _vm.nodeKey,
2119
+ isTreeIcon: _vm.isTreeIcon,
2120
+ showTree: _vm.showTree,
2121
+ oldIsSearch: _vm.oldIsSearch,
2122
+ isSearch: _vm.isSearch,
2123
+ isOtherUnit: _vm.isOtherUnit,
2124
+ filid: _vm.filid,
2132
2125
  },
2126
+ on: { popen: _vm.open, checke: _vm.checked },
2127
+ scopedSlots: _vm._u([
2128
+ {
2129
+ key: "tree-icon",
2130
+ fn: function (ref) {
2131
+ var value = ref.value
2132
+ return _vm.$scopedSlots["tree-icon"]
2133
+ ? [_vm._t("tree-icon", null, { value: value })]
2134
+ : undefined
2135
+ },
2136
+ },
2137
+ ]),
2133
2138
  },
2134
- ]),
2135
- })
2139
+ _vm.$listeners
2140
+ )
2141
+ )
2136
2142
  : _vm._e(),
2137
2143
  ],
2138
2144
  1
@@ -2184,14 +2190,14 @@ var selector_treevue_type_template_id_6e05ca06_render = function () {
2184
2190
  1
2185
2191
  )
2186
2192
  }
2187
- var selector_treevue_type_template_id_6e05ca06_staticRenderFns = []
2188
- selector_treevue_type_template_id_6e05ca06_render._withStripped = true
2193
+ var selector_treevue_type_template_id_342bbb9c_staticRenderFns = []
2194
+ selector_treevue_type_template_id_342bbb9c_render._withStripped = true
2189
2195
 
2190
2196
 
2191
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=6e05ca06&
2197
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=342bbb9c&
2192
2198
 
2193
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=78c0d4dd&
2194
- var treevue_type_template_id_78c0d4dd_render = function () {
2199
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=bacc904e&
2200
+ var treevue_type_template_id_bacc904e_render = function () {
2195
2201
  var _vm = this
2196
2202
  var _h = _vm.$createElement
2197
2203
  var _c = _vm._self._c || _h
@@ -2225,24 +2231,39 @@ var treevue_type_template_id_78c0d4dd_render = function () {
2225
2231
  staticClass: "title",
2226
2232
  },
2227
2233
  [
2228
- _c(
2229
- "div",
2230
- { staticClass: "text" },
2231
- [
2232
- (item.parentshowid === "" ||
2233
- item.parentshowid === "root") &&
2234
- !_vm.isTreeIcon
2235
- ? _c("div", { staticClass: "label" })
2236
- : _vm._e(),
2237
- _vm._t("tree-icon", null, { value: item }),
2238
- _vm._v(
2239
- "\n " +
2240
- _vm._s(item[_vm.labelKey]) +
2241
- "\n "
2242
- ),
2243
- ],
2244
- 2
2245
- ),
2234
+ _c("div", { staticClass: "text" }, [
2235
+ (item.parentshowid === "" ||
2236
+ item.parentshowid === "root") &&
2237
+ !_vm.isTreeIcon
2238
+ ? _c("div", { staticClass: "label" })
2239
+ : _vm._e(),
2240
+ _vm.isTreeIcon
2241
+ ? _c(
2242
+ "div",
2243
+ {
2244
+ directives: [
2245
+ {
2246
+ name: "tap",
2247
+ rawName: "v-tap",
2248
+ value: {
2249
+ methods: _vm.handleClickIcon,
2250
+ obj: item,
2251
+ },
2252
+ expression:
2253
+ "{ methods: handleClickIcon, obj: item }",
2254
+ },
2255
+ ],
2256
+ },
2257
+ [_vm._t("tree-icon", null, { value: item })],
2258
+ 2
2259
+ )
2260
+ : _vm._e(),
2261
+ _vm._v(
2262
+ "\n " +
2263
+ _vm._s(item[_vm.labelKey]) +
2264
+ "\n "
2265
+ ),
2266
+ ]),
2246
2267
  !_vm.isTreeIcon
2247
2268
  ? _c("van-icon", {
2248
2269
  staticClass: "right",
@@ -2303,40 +2324,45 @@ var treevue_type_template_id_78c0d4dd_render = function () {
2303
2324
  ),
2304
2325
  item.children && item.children.length > 0
2305
2326
  ? [
2306
- _c("em-tree", {
2307
- attrs: {
2308
- model: item.children,
2309
- isOtherUnit: _vm.isOtherUnit,
2310
- filid: _vm.filid,
2311
- nodeKey: _vm.nodeKey,
2312
- oldIsSearch: _vm.oldIsSearch,
2313
- isSearch: _vm.isSearch,
2314
- "label-key": _vm.labelKey,
2315
- "value-key": _vm.valueKey,
2316
- showTree: _vm.showTree,
2317
- enterprise: _vm.enterprise,
2318
- isTreeIcon: _vm.isTreeIcon,
2319
- department: _vm.department,
2320
- departmentValueKey: _vm.departmentValueKey,
2321
- departmentLabelKey: _vm.departmentLabelKey,
2322
- },
2323
- on: { popen: _vm.opened, checke: _vm.checke },
2324
- scopedSlots: _vm._u([
2327
+ _c(
2328
+ "em-tree",
2329
+ _vm._g(
2325
2330
  {
2326
- key: "tree-icon",
2327
- fn: function (ref) {
2328
- var value = ref.value
2329
- return _vm.$scopedSlots["tree-icon"]
2330
- ? [
2331
- _vm._t("tree-icon", null, {
2332
- value: value,
2333
- }),
2334
- ]
2335
- : undefined
2331
+ attrs: {
2332
+ model: item.children,
2333
+ isOtherUnit: _vm.isOtherUnit,
2334
+ filid: _vm.filid,
2335
+ nodeKey: _vm.nodeKey,
2336
+ oldIsSearch: _vm.oldIsSearch,
2337
+ isSearch: _vm.isSearch,
2338
+ "label-key": _vm.labelKey,
2339
+ "value-key": _vm.valueKey,
2340
+ showTree: _vm.showTree,
2341
+ enterprise: _vm.enterprise,
2342
+ isTreeIcon: _vm.isTreeIcon,
2343
+ department: _vm.department,
2344
+ departmentValueKey: _vm.departmentValueKey,
2345
+ departmentLabelKey: _vm.departmentLabelKey,
2336
2346
  },
2347
+ scopedSlots: _vm._u([
2348
+ {
2349
+ key: "tree-icon",
2350
+ fn: function (ref) {
2351
+ var value = ref.value
2352
+ return _vm.$scopedSlots["tree-icon"]
2353
+ ? [
2354
+ _vm._t("tree-icon", null, {
2355
+ value: value,
2356
+ }),
2357
+ ]
2358
+ : undefined
2359
+ },
2360
+ },
2361
+ ]),
2337
2362
  },
2338
- ]),
2339
- }),
2363
+ _vm.$listeners
2364
+ )
2365
+ ),
2340
2366
  ]
2341
2367
  : _vm._e(),
2342
2368
  ],
@@ -2447,11 +2473,11 @@ var treevue_type_template_id_78c0d4dd_render = function () {
2447
2473
  0
2448
2474
  )
2449
2475
  }
2450
- var treevue_type_template_id_78c0d4dd_staticRenderFns = []
2451
- treevue_type_template_id_78c0d4dd_render._withStripped = true
2476
+ var treevue_type_template_id_bacc904e_staticRenderFns = []
2477
+ treevue_type_template_id_bacc904e_render._withStripped = true
2452
2478
 
2453
2479
 
2454
- // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=78c0d4dd&
2480
+ // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=bacc904e&
2455
2481
 
2456
2482
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=script&lang=js&
2457
2483
  //
@@ -2606,6 +2632,7 @@ treevue_type_template_id_78c0d4dd_render._withStripped = true
2606
2632
  //
2607
2633
  //
2608
2634
  //
2635
+ //
2609
2636
 
2610
2637
  /* harmony default export */ var treevue_type_script_lang_js_ = ({
2611
2638
  name: 'em-tree',
@@ -2692,9 +2719,13 @@ treevue_type_template_id_78c0d4dd_render._withStripped = true
2692
2719
  },
2693
2720
 
2694
2721
  methods: {
2695
- opened: function opened(res, isStart) {
2722
+ handleClickIcon: function handleClickIcon(res, isStart) {
2723
+ if (!this.$listeners['left-icon']) return;
2696
2724
  this.$emit('popen', res, res.isStart || isStart);
2697
2725
  },
2726
+ opened: function opened(res, isStart) {
2727
+ this.$emit('popen', res, res.isStart || isStart, true);
2728
+ },
2698
2729
  checke: function checke(res) {
2699
2730
  this.$emit('checke', res);
2700
2731
  },
@@ -2710,7 +2741,7 @@ treevue_type_template_id_78c0d4dd_render._withStripped = true
2710
2741
  // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=script&lang=js&
2711
2742
  /* harmony default export */ var src_treevue_type_script_lang_js_ = (treevue_type_script_lang_js_);
2712
2743
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2713
- var componentNormalizer = __webpack_require__(1);
2744
+ var componentNormalizer = __webpack_require__(0);
2714
2745
 
2715
2746
  // CONCATENATED MODULE: ./packages/selector/src/tree.vue
2716
2747
 
@@ -2722,8 +2753,8 @@ var componentNormalizer = __webpack_require__(1);
2722
2753
 
2723
2754
  var component = Object(componentNormalizer["a" /* default */])(
2724
2755
  src_treevue_type_script_lang_js_,
2725
- treevue_type_template_id_78c0d4dd_render,
2726
- treevue_type_template_id_78c0d4dd_staticRenderFns,
2756
+ treevue_type_template_id_bacc904e_render,
2757
+ treevue_type_template_id_bacc904e_staticRenderFns,
2727
2758
  false,
2728
2759
  null,
2729
2760
  null,
@@ -2736,7 +2767,7 @@ var component = Object(componentNormalizer["a" /* default */])(
2736
2767
  var api = __webpack_require__(2);
2737
2768
 
2738
2769
  // EXTERNAL MODULE: ./src/utils/util.js
2739
- var util = __webpack_require__(0);
2770
+ var util = __webpack_require__(1);
2740
2771
 
2741
2772
  // EXTERNAL MODULE: ./src/utils/http.js + 1 modules
2742
2773
  var http = __webpack_require__(3);
@@ -2823,6 +2854,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2823
2854
  //
2824
2855
  //
2825
2856
  //
2857
+ //
2858
+ //
2859
+ //
2860
+ //
2861
+ //
2826
2862
 
2827
2863
 
2828
2864
 
@@ -3454,66 +3490,35 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3454
3490
  _this7.$toast.clear();
3455
3491
  });
3456
3492
  },
3457
- open: function open(res, isStart) {
3493
+ getChiled: function getChiled(res, isStart, key) {
3458
3494
  var _this8 = this;
3459
3495
 
3460
3496
  var _that = this;
3461
- _that.oldIsSearch = _that.isSearch;
3462
- if (this.$listeners['node-click']) {
3463
- var data = _that.$listeners['node-click'](res.obj, !!res.obj.children);
3464
- if (!isStart) {
3465
- if (res.obj.open) {
3466
- this.$set(res.obj, 'open', false);
3467
- } else {
3468
- this.$set(res.obj, 'open', true);
3469
- }
3497
+ console.log(key, 'key');
3498
+ var data = _that.$listeners[key](res.obj, !!res.obj.children);
3499
+ if (!isStart) {
3500
+ if (res.obj.open) {
3501
+ this.$set(res.obj, 'open', false);
3502
+ } else {
3503
+ this.$set(res.obj, 'open', true);
3470
3504
  }
3471
- var newData = res.obj;
3472
- if (!newData.children && !isStart) {
3473
- if (this.nodeList && this.nodeList.length > 0) {
3474
- this.$toast.loading({
3475
- message: '加载中...',
3476
- forbidClick: true,
3477
- loadingType: 'spinner',
3478
- overlay: true,
3479
- duration: 0
3480
- });
3481
- // let data = _that.$listeners['node-click'](res.obj);
3482
- // if (!isStart) {
3483
- // if (res.obj.open) {
3484
- // this.$set(res.obj, 'open', false);
3485
- // } else {
3486
- // this.$set(res.obj, 'open', true);
3487
- // }
3488
- // }
3489
- if (!Array.isArray(data)) {
3490
- data.then(function (res) {
3491
- res.map(function (x) {
3492
- !x[_that.nodeKey] && _that.$set(x, 'nocheck', false);
3493
- });
3494
- _that.$set(newData, 'children', res);
3495
- if (_that.selectList && _that.selectList.length > 0) {
3496
- _that.selectList.filter(function (r) {
3497
- newData.children.find(function (i) {
3498
- if (i[_that.valueKey] === r[_that.valueKey]) {
3499
- _that.$set(i, 'checked', true);
3500
- }
3501
- });
3502
- });
3503
- } else {
3504
- newData.children.find(function (i) {
3505
- _that.$set(i, 'checked', false);
3506
- });
3507
- }
3508
- _this8.$toast.clear();
3509
- }).catch(function (err) {
3510
- _this8.$toast('数据返回错误');
3511
- });
3512
- } else {
3513
- data.map(function (x) {
3505
+ }
3506
+ var newData = res.obj;
3507
+ if (!newData.children && !isStart) {
3508
+ if (this.nodeList && this.nodeList.length > 0) {
3509
+ this.$toast.loading({
3510
+ message: '加载中...',
3511
+ forbidClick: true,
3512
+ loadingType: 'spinner',
3513
+ overlay: true,
3514
+ duration: 0
3515
+ });
3516
+ if (!Array.isArray(data)) {
3517
+ data.then(function (res) {
3518
+ res.map(function (x) {
3514
3519
  !x[_that.nodeKey] && _that.$set(x, 'nocheck', false);
3515
3520
  });
3516
- _that.$set(newData, 'children', data);
3521
+ _that.$set(newData, 'children', res);
3517
3522
  if (_that.selectList && _that.selectList.length > 0) {
3518
3523
  _that.selectList.filter(function (r) {
3519
3524
  newData.children.find(function (i) {
@@ -3527,14 +3532,49 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3527
3532
  _that.$set(i, 'checked', false);
3528
3533
  });
3529
3534
  }
3530
- this.$toast.clear();
3531
- }
3535
+ _this8.$toast.clear();
3536
+ }).catch(function (err) {
3537
+ _this8.$toast('数据返回错误');
3538
+ });
3532
3539
  } else {
3533
- if (!res.obj.children) {
3534
- this.getData(res.obj);
3540
+ data.map(function (x) {
3541
+ !x[_that.nodeKey] && _that.$set(x, 'nocheck', false);
3542
+ });
3543
+ _that.$set(newData, 'children', data);
3544
+ if (_that.selectList && _that.selectList.length > 0) {
3545
+ _that.selectList.filter(function (r) {
3546
+ newData.children.find(function (i) {
3547
+ if (i[_that.valueKey] === r[_that.valueKey]) {
3548
+ _that.$set(i, 'checked', true);
3549
+ }
3550
+ });
3551
+ });
3552
+ } else {
3553
+ newData.children.find(function (i) {
3554
+ _that.$set(i, 'checked', false);
3555
+ });
3535
3556
  }
3557
+ this.$toast.clear();
3558
+ }
3559
+ } else {
3560
+ if (!res.obj.children) {
3561
+ this.getData(res.obj);
3536
3562
  }
3537
3563
  }
3564
+ }
3565
+ },
3566
+ open: function open(res, isStart, isNode) {
3567
+ var _that = this;
3568
+ _that.oldIsSearch = _that.isSearch;
3569
+ // debugger
3570
+ if (this.$listeners['node-click'] && this.$listeners['left-icon']) {
3571
+ if (this.$listeners['left-icon'] && !isNode) {
3572
+ this.getChiled(res, isStart, 'left-icon');
3573
+ }
3574
+ isNode && _that.$listeners['node-click'](res.obj, !!res.obj.children);
3575
+ } else if (this.$listeners['node-click'] || this.$listeners['left-icon']) {
3576
+ isNode && this.$listeners['node-click'] && this.getChiled(res, isStart, 'node-click');
3577
+ this.$listeners['left-icon'] && !isNode && this.getChiled(res, isStart, 'left-icon');
3538
3578
  } else {
3539
3579
  if (!isStart) {
3540
3580
  if (res.obj.open) {
@@ -3593,8 +3633,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3593
3633
 
3594
3634
  var selector_tree_component = Object(componentNormalizer["a" /* default */])(
3595
3635
  src_selector_treevue_type_script_lang_js_,
3596
- selector_treevue_type_template_id_6e05ca06_render,
3597
- selector_treevue_type_template_id_6e05ca06_staticRenderFns,
3636
+ selector_treevue_type_template_id_342bbb9c_render,
3637
+ selector_treevue_type_template_id_342bbb9c_staticRenderFns,
3598
3638
  false,
3599
3639
  null,
3600
3640
  null,