eoss-ui 0.4.70 → 0.4.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/eoss-ui.common.js +30 -16
- package/lib/index.js +1 -1
- package/lib/tree-group.js +24 -10
- package/package.json +1 -1
- package/packages/tree-group/src/main.vue +26 -8
- package/src/index.js +1 -1
package/lib/eoss-ui.common.js
CHANGED
|
@@ -61825,8 +61825,8 @@ tree_src_main.install = function (Vue) {
|
|
|
61825
61825
|
};
|
|
61826
61826
|
|
|
61827
61827
|
/* harmony default export */ var packages_tree = (tree_src_main);
|
|
61828
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=
|
|
61829
|
-
var
|
|
61828
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=2522b075&
|
|
61829
|
+
var mainvue_type_template_id_2522b075_render = function () {
|
|
61830
61830
|
var _vm = this
|
|
61831
61831
|
var _h = _vm.$createElement
|
|
61832
61832
|
var _c = _vm._self._c || _h
|
|
@@ -61941,7 +61941,8 @@ var mainvue_type_template_id_8d1a3b86_render = function () {
|
|
|
61941
61941
|
on: {
|
|
61942
61942
|
"node-click": _vm.handleNodeClick,
|
|
61943
61943
|
"check-change": _vm.handleCheckChange,
|
|
61944
|
-
|
|
61944
|
+
results: _vm.handleResults,
|
|
61945
|
+
"sub-results": _vm.handleSubResults,
|
|
61945
61946
|
},
|
|
61946
61947
|
},
|
|
61947
61948
|
"es-tree",
|
|
@@ -62133,11 +62134,11 @@ var mainvue_type_template_id_8d1a3b86_render = function () {
|
|
|
62133
62134
|
2
|
|
62134
62135
|
)
|
|
62135
62136
|
}
|
|
62136
|
-
var
|
|
62137
|
-
|
|
62137
|
+
var mainvue_type_template_id_2522b075_staticRenderFns = []
|
|
62138
|
+
mainvue_type_template_id_2522b075_render._withStripped = true
|
|
62138
62139
|
|
|
62139
62140
|
|
|
62140
|
-
// CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=
|
|
62141
|
+
// CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=2522b075&
|
|
62141
62142
|
|
|
62142
62143
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=script&lang=js&
|
|
62143
62144
|
//
|
|
@@ -62289,6 +62290,7 @@ mainvue_type_template_id_8d1a3b86_render._withStripped = true
|
|
|
62289
62290
|
//
|
|
62290
62291
|
//
|
|
62291
62292
|
//
|
|
62293
|
+
//
|
|
62292
62294
|
|
|
62293
62295
|
|
|
62294
62296
|
/* harmony default export */ var tree_group_src_mainvue_type_script_lang_js_ = ({
|
|
@@ -62333,7 +62335,11 @@ mainvue_type_template_id_8d1a3b86_render._withStripped = true
|
|
|
62333
62335
|
type: String,
|
|
62334
62336
|
default: '#/empty'
|
|
62335
62337
|
},
|
|
62336
|
-
zoom: false
|
|
62338
|
+
zoom: false,
|
|
62339
|
+
checkedsAsSearch: {
|
|
62340
|
+
type: Boolean,
|
|
62341
|
+
default: true
|
|
62342
|
+
}
|
|
62337
62343
|
},
|
|
62338
62344
|
computed: {
|
|
62339
62345
|
wujieName: function wujieName() {
|
|
@@ -62531,11 +62537,14 @@ mainvue_type_template_id_8d1a3b86_render._withStripped = true
|
|
|
62531
62537
|
},
|
|
62532
62538
|
handleCheckChange: function handleCheckChange() {
|
|
62533
62539
|
var ref = this.tabs && this.tabs.length ? this.tabs[Number(this.active)].ref ? this.tabs[Number(this.active)].ref : 'groupTree' + this.active : 'groupTree';
|
|
62534
|
-
|
|
62540
|
+
var checkeds = this.$refs[ref].getCheckedNodes();
|
|
62541
|
+
if (this.checkedsAsSearch) {
|
|
62542
|
+
this.checkeds = checkeds;
|
|
62543
|
+
}
|
|
62535
62544
|
if (this.onCheckChange) {
|
|
62536
|
-
this.onCheckChange.apply(this, [
|
|
62545
|
+
this.onCheckChange.apply(this, [checkeds].concat(Array.prototype.slice.call(arguments), [this]));
|
|
62537
62546
|
} else {
|
|
62538
|
-
this.$emit.apply(this, ['check-change',
|
|
62547
|
+
this.$emit.apply(this, ['check-change', checkeds].concat(Array.prototype.slice.call(arguments), [this]));
|
|
62539
62548
|
}
|
|
62540
62549
|
},
|
|
62541
62550
|
handleChange: function handleChange(res) {
|
|
@@ -62545,9 +62554,14 @@ mainvue_type_template_id_8d1a3b86_render._withStripped = true
|
|
|
62545
62554
|
this.checkeds = res;
|
|
62546
62555
|
this.$emit('enterprise-confirm', res);
|
|
62547
62556
|
},
|
|
62548
|
-
|
|
62549
|
-
this.
|
|
62550
|
-
|
|
62557
|
+
handleResults: function handleResults(res) {
|
|
62558
|
+
if (this.tree.showCheckbox && this.tree.checkedFirst && this.checkedsAsSearch || this.tree.currentFirst) {
|
|
62559
|
+
this.checkeds = res.children[0];
|
|
62560
|
+
}
|
|
62561
|
+
this.$emit('results', res);
|
|
62562
|
+
},
|
|
62563
|
+
handleSubResults: function handleSubResults(res) {
|
|
62564
|
+
this.$emit('sub-results', res);
|
|
62551
62565
|
},
|
|
62552
62566
|
setCurrentKey: function setCurrentKey(keys, leafOnly) {
|
|
62553
62567
|
var _this2 = this;
|
|
@@ -62575,8 +62589,8 @@ mainvue_type_template_id_8d1a3b86_render._withStripped = true
|
|
|
62575
62589
|
|
|
62576
62590
|
var tree_group_src_main_component = normalizeComponent(
|
|
62577
62591
|
packages_tree_group_src_mainvue_type_script_lang_js_,
|
|
62578
|
-
|
|
62579
|
-
|
|
62592
|
+
mainvue_type_template_id_2522b075_render,
|
|
62593
|
+
mainvue_type_template_id_2522b075_staticRenderFns,
|
|
62580
62594
|
false,
|
|
62581
62595
|
null,
|
|
62582
62596
|
null,
|
|
@@ -68758,7 +68772,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
68758
68772
|
}
|
|
68759
68773
|
|
|
68760
68774
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
68761
|
-
version: '0.4.
|
|
68775
|
+
version: '0.4.71',
|
|
68762
68776
|
install: install,
|
|
68763
68777
|
Button: packages_button,
|
|
68764
68778
|
ButtonGroup: button_group,
|