bm-admin-ui 1.0.84-alpha → 1.0.86-alpha
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/es/components/float-table/index.js +62 -54
- package/es/components/form-create/index.js +70 -10
- package/es/components/index.d.ts +0 -1
- package/es/components/shops-filter/index.js +33 -5
- package/es/components/staffs-selector/index.d.ts +8 -8
- package/es/components/staffs-selector/index.js +2 -2
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
- package/lib/components/float-table/index.js +62 -54
- package/lib/components/form-create/index.js +68 -8
- package/lib/components/index.d.ts +0 -1
- package/lib/components/shops-filter/index.js +33 -5
- package/lib/components/staffs-selector/index.d.ts +8 -8
- package/lib/components/staffs-selector/index.js +2 -2
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
- package/package.json +1 -1
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/shops-filter.css +1 -1
- package/types/components/index.d.ts +0 -1
- package/types/components/staffs-selector/index.d.ts +8 -8
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
- package/es/components/shops-filter/index.d.ts +0 -99
- package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
- package/lib/components/shops-filter/index.d.ts +0 -99
- package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
- package/types/components/shops-filter/index.d.ts +0 -99
- package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
|
@@ -4,7 +4,7 @@ import { Empty } from 'ant-design-vue';
|
|
|
4
4
|
import { VXETable } from 'vxe-table';
|
|
5
5
|
|
|
6
6
|
/**!
|
|
7
|
-
* Sortable 1.
|
|
7
|
+
* Sortable 1.15.0
|
|
8
8
|
* @author RubaXa <trash@rubaxa.org>
|
|
9
9
|
* @author owenm <owen23355@gmail.com>
|
|
10
10
|
* @license MIT
|
|
@@ -132,7 +132,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
132
132
|
return target;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
var version = "1.
|
|
135
|
+
var version = "1.15.0";
|
|
136
136
|
|
|
137
137
|
function userAgent(pattern) {
|
|
138
138
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -1053,11 +1053,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
1053
1053
|
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
1054
1054
|
},
|
|
1055
1055
|
|
|
1056
|
-
/**
|
|
1057
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1058
|
-
* @param {Number} x X position
|
|
1059
|
-
* @param {Number} y Y position
|
|
1060
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1056
|
+
/**
|
|
1057
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1058
|
+
* @param {Number} x X position
|
|
1059
|
+
* @param {Number} y Y position
|
|
1060
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1061
1061
|
*/
|
|
1062
1062
|
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
1063
1063
|
var ret;
|
|
@@ -1123,7 +1123,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
|
1123
1123
|
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
1124
1124
|
|
|
1125
1125
|
|
|
1126
|
-
if (documentExists) {
|
|
1126
|
+
if (documentExists && !ChromeForAndroid) {
|
|
1127
1127
|
document.addEventListener('click', function (evt) {
|
|
1128
1128
|
if (ignoreNextClick) {
|
|
1129
1129
|
evt.preventDefault();
|
|
@@ -1165,10 +1165,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
|
1165
1165
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
/**
|
|
1169
|
-
* @class Sortable
|
|
1170
|
-
* @param {HTMLElement} el
|
|
1171
|
-
* @param {Object} [options]
|
|
1168
|
+
/**
|
|
1169
|
+
* @class Sortable
|
|
1170
|
+
* @param {HTMLElement} el
|
|
1171
|
+
* @param {Object} [options]
|
|
1172
1172
|
*/
|
|
1173
1173
|
|
|
1174
1174
|
|
|
@@ -1742,6 +1742,7 @@ Sortable.prototype =
|
|
|
1742
1742
|
|
|
1743
1743
|
if (!Sortable.eventCanceled) {
|
|
1744
1744
|
cloneEl = clone(dragEl);
|
|
1745
|
+
cloneEl.removeAttribute("id");
|
|
1745
1746
|
cloneEl.draggable = false;
|
|
1746
1747
|
cloneEl.style['will-change'] = '';
|
|
1747
1748
|
|
|
@@ -1983,7 +1984,14 @@ Sortable.prototype =
|
|
|
1983
1984
|
|
|
1984
1985
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
1985
1986
|
capture();
|
|
1986
|
-
|
|
1987
|
+
|
|
1988
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
1989
|
+
// the last draggable element is not the last node
|
|
1990
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
1991
|
+
} else {
|
|
1992
|
+
el.appendChild(dragEl);
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1987
1995
|
parentEl = el; // actualization
|
|
1988
1996
|
|
|
1989
1997
|
changed();
|
|
@@ -2306,9 +2314,9 @@ Sortable.prototype =
|
|
|
2306
2314
|
}
|
|
2307
2315
|
},
|
|
2308
2316
|
|
|
2309
|
-
/**
|
|
2310
|
-
* Serializes the item into an array of string.
|
|
2311
|
-
* @returns {String[]}
|
|
2317
|
+
/**
|
|
2318
|
+
* Serializes the item into an array of string.
|
|
2319
|
+
* @returns {String[]}
|
|
2312
2320
|
*/
|
|
2313
2321
|
toArray: function toArray() {
|
|
2314
2322
|
var order = [],
|
|
@@ -2329,9 +2337,9 @@ Sortable.prototype =
|
|
|
2329
2337
|
return order;
|
|
2330
2338
|
},
|
|
2331
2339
|
|
|
2332
|
-
/**
|
|
2333
|
-
* Sorts the elements according to the array.
|
|
2334
|
-
* @param {String[]} order order of the items
|
|
2340
|
+
/**
|
|
2341
|
+
* Sorts the elements according to the array.
|
|
2342
|
+
* @param {String[]} order order of the items
|
|
2335
2343
|
*/
|
|
2336
2344
|
sort: function sort(order, useAnimation) {
|
|
2337
2345
|
var items = {},
|
|
@@ -2353,29 +2361,29 @@ Sortable.prototype =
|
|
|
2353
2361
|
useAnimation && this.animateAll();
|
|
2354
2362
|
},
|
|
2355
2363
|
|
|
2356
|
-
/**
|
|
2357
|
-
* Save the current sorting
|
|
2364
|
+
/**
|
|
2365
|
+
* Save the current sorting
|
|
2358
2366
|
*/
|
|
2359
2367
|
save: function save() {
|
|
2360
2368
|
var store = this.options.store;
|
|
2361
2369
|
store && store.set && store.set(this);
|
|
2362
2370
|
},
|
|
2363
2371
|
|
|
2364
|
-
/**
|
|
2365
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2366
|
-
* @param {HTMLElement} el
|
|
2367
|
-
* @param {String} [selector] default: `options.draggable`
|
|
2368
|
-
* @returns {HTMLElement|null}
|
|
2372
|
+
/**
|
|
2373
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2374
|
+
* @param {HTMLElement} el
|
|
2375
|
+
* @param {String} [selector] default: `options.draggable`
|
|
2376
|
+
* @returns {HTMLElement|null}
|
|
2369
2377
|
*/
|
|
2370
2378
|
closest: function closest$1(el, selector) {
|
|
2371
2379
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
2372
2380
|
},
|
|
2373
2381
|
|
|
2374
|
-
/**
|
|
2375
|
-
* Set/get option
|
|
2376
|
-
* @param {string} name
|
|
2377
|
-
* @param {*} [value]
|
|
2378
|
-
* @returns {*}
|
|
2382
|
+
/**
|
|
2383
|
+
* Set/get option
|
|
2384
|
+
* @param {string} name
|
|
2385
|
+
* @param {*} [value]
|
|
2386
|
+
* @returns {*}
|
|
2379
2387
|
*/
|
|
2380
2388
|
option: function option(name, value) {
|
|
2381
2389
|
var options = this.options;
|
|
@@ -2397,8 +2405,8 @@ Sortable.prototype =
|
|
|
2397
2405
|
}
|
|
2398
2406
|
},
|
|
2399
2407
|
|
|
2400
|
-
/**
|
|
2401
|
-
* Destroy
|
|
2408
|
+
/**
|
|
2409
|
+
* Destroy
|
|
2402
2410
|
*/
|
|
2403
2411
|
destroy: function destroy() {
|
|
2404
2412
|
pluginEvent('destroy', this);
|
|
@@ -2575,11 +2583,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
2575
2583
|
|
|
2576
2584
|
return 0;
|
|
2577
2585
|
}
|
|
2578
|
-
/**
|
|
2579
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2580
|
-
* seem that dragEl has been "inserted" into that element's position
|
|
2581
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2582
|
-
* @return {Number} Direction dragEl must be swapped
|
|
2586
|
+
/**
|
|
2587
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2588
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
2589
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2590
|
+
* @return {Number} Direction dragEl must be swapped
|
|
2583
2591
|
*/
|
|
2584
2592
|
|
|
2585
2593
|
|
|
@@ -2590,11 +2598,11 @@ function _getInsertDirection(target) {
|
|
|
2590
2598
|
return -1;
|
|
2591
2599
|
}
|
|
2592
2600
|
}
|
|
2593
|
-
/**
|
|
2594
|
-
* Generate id
|
|
2595
|
-
* @param {HTMLElement} el
|
|
2596
|
-
* @returns {String}
|
|
2597
|
-
* @private
|
|
2601
|
+
/**
|
|
2602
|
+
* Generate id
|
|
2603
|
+
* @param {HTMLElement} el
|
|
2604
|
+
* @returns {String}
|
|
2605
|
+
* @private
|
|
2598
2606
|
*/
|
|
2599
2607
|
|
|
2600
2608
|
|
|
@@ -2658,18 +2666,18 @@ Sortable.utils = {
|
|
|
2658
2666
|
detectDirection: _detectDirection,
|
|
2659
2667
|
getChild: getChild
|
|
2660
2668
|
};
|
|
2661
|
-
/**
|
|
2662
|
-
* Get the Sortable instance of an element
|
|
2663
|
-
* @param {HTMLElement} element The element
|
|
2664
|
-
* @return {Sortable|undefined} The instance of Sortable
|
|
2669
|
+
/**
|
|
2670
|
+
* Get the Sortable instance of an element
|
|
2671
|
+
* @param {HTMLElement} element The element
|
|
2672
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
2665
2673
|
*/
|
|
2666
2674
|
|
|
2667
2675
|
Sortable.get = function (element) {
|
|
2668
2676
|
return element[expando];
|
|
2669
2677
|
};
|
|
2670
|
-
/**
|
|
2671
|
-
* Mount a plugin to Sortable
|
|
2672
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2678
|
+
/**
|
|
2679
|
+
* Mount a plugin to Sortable
|
|
2680
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2673
2681
|
*/
|
|
2674
2682
|
|
|
2675
2683
|
|
|
@@ -2688,10 +2696,10 @@ Sortable.mount = function () {
|
|
|
2688
2696
|
PluginManager.mount(plugin);
|
|
2689
2697
|
});
|
|
2690
2698
|
};
|
|
2691
|
-
/**
|
|
2692
|
-
* Create sortable instance
|
|
2693
|
-
* @param {HTMLElement} el
|
|
2694
|
-
* @param {Object} [options]
|
|
2699
|
+
/**
|
|
2700
|
+
* Create sortable instance
|
|
2701
|
+
* @param {HTMLElement} el
|
|
2702
|
+
* @param {Object} [options]
|
|
2695
2703
|
*/
|
|
2696
2704
|
|
|
2697
2705
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle,
|
|
2
|
+
import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle, withModifiers, createElementVNode, createCommentVNode, normalizeClass, reactive, watch, createSlots, inject, createStaticVNode, provide, resolveComponent } from 'vue';
|
|
3
3
|
import { Input, InputNumber, RadioGroup, Radio, Select, DatePicker, RangePicker, message, Modal, Layout, LayoutSider, Tree, LayoutContent, Button, Row, Col, Pagination, FormItemRest, Divider, Tabs, TabPane, Cascader } from 'ant-design-vue';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import Picture from 'bm-admin-ui/es/components/upload';
|
|
6
6
|
import BmStaffsSelector from 'bm-admin-ui/es/components/staffs-selector';
|
|
7
7
|
import { BmTagsDisplay, BmFloatTable } from 'bm-admin-ui/es/components';
|
|
8
|
-
import { SearchOutlined, CheckCircleFilled, PlusOutlined } from '@ant-design/icons-vue';
|
|
8
|
+
import { EyeOutlined, SearchOutlined, CheckCircleFilled, PlusOutlined } from '@ant-design/icons-vue';
|
|
9
9
|
import { cloneDeep, floor, debounce } from 'lodash-es';
|
|
10
10
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
11
11
|
import { isNull } from 'bm-admin-ui/es/utils/isNull';
|
|
@@ -1027,9 +1027,12 @@ var people = {
|
|
|
1027
1027
|
},
|
|
1028
1028
|
};
|
|
1029
1029
|
|
|
1030
|
+
const _hoisted_1$6 = ["onClick"];
|
|
1031
|
+
const _hoisted_2$6 = ["onClick"];
|
|
1032
|
+
const _hoisted_3$5 = { class: "box" };
|
|
1030
1033
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1031
1034
|
__name: "temp-content",
|
|
1032
|
-
props: ["content"],
|
|
1035
|
+
props: ["content", "preview"],
|
|
1033
1036
|
setup(__props) {
|
|
1034
1037
|
const props = __props;
|
|
1035
1038
|
const layers = computed(() => {
|
|
@@ -1052,6 +1055,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1052
1055
|
}
|
|
1053
1056
|
return "";
|
|
1054
1057
|
});
|
|
1058
|
+
const picPreview = ref(false);
|
|
1059
|
+
function triggerPreview() {
|
|
1060
|
+
picPreview.value = !picPreview.value;
|
|
1061
|
+
}
|
|
1055
1062
|
return (_ctx, _cache) => {
|
|
1056
1063
|
return openBlock(), createElementBlock("div", {
|
|
1057
1064
|
class: "bm-fc-rect-outer",
|
|
@@ -1059,13 +1066,45 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1059
1066
|
unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {}
|
|
1060
1067
|
)
|
|
1061
1068
|
}, [
|
|
1069
|
+
props?.preview ? (openBlock(), createElementBlock("div", {
|
|
1070
|
+
key: 0,
|
|
1071
|
+
class: "mask-hover",
|
|
1072
|
+
onClick: withModifiers(triggerPreview, ["stop"])
|
|
1073
|
+
}, [
|
|
1074
|
+
createElementVNode("p", null, [
|
|
1075
|
+
createVNode(unref(EyeOutlined)),
|
|
1076
|
+
createTextVNode("\xA0\u9884\u89C8")
|
|
1077
|
+
])
|
|
1078
|
+
], 8, _hoisted_1$6)) : createCommentVNode("v-if", true),
|
|
1062
1079
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layers), (layer) => {
|
|
1063
1080
|
return openBlock(), createElementBlock("div", {
|
|
1064
1081
|
key: layer.uuid,
|
|
1065
1082
|
class: normalizeClass(["bm-fc-rect", { "is-ele": layer.backgroundImage }]),
|
|
1066
1083
|
style: normalizeStyle(layer)
|
|
1067
|
-
},
|
|
1068
|
-
}), 128))
|
|
1084
|
+
}, toDisplayString(layer.name), 7);
|
|
1085
|
+
}), 128)),
|
|
1086
|
+
__props.preview && picPreview.value ? (openBlock(), createElementBlock("div", {
|
|
1087
|
+
key: 1,
|
|
1088
|
+
class: "bm-fc-rect-wrapper",
|
|
1089
|
+
onClick: withModifiers(triggerPreview, ["self"])
|
|
1090
|
+
}, [
|
|
1091
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
1092
|
+
createElementVNode("div", {
|
|
1093
|
+
class: "bm-fc-rect-outer",
|
|
1094
|
+
style: normalizeStyle(
|
|
1095
|
+
unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {}
|
|
1096
|
+
)
|
|
1097
|
+
}, [
|
|
1098
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layers), (layer) => {
|
|
1099
|
+
return openBlock(), createElementBlock("div", {
|
|
1100
|
+
key: layer.uuid,
|
|
1101
|
+
class: normalizeClass(["bm-fc-rect", { "is-ele": layer.backgroundImage }]),
|
|
1102
|
+
style: normalizeStyle(layer)
|
|
1103
|
+
}, toDisplayString(layer.name), 7);
|
|
1104
|
+
}), 128))
|
|
1105
|
+
], 4)
|
|
1106
|
+
])
|
|
1107
|
+
], 8, _hoisted_2$6)) : createCommentVNode("v-if", true)
|
|
1069
1108
|
], 4);
|
|
1070
1109
|
};
|
|
1071
1110
|
}
|
|
@@ -19454,6 +19493,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19454
19493
|
}
|
|
19455
19494
|
return tableRule;
|
|
19456
19495
|
}
|
|
19496
|
+
function getTempContentWithName(tempData) {
|
|
19497
|
+
if (tempData?.coverageArr) {
|
|
19498
|
+
try {
|
|
19499
|
+
return JSON.stringify(
|
|
19500
|
+
tempData?.coverageArr?.map((arr) => {
|
|
19501
|
+
const style = JSON.parse(arr?.extraValues);
|
|
19502
|
+
style.name = ![98, 99].includes(+arr?.fieldType) ? arr.name : "";
|
|
19503
|
+
return style;
|
|
19504
|
+
})
|
|
19505
|
+
);
|
|
19506
|
+
} catch (e) {
|
|
19507
|
+
throw Error("\u6A21\u677F\u6570\u636E\u5B57\u6BB5\u9519\u8BEF");
|
|
19508
|
+
}
|
|
19509
|
+
}
|
|
19510
|
+
return [];
|
|
19511
|
+
}
|
|
19457
19512
|
props.value && initValue(props.value);
|
|
19458
19513
|
props.extraConfig.materialTemp.getDict().then((data) => {
|
|
19459
19514
|
measrueDicts.value = data;
|
|
@@ -19654,7 +19709,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19654
19709
|
pane.tempSelected.content ? (openBlock(), createBlock(TempContent, {
|
|
19655
19710
|
key: 0,
|
|
19656
19711
|
class: "bm-fc-form-item__temp-content",
|
|
19657
|
-
content: pane.tempSelected
|
|
19712
|
+
content: getTempContentWithName(pane.tempSelected),
|
|
19713
|
+
preview: true
|
|
19658
19714
|
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", _hoisted_9$2, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
|
|
19659
19715
|
]),
|
|
19660
19716
|
_: 2
|
|
@@ -20001,9 +20057,11 @@ var product = {
|
|
|
20001
20057
|
on: {
|
|
20002
20058
|
change(inject, value) {
|
|
20003
20059
|
inject.self.props.defalutValue = value;
|
|
20004
|
-
inject.api.form[inject.self.field] = value;
|
|
20005
20060
|
nextTick(() => {
|
|
20006
|
-
inject.api.
|
|
20061
|
+
inject.api.form[inject.self.field] = value;
|
|
20062
|
+
setTimeout(() => {
|
|
20063
|
+
inject.api.validateField(inject.self.field);
|
|
20064
|
+
});
|
|
20007
20065
|
});
|
|
20008
20066
|
},
|
|
20009
20067
|
},
|
|
@@ -20028,9 +20086,11 @@ var product = {
|
|
|
20028
20086
|
on: {
|
|
20029
20087
|
change(inject, value) {
|
|
20030
20088
|
inject.self.props.defalutValue = value;
|
|
20031
|
-
inject.api.form[inject.self.field] = value;
|
|
20032
20089
|
nextTick(() => {
|
|
20033
|
-
inject.api.
|
|
20090
|
+
inject.api.form[inject.self.field] = value;
|
|
20091
|
+
setTimeout(() => {
|
|
20092
|
+
inject.api.validateField(inject.self.field);
|
|
20093
|
+
});
|
|
20034
20094
|
});
|
|
20035
20095
|
},
|
|
20036
20096
|
},
|
package/es/components/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './button';
|
|
|
2
2
|
export * from './flow-designer';
|
|
3
3
|
export * from './feedback';
|
|
4
4
|
export * from './search-filter';
|
|
5
|
-
export * from './shops-filter';
|
|
6
5
|
export * from './staffs-selector/index';
|
|
7
6
|
export * from './float-table';
|
|
8
7
|
export * from './over-tooltips';
|
|
@@ -28,6 +28,16 @@ const _sfc_main = defineComponent({
|
|
|
28
28
|
Empty
|
|
29
29
|
},
|
|
30
30
|
props: {
|
|
31
|
+
selected: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default() {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
searchShopProp: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "search"
|
|
40
|
+
},
|
|
31
41
|
labelTitle: {
|
|
32
42
|
type: String,
|
|
33
43
|
default: "\u5E97\u94FA"
|
|
@@ -146,7 +156,7 @@ const _sfc_main = defineComponent({
|
|
|
146
156
|
filters.forEach((item, index) => {
|
|
147
157
|
params[String(item.paramsStr)] = state.filterSelects[index] || "";
|
|
148
158
|
});
|
|
149
|
-
params[
|
|
159
|
+
params[props.searchShopProp] = state.searchVal;
|
|
150
160
|
props.loadData(params).then((data) => {
|
|
151
161
|
state.shopList = data;
|
|
152
162
|
data.forEach((item) => {
|
|
@@ -197,6 +207,24 @@ const _sfc_main = defineComponent({
|
|
|
197
207
|
},
|
|
198
208
|
{ deep: true }
|
|
199
209
|
);
|
|
210
|
+
watch(
|
|
211
|
+
() => props.selected,
|
|
212
|
+
(val) => {
|
|
213
|
+
state.selected = [...val];
|
|
214
|
+
for (let [key, value] of Object.entries(state.shopCheck)) {
|
|
215
|
+
if (props.selected?.includes(key)) {
|
|
216
|
+
state.shopCheck[key] = true;
|
|
217
|
+
} else {
|
|
218
|
+
state.shopCheck[key] = false;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
state.selected.forEach((code) => {
|
|
222
|
+
state.shopCheck[code] = true;
|
|
223
|
+
});
|
|
224
|
+
methods.checkboxChange();
|
|
225
|
+
},
|
|
226
|
+
{ deep: true, immediate: true }
|
|
227
|
+
);
|
|
200
228
|
if (props.showAlways) {
|
|
201
229
|
state.isActive = true;
|
|
202
230
|
}
|
|
@@ -214,7 +242,7 @@ const _sfc_main = defineComponent({
|
|
|
214
242
|
};
|
|
215
243
|
}
|
|
216
244
|
});
|
|
217
|
-
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span",
|
|
245
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "__shops-filter-input-placeholder" }, "\u8BF7\u9009\u62E9", -1);
|
|
218
246
|
const _hoisted_2 = { class: "input-icon active-icon" };
|
|
219
247
|
const _hoisted_3 = { class: "pop-seleted-title" };
|
|
220
248
|
const _hoisted_4 = { class: "__shops-filter-list" };
|
|
@@ -325,12 +353,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325
353
|
style: normalizeStyle({ width: _ctx.displayParams?.searchWidth || "240px" })
|
|
326
354
|
}, [
|
|
327
355
|
createVNode(_component_input_search, {
|
|
328
|
-
|
|
329
|
-
"onUpdate:
|
|
356
|
+
value: _ctx.searchVal,
|
|
357
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => _ctx.searchVal = $event),
|
|
330
358
|
placeholder: "\u641C\u7D22\u5E97\u94FA\u540D\u79F0",
|
|
331
359
|
"allow-clear": true,
|
|
332
360
|
onSearch: _ctx.fetchData
|
|
333
|
-
}, null, 8, ["
|
|
361
|
+
}, null, 8, ["value", "onSearch"])
|
|
334
362
|
], 4), [
|
|
335
363
|
[vShow, _ctx.isActive]
|
|
336
364
|
]),
|
|
@@ -908,7 +908,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}> | null | undefined)[]>;
|
|
910
910
|
isFulfill: import("vue").Ref<boolean>;
|
|
911
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
911
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
912
912
|
limit: {
|
|
913
913
|
type: NumberConstructor;
|
|
914
914
|
default: number;
|
|
@@ -918,11 +918,11 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
918
918
|
default: () => never[];
|
|
919
919
|
};
|
|
920
920
|
}>> & {
|
|
921
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
922
921
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
922
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
923
923
|
}, {
|
|
924
|
-
selected: unknown[];
|
|
925
924
|
limit: number;
|
|
925
|
+
selected: unknown[];
|
|
926
926
|
}>;
|
|
927
927
|
radioCmp: import("vue").DefineComponent<{
|
|
928
928
|
list: {
|
|
@@ -939,7 +939,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
939
939
|
searched: import("vue").ComputedRef<boolean>;
|
|
940
940
|
search: () => void;
|
|
941
941
|
radioChange: (e: any) => void;
|
|
942
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
942
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
943
943
|
list: {
|
|
944
944
|
type: ArrayConstructor;
|
|
945
945
|
default: () => never[];
|
|
@@ -949,8 +949,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
949
949
|
default: string;
|
|
950
950
|
};
|
|
951
951
|
}>> & {
|
|
952
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
953
952
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
953
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
954
954
|
}, {
|
|
955
955
|
list: unknown[];
|
|
956
956
|
selected: string;
|
|
@@ -984,7 +984,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
984
984
|
}> | null | undefined)[]>;
|
|
985
985
|
isFulfill: import("vue").Ref<boolean>;
|
|
986
986
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
987
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
987
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
988
988
|
limit: {
|
|
989
989
|
type: NumberConstructor;
|
|
990
990
|
default: number;
|
|
@@ -994,11 +994,11 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
994
994
|
default: () => never[];
|
|
995
995
|
};
|
|
996
996
|
}>> & {
|
|
997
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
998
997
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
998
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
999
999
|
}, {
|
|
1000
|
-
selected: unknown[];
|
|
1001
1000
|
limit: number;
|
|
1001
|
+
selected: unknown[];
|
|
1002
1002
|
}>;
|
|
1003
1003
|
list: any;
|
|
1004
1004
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -190,7 +190,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
190
|
createVNode(_component_AInput, {
|
|
191
191
|
value: _ctx.searchVal,
|
|
192
192
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
193
|
-
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D
|
|
193
|
+
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
|
|
194
194
|
onBlur: _ctx.search
|
|
195
195
|
}, {
|
|
196
196
|
suffix: withCtx(() => [
|
|
@@ -303,7 +303,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
303
303
|
createVNode(_component_a_input, {
|
|
304
304
|
value: _ctx.searchVal,
|
|
305
305
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
306
|
-
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D
|
|
306
|
+
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
|
|
307
307
|
onBlur: _ctx.search
|
|
308
308
|
}, {
|
|
309
309
|
suffix: withCtx(() => [
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
28
|
isFulfill: import("vue").Ref<boolean>;
|
|
29
29
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
30
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
limit: {
|
|
32
32
|
type: NumberConstructor;
|
|
33
33
|
default: number;
|
|
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: () => never[];
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
selected: unknown[];
|
|
44
43
|
limit: number;
|
|
44
|
+
selected: unknown[];
|
|
45
45
|
}>;
|
|
46
46
|
export default _default;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}> | null | undefined)[]>;
|
|
29
29
|
isFulfill: import("vue").Ref<boolean>;
|
|
30
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
limit: {
|
|
32
32
|
type: NumberConstructor;
|
|
33
33
|
default: number;
|
|
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: () => never[];
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
selected: unknown[];
|
|
44
43
|
limit: number;
|
|
44
|
+
selected: unknown[];
|
|
45
45
|
}>;
|
|
46
46
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
searched: import("vue").ComputedRef<boolean>;
|
|
14
14
|
search: () => void;
|
|
15
15
|
radioChange: (e: any) => void;
|
|
16
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fetchList" | "update:selected")[], "fetchList" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
list: {
|
|
18
18
|
type: ArrayConstructor;
|
|
19
19
|
default: () => never[];
|
|
@@ -23,8 +23,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
}>> & {
|
|
26
|
-
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
27
26
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
list: unknown[];
|
|
30
30
|
selected: string;
|