@bytenew/bn-applet-ui 1.1.25 → 1.1.27
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,6 +1,30 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
+
/***/ 1178
|
|
5
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
13
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
15
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
16
|
+
// Imports
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
20
|
+
// Module
|
|
21
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnDrop.el-popover{padding:0!important;width:auto!important}`, ""]);
|
|
22
|
+
// Exports
|
|
23
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/***/ },
|
|
27
|
+
|
|
4
28
|
/***/ 9476
|
|
5
29
|
(module, __webpack_exports__, __webpack_require__) {
|
|
6
30
|
|
|
@@ -194,6 +218,33 @@ ___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-a5f24f64]{box-sizing:border-b
|
|
|
194
218
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
195
219
|
|
|
196
220
|
|
|
221
|
+
/***/ },
|
|
222
|
+
|
|
223
|
+
/***/ 9182
|
|
224
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
225
|
+
|
|
226
|
+
"use strict";
|
|
227
|
+
__webpack_require__.r(__webpack_exports__);
|
|
228
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
229
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
230
|
+
/* harmony export */ });
|
|
231
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
232
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
233
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
234
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
235
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_22_use_1_node_modules_vue_vue_loader_v15_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_2_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_3_font_iconfont_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4911);
|
|
236
|
+
// Imports
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
241
|
+
___CSS_LOADER_EXPORT___.i(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_22_use_1_node_modules_vue_vue_loader_v15_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_2_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_22_use_3_font_iconfont_css__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A);
|
|
242
|
+
// Module
|
|
243
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnDrop-select[data-v-13f9f2c9]{display:inline-block;position:relative;max-width:100%;min-width:110px;height:32px;line-height:32px;padding-right:28px;padding-left:12px;font-size:14px;color:rgba(0,0,0,.85);border:1px solid rgba(0,0,0,.15);border-radius:2px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bnDrop-select-clear[data-v-13f9f2c9]{background:#fff;display:none;position:absolute;font-size:14px;right:8px;color:#888;cursor:pointer}.bnDrop-select-down[data-v-13f9f2c9]{position:absolute;font-size:12px;right:8px;color:#888}.bnDrop-select-down[data-v-13f9f2c9] .el-loading-mask .el-loading-spinner{padding-top:6px}.bnDrop-select-down[data-v-13f9f2c9] .el-loading-mask .circular{width:17px;height:17px}.bnDrop-select.disabled[data-v-13f9f2c9]{color:rgba(0,0,0,.25);background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.15)!important;cursor:not-allowed}.bnDrop-select.disabled .bnDrop-select-clear[data-v-13f9f2c9]{display:none!important}.bnDrop-select[data-v-13f9f2c9]:hover{border-color:#1890ff}.bnDrop-select:hover .bnDrop-select-clear[data-v-13f9f2c9]{z-index:1;display:inline-block}.bnDrop-select.simple[data-v-13f9f2c9]{padding-left:0;color:#1890ff;border:1px solid transparent!important}.bnDrop-select.simple.disabled[data-v-13f9f2c9]{color:rgba(24,144,255,.35);background:none}.bnDrop-placeholder[data-v-13f9f2c9]{color:rgba(0,0,0,.25)}.bnDrop-body[data-v-13f9f2c9]{position:relative}.bnDrop-body-input[data-v-13f9f2c9]{padding:8px}.bnDrop-body-input[data-v-13f9f2c9] .el-input__inner{border-radius:0}.bnDrop-body-list[data-v-13f9f2c9]{position:relative;width:100%;background:#fff;min-height:68px;max-height:260px;overflow-y:auto}.bnDrop-body-list-item[data-v-13f9f2c9]{position:relative;height:36px;font-size:14px;padding:0 10px;color:rgba(0,0,0,.85);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bnDrop-body-list-item.disabled[data-v-13f9f2c9]{color:rgba(0,0,0,.25);background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.15)!important;cursor:not-allowed}.bnDrop-body-list-item[data-v-13f9f2c9]:hover{color:#2783f2;background-color:rgba(0,0,0,.04)}.bnDrop-body-list-empty[data-v-13f9f2c9]{height:48px;line-height:48px;text-align:center;font-size:12px;color:#999}.bnDrop-body-footer[data-v-13f9f2c9]{width:100%;overflow:hidden}.bnDrop-body-footer[data-v-13f9f2c9] .bnCheck{width:100%;max-width:100%}`, ""]);
|
|
244
|
+
// Exports
|
|
245
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
246
|
+
|
|
247
|
+
|
|
197
248
|
/***/ },
|
|
198
249
|
|
|
199
250
|
/***/ 3304
|
|
@@ -758,6 +809,22 @@ module.exports = function (i) {
|
|
|
758
809
|
|
|
759
810
|
/***/ },
|
|
760
811
|
|
|
812
|
+
/***/ 601
|
|
813
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
814
|
+
|
|
815
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
816
|
+
|
|
817
|
+
// load the styles
|
|
818
|
+
var content = __webpack_require__(1178);
|
|
819
|
+
if(content.__esModule) content = content.default;
|
|
820
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
821
|
+
if(content.locals) module.exports = content.locals;
|
|
822
|
+
// add the styles to the DOM
|
|
823
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
824
|
+
var update = add("57e69151", content, true, {"sourceMap":false,"shadowMode":false});
|
|
825
|
+
|
|
826
|
+
/***/ },
|
|
827
|
+
|
|
761
828
|
/***/ 8859
|
|
762
829
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
763
830
|
|
|
@@ -886,6 +953,22 @@ var update = add("3ff3fb27", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
886
953
|
|
|
887
954
|
/***/ },
|
|
888
955
|
|
|
956
|
+
/***/ 3376
|
|
957
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
958
|
+
|
|
959
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
960
|
+
|
|
961
|
+
// load the styles
|
|
962
|
+
var content = __webpack_require__(9182);
|
|
963
|
+
if(content.__esModule) content = content.default;
|
|
964
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
965
|
+
if(content.locals) module.exports = content.locals;
|
|
966
|
+
// add the styles to the DOM
|
|
967
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
968
|
+
var update = add("29a0c941", content, true, {"sourceMap":false,"shadowMode":false});
|
|
969
|
+
|
|
970
|
+
/***/ },
|
|
971
|
+
|
|
889
972
|
/***/ 7362
|
|
890
973
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
891
974
|
|
|
@@ -10384,6 +10467,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10384
10467
|
BnCheck: () => (/* reexport */ BnCheck),
|
|
10385
10468
|
BnDateRange: () => (/* reexport */ bnDateRange),
|
|
10386
10469
|
BnDialog: () => (/* reexport */ dialog),
|
|
10470
|
+
BnDrop: () => (/* reexport */ BnDrop),
|
|
10387
10471
|
BnDropdown: () => (/* reexport */ bnDropdown),
|
|
10388
10472
|
BnFiTaxAutoComplete: () => (/* reexport */ BnFiTaxAutoComplete),
|
|
10389
10473
|
BnFileView: () => (/* reexport */ BnFileView),
|
|
@@ -11721,173 +11805,198 @@ var dialog_component = normalizeComponent(
|
|
|
11721
11805
|
)
|
|
11722
11806
|
|
|
11723
11807
|
/* harmony default export */ const dialog = (dialog_component.exports);
|
|
11724
|
-
|
|
11725
|
-
var
|
|
11726
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
11727
|
-
var es_string_search = __webpack_require__(5746);
|
|
11728
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
var bnDropdownvue_type_template_id_a5f24f64_scoped_true_render = function render() {
|
|
11808
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDrop/BnDrop.vue?vue&type=template&id=13f9f2c9&scoped=true
|
|
11809
|
+
var BnDropvue_type_template_id_13f9f2c9_scoped_true_render = function render() {
|
|
11734
11810
|
var _vm = this,
|
|
11735
11811
|
_c = _vm._self._c;
|
|
11736
|
-
return _c('
|
|
11737
|
-
|
|
11738
|
-
}, [_c('el-popover', {
|
|
11812
|
+
return _c('el-popover', {
|
|
11813
|
+
ref: "popover",
|
|
11739
11814
|
attrs: {
|
|
11740
11815
|
"placement": _vm.placement,
|
|
11741
|
-
"popper-class": _vm.passBackOnly ? 'pass-back-only bn-dropdown-popper' : 'bn-dropdown-popper',
|
|
11742
11816
|
"trigger": "click",
|
|
11743
11817
|
"visible-arrow": false,
|
|
11818
|
+
"popper-class": "bnDrop",
|
|
11744
11819
|
"disabled": _vm.disabled
|
|
11745
11820
|
},
|
|
11746
11821
|
on: {
|
|
11747
|
-
"show": _vm.open
|
|
11748
|
-
"hide": _vm.close
|
|
11822
|
+
"show": _vm.open
|
|
11749
11823
|
},
|
|
11750
11824
|
scopedSlots: _vm._u([{
|
|
11751
11825
|
key: "reference",
|
|
11752
11826
|
fn: function fn() {
|
|
11753
|
-
return [_vm._t("
|
|
11754
|
-
|
|
11827
|
+
return [_vm._t("default", function () {
|
|
11828
|
+
return [_c('div', {
|
|
11829
|
+
staticClass: "bnDrop-select",
|
|
11830
|
+
"class": {
|
|
11831
|
+
'simple': !_vm.border,
|
|
11832
|
+
'disabled': _vm.disabled
|
|
11833
|
+
}
|
|
11834
|
+
}, [_vm.multiple && _vm.modelValue.length == 0 || !_vm.multiple && (!_vm.labelInValue && _vm.modelValue === '' || _vm.labelInValue && !_vm.modelValue[_vm.optionProps.value]) ? _c('span', {
|
|
11835
|
+
staticClass: "bnDrop-placeholder"
|
|
11836
|
+
}, [_vm._v(" " + _vm._s(_vm.placeholder) + " ")]) : _c('span', [!_vm.multiple ? _c('span', {
|
|
11837
|
+
attrs: {
|
|
11838
|
+
"title": _vm.singleTitle
|
|
11839
|
+
}
|
|
11840
|
+
}, [_vm._v(_vm._s(_vm.singleTitle))]) : _c('span', {
|
|
11841
|
+
attrs: {
|
|
11842
|
+
"title": _vm.multipleTitle
|
|
11843
|
+
}
|
|
11844
|
+
}, [_vm._v(" " + _vm._s(_vm.multipleTitle) + " ")]), _vm.clearable ? _c('span', {
|
|
11845
|
+
staticClass: "bnUIcon bnUIcon-clear bnDrop-select-clear",
|
|
11846
|
+
on: {
|
|
11847
|
+
"click": function click($event) {
|
|
11848
|
+
$event.stopPropagation();
|
|
11849
|
+
return _vm.clear.apply(null, arguments);
|
|
11850
|
+
}
|
|
11851
|
+
}
|
|
11852
|
+
}) : _vm._e()]), _c('span', {
|
|
11853
|
+
directives: [{
|
|
11854
|
+
name: "loading",
|
|
11855
|
+
rawName: "v-loading",
|
|
11856
|
+
value: _vm.loading,
|
|
11857
|
+
expression: "loading"
|
|
11858
|
+
}],
|
|
11859
|
+
staticClass: "bnUIcon bnUIcon-down bnDrop-select-down"
|
|
11860
|
+
})])];
|
|
11755
11861
|
})];
|
|
11756
11862
|
},
|
|
11757
11863
|
proxy: true
|
|
11758
11864
|
}], null, true),
|
|
11759
11865
|
model: {
|
|
11760
|
-
value: _vm.
|
|
11866
|
+
value: _vm.popoverVisible,
|
|
11761
11867
|
callback: function callback($$v) {
|
|
11762
|
-
_vm.
|
|
11868
|
+
_vm.popoverVisible = $$v;
|
|
11763
11869
|
},
|
|
11764
|
-
expression: "
|
|
11870
|
+
expression: "popoverVisible"
|
|
11765
11871
|
}
|
|
11766
11872
|
}, [_c('div', {
|
|
11767
|
-
staticClass: "
|
|
11768
|
-
style: {
|
|
11769
|
-
width: _vm.width
|
|
11770
|
-
}
|
|
11771
|
-
}, [_vm.copyOpts.length > 0 && _vm.canSearch ? _c('div', {
|
|
11772
|
-
staticClass: "bnDropdown-drop-input",
|
|
11873
|
+
staticClass: "bnDrop-body",
|
|
11773
11874
|
style: {
|
|
11774
|
-
width: _vm.width
|
|
11875
|
+
width: _vm.width + 'px'
|
|
11775
11876
|
}
|
|
11776
11877
|
}, [_c('el-input', {
|
|
11878
|
+
directives: [{
|
|
11879
|
+
name: "show",
|
|
11880
|
+
rawName: "v-show",
|
|
11881
|
+
value: _vm.pathUrl || _vm.options.length > 10,
|
|
11882
|
+
expression: "pathUrl || options.length > 10"
|
|
11883
|
+
}],
|
|
11777
11884
|
ref: "searchInput",
|
|
11778
|
-
staticClass: "
|
|
11885
|
+
staticClass: "bnDrop-body-input",
|
|
11779
11886
|
attrs: {
|
|
11780
|
-
"
|
|
11781
|
-
"placeholder": _vm.placeholder,
|
|
11782
|
-
"prefix-icon": "el-icon-search",
|
|
11887
|
+
"placeholder": "输入名称搜索",
|
|
11783
11888
|
"clearable": ""
|
|
11784
11889
|
},
|
|
11785
11890
|
on: {
|
|
11786
|
-
"input": _vm.
|
|
11891
|
+
"input": _vm.filterMethod
|
|
11787
11892
|
},
|
|
11788
11893
|
model: {
|
|
11789
|
-
value: _vm.
|
|
11894
|
+
value: _vm.queryValue,
|
|
11790
11895
|
callback: function callback($$v) {
|
|
11791
|
-
_vm.
|
|
11896
|
+
_vm.queryValue = $$v;
|
|
11792
11897
|
},
|
|
11793
|
-
expression: "
|
|
11898
|
+
expression: "queryValue"
|
|
11794
11899
|
}
|
|
11795
|
-
})
|
|
11900
|
+
}), _c('div', {
|
|
11796
11901
|
directives: [{
|
|
11797
|
-
name: "
|
|
11798
|
-
rawName: "v-
|
|
11799
|
-
value: _vm.
|
|
11800
|
-
expression: "
|
|
11902
|
+
name: "infinite-scroll",
|
|
11903
|
+
rawName: "v-infinite-scroll",
|
|
11904
|
+
value: _vm.scrollMore,
|
|
11905
|
+
expression: "scrollMore"
|
|
11801
11906
|
}],
|
|
11802
|
-
staticClass: "
|
|
11803
|
-
"class": "".concat(!_vm.canSearch ? 'noSearch' : '')
|
|
11804
|
-
}, [_vm._t("bnDropdownItem", function () {
|
|
11805
|
-
return _vm._l(_vm.options, function (item, index) {
|
|
11806
|
-
return _c('div', {
|
|
11807
|
-
key: index,
|
|
11808
|
-
staticClass: "bnDropdown-item",
|
|
11809
|
-
"class": {
|
|
11810
|
-
isCheck: _vm.checked(item) && !_vm.passBackOnly
|
|
11811
|
-
},
|
|
11812
|
-
on: {
|
|
11813
|
-
"click": function click($event) {
|
|
11814
|
-
return _vm.chooseItem(item);
|
|
11815
|
-
}
|
|
11816
|
-
}
|
|
11817
|
-
}, [_vm.checkMode === 'multiCheckBox' ? _c('el-checkbox', {
|
|
11818
|
-
staticClass: "bnDropdown-item-check",
|
|
11819
|
-
on: {
|
|
11820
|
-
"change": function change($event) {
|
|
11821
|
-
return _vm.selectItem(item);
|
|
11822
|
-
}
|
|
11823
|
-
},
|
|
11824
|
-
model: {
|
|
11825
|
-
value: _vm.optionCheckMap[item[_vm.optionProps.value]],
|
|
11826
|
-
callback: function callback($$v) {
|
|
11827
|
-
_vm.$set(_vm.optionCheckMap, item[_vm.optionProps.value], $$v);
|
|
11828
|
-
},
|
|
11829
|
-
expression: "optionCheckMap[item[optionProps.value]]"
|
|
11830
|
-
}
|
|
11831
|
-
}) : _vm._e(), _c('span', {
|
|
11832
|
-
staticClass: "bnDropdown-drop-title",
|
|
11833
|
-
attrs: {
|
|
11834
|
-
"title": item[_vm.optionProps.label]
|
|
11835
|
-
}
|
|
11836
|
-
}, [_vm._v(_vm._s(item[_vm.optionProps.label]))]), _vm.checkMode !== 'multiCheckBox' && _vm.checked(item) && !_vm.passBackOnly ? _c('span', {
|
|
11837
|
-
staticClass: "bnUIcon bnUIcon-chose"
|
|
11838
|
-
}) : _vm._e()], 1);
|
|
11839
|
-
});
|
|
11840
|
-
}, {
|
|
11841
|
-
"options": _vm.options
|
|
11842
|
-
}), _vm.options.length == 0 && !_vm.loading ? _c('div', {
|
|
11843
|
-
staticClass: "bnDropdown-drop-body-empty"
|
|
11844
|
-
}, [_vm._v(" " + _vm._s(_vm.nodataText) + " ")]) : _vm._e()], 2)]), _vm.checkMode === 'multiCheckBox' ? _c('div', {
|
|
11845
|
-
staticClass: "bn-dropdown-footer"
|
|
11846
|
-
}, [_c('el-checkbox', {
|
|
11907
|
+
staticClass: "bnDrop-body-list",
|
|
11847
11908
|
attrs: {
|
|
11848
|
-
"
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
"change": _vm.selectAll
|
|
11852
|
-
},
|
|
11853
|
-
model: {
|
|
11854
|
-
value: _vm.allChecked,
|
|
11855
|
-
callback: function callback($$v) {
|
|
11856
|
-
_vm.allChecked = $$v;
|
|
11857
|
-
},
|
|
11858
|
-
expression: "allChecked"
|
|
11909
|
+
"infinite-scroll-distance": "50",
|
|
11910
|
+
"infinite-scroll-immediate": "false",
|
|
11911
|
+
"infinite-scroll-delay": "400"
|
|
11859
11912
|
}
|
|
11860
|
-
}, [_vm.
|
|
11861
|
-
|
|
11913
|
+
}, [_vm._l(_vm.optionList, function (item, index) {
|
|
11914
|
+
return _c('div', {
|
|
11915
|
+
key: index,
|
|
11916
|
+
staticClass: "bnDrop-body-list-item w-flex-center w-flex-column-gap6",
|
|
11917
|
+
on: {
|
|
11918
|
+
"click": function click($event) {
|
|
11919
|
+
return _vm.chooseItem(item);
|
|
11920
|
+
}
|
|
11921
|
+
}
|
|
11922
|
+
}, [_vm.multiple ? _c('BnCheck', {
|
|
11923
|
+
key: item[_vm.optionProps.value],
|
|
11924
|
+
attrs: {
|
|
11925
|
+
"stop": "",
|
|
11926
|
+
"true-data": item[_vm.optionProps.value],
|
|
11927
|
+
"is-checked": _vm.isChecked
|
|
11928
|
+
},
|
|
11929
|
+
model: {
|
|
11930
|
+
value: _vm.val,
|
|
11931
|
+
callback: function callback($$v) {
|
|
11932
|
+
_vm.val = $$v;
|
|
11933
|
+
},
|
|
11934
|
+
expression: "val"
|
|
11935
|
+
}
|
|
11936
|
+
}) : _vm._e(), _c('span', {
|
|
11937
|
+
attrs: {
|
|
11938
|
+
"title": item[_vm.optionProps.label]
|
|
11939
|
+
}
|
|
11940
|
+
}, [_vm._v(_vm._s(item[_vm.optionProps.label]))])], 1);
|
|
11941
|
+
}), _vm.optionList.length == 0 && !_vm.loading ? _c('div', {
|
|
11942
|
+
staticClass: "bnDrop-body-list-empty"
|
|
11943
|
+
}, [_vm._v(" " + _vm._s(_vm.noDataText) + " ")]) : _vm._e(), _vm.loading ? _c('div', {
|
|
11944
|
+
staticClass: "bnDrop-body-list-empty"
|
|
11945
|
+
}, [_vm._v("加载中")]) : _vm._e()], 2), _vm.multiple && _vm.checkedAll ? _c('div', {
|
|
11946
|
+
staticClass: "bnDrop-body-footer w-flex-center w-padding-lr10 w-padding-tb8 w-border-solid-top"
|
|
11947
|
+
}, [_c('BnCheck', {
|
|
11862
11948
|
attrs: {
|
|
11863
|
-
"
|
|
11864
|
-
"
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
"click": _vm.onOkBtton
|
|
11949
|
+
"true-data": 999,
|
|
11950
|
+
"is-checked": _vm.isCheckedAll,
|
|
11951
|
+
"stop": "",
|
|
11952
|
+
"on-click": _vm.checkAll
|
|
11868
11953
|
}
|
|
11869
|
-
}, [
|
|
11954
|
+
}, [_c('div', {
|
|
11955
|
+
staticClass: "w-flex-center w-flex-column-gap4 w-text-over"
|
|
11956
|
+
}, [_c('span', {
|
|
11957
|
+
staticClass: "w-margin-left4"
|
|
11958
|
+
}, [_vm._v(_vm._s(_vm.val.length == 0 ? '全选' : "\u5DF2\u9009".concat(_vm.val.length - _vm.fixedFrontOptions.length, "\u9879")))]), _c('span', {}, [_vm._v("已加载" + _vm._s(_vm.optionList.length) + "/" + _vm._s(_vm.total) + "项")])])])], 1) : _vm._e(), _vm._t("dropdown-bottom")], 2)]);
|
|
11870
11959
|
};
|
|
11871
|
-
var
|
|
11872
|
-
|
|
11873
|
-
;// ./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
11960
|
+
var BnDropvue_type_template_id_13f9f2c9_scoped_true_staticRenderFns = [];
|
|
11874
11961
|
|
|
11875
11962
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.every.js
|
|
11876
11963
|
var es_array_every = __webpack_require__(8431);
|
|
11877
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.
|
|
11878
|
-
var
|
|
11964
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
11965
|
+
var es_array_find = __webpack_require__(113);
|
|
11966
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
11967
|
+
var es_array_iterator = __webpack_require__(3792);
|
|
11968
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
11969
|
+
var es_array_join = __webpack_require__(8598);
|
|
11970
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
11971
|
+
var es_array_slice = __webpack_require__(4782);
|
|
11879
11972
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js
|
|
11880
11973
|
var es_iterator_every = __webpack_require__(1148);
|
|
11974
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
|
|
11975
|
+
var es_iterator_find = __webpack_require__(116);
|
|
11881
11976
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
11882
11977
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
11883
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
11884
|
-
var
|
|
11885
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
11886
|
-
var
|
|
11978
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.js
|
|
11979
|
+
var es_set = __webpack_require__(1415);
|
|
11980
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
11981
|
+
var es_set_difference_v2 = __webpack_require__(7642);
|
|
11982
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
|
|
11983
|
+
var es_set_intersection_v2 = __webpack_require__(8004);
|
|
11984
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
|
|
11985
|
+
var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
|
|
11986
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
|
|
11987
|
+
var es_set_is_subset_of_v2 = __webpack_require__(5876);
|
|
11988
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
|
|
11989
|
+
var es_set_is_superset_of_v2 = __webpack_require__(2475);
|
|
11990
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
|
|
11991
|
+
var es_set_symmetric_difference_v2 = __webpack_require__(5024);
|
|
11992
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
|
|
11993
|
+
var es_set_union_v2 = __webpack_require__(1698);
|
|
11994
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
11995
|
+
var es_string_iterator = __webpack_require__(7764);
|
|
11887
11996
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
11888
11997
|
var web_dom_collections_for_each = __webpack_require__(3500);
|
|
11889
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.
|
|
11890
|
-
var
|
|
11998
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
11999
|
+
var web_dom_collections_iterator = __webpack_require__(2953);
|
|
11891
12000
|
;// ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
11892
12001
|
|
|
11893
12002
|
function ownKeys(e, r) {
|
|
@@ -11954,12 +12063,880 @@ function _toConsumableArray(r) {
|
|
|
11954
12063
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
11955
12064
|
}
|
|
11956
12065
|
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
12066
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDrop/BnDrop.vue?vue&type=script&lang=js
|
|
12067
|
+
|
|
12068
|
+
|
|
12069
|
+
|
|
12070
|
+
|
|
12071
|
+
|
|
12072
|
+
|
|
12073
|
+
|
|
12074
|
+
|
|
12075
|
+
|
|
12076
|
+
|
|
12077
|
+
|
|
12078
|
+
|
|
12079
|
+
|
|
12080
|
+
|
|
12081
|
+
|
|
12082
|
+
|
|
12083
|
+
|
|
12084
|
+
|
|
12085
|
+
|
|
12086
|
+
|
|
12087
|
+
|
|
12088
|
+
|
|
12089
|
+
|
|
12090
|
+
|
|
12091
|
+
|
|
12092
|
+
|
|
12093
|
+
|
|
12094
|
+
|
|
12095
|
+
|
|
12096
|
+
|
|
12097
|
+
|
|
12098
|
+
|
|
12099
|
+
|
|
12100
|
+
|
|
12101
|
+
|
|
12102
|
+
|
|
12103
|
+
|
|
12104
|
+
|
|
12105
|
+
|
|
12106
|
+
|
|
12107
|
+
|
|
12108
|
+
|
|
12109
|
+
|
|
12110
|
+
|
|
12111
|
+
|
|
12112
|
+
|
|
12113
|
+
|
|
12114
|
+
|
|
12115
|
+
|
|
12116
|
+
|
|
12117
|
+
|
|
12118
|
+
|
|
12119
|
+
|
|
12120
|
+
|
|
12121
|
+
|
|
12122
|
+
|
|
12123
|
+
|
|
12124
|
+
|
|
12125
|
+
|
|
12126
|
+
|
|
12127
|
+
|
|
12128
|
+
|
|
12129
|
+
|
|
12130
|
+
|
|
12131
|
+
|
|
12132
|
+
|
|
12133
|
+
|
|
12134
|
+
|
|
12135
|
+
|
|
12136
|
+
|
|
12137
|
+
|
|
12138
|
+
|
|
12139
|
+
|
|
12140
|
+
|
|
12141
|
+
|
|
12142
|
+
|
|
12143
|
+
|
|
12144
|
+
|
|
12145
|
+
|
|
12146
|
+
/* harmony default export */ const BnDropvue_type_script_lang_js = ({
|
|
12147
|
+
name: "BnDrop",
|
|
12148
|
+
props: {
|
|
12149
|
+
//最终选中的value
|
|
12150
|
+
modelValue: {
|
|
12151
|
+
type: [String, Array, Number, Object],
|
|
12152
|
+
"default": function _default() {
|
|
12153
|
+
return {};
|
|
12154
|
+
}
|
|
12155
|
+
},
|
|
12156
|
+
//选项列表
|
|
12157
|
+
options: {
|
|
12158
|
+
type: Array,
|
|
12159
|
+
"default": function _default() {
|
|
12160
|
+
return [];
|
|
12161
|
+
}
|
|
12162
|
+
},
|
|
12163
|
+
// 占位符
|
|
12164
|
+
placeholder: {
|
|
12165
|
+
type: String,
|
|
12166
|
+
"default": "请选择"
|
|
12167
|
+
},
|
|
12168
|
+
// option基础结构
|
|
12169
|
+
optionProps: {
|
|
12170
|
+
"default": function _default() {
|
|
12171
|
+
return {
|
|
12172
|
+
value: 'id',
|
|
12173
|
+
label: 'title'
|
|
12174
|
+
};
|
|
12175
|
+
}
|
|
12176
|
+
},
|
|
12177
|
+
// 数据结构
|
|
12178
|
+
valueProps: {
|
|
12179
|
+
type: Array
|
|
12180
|
+
},
|
|
12181
|
+
// 位置
|
|
12182
|
+
placement: {
|
|
12183
|
+
type: String,
|
|
12184
|
+
"default": 'bottom-start'
|
|
12185
|
+
},
|
|
12186
|
+
width: {
|
|
12187
|
+
"default": 200
|
|
12188
|
+
},
|
|
12189
|
+
// 是否禁用
|
|
12190
|
+
disabled: Boolean,
|
|
12191
|
+
// 是否显示边框
|
|
12192
|
+
border: Boolean,
|
|
12193
|
+
// 是否可以清空选项
|
|
12194
|
+
clearable: Boolean,
|
|
12195
|
+
// 支持外部查询的方法,使用者传进来
|
|
12196
|
+
postFunc: Function,
|
|
12197
|
+
// 搜索的请求参数
|
|
12198
|
+
postData: {
|
|
12199
|
+
type: Object
|
|
12200
|
+
},
|
|
12201
|
+
// 通过外部传入的链接进行参数请求
|
|
12202
|
+
pathUrl: {
|
|
12203
|
+
type: String,
|
|
12204
|
+
"default": ''
|
|
12205
|
+
},
|
|
12206
|
+
// 查询条件列表的key名 内部数据源且分页情况下才有用
|
|
12207
|
+
searchKey: {
|
|
12208
|
+
type: String,
|
|
12209
|
+
"default": 'title'
|
|
12210
|
+
},
|
|
12211
|
+
// 无数据提示
|
|
12212
|
+
noDataText: {
|
|
12213
|
+
type: String,
|
|
12214
|
+
"default": '无数据'
|
|
12215
|
+
},
|
|
12216
|
+
// 搜索是否是分页
|
|
12217
|
+
isPage: {
|
|
12218
|
+
type: Boolean,
|
|
12219
|
+
"default": true
|
|
12220
|
+
},
|
|
12221
|
+
// 分页器参数配置
|
|
12222
|
+
pageProps: {
|
|
12223
|
+
"default": function _default() {
|
|
12224
|
+
return {
|
|
12225
|
+
pageNum: 'pageNum',
|
|
12226
|
+
pageSize: 'pageSize'
|
|
12227
|
+
};
|
|
12228
|
+
}
|
|
12229
|
+
},
|
|
12230
|
+
// 是否多选
|
|
12231
|
+
multiple: Boolean,
|
|
12232
|
+
// 单选模式 是否允许取消选中
|
|
12233
|
+
canUncheck: {
|
|
12234
|
+
type: Boolean,
|
|
12235
|
+
"default": true
|
|
12236
|
+
},
|
|
12237
|
+
// 多选时用户最多可以选择的项目数,为 0 则不限制
|
|
12238
|
+
multipleLimit: {
|
|
12239
|
+
type: Number,
|
|
12240
|
+
"default": 0
|
|
12241
|
+
},
|
|
12242
|
+
checkedAll: {
|
|
12243
|
+
// 是否支持全选
|
|
12244
|
+
type: Boolean,
|
|
12245
|
+
"default": true
|
|
12246
|
+
},
|
|
12247
|
+
// 在返回选项时,是否将 label 和 value 一并返回
|
|
12248
|
+
labelInValue: {
|
|
12249
|
+
type: Boolean,
|
|
12250
|
+
"default": true
|
|
12251
|
+
},
|
|
12252
|
+
// 是否在组件初始化的时候加载options,反之在打开弹框时加载
|
|
12253
|
+
isInitOptions: {
|
|
12254
|
+
type: Boolean,
|
|
12255
|
+
"default": true
|
|
12256
|
+
},
|
|
12257
|
+
// 不绑定v-model,仅在点击的时候回传点击事件
|
|
12258
|
+
noValue: {
|
|
12259
|
+
type: Boolean,
|
|
12260
|
+
"default": false
|
|
12261
|
+
},
|
|
12262
|
+
// 固定在可选项前面,value全选的时候和清空的时候都会在value前面加上去
|
|
12263
|
+
fixedFrontOptions: {
|
|
12264
|
+
type: Array,
|
|
12265
|
+
"default": function _default() {
|
|
12266
|
+
return [];
|
|
12267
|
+
}
|
|
12268
|
+
},
|
|
12269
|
+
// 是否将value以json字符串形式与外部交互
|
|
12270
|
+
valueToJson: {
|
|
12271
|
+
type: Boolean,
|
|
12272
|
+
"default": false
|
|
12273
|
+
}
|
|
12274
|
+
},
|
|
12275
|
+
data: function data() {
|
|
12276
|
+
return {
|
|
12277
|
+
popoverVisible: false,
|
|
12278
|
+
// 是否加载过options
|
|
12279
|
+
isInit: false,
|
|
12280
|
+
// 加载动画
|
|
12281
|
+
loading: false,
|
|
12282
|
+
// 查询
|
|
12283
|
+
queryValue: '',
|
|
12284
|
+
// 分页信息
|
|
12285
|
+
pageData: {
|
|
12286
|
+
pageNum: 1,
|
|
12287
|
+
pageSize: 20
|
|
12288
|
+
},
|
|
12289
|
+
// 总长度
|
|
12290
|
+
total: 0,
|
|
12291
|
+
// 接口远程获取的options
|
|
12292
|
+
remoteOptions: [],
|
|
12293
|
+
// 静态下拉列表,前端分页
|
|
12294
|
+
staticOptions: []
|
|
12295
|
+
};
|
|
12296
|
+
},
|
|
12297
|
+
watch: {
|
|
12298
|
+
// 监控选项变化
|
|
12299
|
+
options: {
|
|
12300
|
+
handler: function handler(newVal) {
|
|
12301
|
+
// 重新计算总数
|
|
12302
|
+
this.total = newVal.length;
|
|
12303
|
+
|
|
12304
|
+
// 如果总数大于 40,进行分页
|
|
12305
|
+
if (this.total > 40 && !this.pathUrl) {
|
|
12306
|
+
this.pageData.pageNum = 1; // 重置页码
|
|
12307
|
+
this.staticOptions = this.catchPage(); // 重新计算分页
|
|
12308
|
+
} else {
|
|
12309
|
+
// 否则直接赋值
|
|
12310
|
+
this.staticOptions = _toConsumableArray(newVal);
|
|
12311
|
+
}
|
|
12312
|
+
},
|
|
12313
|
+
deep: true,
|
|
12314
|
+
// 深度监听
|
|
12315
|
+
immediate: true // 组件初始化时立即执行
|
|
12316
|
+
}
|
|
12317
|
+
},
|
|
12318
|
+
mounted: function mounted() {
|
|
12319
|
+
if (this.isInitOptions) {
|
|
12320
|
+
this.initRemote();
|
|
12321
|
+
}
|
|
12322
|
+
},
|
|
12323
|
+
methods: {
|
|
12324
|
+
/**
|
|
12325
|
+
* 初始化远程数据
|
|
12326
|
+
* */
|
|
12327
|
+
initRemote: function initRemote() {
|
|
12328
|
+
if (this.pathUrl) {
|
|
12329
|
+
this.pageData.pageNum = 1;
|
|
12330
|
+
this.isInit = true;
|
|
12331
|
+
this.loadOptions();
|
|
12332
|
+
}
|
|
12333
|
+
},
|
|
12334
|
+
/**
|
|
12335
|
+
* 下拉框打开关闭
|
|
12336
|
+
* */
|
|
12337
|
+
open: function open() {
|
|
12338
|
+
// 打开弹框时
|
|
12339
|
+
// 设置了远程获取选项
|
|
12340
|
+
// 并且设置了点击弹框再初始化选项
|
|
12341
|
+
// 并且没有被初始化过,
|
|
12342
|
+
if (this.pathUrl && (!this.isInit || !this.isInitOptions)) {
|
|
12343
|
+
// 初始化远程数据
|
|
12344
|
+
this.initRemote();
|
|
12345
|
+
}
|
|
12346
|
+
},
|
|
12347
|
+
/**
|
|
12348
|
+
* 清空value
|
|
12349
|
+
* */
|
|
12350
|
+
clear: function clear() {
|
|
12351
|
+
if (this.multiple) {
|
|
12352
|
+
this.val = [];
|
|
12353
|
+
} else {
|
|
12354
|
+
this.val = this.labelInValue ? {} : '';
|
|
12355
|
+
}
|
|
12356
|
+
},
|
|
12357
|
+
/**
|
|
12358
|
+
* 滚动加载
|
|
12359
|
+
* */
|
|
12360
|
+
scrollMore: (0,external_lodash_namespaceObject.debounce)(function () {
|
|
12361
|
+
if (this.optionList.length < this.total && !this.loading) {
|
|
12362
|
+
// 远程获取
|
|
12363
|
+
if (this.pathUrl) {
|
|
12364
|
+
if (this.isPage) {
|
|
12365
|
+
this.pageData.pageNum++;
|
|
12366
|
+
this.loadOptions();
|
|
12367
|
+
}
|
|
12368
|
+
} else {
|
|
12369
|
+
// 本地分页
|
|
12370
|
+
this.pageData.pageNum++;
|
|
12371
|
+
this.staticOptions = [].concat(_toConsumableArray(this.staticOptions), _toConsumableArray(this.catchPage()));
|
|
12372
|
+
}
|
|
12373
|
+
}
|
|
12374
|
+
}, 400),
|
|
12375
|
+
/**
|
|
12376
|
+
* 快速搜索选项
|
|
12377
|
+
* @param {String} val 搜索的值
|
|
12378
|
+
*/
|
|
12379
|
+
filterMethod: (0,external_lodash_namespaceObject.debounce)(function (val) {
|
|
12380
|
+
this.queryValue = val;
|
|
12381
|
+
// 选项列表被初始化过
|
|
12382
|
+
if (this.pathUrl && this.isPage) {
|
|
12383
|
+
this.pageData.pageNum = 1;
|
|
12384
|
+
this.loadOptions();
|
|
12385
|
+
}
|
|
12386
|
+
}, 400),
|
|
12387
|
+
/**
|
|
12388
|
+
* 多选时判断全部选中
|
|
12389
|
+
* */
|
|
12390
|
+
isCheckedAll: function isCheckedAll() {
|
|
12391
|
+
var _this = this;
|
|
12392
|
+
var val = this.val || [];
|
|
12393
|
+
var option = this.optionList.map(function (i) {
|
|
12394
|
+
return i[_this.optionProps.value];
|
|
12395
|
+
});
|
|
12396
|
+
var fixedFrontOptions = this.fixedFrontOptions || [];
|
|
12397
|
+
if (this.labelInValue) {
|
|
12398
|
+
val = this.val.map(function (i) {
|
|
12399
|
+
return i[_this.optionProps.value];
|
|
12400
|
+
});
|
|
12401
|
+
fixedFrontOptions = this.fixedFrontOptions.map(function (i) {
|
|
12402
|
+
return i[_this.optionProps.value];
|
|
12403
|
+
});
|
|
12404
|
+
}
|
|
12405
|
+
if (fixedFrontOptions.length > 0) {
|
|
12406
|
+
val = val.filter(function (i) {
|
|
12407
|
+
return !fixedFrontOptions.includes(i);
|
|
12408
|
+
});
|
|
12409
|
+
}
|
|
12410
|
+
// 长度不同或为空,直接返回 false
|
|
12411
|
+
if (option.length !== val.length || option.length === 0) {
|
|
12412
|
+
return false;
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12415
|
+
// 使用 Set 优化性能:将 val 转为 Set,has() 查找是 O(1),比 includes() 的 O(n) 快很多
|
|
12416
|
+
var valSet = new Set(val);
|
|
12417
|
+
return option.every(function (item) {
|
|
12418
|
+
return valSet.has(item);
|
|
12419
|
+
});
|
|
12420
|
+
},
|
|
12421
|
+
/**
|
|
12422
|
+
* 全选/取消全选
|
|
12423
|
+
* */
|
|
12424
|
+
checkAll: function checkAll() {
|
|
12425
|
+
var _this2 = this;
|
|
12426
|
+
// 判断当前是否全选
|
|
12427
|
+
var isAllChecked = this.isCheckedAll();
|
|
12428
|
+
var value = (0,external_lodash_namespaceObject.cloneDeep)(this.val);
|
|
12429
|
+
if (isAllChecked) {
|
|
12430
|
+
// 如果已经全选,则取消全选
|
|
12431
|
+
value = _toConsumableArray(this.fixedFrontOptions);
|
|
12432
|
+
} else {
|
|
12433
|
+
// 如果未全选,则全选当前已加载的所有选项
|
|
12434
|
+
if (this.labelInValue) {
|
|
12435
|
+
// labelInValue 为 true 时,返回完整的对象数组
|
|
12436
|
+
value = [].concat(_toConsumableArray(this.fixedFrontOptions), _toConsumableArray(this.optionList));
|
|
12437
|
+
} else {
|
|
12438
|
+
// labelInValue 为 false 时,只返回 value 数组
|
|
12439
|
+
value = [].concat(_toConsumableArray(this.fixedFrontOptions), _toConsumableArray(this.optionList.map(function (i) {
|
|
12440
|
+
return i[_this2.optionProps.value];
|
|
12441
|
+
})));
|
|
12442
|
+
}
|
|
12443
|
+
}
|
|
12444
|
+
// 不绑定value
|
|
12445
|
+
if (!this.noValue) {
|
|
12446
|
+
this.val = value;
|
|
12447
|
+
}
|
|
12448
|
+
this.$emit('change', value, isAllChecked);
|
|
12449
|
+
},
|
|
12450
|
+
/**
|
|
12451
|
+
* 多选判断是否选中 选中返回true,未选中返回false
|
|
12452
|
+
* @param {Object} item 选项的对象数据
|
|
12453
|
+
* */
|
|
12454
|
+
isChecked: function isChecked(_ref) {
|
|
12455
|
+
var _this3 = this;
|
|
12456
|
+
var trueData = _ref.trueData;
|
|
12457
|
+
var check = false;
|
|
12458
|
+
if (this.labelInValue) {
|
|
12459
|
+
check = this.val.find(function (i) {
|
|
12460
|
+
return i[_this3.optionProps.value] == trueData;
|
|
12461
|
+
}) != undefined;
|
|
12462
|
+
} else {
|
|
12463
|
+
check = this.val && this.val.includes(trueData);
|
|
12464
|
+
}
|
|
12465
|
+
return check;
|
|
12466
|
+
},
|
|
12467
|
+
/**
|
|
12468
|
+
* 单选判断是否选中 选中返回true,未选中返回false
|
|
12469
|
+
* @param {Object} item 选项的对象数据
|
|
12470
|
+
* */
|
|
12471
|
+
isChoose: function isChoose(item) {
|
|
12472
|
+
var check = false;
|
|
12473
|
+
// value是对象时
|
|
12474
|
+
if (this.labelInValue) {
|
|
12475
|
+
check = this.val[this.optionProps.value] == item[this.optionProps.value];
|
|
12476
|
+
} else {
|
|
12477
|
+
check = this.val == item[this.optionProps.value];
|
|
12478
|
+
}
|
|
12479
|
+
return check;
|
|
12480
|
+
},
|
|
12481
|
+
/**
|
|
12482
|
+
* 点击下拉菜单中的某一项,选中或取消选中
|
|
12483
|
+
* @param {Object} item 选项的对象数据
|
|
12484
|
+
* */
|
|
12485
|
+
chooseItem: function chooseItem(item) {
|
|
12486
|
+
var value = this.val;
|
|
12487
|
+
this.$emit("checkItem", item);
|
|
12488
|
+
// 多选模式
|
|
12489
|
+
if (this.multiple) {
|
|
12490
|
+
if (this.labelInValue) {
|
|
12491
|
+
var flag = false;
|
|
12492
|
+
for (var i in this.val) {
|
|
12493
|
+
if (this.val[i][this.optionProps.value] == item[this.optionProps.value]) {
|
|
12494
|
+
// 如果之前已经选中,则取消掉
|
|
12495
|
+
value.splice(i, 1);
|
|
12496
|
+
flag = true;
|
|
12497
|
+
break;
|
|
12498
|
+
}
|
|
12499
|
+
}
|
|
12500
|
+
// 如果之前没有选中 并且目前数量小于最大多选数量,则选中
|
|
12501
|
+
if (!flag && (!this.multipleLimit || this.multipleLimit < value.length)) {
|
|
12502
|
+
value.push(item);
|
|
12503
|
+
}
|
|
12504
|
+
} else {
|
|
12505
|
+
var index = this.val && this.val.indexOf(item[this.optionProps.value]);
|
|
12506
|
+
if (index && index == -1 && (!this.multipleLimit || this.multipleLimit < value.length)) {
|
|
12507
|
+
value.push(item[this.optionProps.value]);
|
|
12508
|
+
} else {
|
|
12509
|
+
value.splice(index, 1);
|
|
12510
|
+
}
|
|
12511
|
+
}
|
|
12512
|
+
}
|
|
12513
|
+
// 单选模式
|
|
12514
|
+
else {
|
|
12515
|
+
this.popoverVisible = false;
|
|
12516
|
+
var choose = this.isChoose(item);
|
|
12517
|
+
// 如果不能取消选中,并且当前是选中状态 直接return
|
|
12518
|
+
if (choose && !this.canUncheck) {
|
|
12519
|
+
return;
|
|
12520
|
+
}
|
|
12521
|
+
// 如果要返回整个对象
|
|
12522
|
+
if (this.labelInValue) {
|
|
12523
|
+
if (this.val[this.optionProps.value] == item[this.optionProps.value]) {
|
|
12524
|
+
// 取消选中
|
|
12525
|
+
value = {};
|
|
12526
|
+
} else {
|
|
12527
|
+
// 选中
|
|
12528
|
+
value = item;
|
|
12529
|
+
}
|
|
12530
|
+
} else {
|
|
12531
|
+
if (this.val == item[this.optionProps.value]) {
|
|
12532
|
+
// 取消选中
|
|
12533
|
+
value = '';
|
|
12534
|
+
} else {
|
|
12535
|
+
// 选中
|
|
12536
|
+
value = item[this.optionProps.value];
|
|
12537
|
+
}
|
|
12538
|
+
}
|
|
12539
|
+
}
|
|
12540
|
+
// 不绑定value
|
|
12541
|
+
if (!this.noValue) {
|
|
12542
|
+
this.val = value;
|
|
12543
|
+
}
|
|
12544
|
+
this.$emit('change', value);
|
|
12545
|
+
},
|
|
12546
|
+
/**
|
|
12547
|
+
* 远程加载options
|
|
12548
|
+
* */
|
|
12549
|
+
loadOptions: function loadOptions(post) {
|
|
12550
|
+
var _this4 = this;
|
|
12551
|
+
if (!this.postFunc) {
|
|
12552
|
+
console.log("selectPro:没有远程调用的方法");
|
|
12553
|
+
this.loading = false;
|
|
12554
|
+
return false;
|
|
12555
|
+
}
|
|
12556
|
+
this.loading = true;
|
|
12557
|
+
var postData = post || this.postParams;
|
|
12558
|
+
// 查询条件列表的key名 内部数据源且分页情况下才有用
|
|
12559
|
+
postData[this.searchKey] = this.queryValue;
|
|
12560
|
+
if (this.isPage) {
|
|
12561
|
+
postData[this.pageProps.pageNum] = this.pageData.pageNum;
|
|
12562
|
+
postData[this.pageProps.pageSize] = this.pageData.pageSize;
|
|
12563
|
+
}
|
|
12564
|
+
this.postFunc(this.pathUrl, postData).then(function (res) {
|
|
12565
|
+
_this4.loading = false;
|
|
12566
|
+
if (!res.code) {
|
|
12567
|
+
// 计算静态列表搜索后的长度
|
|
12568
|
+
var staticLength = 0;
|
|
12569
|
+
if (_this4.queryValue && _this4.options && _this4.options.length > 0) {
|
|
12570
|
+
var s = _this4.options.filter(function (item) {
|
|
12571
|
+
return item[_this4.optionProps.label].indexOf(_this4.queryValue) > -1;
|
|
12572
|
+
});
|
|
12573
|
+
staticLength = s ? s.length : 0;
|
|
12574
|
+
}
|
|
12575
|
+
if (_this4.isPage) {
|
|
12576
|
+
_this4.total = res.data.total + _this4.options.length + staticLength;
|
|
12577
|
+
var arr = res.data.results || [];
|
|
12578
|
+
if (_this4.pageData.pageNum == 1) {
|
|
12579
|
+
_this4.remoteOptions = _toConsumableArray(arr);
|
|
12580
|
+
} else {
|
|
12581
|
+
_this4.remoteOptions = [].concat(_toConsumableArray(_this4.remoteOptions), _toConsumableArray(arr));
|
|
12582
|
+
}
|
|
12583
|
+
} else {
|
|
12584
|
+
_this4.remoteOptions = res.data || [];
|
|
12585
|
+
_this4.total = _this4.remoteOptions.length + staticLength;
|
|
12586
|
+
}
|
|
12587
|
+
}
|
|
12588
|
+
});
|
|
12589
|
+
},
|
|
12590
|
+
/**
|
|
12591
|
+
* 前端手动分页
|
|
12592
|
+
* */
|
|
12593
|
+
catchPage: function catchPage(page) {
|
|
12594
|
+
this.pageData.pageNum = page || this.pageData.pageNum;
|
|
12595
|
+
return this.options.slice((this.pageData.pageNum - 1) * this.pageData.pageSize, this.pageData.pageNum * this.pageData.pageSize);
|
|
12596
|
+
},
|
|
12597
|
+
/**
|
|
12598
|
+
* 如果value是对象,然会value的时候把对象组装好再返回。
|
|
12599
|
+
* */
|
|
12600
|
+
getValObj: function getValObj(val) {
|
|
12601
|
+
if (this.valueProps) {
|
|
12602
|
+
var obj = {};
|
|
12603
|
+
this.valueProps.forEach(function (key) {
|
|
12604
|
+
obj[key] = val[key];
|
|
12605
|
+
});
|
|
12606
|
+
return obj;
|
|
12607
|
+
} else {
|
|
12608
|
+
return val;
|
|
12609
|
+
}
|
|
12610
|
+
},
|
|
12611
|
+
/**
|
|
12612
|
+
* 从一个数组中通过id找到名字,并返回给调用者
|
|
12613
|
+
* @param {Array} list 数组
|
|
12614
|
+
* @param {String} id 需要匹配的id
|
|
12615
|
+
* */
|
|
12616
|
+
foundTitle: function foundTitle(list, id) {
|
|
12617
|
+
var title = '';
|
|
12618
|
+
for (var i in list) {
|
|
12619
|
+
if (list[i][this.optionProps.value] == id) {
|
|
12620
|
+
title = list[i][this.optionProps.label];
|
|
12621
|
+
break;
|
|
12622
|
+
}
|
|
12623
|
+
}
|
|
12624
|
+
return title;
|
|
12625
|
+
},
|
|
12626
|
+
/**
|
|
12627
|
+
* 从一个数组中通过id和ids数组的匹配找到标题,并返回给调用者
|
|
12628
|
+
* @param {Array} list 数组
|
|
12629
|
+
* @param {String} ids 需要匹配的id数组[1,2,3]
|
|
12630
|
+
* @return {Array} values 返回所有匹配项组成的数组
|
|
12631
|
+
* */
|
|
12632
|
+
foundValue: function foundValue(list, ids) {
|
|
12633
|
+
var value = [];
|
|
12634
|
+
for (var i in list) {
|
|
12635
|
+
if (ids.includes(list[i][this.optionProps.value])) {
|
|
12636
|
+
value.push(list[i][this.optionProps.label]);
|
|
12637
|
+
}
|
|
12638
|
+
}
|
|
12639
|
+
return value;
|
|
12640
|
+
},
|
|
12641
|
+
/**
|
|
12642
|
+
* 手动关闭
|
|
12643
|
+
* */
|
|
12644
|
+
close: function close() {
|
|
12645
|
+
this.popoverVisible = false;
|
|
12646
|
+
}
|
|
12647
|
+
},
|
|
12648
|
+
computed: {
|
|
12649
|
+
// select的value
|
|
12650
|
+
val: {
|
|
12651
|
+
get: function get() {
|
|
12652
|
+
var value = this.modelValue;
|
|
12653
|
+
if (this.valueToJson && value != null && value !== '') {
|
|
12654
|
+
try {
|
|
12655
|
+
value = typeof value === 'string' ? JSON.parse(value) : value;
|
|
12656
|
+
} catch (e) {
|
|
12657
|
+
value = this.multiple ? [] : this.labelInValue ? {} : '';
|
|
12658
|
+
}
|
|
12659
|
+
}
|
|
12660
|
+
if (this.multiple && (!value || !Array.isArray(value))) {
|
|
12661
|
+
return [];
|
|
12662
|
+
} else {
|
|
12663
|
+
return value;
|
|
12664
|
+
}
|
|
12665
|
+
},
|
|
12666
|
+
set: function set(val) {
|
|
12667
|
+
var _this5 = this;
|
|
12668
|
+
var result;
|
|
12669
|
+
if (this.labelInValue) {
|
|
12670
|
+
if (this.multiple) {
|
|
12671
|
+
result = val.map(function (item) {
|
|
12672
|
+
return _this5.getValObj(item);
|
|
12673
|
+
});
|
|
12674
|
+
} else {
|
|
12675
|
+
result = this.getValObj(val);
|
|
12676
|
+
}
|
|
12677
|
+
} else {
|
|
12678
|
+
result = val;
|
|
12679
|
+
}
|
|
12680
|
+
this.$emit("update:modelValue", this.valueToJson ? JSON.stringify(result) : result);
|
|
12681
|
+
}
|
|
12682
|
+
},
|
|
12683
|
+
// 远程搜索时,入参的拼接
|
|
12684
|
+
postParams: {
|
|
12685
|
+
get: function get() {
|
|
12686
|
+
if (this.pathUrl) {
|
|
12687
|
+
var post = _objectSpread2({}, this.postData);
|
|
12688
|
+
// 每当参数变化,重置初始化options的开关
|
|
12689
|
+
this.isInit = false;
|
|
12690
|
+
return post;
|
|
12691
|
+
} else {
|
|
12692
|
+
return _objectSpread2({}, this.pageData);
|
|
12693
|
+
}
|
|
12694
|
+
},
|
|
12695
|
+
set: function set(val) {
|
|
12696
|
+
return val;
|
|
12697
|
+
}
|
|
12698
|
+
},
|
|
12699
|
+
// 最终展示的下拉列表
|
|
12700
|
+
optionList: {
|
|
12701
|
+
get: function get() {
|
|
12702
|
+
var _this6 = this;
|
|
12703
|
+
var options = [].concat(_toConsumableArray(this.staticOptions), _toConsumableArray(this.remoteOptions));
|
|
12704
|
+
if (this.queryValue && !(this.pathUrl && this.isPage)) {
|
|
12705
|
+
options = [].concat(_toConsumableArray(this.options), _toConsumableArray(this.remoteOptions)).filter(function (item) {
|
|
12706
|
+
return item[_this6.optionProps.label].indexOf(_this6.queryValue) > -1;
|
|
12707
|
+
});
|
|
12708
|
+
}
|
|
12709
|
+
return options;
|
|
12710
|
+
},
|
|
12711
|
+
set: function set(val) {
|
|
12712
|
+
return val;
|
|
12713
|
+
}
|
|
12714
|
+
},
|
|
12715
|
+
// 单选时,展示value的值
|
|
12716
|
+
singleTitle: function singleTitle() {
|
|
12717
|
+
var title = '';
|
|
12718
|
+
if (this.labelInValue) {
|
|
12719
|
+
title = this.modelValue[this.optionProps.label];
|
|
12720
|
+
} else {
|
|
12721
|
+
title = this.foundTitle(this.options, this.modelValue) || this.modelValue;
|
|
12722
|
+
}
|
|
12723
|
+
return title;
|
|
12724
|
+
},
|
|
12725
|
+
// 多选时的value值
|
|
12726
|
+
multipleTitle: function multipleTitle() {
|
|
12727
|
+
var _this7 = this;
|
|
12728
|
+
var values = [];
|
|
12729
|
+
if (this.labelInValue) {
|
|
12730
|
+
values = this.modelValue.map(function (v) {
|
|
12731
|
+
return v[_this7.optionProps.label];
|
|
12732
|
+
});
|
|
12733
|
+
} else {
|
|
12734
|
+
var data = this.foundValue(this.options, this.modelValue);
|
|
12735
|
+
if (data.length) {
|
|
12736
|
+
values = [].concat(_toConsumableArray(values), _toConsumableArray(data));
|
|
12737
|
+
}
|
|
12738
|
+
}
|
|
12739
|
+
return values.join(',');
|
|
12740
|
+
}
|
|
12741
|
+
}
|
|
12742
|
+
});
|
|
12743
|
+
;// ./packages/BnDrop/BnDrop.vue?vue&type=script&lang=js
|
|
12744
|
+
/* harmony default export */ const BnDrop_BnDropvue_type_script_lang_js = (BnDropvue_type_script_lang_js);
|
|
12745
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDrop/BnDrop.vue?vue&type=style&index=0&id=13f9f2c9&prod&lang=css
|
|
12746
|
+
var BnDropvue_type_style_index_0_id_13f9f2c9_prod_lang_css = __webpack_require__(601);
|
|
12747
|
+
;// ./packages/BnDrop/BnDrop.vue?vue&type=style&index=0&id=13f9f2c9&prod&lang=css
|
|
12748
|
+
|
|
12749
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDrop/BnDrop.vue?vue&type=style&index=1&id=13f9f2c9&prod&scoped=true&lang=scss
|
|
12750
|
+
var BnDropvue_type_style_index_1_id_13f9f2c9_prod_scoped_true_lang_scss = __webpack_require__(3376);
|
|
12751
|
+
;// ./packages/BnDrop/BnDrop.vue?vue&type=style&index=1&id=13f9f2c9&prod&scoped=true&lang=scss
|
|
12752
|
+
|
|
12753
|
+
;// ./packages/BnDrop/BnDrop.vue
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
|
|
12757
|
+
;
|
|
12758
|
+
|
|
12759
|
+
|
|
12760
|
+
|
|
12761
|
+
/* normalize component */
|
|
12762
|
+
|
|
12763
|
+
var BnDrop_component = normalizeComponent(
|
|
12764
|
+
BnDrop_BnDropvue_type_script_lang_js,
|
|
12765
|
+
BnDropvue_type_template_id_13f9f2c9_scoped_true_render,
|
|
12766
|
+
BnDropvue_type_template_id_13f9f2c9_scoped_true_staticRenderFns,
|
|
12767
|
+
false,
|
|
12768
|
+
null,
|
|
12769
|
+
"13f9f2c9",
|
|
12770
|
+
null
|
|
12771
|
+
|
|
12772
|
+
)
|
|
12773
|
+
|
|
12774
|
+
/* harmony default export */ const BnDrop = (BnDrop_component.exports);
|
|
12775
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
12776
|
+
var es_regexp_exec = __webpack_require__(7495);
|
|
12777
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
12778
|
+
var es_string_search = __webpack_require__(5746);
|
|
12779
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
|
|
12783
|
+
|
|
12784
|
+
var bnDropdownvue_type_template_id_a5f24f64_scoped_true_render = function render() {
|
|
12785
|
+
var _vm = this,
|
|
12786
|
+
_c = _vm._self._c;
|
|
12787
|
+
return _c('div', {
|
|
12788
|
+
staticClass: "bnDropdown-box"
|
|
12789
|
+
}, [_c('el-popover', {
|
|
12790
|
+
attrs: {
|
|
12791
|
+
"placement": _vm.placement,
|
|
12792
|
+
"popper-class": _vm.passBackOnly ? 'pass-back-only bn-dropdown-popper' : 'bn-dropdown-popper',
|
|
12793
|
+
"trigger": "click",
|
|
12794
|
+
"visible-arrow": false,
|
|
12795
|
+
"disabled": _vm.disabled
|
|
12796
|
+
},
|
|
12797
|
+
on: {
|
|
12798
|
+
"show": _vm.open,
|
|
12799
|
+
"hide": _vm.close
|
|
12800
|
+
},
|
|
12801
|
+
scopedSlots: _vm._u([{
|
|
12802
|
+
key: "reference",
|
|
12803
|
+
fn: function fn() {
|
|
12804
|
+
return [_vm._t("reference", null, {
|
|
12805
|
+
"countTitles": _vm.countTitles
|
|
12806
|
+
})];
|
|
12807
|
+
},
|
|
12808
|
+
proxy: true
|
|
12809
|
+
}], null, true),
|
|
12810
|
+
model: {
|
|
12811
|
+
value: _vm.show,
|
|
12812
|
+
callback: function callback($$v) {
|
|
12813
|
+
_vm.show = $$v;
|
|
12814
|
+
},
|
|
12815
|
+
expression: "show"
|
|
12816
|
+
}
|
|
12817
|
+
}, [_c('div', {
|
|
12818
|
+
staticClass: "bnDropdown-drop",
|
|
12819
|
+
style: {
|
|
12820
|
+
width: _vm.width
|
|
12821
|
+
}
|
|
12822
|
+
}, [_vm.copyOpts.length > 0 && _vm.canSearch ? _c('div', {
|
|
12823
|
+
staticClass: "bnDropdown-drop-input",
|
|
12824
|
+
style: {
|
|
12825
|
+
width: _vm.width
|
|
12826
|
+
}
|
|
12827
|
+
}, [_c('el-input', {
|
|
12828
|
+
ref: "searchInput",
|
|
12829
|
+
staticClass: "bnDropdown-drop-ipt",
|
|
12830
|
+
attrs: {
|
|
12831
|
+
"size": "small",
|
|
12832
|
+
"placeholder": _vm.placeholder,
|
|
12833
|
+
"prefix-icon": "el-icon-search",
|
|
12834
|
+
"clearable": ""
|
|
12835
|
+
},
|
|
12836
|
+
on: {
|
|
12837
|
+
"input": _vm.search
|
|
12838
|
+
},
|
|
12839
|
+
model: {
|
|
12840
|
+
value: _vm.searchChar,
|
|
12841
|
+
callback: function callback($$v) {
|
|
12842
|
+
_vm.searchChar = $$v;
|
|
12843
|
+
},
|
|
12844
|
+
expression: "searchChar"
|
|
12845
|
+
}
|
|
12846
|
+
})], 1) : _vm._e(), _c('div', {
|
|
12847
|
+
directives: [{
|
|
12848
|
+
name: "loading",
|
|
12849
|
+
rawName: "v-loading",
|
|
12850
|
+
value: _vm.loading,
|
|
12851
|
+
expression: "loading"
|
|
12852
|
+
}],
|
|
12853
|
+
staticClass: "bnDropdown-drop-body",
|
|
12854
|
+
"class": "".concat(!_vm.canSearch ? 'noSearch' : '')
|
|
12855
|
+
}, [_vm._t("bnDropdownItem", function () {
|
|
12856
|
+
return _vm._l(_vm.options, function (item, index) {
|
|
12857
|
+
return _c('div', {
|
|
12858
|
+
key: index,
|
|
12859
|
+
staticClass: "bnDropdown-item",
|
|
12860
|
+
"class": {
|
|
12861
|
+
isCheck: _vm.checked(item) && !_vm.passBackOnly
|
|
12862
|
+
},
|
|
12863
|
+
on: {
|
|
12864
|
+
"click": function click($event) {
|
|
12865
|
+
return _vm.chooseItem(item);
|
|
12866
|
+
}
|
|
12867
|
+
}
|
|
12868
|
+
}, [_vm.checkMode === 'multiCheckBox' ? _c('el-checkbox', {
|
|
12869
|
+
staticClass: "bnDropdown-item-check",
|
|
12870
|
+
on: {
|
|
12871
|
+
"change": function change($event) {
|
|
12872
|
+
return _vm.selectItem(item);
|
|
12873
|
+
}
|
|
12874
|
+
},
|
|
12875
|
+
model: {
|
|
12876
|
+
value: _vm.optionCheckMap[item[_vm.optionProps.value]],
|
|
12877
|
+
callback: function callback($$v) {
|
|
12878
|
+
_vm.$set(_vm.optionCheckMap, item[_vm.optionProps.value], $$v);
|
|
12879
|
+
},
|
|
12880
|
+
expression: "optionCheckMap[item[optionProps.value]]"
|
|
12881
|
+
}
|
|
12882
|
+
}) : _vm._e(), _c('span', {
|
|
12883
|
+
staticClass: "bnDropdown-drop-title",
|
|
12884
|
+
attrs: {
|
|
12885
|
+
"title": item[_vm.optionProps.label]
|
|
12886
|
+
}
|
|
12887
|
+
}, [_vm._v(_vm._s(item[_vm.optionProps.label]))]), _vm.checkMode !== 'multiCheckBox' && _vm.checked(item) && !_vm.passBackOnly ? _c('span', {
|
|
12888
|
+
staticClass: "bnUIcon bnUIcon-chose"
|
|
12889
|
+
}) : _vm._e()], 1);
|
|
12890
|
+
});
|
|
12891
|
+
}, {
|
|
12892
|
+
"options": _vm.options
|
|
12893
|
+
}), _vm.options.length == 0 && !_vm.loading ? _c('div', {
|
|
12894
|
+
staticClass: "bnDropdown-drop-body-empty"
|
|
12895
|
+
}, [_vm._v(" " + _vm._s(_vm.nodataText) + " ")]) : _vm._e()], 2)]), _vm.checkMode === 'multiCheckBox' ? _c('div', {
|
|
12896
|
+
staticClass: "bn-dropdown-footer"
|
|
12897
|
+
}, [_c('el-checkbox', {
|
|
12898
|
+
attrs: {
|
|
12899
|
+
"indeterminate": _vm.indeterminate
|
|
12900
|
+
},
|
|
12901
|
+
on: {
|
|
12902
|
+
"change": _vm.selectAll
|
|
12903
|
+
},
|
|
12904
|
+
model: {
|
|
12905
|
+
value: _vm.allChecked,
|
|
12906
|
+
callback: function callback($$v) {
|
|
12907
|
+
_vm.allChecked = $$v;
|
|
12908
|
+
},
|
|
12909
|
+
expression: "allChecked"
|
|
12910
|
+
}
|
|
12911
|
+
}, [_vm._v("全选")]), _c('el-button', {
|
|
12912
|
+
staticClass: "bn-dropdown-footer-confirm",
|
|
12913
|
+
attrs: {
|
|
12914
|
+
"size": "mini",
|
|
12915
|
+
"type": "primary"
|
|
12916
|
+
},
|
|
12917
|
+
on: {
|
|
12918
|
+
"click": _vm.onOkBtton
|
|
12919
|
+
}
|
|
12920
|
+
}, [_vm._v("确定")])], 1) : _vm._e(), _vm._t("dropdown-bottom")], 2)], 1);
|
|
12921
|
+
};
|
|
12922
|
+
var bnDropdownvue_type_template_id_a5f24f64_scoped_true_staticRenderFns = [];
|
|
12923
|
+
|
|
12924
|
+
;// ./packages/BnDown/bnDropdown.vue?vue&type=template&id=a5f24f64&scoped=true
|
|
12925
|
+
|
|
12926
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.some.js
|
|
12927
|
+
var es_array_some = __webpack_require__(5086);
|
|
12928
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
12929
|
+
var es_iterator_some = __webpack_require__(3579);
|
|
12930
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
|
|
12931
|
+
var es_object_values = __webpack_require__(6034);
|
|
12932
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.timers.js
|
|
12933
|
+
var web_timers = __webpack_require__(6031);
|
|
12934
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
12935
|
+
var es_regexp_constructor = __webpack_require__(4864);
|
|
12936
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
12937
|
+
var es_regexp_dot_all = __webpack_require__(7465);
|
|
12938
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
12939
|
+
var es_regexp_sticky = __webpack_require__(7745);
|
|
11963
12940
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
11964
12941
|
var es_regexp_to_string = __webpack_require__(8781);
|
|
11965
12942
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -13927,12 +14904,8 @@ var bnFunTextvue_type_template_id_c3b70e18_scoped_true_staticRenderFns = [];
|
|
|
13927
14904
|
|
|
13928
14905
|
;// ./packages/BnFunText/bnFunText.vue?vue&type=template&id=c3b70e18&scoped=true
|
|
13929
14906
|
|
|
13930
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
13931
|
-
var es_array_join = __webpack_require__(8598);
|
|
13932
14907
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.last-index-of.js
|
|
13933
14908
|
var es_array_last_index_of = __webpack_require__(8921);
|
|
13934
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
13935
|
-
var es_array_slice = __webpack_require__(4782);
|
|
13936
14909
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
13937
14910
|
var es_string_match = __webpack_require__(1761);
|
|
13938
14911
|
;// ./packages/BnFunText/baseData.js
|
|
@@ -15929,8 +16902,6 @@ var cascadeConditionvue_type_template_id_0b10733b_staticRenderFns = [];
|
|
|
15929
16902
|
|
|
15930
16903
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
15931
16904
|
var es_array_from = __webpack_require__(3418);
|
|
15932
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
15933
|
-
var es_string_iterator = __webpack_require__(7764);
|
|
15934
16905
|
;// ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
15935
16906
|
|
|
15936
16907
|
function _createForOfIteratorHelper(r, e) {
|
|
@@ -17893,26 +18864,6 @@ var selectvue_type_template_id_12683c88_scoped_true_staticRenderFns = [];
|
|
|
17893
18864
|
|
|
17894
18865
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
17895
18866
|
var es_array_find_index = __webpack_require__(8980);
|
|
17896
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
17897
|
-
var es_array_iterator = __webpack_require__(3792);
|
|
17898
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.js
|
|
17899
|
-
var es_set = __webpack_require__(1415);
|
|
17900
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
17901
|
-
var es_set_difference_v2 = __webpack_require__(7642);
|
|
17902
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
|
|
17903
|
-
var es_set_intersection_v2 = __webpack_require__(8004);
|
|
17904
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
|
|
17905
|
-
var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
|
|
17906
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
|
|
17907
|
-
var es_set_is_subset_of_v2 = __webpack_require__(5876);
|
|
17908
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
|
|
17909
|
-
var es_set_is_superset_of_v2 = __webpack_require__(2475);
|
|
17910
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
|
|
17911
|
-
var es_set_symmetric_difference_v2 = __webpack_require__(5024);
|
|
17912
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
|
|
17913
|
-
var es_set_union_v2 = __webpack_require__(1698);
|
|
17914
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
17915
|
-
var web_dom_collections_iterator = __webpack_require__(2953);
|
|
17916
18867
|
;// ./packages/BnSelect/util.js
|
|
17917
18868
|
|
|
17918
18869
|
|
|
@@ -19525,10 +20476,6 @@ var BnFiTaxAutoCompletevue_type_template_id_6a5eae5b_scoped_true_staticRenderFns
|
|
|
19525
20476
|
|
|
19526
20477
|
;// ./packages/BnFiTaxAutoComplete/BnFiTaxAutoComplete.vue?vue&type=template&id=6a5eae5b&scoped=true
|
|
19527
20478
|
|
|
19528
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
19529
|
-
var es_array_find = __webpack_require__(113);
|
|
19530
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
|
|
19531
|
-
var es_iterator_find = __webpack_require__(116);
|
|
19532
20479
|
;// ./node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
19533
20480
|
function _regeneratorDefine(e, r, n, t) {
|
|
19534
20481
|
var i = Object.defineProperty;
|
|
@@ -20011,7 +20958,7 @@ var es_map_get_or_insert = __webpack_require__(5367);
|
|
|
20011
20958
|
var es_map_get_or_insert_computed = __webpack_require__(2731);
|
|
20012
20959
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
20013
20960
|
var es_string_pad_start = __webpack_require__(8156);
|
|
20014
|
-
;// ../../packages/
|
|
20961
|
+
;// ../../packages/utils/config.js
|
|
20015
20962
|
|
|
20016
20963
|
|
|
20017
20964
|
|
|
@@ -20097,7 +21044,7 @@ var es_array_sort = __webpack_require__(6910);
|
|
|
20097
21044
|
var es_string_ends_with = __webpack_require__(9449);
|
|
20098
21045
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
20099
21046
|
var es_string_trim = __webpack_require__(2762);
|
|
20100
|
-
;// ../../packages/
|
|
21047
|
+
;// ../../packages/utils/addressParse.js
|
|
20101
21048
|
|
|
20102
21049
|
|
|
20103
21050
|
|
|
@@ -20797,12 +21744,12 @@ function addressParse(address, sourceData) {
|
|
|
20797
21744
|
var cleanAddress = preprocessAddress(address);
|
|
20798
21745
|
return parseAddressDetail(cleanAddress, sourceData || {});
|
|
20799
21746
|
}
|
|
20800
|
-
;// ../../packages/
|
|
20801
|
-
/* unused harmony import specifier */ var
|
|
21747
|
+
;// ../../packages/utils/index.js
|
|
21748
|
+
/* unused harmony import specifier */ var utils_toConsumableArray;
|
|
20802
21749
|
/* unused harmony import specifier */ var _objectSpread;
|
|
20803
|
-
/* unused harmony import specifier */ var
|
|
21750
|
+
/* unused harmony import specifier */ var utils_typeof;
|
|
20804
21751
|
/* unused harmony import specifier */ var cloneDeep;
|
|
20805
|
-
/* unused harmony import specifier */ var
|
|
21752
|
+
/* unused harmony import specifier */ var utils_getApiBaseUrl;
|
|
20806
21753
|
|
|
20807
21754
|
|
|
20808
21755
|
|
|
@@ -21876,7 +22823,7 @@ function tidyRuleComponent(component) {
|
|
|
21876
22823
|
case 10:
|
|
21877
22824
|
//附件
|
|
21878
22825
|
{
|
|
21879
|
-
data.pathUrl =
|
|
22826
|
+
data.pathUrl = utils_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
21880
22827
|
data.value = [];
|
|
21881
22828
|
break;
|
|
21882
22829
|
}
|
|
@@ -21965,7 +22912,7 @@ function searchValueToJson(components) {
|
|
|
21965
22912
|
list.forEach(function (item) {
|
|
21966
22913
|
if (item.value != null) {
|
|
21967
22914
|
// 排除 null 和 undefined
|
|
21968
|
-
var valueType =
|
|
22915
|
+
var valueType = utils_typeof(item.value);
|
|
21969
22916
|
// 保留 string、number 和 boolean 原始值,其他都转换为 JSON
|
|
21970
22917
|
if (valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {
|
|
21971
22918
|
try {
|
|
@@ -22060,7 +23007,7 @@ function formatComponent(component, power) {
|
|
|
22060
23007
|
case 10:
|
|
22061
23008
|
//附件
|
|
22062
23009
|
{
|
|
22063
|
-
data.pathUrl =
|
|
23010
|
+
data.pathUrl = utils_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22064
23011
|
data.value = [];
|
|
22065
23012
|
break;
|
|
22066
23013
|
}
|
|
@@ -22268,7 +23215,7 @@ function formatColumnVal(component, values, power) {
|
|
|
22268
23215
|
case 10:
|
|
22269
23216
|
//附件
|
|
22270
23217
|
{
|
|
22271
|
-
data.pathUrl =
|
|
23218
|
+
data.pathUrl = utils_getApiBaseUrl() + "/v2/attachment/upload/task";
|
|
22272
23219
|
if (isSetValue) {
|
|
22273
23220
|
data.value = values[data.columnCode] || [];
|
|
22274
23221
|
} else {
|
|
@@ -22510,7 +23457,7 @@ var recordApiLog = function recordApiLog(res) {
|
|
|
22510
23457
|
time: formatLogDate(res.headers.date),
|
|
22511
23458
|
traceId: res.headers['trace-id'] || '未返回'
|
|
22512
23459
|
};
|
|
22513
|
-
logs = [log].concat(
|
|
23460
|
+
logs = [log].concat(utils_toConsumableArray(logs)).slice(0, 50);
|
|
22514
23461
|
localStorage.setItem('webLog', JSON.stringify(logs));
|
|
22515
23462
|
} catch (err) {
|
|
22516
23463
|
console.log("\u4E00\u6761\u65E5\u5FD7\u672A\u80FD\u6210\u529F\u6355\u6349\uFF1A".concat(JSON.stringify(res)));
|
|
@@ -22533,51 +23480,53 @@ function mainAppRouterPush(route) {
|
|
|
22533
23480
|
* */
|
|
22534
23481
|
|
|
22535
23482
|
;// ./install.js
|
|
22536
|
-
// install.js - BnAppletUi 组件库入口
|
|
22537
|
-
|
|
22538
|
-
|
|
22539
|
-
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
|
|
22550
|
-
|
|
22551
|
-
|
|
22552
|
-
|
|
22553
|
-
|
|
22554
|
-
Vue.component("
|
|
22555
|
-
Vue.component("
|
|
22556
|
-
Vue.component("
|
|
22557
|
-
Vue.component("
|
|
22558
|
-
Vue.component("
|
|
22559
|
-
Vue.component("
|
|
22560
|
-
Vue.component("
|
|
22561
|
-
Vue.component("
|
|
22562
|
-
Vue.component("
|
|
22563
|
-
Vue.component("
|
|
22564
|
-
Vue.component("
|
|
22565
|
-
Vue.component("
|
|
22566
|
-
|
|
22567
|
-
|
|
22568
|
-
|
|
22569
|
-
|
|
22570
|
-
|
|
22571
|
-
|
|
22572
|
-
|
|
22573
|
-
|
|
22574
|
-
|
|
22575
|
-
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
//
|
|
23483
|
+
// install.js - BnAppletUi 组件库入口
|
|
23484
|
+
|
|
23485
|
+
|
|
23486
|
+
|
|
23487
|
+
|
|
23488
|
+
|
|
23489
|
+
|
|
23490
|
+
|
|
23491
|
+
|
|
23492
|
+
|
|
23493
|
+
|
|
23494
|
+
|
|
23495
|
+
|
|
23496
|
+
|
|
23497
|
+
|
|
23498
|
+
|
|
23499
|
+
const BnAppletUi = {
|
|
23500
|
+
install: (Vue) => {
|
|
23501
|
+
Vue.component("BnAddress", BnAddress);
|
|
23502
|
+
Vue.component("BnAddressParse", BnAddressParse);
|
|
23503
|
+
Vue.component("BnCheck", BnCheck);
|
|
23504
|
+
Vue.component("BnDateRange", bnDateRange);
|
|
23505
|
+
Vue.component("BnDialog", dialog);
|
|
23506
|
+
Vue.component("BnDrop", BnDrop);
|
|
23507
|
+
Vue.component("BnDropdown", bnDropdown);
|
|
23508
|
+
Vue.component("BnFileView", BnFileView);
|
|
23509
|
+
Vue.component("BnFunText", bnFunText);
|
|
23510
|
+
Vue.component("BnInpNum", BnInpNum);
|
|
23511
|
+
Vue.component("BnInputNum", BnInputNum);
|
|
23512
|
+
Vue.component("BnRuleCondition", bnRuleCondition);
|
|
23513
|
+
Vue.component("BnSelect", BnSelect_select);
|
|
23514
|
+
Vue.component("BnFiTaxAutoComplete", BnFiTaxAutoComplete);
|
|
23515
|
+
}
|
|
23516
|
+
};
|
|
23517
|
+
|
|
23518
|
+
// 支持通过 CDN 方式引入时自动注册
|
|
23519
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
23520
|
+
window.Vue.use(BnAppletUi);
|
|
23521
|
+
}
|
|
23522
|
+
|
|
23523
|
+
// 导出插件对象(整体引入)
|
|
23524
|
+
// 使用方式:Vue.use(BnAppletUi)
|
|
23525
|
+
/* harmony default export */ const install = (BnAppletUi);
|
|
23526
|
+
|
|
23527
|
+
// 单独导出各组件(按需引入)
|
|
23528
|
+
|
|
23529
|
+
// 单独导出每个工具函数和常量,方便按需引入
|
|
22581
23530
|
|
|
22582
23531
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
22583
23532
|
|