iv-npm 1.2.34 → 1.2.35
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/package.json +1 -1
- package/packages/ui/dist/business-ui/component/IVMaterialTypeDropdown.d.ts +17 -0
- package/packages/ui/dist/business-ui/component/IVOrgDropdown.d.ts +17 -0
- package/packages/ui/dist/business-ui/component/IVSetofbookDropdown.d.ts +17 -0
- package/packages/ui/dist/index.cjs.js +92 -28
- package/packages/ui/dist/index.esm.js +92 -28
- package/packages/ui/dist/index.umd.js +92 -28
- package/packages/ui/dist/index.umd.js.map +1 -1
|
@@ -1507,6 +1507,16 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1507
1507
|
type: Object,
|
|
1508
1508
|
required: false
|
|
1509
1509
|
},
|
|
1510
|
+
fieldNames: {
|
|
1511
|
+
type: null,
|
|
1512
|
+
required: false,
|
|
1513
|
+
"default": function _default() {
|
|
1514
|
+
return {
|
|
1515
|
+
label: "name",
|
|
1516
|
+
value: "id"
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1510
1520
|
replaceFields: {
|
|
1511
1521
|
type: null,
|
|
1512
1522
|
required: false,
|
|
@@ -1620,6 +1630,9 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1620
1630
|
emit("update:value", value);
|
|
1621
1631
|
}
|
|
1622
1632
|
});
|
|
1633
|
+
var filterOption = computed(function () {
|
|
1634
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1635
|
+
});
|
|
1623
1636
|
/**
|
|
1624
1637
|
* 侦听器-------------------------------------
|
|
1625
1638
|
* */
|
|
@@ -1682,16 +1695,17 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1682
1695
|
allowClear: !__props.isRequired,
|
|
1683
1696
|
showSearch: "",
|
|
1684
1697
|
multiple: __props.multiple,
|
|
1685
|
-
|
|
1698
|
+
filterOption: unref(filterOption),
|
|
1686
1699
|
treeDefaultExpandAll: "",
|
|
1687
1700
|
style: __props.inputStyle,
|
|
1688
1701
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1689
1702
|
return _ctx.$emit('change', $event);
|
|
1690
1703
|
}),
|
|
1704
|
+
fieldNames: __props.fieldNames,
|
|
1691
1705
|
replaceFields: __props.replaceFields
|
|
1692
1706
|
}), null, 16
|
|
1693
1707
|
/* FULL_PROPS */
|
|
1694
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "
|
|
1708
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
|
|
1695
1709
|
}),
|
|
1696
1710
|
_: 1
|
|
1697
1711
|
/* STABLE */
|
|
@@ -1847,6 +1861,9 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1847
1861
|
emit("update:value", value);
|
|
1848
1862
|
}
|
|
1849
1863
|
});
|
|
1864
|
+
var filterOption = computed(function () {
|
|
1865
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1866
|
+
});
|
|
1850
1867
|
/**
|
|
1851
1868
|
* 侦听器-------------------------------------
|
|
1852
1869
|
* */
|
|
@@ -1912,10 +1929,10 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1912
1929
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1913
1930
|
return _ctx.$emit('change', $event);
|
|
1914
1931
|
}),
|
|
1915
|
-
|
|
1932
|
+
filterOption: unref(filterOption)
|
|
1916
1933
|
}), null, 16
|
|
1917
1934
|
/* FULL_PROPS */
|
|
1918
|
-
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
1935
|
+
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
1919
1936
|
}),
|
|
1920
1937
|
_: 1
|
|
1921
1938
|
/* STABLE */
|
|
@@ -2068,6 +2085,9 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2068
2085
|
emit("update:value", value);
|
|
2069
2086
|
}
|
|
2070
2087
|
});
|
|
2088
|
+
var filterOption = computed(function () {
|
|
2089
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2090
|
+
});
|
|
2071
2091
|
/**
|
|
2072
2092
|
* 侦听器-------------------------------------
|
|
2073
2093
|
* */
|
|
@@ -2132,10 +2152,10 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2132
2152
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2133
2153
|
return _ctx.$emit('change', $event);
|
|
2134
2154
|
}),
|
|
2135
|
-
|
|
2155
|
+
filterOption: unref(filterOption)
|
|
2136
2156
|
}), null, 16
|
|
2137
2157
|
/* FULL_PROPS */
|
|
2138
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2158
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2139
2159
|
}),
|
|
2140
2160
|
_: 1
|
|
2141
2161
|
/* STABLE */
|
|
@@ -2175,6 +2195,16 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2175
2195
|
type: Object,
|
|
2176
2196
|
required: false
|
|
2177
2197
|
},
|
|
2198
|
+
fieldNames: {
|
|
2199
|
+
type: null,
|
|
2200
|
+
required: false,
|
|
2201
|
+
"default": function _default() {
|
|
2202
|
+
return {
|
|
2203
|
+
label: "name",
|
|
2204
|
+
value: "id"
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2178
2208
|
replaceFields: {
|
|
2179
2209
|
type: null,
|
|
2180
2210
|
required: false,
|
|
@@ -2298,6 +2328,9 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2298
2328
|
emit("update:value", value);
|
|
2299
2329
|
}
|
|
2300
2330
|
});
|
|
2331
|
+
var filterOption = computed(function () {
|
|
2332
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2333
|
+
});
|
|
2301
2334
|
/**
|
|
2302
2335
|
* 侦听器-------------------------------------
|
|
2303
2336
|
* */
|
|
@@ -2360,7 +2393,8 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2360
2393
|
showArrow: "",
|
|
2361
2394
|
showSearch: "",
|
|
2362
2395
|
allowClear: !__props.isRequired,
|
|
2363
|
-
|
|
2396
|
+
filterOption: unref(filterOption),
|
|
2397
|
+
fieldNames: __props.fieldNames,
|
|
2364
2398
|
multiple: __props.multiple,
|
|
2365
2399
|
treeDefaultExpandAll: "",
|
|
2366
2400
|
style: __props.inputStyle,
|
|
@@ -2370,7 +2404,7 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2370
2404
|
replaceFields: __props.replaceFields
|
|
2371
2405
|
}), null, 16
|
|
2372
2406
|
/* FULL_PROPS */
|
|
2373
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
2407
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), createElementVNode("span", _hoisted_2$9, [renderSlot(_ctx.$slots, "notes")])];
|
|
2374
2408
|
}),
|
|
2375
2409
|
_: 3
|
|
2376
2410
|
/* FORWARDED */
|
|
@@ -2518,6 +2552,9 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2518
2552
|
emit("update:value", value);
|
|
2519
2553
|
}
|
|
2520
2554
|
});
|
|
2555
|
+
var filterOption = computed(function () {
|
|
2556
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2557
|
+
});
|
|
2521
2558
|
/**
|
|
2522
2559
|
* 侦听器-------------------------------------
|
|
2523
2560
|
* */
|
|
@@ -2579,14 +2616,14 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2579
2616
|
mode: __props.multiple ? 'multiple' : '',
|
|
2580
2617
|
showArrow: "",
|
|
2581
2618
|
options: dataV.value,
|
|
2582
|
-
|
|
2619
|
+
filterOption: unref(filterOption),
|
|
2583
2620
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2584
2621
|
return _ctx.$emit('change', $event);
|
|
2585
2622
|
}),
|
|
2586
2623
|
fieldNames: __props.fieldNames
|
|
2587
2624
|
}), null, 16
|
|
2588
2625
|
/* FULL_PROPS */
|
|
2589
|
-
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "
|
|
2626
|
+
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
|
|
2590
2627
|
}),
|
|
2591
2628
|
_: 1
|
|
2592
2629
|
/* STABLE */
|
|
@@ -2725,6 +2762,9 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2725
2762
|
emit("update:value", value);
|
|
2726
2763
|
}
|
|
2727
2764
|
});
|
|
2765
|
+
var filterOption = computed(function () {
|
|
2766
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2767
|
+
});
|
|
2728
2768
|
/**
|
|
2729
2769
|
* 侦听器-------------------------------------
|
|
2730
2770
|
* */
|
|
@@ -2789,10 +2829,10 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2789
2829
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2790
2830
|
return _ctx.$emit('change', $event);
|
|
2791
2831
|
}),
|
|
2792
|
-
|
|
2832
|
+
filterOption: unref(filterOption)
|
|
2793
2833
|
}), null, 16
|
|
2794
2834
|
/* FULL_PROPS */
|
|
2795
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2835
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2796
2836
|
}),
|
|
2797
2837
|
_: 1
|
|
2798
2838
|
/* STABLE */
|
|
@@ -2864,6 +2904,9 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2864
2904
|
emit("update:value", value);
|
|
2865
2905
|
}
|
|
2866
2906
|
});
|
|
2907
|
+
var filterOption = computed(function () {
|
|
2908
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2909
|
+
});
|
|
2867
2910
|
return function (_ctx, _cache) {
|
|
2868
2911
|
var _component_a_select = resolveComponent("a-select");
|
|
2869
2912
|
|
|
@@ -2879,13 +2922,13 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2879
2922
|
bordered: false,
|
|
2880
2923
|
options: dataV.value,
|
|
2881
2924
|
fieldNames: __props.fieldNames,
|
|
2882
|
-
|
|
2925
|
+
filterOption: unref(filterOption),
|
|
2883
2926
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2884
2927
|
return _ctx.$emit('change', $event);
|
|
2885
2928
|
})
|
|
2886
2929
|
}), null, 16
|
|
2887
2930
|
/* FULL_PROPS */
|
|
2888
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
2931
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
2889
2932
|
};
|
|
2890
2933
|
}
|
|
2891
2934
|
});
|
|
@@ -2981,6 +3024,9 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
2981
3024
|
emit("update:value", value);
|
|
2982
3025
|
}
|
|
2983
3026
|
});
|
|
3027
|
+
var filterOption = computed(function () {
|
|
3028
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3029
|
+
});
|
|
2984
3030
|
/**
|
|
2985
3031
|
* 侦听器-------------------------------------
|
|
2986
3032
|
* */
|
|
@@ -3020,13 +3066,13 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
3020
3066
|
bordered: false,
|
|
3021
3067
|
options: dataV.value,
|
|
3022
3068
|
fieldNames: __props.fieldNames,
|
|
3023
|
-
|
|
3069
|
+
filterOption: unref(filterOption),
|
|
3024
3070
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3025
3071
|
return _ctx.$emit('change', $event);
|
|
3026
3072
|
})
|
|
3027
3073
|
}), null, 16
|
|
3028
3074
|
/* FULL_PROPS */
|
|
3029
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
3075
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
3030
3076
|
};
|
|
3031
3077
|
}
|
|
3032
3078
|
});
|
|
@@ -3056,6 +3102,16 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3056
3102
|
type: Object,
|
|
3057
3103
|
required: false
|
|
3058
3104
|
},
|
|
3105
|
+
fieldNames: {
|
|
3106
|
+
type: null,
|
|
3107
|
+
required: false,
|
|
3108
|
+
"default": function _default() {
|
|
3109
|
+
return {
|
|
3110
|
+
label: "name",
|
|
3111
|
+
value: "id"
|
|
3112
|
+
};
|
|
3113
|
+
}
|
|
3114
|
+
},
|
|
3059
3115
|
replaceFields: {
|
|
3060
3116
|
type: null,
|
|
3061
3117
|
required: false,
|
|
@@ -3175,6 +3231,9 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3175
3231
|
emit("update:value", value);
|
|
3176
3232
|
}
|
|
3177
3233
|
});
|
|
3234
|
+
var filterOption = computed(function () {
|
|
3235
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3236
|
+
});
|
|
3178
3237
|
/**
|
|
3179
3238
|
* 侦听器-------------------------------------
|
|
3180
3239
|
* */
|
|
@@ -3238,17 +3297,18 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3238
3297
|
maxHeight: '400px',
|
|
3239
3298
|
overflow: 'auto'
|
|
3240
3299
|
},
|
|
3241
|
-
|
|
3300
|
+
filterOption: unref(filterOption),
|
|
3242
3301
|
multiple: __props.multiple,
|
|
3243
3302
|
treeDefaultExpandAll: "",
|
|
3244
3303
|
style: __props.inputStyle,
|
|
3245
3304
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3246
3305
|
return _ctx.$emit('change', $event);
|
|
3247
3306
|
}),
|
|
3307
|
+
fieldNames: __props.fieldNames,
|
|
3248
3308
|
replaceFields: __props.replaceFields
|
|
3249
3309
|
}), null, 16
|
|
3250
3310
|
/* FULL_PROPS */
|
|
3251
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
3311
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "fieldNames", "replaceFields"])];
|
|
3252
3312
|
}),
|
|
3253
3313
|
_: 1
|
|
3254
3314
|
/* STABLE */
|
|
@@ -3456,6 +3516,7 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3456
3516
|
var _option,
|
|
3457
3517
|
_a,
|
|
3458
3518
|
_yield$formatHTTP,
|
|
3519
|
+
items,
|
|
3459
3520
|
totalCount,
|
|
3460
3521
|
_args2 = arguments;
|
|
3461
3522
|
|
|
@@ -3471,16 +3532,13 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3471
3532
|
|
|
3472
3533
|
case 3:
|
|
3473
3534
|
_yield$formatHTTP = _context2.sent;
|
|
3474
|
-
_yield$formatHTTP.items;
|
|
3535
|
+
items = _yield$formatHTTP.items;
|
|
3475
3536
|
totalCount = _yield$formatHTTP.totalCount;
|
|
3476
|
-
|
|
3477
|
-
// item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
|
|
3478
|
-
// return item;
|
|
3479
|
-
// });
|
|
3537
|
+
dataV.value = items;
|
|
3480
3538
|
totalPages.value = totalCount;
|
|
3481
3539
|
topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
|
|
3482
3540
|
|
|
3483
|
-
case
|
|
3541
|
+
case 9:
|
|
3484
3542
|
case "end":
|
|
3485
3543
|
return _context2.stop();
|
|
3486
3544
|
}
|
|
@@ -4213,6 +4271,9 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4213
4271
|
emit("update:value", value);
|
|
4214
4272
|
}
|
|
4215
4273
|
});
|
|
4274
|
+
var filterOption = computed(function () {
|
|
4275
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4276
|
+
});
|
|
4216
4277
|
/**
|
|
4217
4278
|
* 侦听器-------------------------------------
|
|
4218
4279
|
* */
|
|
@@ -4280,10 +4341,10 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4280
4341
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4281
4342
|
return _ctx.$emit('change', $event);
|
|
4282
4343
|
}),
|
|
4283
|
-
|
|
4344
|
+
filterOption: unref(filterOption)
|
|
4284
4345
|
}), null, 16
|
|
4285
4346
|
/* FULL_PROPS */
|
|
4286
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4347
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4287
4348
|
}),
|
|
4288
4349
|
_: 1
|
|
4289
4350
|
/* STABLE */
|
|
@@ -4432,6 +4493,9 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4432
4493
|
emit("update:value", value);
|
|
4433
4494
|
}
|
|
4434
4495
|
});
|
|
4496
|
+
var filterOption = computed(function () {
|
|
4497
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4498
|
+
});
|
|
4435
4499
|
/**
|
|
4436
4500
|
* 侦听器-------------------------------------
|
|
4437
4501
|
* */
|
|
@@ -4499,10 +4563,10 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4499
4563
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4500
4564
|
return _ctx.$emit('change', $event);
|
|
4501
4565
|
}),
|
|
4502
|
-
|
|
4566
|
+
filterOption: unref(filterOption)
|
|
4503
4567
|
}), null, 16
|
|
4504
4568
|
/* FULL_PROPS */
|
|
4505
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4569
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4506
4570
|
}),
|
|
4507
4571
|
_: 1
|
|
4508
4572
|
/* STABLE */
|