bm-admin-ui 1.0.1-alpha → 1.0.4-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.d.ts +68 -3
- package/es/components/float-table/index.js +166 -193
- package/es/components/float-table/src/float-table.vue.d.ts +45 -476
- package/es/components/multi-cascader-compose/index.d.ts +31 -2
- package/es/components/multi-cascader-compose/index.js +47 -49
- package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +31 -2
- package/es/components/multi-cascader-compose/src/props.d.ts +10 -2
- package/es/components/search-filter/index.d.ts +1 -3
- package/es/components/search-filter/index.js +49 -50
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/es/components/shops-filter/index.js +0 -13
- package/es/components/staffs-selector/index.js +58 -37
- package/es/components/upload/index.js +2 -15
- package/es/utils/vxe-table.d.ts +6 -0
- package/es/utils/vxe-table.js +28 -0
- package/index.esm.js +66436 -64204
- package/index.js +66438 -64206
- package/lib/components/float-table/index.d.ts +68 -3
- package/lib/components/float-table/index.js +165 -198
- package/lib/components/float-table/src/float-table.vue.d.ts +45 -476
- package/lib/components/multi-cascader-compose/index.d.ts +31 -2
- package/lib/components/multi-cascader-compose/index.js +46 -48
- package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +31 -2
- package/lib/components/multi-cascader-compose/src/props.d.ts +10 -2
- package/lib/components/search-filter/index.d.ts +1 -3
- package/lib/components/search-filter/index.js +48 -49
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/lib/components/shops-filter/index.js +0 -13
- package/lib/components/staffs-selector/index.js +58 -37
- package/lib/components/upload/index.js +2 -15
- package/lib/utils/vxe-table.d.ts +6 -0
- package/lib/utils/vxe-table.js +33 -0
- package/package.json +29 -29
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/multi-cascader-compose.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/float-table/index.d.ts +68 -3
- package/types/components/float-table/src/float-table.vue.d.ts +45 -476
- package/types/components/multi-cascader-compose/index.d.ts +31 -2
- package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +31 -2
- package/types/components/multi-cascader-compose/src/props.d.ts +10 -2
- package/types/components/search-filter/index.d.ts +1 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/types/utils/vxe-table.d.ts +6 -0
- package/.pnpm-debug.log +0 -16
|
@@ -781,19 +781,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
781
781
|
});
|
|
782
782
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
783
783
|
});
|
|
784
|
-
presetPalettes.red;
|
|
785
|
-
presetPalettes.volcano;
|
|
786
|
-
presetPalettes.gold;
|
|
787
|
-
presetPalettes.orange;
|
|
788
|
-
presetPalettes.yellow;
|
|
789
|
-
presetPalettes.lime;
|
|
790
|
-
presetPalettes.green;
|
|
791
|
-
presetPalettes.cyan;
|
|
792
|
-
presetPalettes.blue;
|
|
793
|
-
presetPalettes.geekblue;
|
|
794
|
-
presetPalettes.purple;
|
|
795
|
-
presetPalettes.magenta;
|
|
796
|
-
presetPalettes.grey;
|
|
797
784
|
|
|
798
785
|
// https://github.com/substack/insert-css
|
|
799
786
|
var containers = []; // will store container HTMLElement references
|
|
@@ -1190,40 +1177,46 @@ RightOutlined.displayName = 'RightOutlined';
|
|
|
1190
1177
|
RightOutlined.inheritAttrs = false;
|
|
1191
1178
|
var RightOutlined$1 = RightOutlined;
|
|
1192
1179
|
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1180
|
+
function multiCascaderComposeProps() {
|
|
1181
|
+
return {
|
|
1182
|
+
options: {
|
|
1183
|
+
type: Array,
|
|
1184
|
+
default() {
|
|
1185
|
+
return [];
|
|
1186
|
+
},
|
|
1198
1187
|
},
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1188
|
+
modelValue: {
|
|
1189
|
+
type: Array,
|
|
1190
|
+
default() {
|
|
1191
|
+
return [];
|
|
1192
|
+
},
|
|
1204
1193
|
},
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1194
|
+
optionValueName: {
|
|
1195
|
+
type: String,
|
|
1196
|
+
default: 'value',
|
|
1197
|
+
},
|
|
1198
|
+
optionLabelName: {
|
|
1199
|
+
type: String,
|
|
1200
|
+
default: 'label',
|
|
1201
|
+
},
|
|
1202
|
+
maxTagCount: {
|
|
1203
|
+
type: Number,
|
|
1204
|
+
default: 1,
|
|
1205
|
+
},
|
|
1206
|
+
placeholder: {
|
|
1207
|
+
type: String,
|
|
1208
|
+
default: '请选择',
|
|
1209
|
+
},
|
|
1210
|
+
allowClear: {
|
|
1211
|
+
type: Boolean,
|
|
1212
|
+
default: true,
|
|
1213
|
+
},
|
|
1214
|
+
emptyImage: {
|
|
1215
|
+
type: [String, Object],
|
|
1216
|
+
default: undefined,
|
|
1217
|
+
},
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1227
1220
|
|
|
1228
1221
|
var _export_sfc = (sfc, props) => {
|
|
1229
1222
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -1272,7 +1265,7 @@ const __default__ = {
|
|
|
1272
1265
|
};
|
|
1273
1266
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
1274
1267
|
...__default__,
|
|
1275
|
-
props:
|
|
1268
|
+
props: multiCascaderComposeProps(),
|
|
1276
1269
|
emits: ["update:modelValue", "change"],
|
|
1277
1270
|
setup(__props, { emit: emits }) {
|
|
1278
1271
|
const props = __props;
|
|
@@ -1650,7 +1643,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1650
1643
|
}), 128))
|
|
1651
1644
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
|
|
1652
1645
|
vue.createElementVNode("div", _hoisted_19, [
|
|
1653
|
-
vue.
|
|
1646
|
+
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1647
|
+
vue.createVNode(_component_a_empty, {
|
|
1648
|
+
class: "bm-multi-cascader-popover-empty",
|
|
1649
|
+
image: props.emptyImage
|
|
1650
|
+
}, null, 8, ["image"])
|
|
1651
|
+
])
|
|
1654
1652
|
])
|
|
1655
1653
|
]))
|
|
1656
1654
|
]),
|
|
@@ -1690,7 +1688,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1690
1688
|
])
|
|
1691
1689
|
])
|
|
1692
1690
|
]),
|
|
1693
|
-
_:
|
|
1691
|
+
_: 3
|
|
1694
1692
|
})
|
|
1695
1693
|
]);
|
|
1696
1694
|
};
|
|
@@ -28,6 +28,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
+
emptyImage: {
|
|
32
|
+
type: import("vue").PropType<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}> | null | undefined)[]>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
31
39
|
}, {
|
|
32
40
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
33
41
|
options: {
|
|
@@ -58,9 +66,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
66
|
type: BooleanConstructor;
|
|
59
67
|
default: boolean;
|
|
60
68
|
};
|
|
69
|
+
emptyImage: {
|
|
70
|
+
type: import("vue").PropType<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}> | null | undefined)[]>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
61
77
|
}>> & {
|
|
62
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
63
78
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
80
|
}>>;
|
|
65
81
|
emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
|
|
66
82
|
path: import("vue").Ref<{
|
|
@@ -120,9 +136,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
136
|
type: BooleanConstructor;
|
|
121
137
|
default: boolean;
|
|
122
138
|
};
|
|
139
|
+
emptyImage: {
|
|
140
|
+
type: import("vue").PropType<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
}> | null | undefined)[]>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
123
147
|
}>> & {
|
|
124
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
125
148
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
126
150
|
}, {
|
|
127
151
|
options: MutilCascaderItem[];
|
|
128
152
|
modelValue: string[];
|
|
@@ -131,5 +155,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
155
|
maxTagCount: number;
|
|
132
156
|
placeholder: string;
|
|
133
157
|
allowClear: boolean;
|
|
158
|
+
emptyImage: JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
}> | null | undefined)[];
|
|
134
163
|
}>;
|
|
135
164
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
1
|
+
import type { PropType, ExtractPropTypes, VNode } from 'vue';
|
|
2
2
|
import { MutilCascaderItem } from '../types';
|
|
3
|
-
|
|
3
|
+
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
4
|
+
declare type VueNode = VNodeChildAtom | VNodeChildAtom[] | JSX.Element;
|
|
5
|
+
export declare function multiCascaderComposeProps(): {
|
|
4
6
|
options: {
|
|
5
7
|
type: PropType<MutilCascaderItem[]>;
|
|
6
8
|
default(): MutilCascaderItem[];
|
|
@@ -29,4 +31,10 @@ export declare const propsConfig: {
|
|
|
29
31
|
type: BooleanConstructor;
|
|
30
32
|
default: boolean;
|
|
31
33
|
};
|
|
34
|
+
emptyImage: {
|
|
35
|
+
type: PropType<VueNode>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
32
38
|
};
|
|
39
|
+
export declare type MultiCascaderComposeProps = Partial<ExtractPropTypes<ReturnType<typeof multiCascaderComposeProps>>>;
|
|
40
|
+
export {};
|
|
@@ -786,19 +786,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
786
786
|
});
|
|
787
787
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
788
788
|
});
|
|
789
|
-
presetPalettes.red;
|
|
790
|
-
presetPalettes.volcano;
|
|
791
|
-
presetPalettes.gold;
|
|
792
|
-
presetPalettes.orange;
|
|
793
|
-
presetPalettes.yellow;
|
|
794
|
-
presetPalettes.lime;
|
|
795
|
-
presetPalettes.green;
|
|
796
|
-
presetPalettes.cyan;
|
|
797
|
-
presetPalettes.blue;
|
|
798
|
-
presetPalettes.geekblue;
|
|
799
|
-
presetPalettes.purple;
|
|
800
|
-
presetPalettes.magenta;
|
|
801
|
-
presetPalettes.grey;
|
|
802
789
|
|
|
803
790
|
// https://github.com/substack/insert-css
|
|
804
791
|
var containers = []; // will store container HTMLElement references
|
|
@@ -1257,6 +1244,7 @@ const _hoisted_1$2 = { class: "bm-search-filter-btn" };
|
|
|
1257
1244
|
const _hoisted_2$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
|
|
1258
1245
|
const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
|
|
1259
1246
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
1247
|
+
__name: "search-reset-btn",
|
|
1260
1248
|
props: searchResetBtnProps,
|
|
1261
1249
|
emits: ["submit", "reset", "expand"],
|
|
1262
1250
|
setup(__props, { emit: emits }) {
|
|
@@ -1314,40 +1302,46 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1314
1302
|
});
|
|
1315
1303
|
var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "search-reset-btn.vue"]]);
|
|
1316
1304
|
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1305
|
+
function multiCascaderComposeProps() {
|
|
1306
|
+
return {
|
|
1307
|
+
options: {
|
|
1308
|
+
type: Array,
|
|
1309
|
+
default() {
|
|
1310
|
+
return [];
|
|
1311
|
+
},
|
|
1322
1312
|
},
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1313
|
+
modelValue: {
|
|
1314
|
+
type: Array,
|
|
1315
|
+
default() {
|
|
1316
|
+
return [];
|
|
1317
|
+
},
|
|
1328
1318
|
},
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1319
|
+
optionValueName: {
|
|
1320
|
+
type: String,
|
|
1321
|
+
default: 'value',
|
|
1322
|
+
},
|
|
1323
|
+
optionLabelName: {
|
|
1324
|
+
type: String,
|
|
1325
|
+
default: 'label',
|
|
1326
|
+
},
|
|
1327
|
+
maxTagCount: {
|
|
1328
|
+
type: Number,
|
|
1329
|
+
default: 1,
|
|
1330
|
+
},
|
|
1331
|
+
placeholder: {
|
|
1332
|
+
type: String,
|
|
1333
|
+
default: '请选择',
|
|
1334
|
+
},
|
|
1335
|
+
allowClear: {
|
|
1336
|
+
type: Boolean,
|
|
1337
|
+
default: true,
|
|
1338
|
+
},
|
|
1339
|
+
emptyImage: {
|
|
1340
|
+
type: [String, Object],
|
|
1341
|
+
default: undefined,
|
|
1342
|
+
},
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1351
1345
|
|
|
1352
1346
|
const _hoisted_1$1 = { class: "bm-multi-cascader-wrapper" };
|
|
1353
1347
|
const _hoisted_2 = { class: "bm-multi-cascader" };
|
|
@@ -1388,7 +1382,7 @@ const __default__$1 = {
|
|
|
1388
1382
|
};
|
|
1389
1383
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
1390
1384
|
...__default__$1,
|
|
1391
|
-
props:
|
|
1385
|
+
props: multiCascaderComposeProps(),
|
|
1392
1386
|
emits: ["update:modelValue", "change"],
|
|
1393
1387
|
setup(__props, { emit: emits }) {
|
|
1394
1388
|
const props = __props;
|
|
@@ -1766,7 +1760,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1766
1760
|
}), 128))
|
|
1767
1761
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
|
|
1768
1762
|
vue.createElementVNode("div", _hoisted_19, [
|
|
1769
|
-
vue.
|
|
1763
|
+
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1764
|
+
vue.createVNode(_component_a_empty, {
|
|
1765
|
+
class: "bm-multi-cascader-popover-empty",
|
|
1766
|
+
image: props.emptyImage
|
|
1767
|
+
}, null, 8, ["image"])
|
|
1768
|
+
])
|
|
1770
1769
|
])
|
|
1771
1770
|
]))
|
|
1772
1771
|
]),
|
|
@@ -1806,7 +1805,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1806
1805
|
])
|
|
1807
1806
|
])
|
|
1808
1807
|
]),
|
|
1809
|
-
_:
|
|
1808
|
+
_: 3
|
|
1810
1809
|
})
|
|
1811
1810
|
]);
|
|
1812
1811
|
};
|
|
@@ -1920,7 +1919,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1920
1919
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
1921
1920
|
"model-value": _ctx.value,
|
|
1922
1921
|
rule: vue.unref(rule),
|
|
1923
|
-
option
|
|
1922
|
+
option,
|
|
1924
1923
|
onChange: handleChange
|
|
1925
1924
|
}, null, 8, ["api", "model-value", "rule", "option"])
|
|
1926
1925
|
]);
|
|
@@ -793,19 +793,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
793
793
|
});
|
|
794
794
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
795
795
|
});
|
|
796
|
-
presetPalettes.red;
|
|
797
|
-
presetPalettes.volcano;
|
|
798
|
-
presetPalettes.gold;
|
|
799
|
-
presetPalettes.orange;
|
|
800
|
-
presetPalettes.yellow;
|
|
801
|
-
presetPalettes.lime;
|
|
802
|
-
presetPalettes.green;
|
|
803
|
-
presetPalettes.cyan;
|
|
804
|
-
presetPalettes.blue;
|
|
805
|
-
presetPalettes.geekblue;
|
|
806
|
-
presetPalettes.purple;
|
|
807
|
-
presetPalettes.magenta;
|
|
808
|
-
presetPalettes.grey;
|
|
809
796
|
|
|
810
797
|
// https://github.com/substack/insert-css
|
|
811
798
|
var containers = []; // will store container HTMLElement references
|
|
@@ -796,19 +796,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
796
796
|
});
|
|
797
797
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
798
798
|
});
|
|
799
|
-
presetPalettes.red;
|
|
800
|
-
presetPalettes.volcano;
|
|
801
|
-
presetPalettes.gold;
|
|
802
|
-
presetPalettes.orange;
|
|
803
|
-
presetPalettes.yellow;
|
|
804
|
-
presetPalettes.lime;
|
|
805
|
-
presetPalettes.green;
|
|
806
|
-
presetPalettes.cyan;
|
|
807
|
-
presetPalettes.blue;
|
|
808
|
-
presetPalettes.geekblue;
|
|
809
|
-
presetPalettes.purple;
|
|
810
|
-
presetPalettes.magenta;
|
|
811
|
-
presetPalettes.grey;
|
|
812
799
|
|
|
813
800
|
// https://github.com/substack/insert-css
|
|
814
801
|
var containers = []; // will store container HTMLElement references
|
|
@@ -870,9 +857,9 @@ function insertCss(css, options) {
|
|
|
870
857
|
return styleElement;
|
|
871
858
|
}
|
|
872
859
|
|
|
873
|
-
function _objectSpread$
|
|
860
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
|
|
874
861
|
|
|
875
|
-
function _defineProperty$
|
|
862
|
+
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
876
863
|
function warn(valid, message) {
|
|
877
864
|
// Support uglify
|
|
878
865
|
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
@@ -888,14 +875,14 @@ function isIconDefinition(target) {
|
|
|
888
875
|
}
|
|
889
876
|
function generate(node, key, rootProps) {
|
|
890
877
|
if (!rootProps) {
|
|
891
|
-
return vue.h(node.tag, _objectSpread$
|
|
878
|
+
return vue.h(node.tag, _objectSpread$4({
|
|
892
879
|
key: key
|
|
893
880
|
}, node.attrs), (node.children || []).map(function (child, index) {
|
|
894
881
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
895
882
|
}));
|
|
896
883
|
}
|
|
897
884
|
|
|
898
|
-
return vue.h(node.tag, _objectSpread$
|
|
885
|
+
return vue.h(node.tag, _objectSpread$4({
|
|
899
886
|
key: key
|
|
900
887
|
}, rootProps, node.attrs), (node.children || []).map(function (child, index) {
|
|
901
888
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
@@ -935,9 +922,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
|
|
|
935
922
|
|
|
936
923
|
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
937
924
|
|
|
938
|
-
function _objectSpread$
|
|
925
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
|
|
939
926
|
|
|
940
|
-
function _defineProperty$
|
|
927
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
941
928
|
var twoToneColorPalette = {
|
|
942
929
|
primaryColor: '#333',
|
|
943
930
|
secondaryColor: '#E6E6E6',
|
|
@@ -953,11 +940,11 @@ function setTwoToneColors(_ref) {
|
|
|
953
940
|
}
|
|
954
941
|
|
|
955
942
|
function getTwoToneColors() {
|
|
956
|
-
return _objectSpread$
|
|
943
|
+
return _objectSpread$3({}, twoToneColorPalette);
|
|
957
944
|
}
|
|
958
945
|
|
|
959
946
|
var IconBase = function IconBase(props, context) {
|
|
960
|
-
var _props$context$attrs = _objectSpread$
|
|
947
|
+
var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
|
|
961
948
|
icon = _props$context$attrs.icon,
|
|
962
949
|
primaryColor = _props$context$attrs.primaryColor,
|
|
963
950
|
secondaryColor = _props$context$attrs.secondaryColor,
|
|
@@ -982,12 +969,12 @@ var IconBase = function IconBase(props, context) {
|
|
|
982
969
|
var target = icon;
|
|
983
970
|
|
|
984
971
|
if (target && typeof target.icon === 'function') {
|
|
985
|
-
target = _objectSpread$
|
|
972
|
+
target = _objectSpread$3({}, target, {
|
|
986
973
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
987
974
|
});
|
|
988
975
|
}
|
|
989
976
|
|
|
990
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$
|
|
977
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$3({}, restProps, {
|
|
991
978
|
'data-icon': target.name,
|
|
992
979
|
width: '1em',
|
|
993
980
|
height: '1em',
|
|
@@ -1054,9 +1041,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
1054
1041
|
|
|
1055
1042
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1056
1043
|
|
|
1057
|
-
function _objectSpread$
|
|
1044
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
|
1058
1045
|
|
|
1059
|
-
function _defineProperty$
|
|
1046
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1060
1047
|
|
|
1061
1048
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1062
1049
|
|
|
@@ -1067,7 +1054,7 @@ setTwoToneColor('#1890ff');
|
|
|
1067
1054
|
var Icon = function Icon(props, context) {
|
|
1068
1055
|
var _classObj;
|
|
1069
1056
|
|
|
1070
|
-
var _props$context$attrs = _objectSpread$
|
|
1057
|
+
var _props$context$attrs = _objectSpread$2({}, props, context.attrs),
|
|
1071
1058
|
cls = _props$context$attrs["class"],
|
|
1072
1059
|
icon = _props$context$attrs.icon,
|
|
1073
1060
|
spin = _props$context$attrs.spin,
|
|
@@ -1079,7 +1066,7 @@ var Icon = function Icon(props, context) {
|
|
|
1079
1066
|
|
|
1080
1067
|
var classObj = (_classObj = {
|
|
1081
1068
|
anticon: true
|
|
1082
|
-
}, _defineProperty$
|
|
1069
|
+
}, _defineProperty$2(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$2(_classObj, cls, cls), _classObj);
|
|
1083
1070
|
var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
|
|
1084
1071
|
var iconTabIndex = tabindex;
|
|
1085
1072
|
|
|
@@ -1098,7 +1085,7 @@ var Icon = function Icon(props, context) {
|
|
|
1098
1085
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
1099
1086
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
1100
1087
|
|
|
1101
|
-
return vue.createVNode("span", _objectSpread$
|
|
1088
|
+
return vue.createVNode("span", _objectSpread$2({
|
|
1102
1089
|
"role": "img",
|
|
1103
1090
|
"aria-label": icon.name
|
|
1104
1091
|
}, restProps, {
|
|
@@ -1129,14 +1116,14 @@ var AntdIcon = Icon;
|
|
|
1129
1116
|
var CloseCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
1130
1117
|
var CloseCircleFilledSvg = CloseCircleFilled$2;
|
|
1131
1118
|
|
|
1132
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
1119
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
|
1133
1120
|
|
|
1134
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1121
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1135
1122
|
|
|
1136
1123
|
var CloseCircleFilled = function CloseCircleFilled(props, context) {
|
|
1137
|
-
var p = _objectSpread({}, props, context.attrs);
|
|
1124
|
+
var p = _objectSpread$1({}, props, context.attrs);
|
|
1138
1125
|
|
|
1139
|
-
return vue.createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1126
|
+
return vue.createVNode(AntdIcon, _objectSpread$1({}, p, {
|
|
1140
1127
|
"icon": CloseCircleFilledSvg
|
|
1141
1128
|
}), null);
|
|
1142
1129
|
};
|
|
@@ -1145,6 +1132,26 @@ CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
|
1145
1132
|
CloseCircleFilled.inheritAttrs = false;
|
|
1146
1133
|
var CloseCircleFilled$1 = CloseCircleFilled;
|
|
1147
1134
|
|
|
1135
|
+
// This icon file is generated automatically.
|
|
1136
|
+
var SearchOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
|
1137
|
+
var SearchOutlinedSvg = SearchOutlined$2;
|
|
1138
|
+
|
|
1139
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
1140
|
+
|
|
1141
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1142
|
+
|
|
1143
|
+
var SearchOutlined = function SearchOutlined(props, context) {
|
|
1144
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
1145
|
+
|
|
1146
|
+
return vue.createVNode(AntdIcon, _objectSpread({}, p, {
|
|
1147
|
+
"icon": SearchOutlinedSvg
|
|
1148
|
+
}), null);
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
SearchOutlined.displayName = 'SearchOutlined';
|
|
1152
|
+
SearchOutlined.inheritAttrs = false;
|
|
1153
|
+
var SearchOutlined$1 = SearchOutlined;
|
|
1154
|
+
|
|
1148
1155
|
var _export_sfc = (sfc, props) => {
|
|
1149
1156
|
const target = sfc.__vccOpts || sfc;
|
|
1150
1157
|
for (const [key, val] of props) {
|
|
@@ -1154,7 +1161,14 @@ var _export_sfc = (sfc, props) => {
|
|
|
1154
1161
|
};
|
|
1155
1162
|
|
|
1156
1163
|
const _sfc_main$3 = vue.defineComponent({
|
|
1157
|
-
components: {
|
|
1164
|
+
components: {
|
|
1165
|
+
CloseCircleFilled: CloseCircleFilled$1,
|
|
1166
|
+
SearchOutlined: SearchOutlined$1,
|
|
1167
|
+
Empty: Empty__default["default"],
|
|
1168
|
+
AInput: AInput__default["default"],
|
|
1169
|
+
Checkbox: Checkbox__default["default"],
|
|
1170
|
+
ATree: ATree__default["default"]
|
|
1171
|
+
},
|
|
1158
1172
|
props: {
|
|
1159
1173
|
limit: {
|
|
1160
1174
|
type: Number,
|
|
@@ -1416,7 +1430,7 @@ var multipleCmp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
|
|
|
1416
1430
|
|
|
1417
1431
|
const _sfc_main$2 = vue.defineComponent({
|
|
1418
1432
|
name: "RadioCmp",
|
|
1419
|
-
components: { ARadio: ARadio__default["default"], AInput: AInput__default["default"], ARadioGroup: ARadio.Group },
|
|
1433
|
+
components: { ARadio: ARadio__default["default"], AInput: AInput__default["default"], ARadioGroup: ARadio.Group, Empty: Empty__default["default"], SearchOutlined: SearchOutlined$1 },
|
|
1420
1434
|
props: {
|
|
1421
1435
|
list: {
|
|
1422
1436
|
type: Array,
|
|
@@ -1514,7 +1528,14 @@ var radioCmp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$
|
|
|
1514
1528
|
|
|
1515
1529
|
const _sfc_main$1 = vue.defineComponent({
|
|
1516
1530
|
name: "VariedCmp",
|
|
1517
|
-
components: {
|
|
1531
|
+
components: {
|
|
1532
|
+
CloseCircleFilled: CloseCircleFilled$1,
|
|
1533
|
+
SearchOutlined: SearchOutlined$1,
|
|
1534
|
+
AInput: AInput__default["default"],
|
|
1535
|
+
Checkbox: Checkbox__default["default"],
|
|
1536
|
+
ATree: ATree__default["default"],
|
|
1537
|
+
Empty: Empty__default["default"]
|
|
1538
|
+
},
|
|
1518
1539
|
props: {
|
|
1519
1540
|
list: {
|
|
1520
1541
|
type: Array,
|
|
@@ -1814,7 +1835,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1814
1835
|
]);
|
|
1815
1836
|
}), 128))
|
|
1816
1837
|
])) : vue.createCommentVNode("v-if", true)
|
|
1817
|
-
],
|
|
1838
|
+
], 64))
|
|
1818
1839
|
])
|
|
1819
1840
|
]),
|
|
1820
1841
|
vue.createElementVNode("div", _hoisted_14, [
|
|
@@ -1919,7 +1940,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
1919
1940
|
},
|
|
1920
1941
|
summitSelect() {
|
|
1921
1942
|
if (typeof state.selected === "string") {
|
|
1922
|
-
emit("update:select", state.dataMap.get(state.selected));
|
|
1943
|
+
emit("update:select", [state.dataMap.get(state.selected)]);
|
|
1923
1944
|
} else if (state.selected instanceof Array) {
|
|
1924
1945
|
emit("update:select", state.selected.map((item) => state.dataMap.get(item)));
|
|
1925
1946
|
}
|