@bytenew/bn-applet-ui 1.1.44 → 1.1.46
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.
|
@@ -12317,9 +12317,9 @@ var BnAddressParsevue_type_template_id_3a0d7cb0_staticRenderFns = [];
|
|
|
12317
12317
|
var es_array_for_each = __webpack_require__(1629);
|
|
12318
12318
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
12319
12319
|
var es_array_push = __webpack_require__(4114);
|
|
12320
|
-
;// external "
|
|
12321
|
-
const
|
|
12322
|
-
var
|
|
12320
|
+
;// external "lodash"
|
|
12321
|
+
const external_lodash_namespaceObject = require("lodash");
|
|
12322
|
+
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_namespaceObject);
|
|
12323
12323
|
;// ./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/BnAddressParse/index.vue?vue&type=script&lang=js
|
|
12324
12324
|
|
|
12325
12325
|
|
|
@@ -12345,7 +12345,7 @@ var external_default = /*#__PURE__*/__webpack_require__.n(external_namespaceObje
|
|
|
12345
12345
|
/**
|
|
12346
12346
|
* 自动识别方法(使用防抖)
|
|
12347
12347
|
*/
|
|
12348
|
-
autoAds: (0,
|
|
12348
|
+
autoAds: (0,external_lodash_namespaceObject.debounce)(function () {
|
|
12349
12349
|
var _this = this;
|
|
12350
12350
|
if (!this.address || this.address == this.record) {
|
|
12351
12351
|
return;
|
|
@@ -12778,7 +12778,7 @@ function formatPathDisplay(path) {
|
|
|
12778
12778
|
separator = _ref3$separator === void 0 ? ' / ' : _ref3$separator,
|
|
12779
12779
|
_ref3$showAllLevels = _ref3.showAllLevels,
|
|
12780
12780
|
showAllLevels = _ref3$showAllLevels === void 0 ? true : _ref3$showAllLevels;
|
|
12781
|
-
if ((0,
|
|
12781
|
+
if ((0,external_lodash_namespaceObject.isEmpty)(path) || !Array.isArray(path) || !path.length) {
|
|
12782
12782
|
return '';
|
|
12783
12783
|
}
|
|
12784
12784
|
var merged = mergeOptionProps(optionProps);
|
|
@@ -12829,7 +12829,7 @@ function cascaderDisplay_isEmptyValue(modelValue) {
|
|
|
12829
12829
|
return !Array.isArray(modelValue) || modelValue.length === 0;
|
|
12830
12830
|
}
|
|
12831
12831
|
if (labelInValue) {
|
|
12832
|
-
return (0,
|
|
12832
|
+
return (0,external_lodash_namespaceObject.isEmpty)(modelValue);
|
|
12833
12833
|
}
|
|
12834
12834
|
return !Array.isArray(modelValue) || modelValue.length === 0;
|
|
12835
12835
|
}
|
|
@@ -13496,7 +13496,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13496
13496
|
},
|
|
13497
13497
|
created: function created() {
|
|
13498
13498
|
/** 搜索输入防抖,避免频繁遍历选项树 */
|
|
13499
|
-
this.debouncedHandleSearchKeywordChange = (0,
|
|
13499
|
+
this.debouncedHandleSearchKeywordChange = (0,external_lodash_namespaceObject.debounce)(this.handleSearchKeywordChange, 200);
|
|
13500
13500
|
/** 多选已选路径键集合(非响应式,避免大数组选中时触发深度依赖追踪) */
|
|
13501
13501
|
this._selectionKeySet = new Set();
|
|
13502
13502
|
/** checkToLast:各前缀路径下的叶子总数 / 已选叶子数 */
|
|
@@ -13594,7 +13594,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13594
13594
|
if (this.multiple) {
|
|
13595
13595
|
return Array.isArray(this.modelValue) ? this.modelValue : [];
|
|
13596
13596
|
}
|
|
13597
|
-
if (this.labelInValue && (0,
|
|
13597
|
+
if (this.labelInValue && (0,external_lodash_namespaceObject.isEmpty)(this.modelValue)) {
|
|
13598
13598
|
return null;
|
|
13599
13599
|
}
|
|
13600
13600
|
return this.modelValue;
|
|
@@ -13602,7 +13602,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13602
13602
|
set: function set(v) {
|
|
13603
13603
|
var next = v;
|
|
13604
13604
|
if (!this.multiple) {
|
|
13605
|
-
if ((0,
|
|
13605
|
+
if ((0,external_lodash_namespaceObject.isEmpty)(v)) {
|
|
13606
13606
|
next = this.labelInValue ? null : [];
|
|
13607
13607
|
this.expandPath = [];
|
|
13608
13608
|
} else {
|
|
@@ -13745,7 +13745,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13745
13745
|
});
|
|
13746
13746
|
},
|
|
13747
13747
|
/** 判断节点是否选中(供 resolveVisibleRows 单次计算) */computeItemSelected: function computeItemSelected(item, level) {
|
|
13748
|
-
if ((0,
|
|
13748
|
+
if ((0,external_lodash_namespaceObject.isEmpty)(this.val)) {
|
|
13749
13749
|
return false;
|
|
13750
13750
|
}
|
|
13751
13751
|
if (!this.multiple) {
|
|
@@ -13786,7 +13786,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13786
13786
|
var selectedKeys = this._selectionKeySet;
|
|
13787
13787
|
var mapResult = function mapResult(result) {
|
|
13788
13788
|
return _objectSpread2(_objectSpread2({}, result), {}, {
|
|
13789
|
-
selected: _this6.multiple ? selectedKeys.has(result.key) : !(0,
|
|
13789
|
+
selected: _this6.multiple ? selectedKeys.has(result.key) : !(0,external_lodash_namespaceObject.isEmpty)(_this6.val) && _this6.isSamePath(_this6.val, result.pathData)
|
|
13790
13790
|
});
|
|
13791
13791
|
};
|
|
13792
13792
|
if (!this.shouldVirtualize(results)) {
|
|
@@ -13887,7 +13887,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
13887
13887
|
});
|
|
13888
13888
|
return obj;
|
|
13889
13889
|
}
|
|
13890
|
-
return (0,
|
|
13890
|
+
return (0,external_lodash_namespaceObject.omit)(node, [this.mergedOptionProps.children]);
|
|
13891
13891
|
},
|
|
13892
13892
|
// --- 路径:value 路径 ↔ 节点路径 ↔ modelValue 格式转换 ---
|
|
13893
13893
|
/** 构建从根到当前项的 value 路径 */
|
|
@@ -14158,7 +14158,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
14158
14158
|
return results;
|
|
14159
14159
|
},
|
|
14160
14160
|
/** 搜索平铺项是否选中 */isSearchResultSelected: function isSearchResultSelected(result) {
|
|
14161
|
-
if ((0,
|
|
14161
|
+
if ((0,external_lodash_namespaceObject.isEmpty)(this.val)) {
|
|
14162
14162
|
return false;
|
|
14163
14163
|
}
|
|
14164
14164
|
if (this.multiple) {
|
|
@@ -14216,7 +14216,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
14216
14216
|
if (this.multiple) {
|
|
14217
14217
|
return;
|
|
14218
14218
|
}
|
|
14219
|
-
var path = (0,
|
|
14219
|
+
var path = (0,external_lodash_namespaceObject.isEmpty)(this.modelValue) ? [] : _toConsumableArray(this.normalizePath(this.modelValue));
|
|
14220
14220
|
if (this.maxLevel != null && this.maxLevel > 0 && path.length > this.maxLevel) {
|
|
14221
14221
|
path = path.slice(0, this.maxLevel);
|
|
14222
14222
|
}
|
|
@@ -14313,7 +14313,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
14313
14313
|
/** 远程 tree 模式:一次请求完整树 */loadTreeOptions: function loadTreeOptions() {
|
|
14314
14314
|
var _this15 = this;
|
|
14315
14315
|
this.treeLoading = true;
|
|
14316
|
-
this.postFunc(this.pathUrl, (0,
|
|
14316
|
+
this.postFunc(this.pathUrl, (0,external_lodash_namespaceObject.cloneDeep)(this.postData)).then(function (res) {
|
|
14317
14317
|
_this15.treeLoading = false;
|
|
14318
14318
|
if (!res.code && res.data) {
|
|
14319
14319
|
var data = res.data;
|
|
@@ -14356,11 +14356,11 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
14356
14356
|
}
|
|
14357
14357
|
var requestPostData = function () {
|
|
14358
14358
|
var requestLevel = _this16.lazyLevelStart + level + 1;
|
|
14359
|
-
var extra = (0,
|
|
14359
|
+
var extra = (0,external_lodash_namespaceObject.cloneDeep)(_this16.postData);
|
|
14360
14360
|
if (!item) {
|
|
14361
14361
|
return _objectSpread2(_objectSpread2({}, extra), {}, _defineProperty({}, _this16.lazyLevelKey, requestLevel));
|
|
14362
14362
|
}
|
|
14363
|
-
return _objectSpread2(_objectSpread2(_objectSpread2({}, (0,
|
|
14363
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({}, (0,external_lodash_namespaceObject.omit)(item, [_this16.mergedOptionProps.children])), extra), {}, _defineProperty({}, _this16.lazyLevelKey, requestLevel));
|
|
14364
14364
|
}();
|
|
14365
14365
|
return this.postFunc(this.pathUrl, requestPostData).then(function (res) {
|
|
14366
14366
|
var _res$data;
|
|
@@ -14451,7 +14451,7 @@ var BnCascaderPanelvue_type_script_lang_js_DEFAULT_OPTION_PROPS = {
|
|
|
14451
14451
|
this.$emit('changeCheckToLast', value);
|
|
14452
14452
|
},
|
|
14453
14453
|
/** 向外同步 v-model;单选选中有效值时触发 close 收起面板 */emitValue: function emitValue(value) {
|
|
14454
|
-
if (!this.multiple && !(0,
|
|
14454
|
+
if (!this.multiple && !(0,external_lodash_namespaceObject.isEmpty)(value)) {
|
|
14455
14455
|
this.$emit('close');
|
|
14456
14456
|
}
|
|
14457
14457
|
this.$emit('update:modelValue', value);
|
|
@@ -16190,7 +16190,7 @@ var BnDropvue_type_template_id_0984e2b5_scoped_true_staticRenderFns = [];
|
|
|
16190
16190
|
/**
|
|
16191
16191
|
* 滚动加载
|
|
16192
16192
|
* */
|
|
16193
|
-
scrollMore: (0,
|
|
16193
|
+
scrollMore: (0,external_lodash_namespaceObject.debounce)(function () {
|
|
16194
16194
|
if (this.optionList.length < this.total && !this.loading) {
|
|
16195
16195
|
// 远程获取
|
|
16196
16196
|
if (this.pathUrl) {
|
|
@@ -16209,7 +16209,7 @@ var BnDropvue_type_template_id_0984e2b5_scoped_true_staticRenderFns = [];
|
|
|
16209
16209
|
* 快速搜索选项
|
|
16210
16210
|
* @param {String} val 搜索的值
|
|
16211
16211
|
*/
|
|
16212
|
-
filterMethod: (0,
|
|
16212
|
+
filterMethod: (0,external_lodash_namespaceObject.debounce)(function (val) {
|
|
16213
16213
|
this.queryValue = val;
|
|
16214
16214
|
// 选项列表被初始化过
|
|
16215
16215
|
if (this.pathUrl && this.isPage) {
|
|
@@ -16258,7 +16258,7 @@ var BnDropvue_type_template_id_0984e2b5_scoped_true_staticRenderFns = [];
|
|
|
16258
16258
|
var _this2 = this;
|
|
16259
16259
|
// 判断当前是否全选
|
|
16260
16260
|
var isAllChecked = this.isCheckedAll();
|
|
16261
|
-
var value = (0,
|
|
16261
|
+
var value = (0,external_lodash_namespaceObject.cloneDeep)(this.val);
|
|
16262
16262
|
if (isAllChecked) {
|
|
16263
16263
|
// 如果已经全选,则取消全选
|
|
16264
16264
|
value = _toConsumableArray(this.fixedFrontOptions);
|
|
@@ -18274,8 +18274,8 @@ var es_parse_float = __webpack_require__(8459);
|
|
|
18274
18274
|
computed: {
|
|
18275
18275
|
canPreview: function canPreview() {
|
|
18276
18276
|
if (!this.file.type) return false;
|
|
18277
|
-
var lowerType = (0,
|
|
18278
|
-
return (0,
|
|
18277
|
+
var lowerType = (0,external_lodash_namespaceObject.toLower)(this.file.type);
|
|
18278
|
+
return (0,external_lodash_namespaceObject.includes)((0,external_lodash_namespaceObject.map)(this.pictureType, external_lodash_namespaceObject.toLower), lowerType) || (0,external_lodash_namespaceObject.includes)((0,external_lodash_namespaceObject.map)(this.videoType, external_lodash_namespaceObject.toLower), lowerType);
|
|
18279
18279
|
}
|
|
18280
18280
|
},
|
|
18281
18281
|
methods: {
|
|
@@ -18463,7 +18463,7 @@ var FileDetail_component = normalizeComponent(
|
|
|
18463
18463
|
* */
|
|
18464
18464
|
includesType: function includesType(typeList, fileType) {
|
|
18465
18465
|
if (!fileType) return false;
|
|
18466
|
-
return (0,
|
|
18466
|
+
return (0,external_lodash_namespaceObject.includes)((0,external_lodash_namespaceObject.map)(typeList, external_lodash_namespaceObject.toLower), (0,external_lodash_namespaceObject.toLower)(fileType));
|
|
18467
18467
|
},
|
|
18468
18468
|
/**
|
|
18469
18469
|
* 打开文件预览,一般是除了图片、视频、音频这些无法预览的附件类型
|
|
@@ -18527,7 +18527,7 @@ var FileDetail_component = normalizeComponent(
|
|
|
18527
18527
|
}
|
|
18528
18528
|
// office类型文件展示对应类型图片
|
|
18529
18529
|
if (this.includesType(this.officeFileTypes, file.type)) {
|
|
18530
|
-
var lowerType = (0,
|
|
18530
|
+
var lowerType = (0,external_lodash_namespaceObject.toLower)(file.type);
|
|
18531
18531
|
if (lowerType.includes('xls')) {
|
|
18532
18532
|
url = "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_d46630a679d1f3830947095edfd12f41.png";
|
|
18533
18533
|
}
|
|
@@ -19564,7 +19564,7 @@ var es_string_ends_with = __webpack_require__(9449);
|
|
|
19564
19564
|
}
|
|
19565
19565
|
this.checkRange();
|
|
19566
19566
|
},
|
|
19567
|
-
checkRange: (0,
|
|
19567
|
+
checkRange: (0,external_lodash_namespaceObject.debounce)(function () {
|
|
19568
19568
|
var value = this.val;
|
|
19569
19569
|
// 实时校验最大值和最小值
|
|
19570
19570
|
if (value && value !== '-') {
|
|
@@ -23402,10 +23402,10 @@ function util_searchToBoolean(chart, data) {
|
|
|
23402
23402
|
// 是否处理过初始化数据
|
|
23403
23403
|
pageOptionList: [],
|
|
23404
23404
|
total: 0,
|
|
23405
|
-
loadingOptionListDebounced: (0,
|
|
23406
|
-
filterMethodDebounced: (0,
|
|
23407
|
-
initRemoteMethodDebounced: (0,
|
|
23408
|
-
initSelectDataDebounced: (0,
|
|
23405
|
+
loadingOptionListDebounced: (0,external_lodash_namespaceObject.debounce)(this.loadingOptionList, 200),
|
|
23406
|
+
filterMethodDebounced: (0,external_lodash_namespaceObject.debounce)(this.filterMethod, 200),
|
|
23407
|
+
initRemoteMethodDebounced: (0,external_lodash_namespaceObject.debounce)(this.initRemoteMethod, 10),
|
|
23408
|
+
initSelectDataDebounced: (0,external_lodash_namespaceObject.debounce)(this.initSelectData, 10)
|
|
23409
23409
|
};
|
|
23410
23410
|
},
|
|
23411
23411
|
mounted: function mounted() {
|
|
@@ -24478,7 +24478,7 @@ function _asyncToGenerator(n) {
|
|
|
24478
24478
|
},
|
|
24479
24479
|
methods: {
|
|
24480
24480
|
// 防抖函数
|
|
24481
|
-
handleInput:
|
|
24481
|
+
handleInput: external_lodash_default().debounce(function () {
|
|
24482
24482
|
this.debouncedValue = this.sourceData.value;
|
|
24483
24483
|
this.getOptions(this.debouncedValue);
|
|
24484
24484
|
}, 200),
|