ll-plus 2.3.15 → 2.3.17
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/advanced-filtering/index.d.ts +26 -6
- package/es/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/es/components/advanced-filtering/src/advanced-filtering.mjs +2 -1
- package/es/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +5 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +2 -1
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/es/components/drawer/src/drawer.vue.d.ts +2 -1
- package/es/components/drawer/src/drawer.vue2.mjs +43 -9
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/form/index.d.ts +8 -2
- package/es/components/form/index.mjs +1 -1
- package/es/components/form/src/config/form.d.ts +6 -0
- package/es/components/form/src/config/form.mjs +7 -1
- package/es/components/form/src/config/form.mjs.map +1 -1
- package/es/components/form/src/config/index.mjs +1 -1
- package/es/components/form/src/form.vue.d.ts +8 -2
- package/es/components/form/src/form.vue2.mjs +14 -3
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/key-value/index.d.ts +48 -12
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/es/components/key-value/src/components/key-value-item.vue2.mjs +1 -0
- package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/components/key-value/src/key-value.vue.d.ts +48 -12
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/modal/src/modal.vue.d.ts +2 -0
- package/es/components/modal/src/modal.vue2.mjs +41 -2
- package/es/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/components/select-group/index.d.ts +18 -4
- package/es/components/select-group/index.mjs +1 -1
- package/es/components/select-group/src/select-group.d.ts +2 -1
- package/es/components/select-group/src/select-group.mjs +3 -2
- package/es/components/select-group/src/select-group.mjs.map +1 -1
- package/es/components/select-group/src/select-group.vue.d.ts +18 -4
- package/es/components/select-group/src/select-group.vue2.mjs +58 -14
- package/es/components/select-group/src/select-group.vue2.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +168 -25
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +19 -19
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +167 -26
- package/lib/components/advanced-filtering/index.d.ts +26 -6
- package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/lib/components/advanced-filtering/src/advanced-filtering.js +2 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +5 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +2 -1
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
- package/lib/components/drawer/src/drawer.vue2.js +42 -8
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/form/index.d.ts +8 -2
- package/lib/components/form/index.js +1 -0
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/config/form.d.ts +6 -0
- package/lib/components/form/src/config/form.js +7 -0
- package/lib/components/form/src/config/form.js.map +1 -1
- package/lib/components/form/src/config/index.js +1 -0
- package/lib/components/form/src/config/index.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +8 -2
- package/lib/components/form/src/form.vue2.js +12 -1
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/key-value/index.d.ts +48 -12
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/lib/components/key-value/src/components/key-value-item.vue2.js +1 -0
- package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/components/key-value/src/key-value.vue.d.ts +48 -12
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/src/modal.vue.d.ts +2 -0
- package/lib/components/modal/src/modal.vue2.js +40 -1
- package/lib/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/components/select-group/index.d.ts +18 -4
- package/lib/components/select-group/index.js +1 -0
- package/lib/components/select-group/index.js.map +1 -1
- package/lib/components/select-group/src/select-group.d.ts +2 -1
- package/lib/components/select-group/src/select-group.js +3 -1
- package/lib/components/select-group/src/select-group.js.map +1 -1
- package/lib/components/select-group/src/select-group.vue.d.ts +18 -4
- package/lib/components/select-group/src/select-group.vue2.js +56 -12
- package/lib/components/select-group/src/select-group.vue2.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/drawer.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/modal.css +1 -1
- package/theme-chalk/css/select-group.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +26 -6
- package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/types/packages/components/drawer/index.d.ts +2 -1
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
- package/types/packages/components/form/index.d.ts +8 -2
- package/types/packages/components/form/src/config/form.d.ts +6 -0
- package/types/packages/components/form/src/form.vue.d.ts +8 -2
- package/types/packages/components/key-value/index.d.ts +48 -12
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/types/packages/components/key-value/src/key-value.vue.d.ts +48 -12
- package/types/packages/components/modal/index.d.ts +2 -0
- package/types/packages/components/modal/src/modal.vue.d.ts +2 -0
- package/types/packages/components/select-group/index.d.ts +18 -4
- package/types/packages/components/select-group/src/select-group.d.ts +2 -1
- package/types/packages/components/select-group/src/select-group.vue.d.ts +18 -4
- package/types/packages/utils/props/runtime.d.ts +2 -2
package/index.full.mjs
CHANGED
|
@@ -1563,7 +1563,8 @@ const advancedFilteringEmits = {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
const advancedFilteringParamsEmits = {
|
|
1565
1565
|
close: () => true,
|
|
1566
|
-
confirm: () => true
|
|
1566
|
+
confirm: () => true,
|
|
1567
|
+
changeValue: (value) => !!value
|
|
1567
1568
|
};
|
|
1568
1569
|
const advancedFilteringTagsEmits = {
|
|
1569
1570
|
change: (value) => !!value,
|
|
@@ -1596,6 +1597,9 @@ var _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1596
1597
|
const handleAdvancedFilterConfirm = () => {
|
|
1597
1598
|
emits("confirm");
|
|
1598
1599
|
};
|
|
1600
|
+
const handleChange = (val) => {
|
|
1601
|
+
emits("changeValue", val);
|
|
1602
|
+
};
|
|
1599
1603
|
watch(
|
|
1600
1604
|
() => props.value,
|
|
1601
1605
|
() => {
|
|
@@ -1632,7 +1636,8 @@ var _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1632
1636
|
key: key.value,
|
|
1633
1637
|
"form-columns": props.filterColumns,
|
|
1634
1638
|
"form-options": props.formOptions,
|
|
1635
|
-
"form-data": props.value
|
|
1639
|
+
"form-data": props.value,
|
|
1640
|
+
onChange: handleChange
|
|
1636
1641
|
}, null, 8, ["form-columns", "form-options", "form-data"])) : (openBlock(), createElementBlock(
|
|
1637
1642
|
"div",
|
|
1638
1643
|
{
|
|
@@ -46740,13 +46745,13 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
46740
46745
|
__name: "drawer",
|
|
46741
46746
|
props: drawerProps,
|
|
46742
46747
|
emits: drawerEmits,
|
|
46743
|
-
setup(__props, { emit: __emit }) {
|
|
46748
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
46744
46749
|
const props = __props;
|
|
46745
46750
|
const emits = __emit;
|
|
46746
46751
|
const attrs = useAttrs();
|
|
46747
46752
|
const bem = createNamespace("drawer");
|
|
46748
|
-
const content = ref();
|
|
46749
46753
|
const hasScroll = ref(false);
|
|
46754
|
+
const scrollTop = ref(0);
|
|
46750
46755
|
const symbolClass = ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
46751
46756
|
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
46752
46757
|
const getBindValue = computed(() => ({
|
|
@@ -46787,20 +46792,35 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
46787
46792
|
const { clientHeight } = entries[0].target;
|
|
46788
46793
|
const scrollHeight = ele.clientHeight;
|
|
46789
46794
|
hasScroll.value = clientHeight > scrollHeight;
|
|
46790
|
-
console.log(clientHeight, scrollHeight, hasScroll.value);
|
|
46791
46795
|
});
|
|
46792
46796
|
if (value) {
|
|
46793
46797
|
resizeObserver.observe(modalBody);
|
|
46798
|
+
ele.addEventListener("scroll", () => {
|
|
46799
|
+
scrollTop.value = ele.scrollTop;
|
|
46800
|
+
});
|
|
46794
46801
|
} else {
|
|
46795
46802
|
resizeObserver.unobserve(modalBody);
|
|
46803
|
+
ele.removeEventListener("scroll", () => {
|
|
46804
|
+
scrollTop.value = 0;
|
|
46805
|
+
});
|
|
46796
46806
|
}
|
|
46797
46807
|
};
|
|
46808
|
+
const onScrollTop = async () => {
|
|
46809
|
+
await nextTick();
|
|
46810
|
+
if (!hasScroll.value)
|
|
46811
|
+
return;
|
|
46812
|
+
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
46813
|
+
ele.scrollTop = 0;
|
|
46814
|
+
};
|
|
46798
46815
|
watch(
|
|
46799
46816
|
() => props.open,
|
|
46800
46817
|
(val) => {
|
|
46801
46818
|
handleResize(val);
|
|
46802
46819
|
}
|
|
46803
46820
|
);
|
|
46821
|
+
__expose({
|
|
46822
|
+
onScrollTop
|
|
46823
|
+
});
|
|
46804
46824
|
return (_ctx, _cache) => {
|
|
46805
46825
|
const _component_ll_button = resolveComponent("ll-button");
|
|
46806
46826
|
return openBlock(), createBlock(unref(Drawer$1), mergeProps(getBindValue.value, {
|
|
@@ -46822,19 +46842,38 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
46822
46842
|
class: normalizeClass([unref(bem).e("container"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
|
|
46823
46843
|
},
|
|
46824
46844
|
[
|
|
46845
|
+
_ctx.$slots.step ? (openBlock(), createElementBlock(
|
|
46846
|
+
"div",
|
|
46847
|
+
{
|
|
46848
|
+
key: 0,
|
|
46849
|
+
class: normalizeClass(unref(bem).e("step"))
|
|
46850
|
+
},
|
|
46851
|
+
[
|
|
46852
|
+
renderSlot(_ctx.$slots, "step")
|
|
46853
|
+
],
|
|
46854
|
+
2
|
|
46855
|
+
/* CLASS */
|
|
46856
|
+
)) : createCommentVNode("v-if", true),
|
|
46825
46857
|
createElementVNode(
|
|
46826
46858
|
"div",
|
|
46827
46859
|
{
|
|
46828
|
-
ref_key: "content",
|
|
46829
|
-
ref: content,
|
|
46830
46860
|
class: normalizeClass([unref(bem).e("content"), symbolClass.value])
|
|
46831
46861
|
},
|
|
46832
46862
|
[
|
|
46833
|
-
|
|
46863
|
+
hasScroll.value && scrollTop.value > 0 ? (openBlock(), createElementBlock(
|
|
46864
|
+
"div",
|
|
46865
|
+
{
|
|
46866
|
+
key: 0,
|
|
46867
|
+
class: normalizeClass(unref(bem).e("shadow"))
|
|
46868
|
+
},
|
|
46869
|
+
null,
|
|
46870
|
+
2
|
|
46871
|
+
/* CLASS */
|
|
46872
|
+
)) : createCommentVNode("v-if", true),
|
|
46834
46873
|
createElementVNode(
|
|
46835
46874
|
"div",
|
|
46836
46875
|
{
|
|
46837
|
-
class: normalizeClass([symbolComparedClass.value])
|
|
46876
|
+
class: normalizeClass([symbolComparedClass.value, unref(bem).e("scroll")])
|
|
46838
46877
|
},
|
|
46839
46878
|
[
|
|
46840
46879
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -46849,7 +46888,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
46849
46888
|
props.showFooter ? (openBlock(), createElementBlock(
|
|
46850
46889
|
"div",
|
|
46851
46890
|
{
|
|
46852
|
-
key:
|
|
46891
|
+
key: 1,
|
|
46853
46892
|
class: normalizeClass([unref(bem).e("footer"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
|
|
46854
46893
|
},
|
|
46855
46894
|
[
|
|
@@ -57116,6 +57155,12 @@ const formProps = buildProps({
|
|
|
57116
57155
|
default: false
|
|
57117
57156
|
}
|
|
57118
57157
|
});
|
|
57158
|
+
const formEmits = {
|
|
57159
|
+
/**
|
|
57160
|
+
* @description 表单项值改变时触发
|
|
57161
|
+
*/
|
|
57162
|
+
change: (value) => !!value
|
|
57163
|
+
};
|
|
57119
57164
|
|
|
57120
57165
|
const checkedType = ["radio", "checkbox", "switch"];
|
|
57121
57166
|
|
|
@@ -57170,8 +57215,10 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
57170
57215
|
...{ name: "LlForm" },
|
|
57171
57216
|
__name: "form",
|
|
57172
57217
|
props: formProps,
|
|
57173
|
-
|
|
57218
|
+
emits: formEmits,
|
|
57219
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
57174
57220
|
const props = __props;
|
|
57221
|
+
const emits = __emit;
|
|
57175
57222
|
const bem = createNamespace("form");
|
|
57176
57223
|
const formData = reactive(props.formData);
|
|
57177
57224
|
const formRef = ref();
|
|
@@ -57195,6 +57242,15 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
57195
57242
|
}
|
|
57196
57243
|
return bem.is("label-top");
|
|
57197
57244
|
};
|
|
57245
|
+
watch(
|
|
57246
|
+
() => formData,
|
|
57247
|
+
(val) => {
|
|
57248
|
+
emits("change", val);
|
|
57249
|
+
},
|
|
57250
|
+
{
|
|
57251
|
+
deep: true
|
|
57252
|
+
}
|
|
57253
|
+
);
|
|
57198
57254
|
__expose({
|
|
57199
57255
|
validate,
|
|
57200
57256
|
resetFields
|
|
@@ -58543,6 +58599,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
58543
58599
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value["key"] = $event),
|
|
58544
58600
|
options: props.keyTypes,
|
|
58545
58601
|
disabled: getKeyDisabled.value,
|
|
58602
|
+
style: { "width": "100%" },
|
|
58546
58603
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
58547
58604
|
"allow-clear": "",
|
|
58548
58605
|
onChange: handleChange
|
|
@@ -58964,13 +59021,14 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
58964
59021
|
__name: "modal",
|
|
58965
59022
|
props: modalProps,
|
|
58966
59023
|
emits: modalEmits,
|
|
58967
|
-
setup(__props, { emit: __emit }) {
|
|
59024
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
58968
59025
|
const props = __props;
|
|
58969
59026
|
const emits = __emit;
|
|
58970
59027
|
const attrs = useAttrs();
|
|
58971
59028
|
const bem = createNamespace("modal");
|
|
58972
59029
|
const modal = ref();
|
|
58973
59030
|
const hasScroll = ref(false);
|
|
59031
|
+
const scrollTop = ref(0);
|
|
58974
59032
|
const symbolClass = ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
58975
59033
|
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
58976
59034
|
const getBindValue = computed(() => {
|
|
@@ -59000,16 +59058,32 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
59000
59058
|
});
|
|
59001
59059
|
if (value) {
|
|
59002
59060
|
resizeObserver.observe(modalBody);
|
|
59061
|
+
ele.addEventListener("scroll", () => {
|
|
59062
|
+
scrollTop.value = ele.scrollTop;
|
|
59063
|
+
});
|
|
59003
59064
|
} else {
|
|
59004
59065
|
resizeObserver.unobserve(modalBody);
|
|
59066
|
+
ele.removeEventListener("scroll", () => {
|
|
59067
|
+
scrollTop.value = 0;
|
|
59068
|
+
});
|
|
59005
59069
|
}
|
|
59006
59070
|
};
|
|
59071
|
+
const onScrollTop = async () => {
|
|
59072
|
+
await nextTick();
|
|
59073
|
+
if (!hasScroll.value)
|
|
59074
|
+
return;
|
|
59075
|
+
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
59076
|
+
ele.scrollTop = 0;
|
|
59077
|
+
};
|
|
59007
59078
|
watch(
|
|
59008
59079
|
() => props.open,
|
|
59009
59080
|
(val) => {
|
|
59010
59081
|
handleResize(val);
|
|
59011
59082
|
}
|
|
59012
59083
|
);
|
|
59084
|
+
__expose({
|
|
59085
|
+
onScrollTop
|
|
59086
|
+
});
|
|
59013
59087
|
return (_ctx, _cache) => {
|
|
59014
59088
|
return openBlock(), createBlock(unref(Modal$1), mergeProps(getBindValue.value, {
|
|
59015
59089
|
ref_key: "modal",
|
|
@@ -59026,12 +59100,34 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
59026
59100
|
onOk: handleOk
|
|
59027
59101
|
}), createSlots({
|
|
59028
59102
|
default: withCtx(() => [
|
|
59103
|
+
_ctx.$slots.step ? (openBlock(), createElementBlock(
|
|
59104
|
+
"div",
|
|
59105
|
+
{
|
|
59106
|
+
key: 0,
|
|
59107
|
+
class: normalizeClass(unref(bem).e("step"))
|
|
59108
|
+
},
|
|
59109
|
+
[
|
|
59110
|
+
renderSlot(_ctx.$slots, "step")
|
|
59111
|
+
],
|
|
59112
|
+
2
|
|
59113
|
+
/* CLASS */
|
|
59114
|
+
)) : createCommentVNode("v-if", true),
|
|
59029
59115
|
createElementVNode(
|
|
59030
59116
|
"div",
|
|
59031
59117
|
{
|
|
59032
59118
|
class: normalizeClass([unref(bem).e("container"), symbolClass.value, unref(bem).is(props.type)])
|
|
59033
59119
|
},
|
|
59034
59120
|
[
|
|
59121
|
+
hasScroll.value && scrollTop.value > 0 ? (openBlock(), createElementBlock(
|
|
59122
|
+
"div",
|
|
59123
|
+
{
|
|
59124
|
+
key: 0,
|
|
59125
|
+
class: normalizeClass(unref(bem).e("shadow"))
|
|
59126
|
+
},
|
|
59127
|
+
null,
|
|
59128
|
+
2
|
|
59129
|
+
/* CLASS */
|
|
59130
|
+
)) : createCommentVNode("v-if", true),
|
|
59035
59131
|
createElementVNode(
|
|
59036
59132
|
"div",
|
|
59037
59133
|
{
|
|
@@ -61207,10 +61303,11 @@ const selectGroupProps = buildProps({
|
|
|
61207
61303
|
}
|
|
61208
61304
|
});
|
|
61209
61305
|
const selectGroupEmits = {
|
|
61210
|
-
change: (selectV, value) => !!selectV
|
|
61306
|
+
change: (selectV, value) => !!selectV || !!value,
|
|
61211
61307
|
onSelectChange: (selectV, item) => !!selectV && !!item
|
|
61212
61308
|
// 左侧selectchange
|
|
61213
61309
|
};
|
|
61310
|
+
const LEFT_SELECT_MIN_WIDTH = 84;
|
|
61214
61311
|
|
|
61215
61312
|
var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
61216
61313
|
...{ name: "LlSelectGroup" },
|
|
@@ -61223,8 +61320,18 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61223
61320
|
const typeSelectValue = ref("1");
|
|
61224
61321
|
const value = ref("");
|
|
61225
61322
|
const selectItem = ref();
|
|
61323
|
+
const newList = ref([]);
|
|
61226
61324
|
const bem = createNamespace("select-group");
|
|
61227
61325
|
const bemContainer = createNamespace("select-group-container");
|
|
61326
|
+
const leftSelectWidth = computed(() => {
|
|
61327
|
+
const names = newList.value.map((item) => item.name.length);
|
|
61328
|
+
const maxNameLength = Math.max(...names);
|
|
61329
|
+
if (maxNameLength <= 3) {
|
|
61330
|
+
return LEFT_SELECT_MIN_WIDTH + "px";
|
|
61331
|
+
}
|
|
61332
|
+
const width = LEFT_SELECT_MIN_WIDTH + (maxNameLength - 3) * 14;
|
|
61333
|
+
return width + "px";
|
|
61334
|
+
});
|
|
61228
61335
|
const handleSelectChange = (_, options) => {
|
|
61229
61336
|
const item = options.item;
|
|
61230
61337
|
const formType = item.showFormType;
|
|
@@ -61233,25 +61340,56 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61233
61340
|
} else if (formType === "range-picker") {
|
|
61234
61341
|
value.value = [void 0, void 0];
|
|
61235
61342
|
} else if (formType === "select") {
|
|
61236
|
-
value.value =
|
|
61343
|
+
value.value = -1;
|
|
61237
61344
|
}
|
|
61238
61345
|
selectItem.value = options.item;
|
|
61239
61346
|
emits("onSelectChange", _, options);
|
|
61240
61347
|
};
|
|
61241
61348
|
const handleChange = () => {
|
|
61242
|
-
emits(
|
|
61349
|
+
emits(
|
|
61350
|
+
"change",
|
|
61351
|
+
selectItem.value?.value,
|
|
61352
|
+
value.value === -1 ? void 0 : value.value
|
|
61353
|
+
);
|
|
61243
61354
|
};
|
|
61244
61355
|
watch(
|
|
61245
61356
|
() => [props.selectValue, props.data],
|
|
61246
61357
|
([selectValue, newData]) => {
|
|
61247
61358
|
if (newData && newData.length) {
|
|
61248
|
-
|
|
61249
|
-
|
|
61359
|
+
const list = newData.map((item) => {
|
|
61360
|
+
const newItem = { ...item };
|
|
61361
|
+
if (newItem.showFormType === "select") {
|
|
61362
|
+
if (newItem.options?.length) {
|
|
61363
|
+
newItem.options = [
|
|
61364
|
+
{
|
|
61365
|
+
label: "\u5168\u90E8",
|
|
61366
|
+
value: -1
|
|
61367
|
+
},
|
|
61368
|
+
...newItem.options
|
|
61369
|
+
];
|
|
61370
|
+
} else if (newItem.list?.length) {
|
|
61371
|
+
newItem.list = [
|
|
61372
|
+
{
|
|
61373
|
+
name: "\u5168\u90E8",
|
|
61374
|
+
value: -1
|
|
61375
|
+
},
|
|
61376
|
+
...newItem.list
|
|
61377
|
+
];
|
|
61378
|
+
}
|
|
61379
|
+
}
|
|
61380
|
+
return newItem;
|
|
61381
|
+
});
|
|
61382
|
+
let firstItem = list[0];
|
|
61383
|
+
const findItem = list.find((item) => item.value === selectValue);
|
|
61250
61384
|
if (findItem) {
|
|
61251
61385
|
firstItem = findItem;
|
|
61252
61386
|
}
|
|
61387
|
+
if (firstItem.showFormType === "select") {
|
|
61388
|
+
value.value = -1;
|
|
61389
|
+
}
|
|
61253
61390
|
selectItem.value = firstItem;
|
|
61254
61391
|
typeSelectValue.value = selectValue ? selectValue : firstItem.value;
|
|
61392
|
+
newList.value = list;
|
|
61255
61393
|
}
|
|
61256
61394
|
},
|
|
61257
61395
|
{
|
|
@@ -61295,13 +61433,14 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61295
61433
|
value: typeSelectValue.value,
|
|
61296
61434
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => typeSelectValue.value = $event),
|
|
61297
61435
|
class: "select-group-left-select-container",
|
|
61436
|
+
style: normalizeStyle({ minWidth: leftSelectWidth.value }),
|
|
61298
61437
|
onChange: handleSelectChange
|
|
61299
61438
|
}, {
|
|
61300
61439
|
default: withCtx(() => [
|
|
61301
61440
|
(openBlock(true), createElementBlock(
|
|
61302
61441
|
Fragment,
|
|
61303
61442
|
null,
|
|
61304
|
-
renderList(
|
|
61443
|
+
renderList(newList.value, (item) => {
|
|
61305
61444
|
return openBlock(), createBlock(_component_a_select_option, {
|
|
61306
61445
|
key: item.name,
|
|
61307
61446
|
value: item.value,
|
|
@@ -61324,13 +61463,14 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61324
61463
|
]),
|
|
61325
61464
|
_: 1
|
|
61326
61465
|
/* STABLE */
|
|
61327
|
-
}, 8, ["value"]),
|
|
61466
|
+
}, 8, ["value", "style"]),
|
|
61328
61467
|
createCommentVNode(" \u53F3\u4FA7\u7EC4\u5408\u8868\u5355 "),
|
|
61329
61468
|
createCommentVNode(" input\u8F93\u5165\u6846 "),
|
|
61330
61469
|
!selectItem.value?.showFormType || selectItem.value?.showFormType === "input" ? (openBlock(), createBlock(_component_a_input, {
|
|
61331
61470
|
key: 0,
|
|
61332
61471
|
value: value.value,
|
|
61333
61472
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => value.value = $event),
|
|
61473
|
+
class: normalizeClass(unref(bem).e("right-input")),
|
|
61334
61474
|
placeholder: selectItem.value?.placeholder,
|
|
61335
61475
|
onPressEnter: handleChange
|
|
61336
61476
|
}, {
|
|
@@ -61342,7 +61482,7 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61342
61482
|
]),
|
|
61343
61483
|
_: 1
|
|
61344
61484
|
/* STABLE */
|
|
61345
|
-
}, 8, ["value", "placeholder"])) : selectItem.value?.showFormType === "select" ? (openBlock(), createElementBlock(
|
|
61485
|
+
}, 8, ["value", "class", "placeholder"])) : selectItem.value?.showFormType === "select" ? (openBlock(), createElementBlock(
|
|
61346
61486
|
Fragment,
|
|
61347
61487
|
{ key: 1 },
|
|
61348
61488
|
[
|
|
@@ -61350,10 +61490,10 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61350
61490
|
createVNode(_component_a_select, {
|
|
61351
61491
|
value: value.value,
|
|
61352
61492
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => value.value = $event),
|
|
61493
|
+
class: normalizeClass(unref(bem).e("right-select")),
|
|
61353
61494
|
"popup-class-name": "select-group-right-select",
|
|
61354
61495
|
options: selectItem.value?.options,
|
|
61355
61496
|
placeholder: selectItem.value?.placeholder,
|
|
61356
|
-
style: { "width": "100%" },
|
|
61357
61497
|
"field-names": selectItem.value?.fieldNames,
|
|
61358
61498
|
onChange: handleChange
|
|
61359
61499
|
}, {
|
|
@@ -61383,7 +61523,7 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61383
61523
|
]),
|
|
61384
61524
|
_: 1
|
|
61385
61525
|
/* STABLE */
|
|
61386
|
-
}, 8, ["value", "options", "placeholder", "field-names"])
|
|
61526
|
+
}, 8, ["value", "class", "options", "placeholder", "field-names"])
|
|
61387
61527
|
],
|
|
61388
61528
|
64
|
|
61389
61529
|
/* STABLE_FRAGMENT */
|
|
@@ -61395,8 +61535,9 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61395
61535
|
createVNode(_component_a_range_picker, {
|
|
61396
61536
|
value: value.value,
|
|
61397
61537
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
61538
|
+
class: normalizeClass(unref(bem).e("right-range-picker")),
|
|
61398
61539
|
onChange: handleChange
|
|
61399
|
-
}, null, 8, ["value"])
|
|
61540
|
+
}, null, 8, ["value", "class"])
|
|
61400
61541
|
],
|
|
61401
61542
|
64
|
|
61402
61543
|
/* STABLE_FRAGMENT */
|
|
@@ -61408,12 +61549,12 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
61408
61549
|
createVNode(_component_a_tree_select, {
|
|
61409
61550
|
value: value.value,
|
|
61410
61551
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => value.value = $event),
|
|
61411
|
-
|
|
61552
|
+
class: normalizeClass(unref(bem).e("right-tree-select")),
|
|
61412
61553
|
"field-names": selectItem.value.fieldNames,
|
|
61413
61554
|
placeholder: selectItem.value?.placeholder,
|
|
61414
61555
|
"tree-data": selectItem.value.list,
|
|
61415
61556
|
onSelect: handleChange
|
|
61416
|
-
}, null, 8, ["value", "field-names", "placeholder", "tree-data"])
|
|
61557
|
+
}, null, 8, ["value", "class", "field-names", "placeholder", "tree-data"])
|
|
61417
61558
|
],
|
|
61418
61559
|
64
|
|
61419
61560
|
/* STABLE_FRAGMENT */
|
|
@@ -77094,4 +77235,4 @@ var installer = makeInstaller([...Components]);
|
|
|
77094
77235
|
|
|
77095
77236
|
const install = installer.install;
|
|
77096
77237
|
|
|
77097
|
-
export { DEFAULT_METHOD, DEFAULT_TYPE, ILlUploadDragProps, ImenuSwitchType, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlConfigProvider, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlInput, LlInputNumber, LlKeyValue, LlModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, OperateTreeEmits, TypeEnum, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, buttonProps, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, contentTypeOptions, customOverlay, dateUtil, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, formColumns, formComponentProps, formOptions, formProps, formatToDate, formatToDateTime, formdataTableColumns, getHttpMethodUri, getKeyValueItem, headersTableColumns, httpUriOptions, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, inputNumberEmits, inputNumberProps, inputProps, install, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, mainTableEmits, mainTableProps, menuSwitchRadioList, methods, modalEmits, modalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, placement, requestList, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, tooltipProps, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup };
|
|
77238
|
+
export { DEFAULT_METHOD, DEFAULT_TYPE, ILlUploadDragProps, ImenuSwitchType, LEFT_SELECT_MIN_WIDTH, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlConfigProvider, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlInput, LlInputNumber, LlKeyValue, LlModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, OperateTreeEmits, TypeEnum, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, buttonProps, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, contentTypeOptions, customOverlay, dateUtil, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, formColumns, formComponentProps, formEmits, formOptions, formProps, formatToDate, formatToDateTime, formdataTableColumns, getHttpMethodUri, getKeyValueItem, headersTableColumns, httpUriOptions, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, inputNumberEmits, inputNumberProps, inputProps, install, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, mainTableEmits, mainTableProps, menuSwitchRadioList, methods, modalEmits, modalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, placement, requestList, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, tooltipProps, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup };
|
|
@@ -2719,8 +2719,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2719
2719
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2720
2720
|
readonly onClose?: (() => any) | undefined;
|
|
2721
2721
|
readonly onConfirm?: (() => any) | undefined;
|
|
2722
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
2722
2723
|
} & {}>;
|
|
2723
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
2724
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2724
2725
|
bem: {
|
|
2725
2726
|
b: (blockSuffix?: string) => string;
|
|
2726
2727
|
e: (element?: string) => string;
|
|
@@ -2734,6 +2735,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2734
2735
|
key: import("vue").Ref<number>;
|
|
2735
2736
|
handleClose: () => void;
|
|
2736
2737
|
handleAdvancedFilterConfirm: () => void;
|
|
2738
|
+
handleChange: (val: Record<string, any>) => void;
|
|
2737
2739
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2738
2740
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2739
2741
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -4096,7 +4098,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4096
4098
|
}>>;
|
|
4097
4099
|
readonly formColumns: any[];
|
|
4098
4100
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
4101
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
4099
4102
|
} & {}>;
|
|
4103
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
4100
4104
|
bem: {
|
|
4101
4105
|
b: (blockSuffix?: string) => string;
|
|
4102
4106
|
e: (element?: string) => string;
|
|
@@ -4157,7 +4161,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4157
4161
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
4158
4162
|
readonly item: any;
|
|
4159
4163
|
}, {}>;
|
|
4160
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4164
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4165
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
4166
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4161
4167
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4162
4168
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
4163
4169
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -5243,7 +5249,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
5243
5249
|
gutter: number;
|
|
5244
5250
|
}, boolean>;
|
|
5245
5251
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
5246
|
-
}
|
|
5252
|
+
}>> & {
|
|
5253
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
5254
|
+
}, {
|
|
5247
5255
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
5248
5256
|
layout: import("vue-types").VueTypeDef<string>;
|
|
5249
5257
|
labelCol: {
|
|
@@ -5522,6 +5530,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
5522
5530
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5523
5531
|
close: () => boolean;
|
|
5524
5532
|
confirm: () => boolean;
|
|
5533
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
5525
5534
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5526
5535
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
5527
5536
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -6424,6 +6433,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
6424
6433
|
}>> & {
|
|
6425
6434
|
onClose?: (() => any) | undefined;
|
|
6426
6435
|
onConfirm?: (() => any) | undefined;
|
|
6436
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
6427
6437
|
}, {
|
|
6428
6438
|
readonly filterColumns: any[];
|
|
6429
6439
|
readonly value: Record<string, any>;
|
|
@@ -11212,8 +11222,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11212
11222
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
11213
11223
|
readonly onClose?: (() => any) | undefined;
|
|
11214
11224
|
readonly onConfirm?: (() => any) | undefined;
|
|
11225
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
11215
11226
|
} & {}>;
|
|
11216
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
11227
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
11217
11228
|
bem: {
|
|
11218
11229
|
b: (blockSuffix?: string) => string;
|
|
11219
11230
|
e: (element?: string) => string;
|
|
@@ -11227,6 +11238,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11227
11238
|
key: import("vue").Ref<number>;
|
|
11228
11239
|
handleClose: () => void;
|
|
11229
11240
|
handleAdvancedFilterConfirm: () => void;
|
|
11241
|
+
handleChange: (val: Record<string, any>) => void;
|
|
11230
11242
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
11231
11243
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
11232
11244
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -12589,7 +12601,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
12589
12601
|
}>>;
|
|
12590
12602
|
readonly formColumns: any[];
|
|
12591
12603
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
12604
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
12592
12605
|
} & {}>;
|
|
12606
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
12593
12607
|
bem: {
|
|
12594
12608
|
b: (blockSuffix?: string) => string;
|
|
12595
12609
|
e: (element?: string) => string;
|
|
@@ -12650,7 +12664,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
12650
12664
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
12651
12665
|
readonly item: any;
|
|
12652
12666
|
}, {}>;
|
|
12653
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12667
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12668
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
12669
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12654
12670
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
12655
12671
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
12656
12672
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -13736,7 +13752,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
13736
13752
|
gutter: number;
|
|
13737
13753
|
}, boolean>;
|
|
13738
13754
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13739
|
-
}
|
|
13755
|
+
}>> & {
|
|
13756
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
13757
|
+
}, {
|
|
13740
13758
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
13741
13759
|
layout: import("vue-types").VueTypeDef<string>;
|
|
13742
13760
|
labelCol: {
|
|
@@ -14015,6 +14033,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14015
14033
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14016
14034
|
close: () => boolean;
|
|
14017
14035
|
confirm: () => boolean;
|
|
14036
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
14018
14037
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14019
14038
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
14020
14039
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -14917,6 +14936,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14917
14936
|
}>> & {
|
|
14918
14937
|
onClose?: (() => any) | undefined;
|
|
14919
14938
|
onConfirm?: (() => any) | undefined;
|
|
14939
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
14920
14940
|
}, {
|
|
14921
14941
|
readonly filterColumns: any[];
|
|
14922
14942
|
readonly value: Record<string, any>;
|
|
@@ -1817,6 +1817,7 @@ export declare const advancedFilteringEmits: {
|
|
|
1817
1817
|
export declare const advancedFilteringParamsEmits: {
|
|
1818
1818
|
close: () => boolean;
|
|
1819
1819
|
confirm: () => boolean;
|
|
1820
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
1820
1821
|
};
|
|
1821
1822
|
export declare const advancedFilteringTagsEmits: {
|
|
1822
1823
|
change: (value: Record<string, any>) => boolean;
|
|
@@ -48,7 +48,8 @@ const advancedFilteringEmits = {
|
|
|
48
48
|
};
|
|
49
49
|
const advancedFilteringParamsEmits = {
|
|
50
50
|
close: () => true,
|
|
51
|
-
confirm: () => true
|
|
51
|
+
confirm: () => true,
|
|
52
|
+
changeValue: (value) => !!value
|
|
52
53
|
};
|
|
53
54
|
const advancedFilteringTagsEmits = {
|
|
54
55
|
change: (value) => !!value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-filtering.js","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n overlayStyle: {\n type: definePropType<TooltipProps['overlayStyle']>(Object),\n default: () => ({\n width: '500px'\n })\n }\n} as const)\n\nexport const advancedFilteringParamsProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n showFooter: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const advancedFilteringEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringParamsEmits = {\n close: () => true,\n confirm: () => true\n}\n\nexport const advancedFilteringTagsEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\n// props\nexport type AdvancedFilteringProps = ExtractPropTypes<\n typeof advancedFilteringProps\n>\n\nexport type AdvancedFilteringParamsProps = ExtractPropTypes<\n typeof advancedFilteringParamsProps\n>\n\n// emits\nexport type AdvancedFilteringEmits = typeof advancedFilteringEmits\n\nexport type AdvancedFilteringParamsEmits = typeof advancedFilteringParamsEmits\n\nexport type AdvancedFilteringTagsEmits = typeof advancedFilteringTagsEmits\n\n// instance\nexport type AdvancedFilteringInstance = InstanceType<typeof advancedFiltering>\n\nexport type AdvancedFilteringParamsInstance = InstanceType<\n typeof advancedFilteringParams\n>\n\nexport type AdvancedFilteringTagsInstance = InstanceType<\n typeof advancedFilteringTags\n>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAeO,MAAM,yBAAyBA,kBAAW,CAAA;AAAA,EAC/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAMA,uBAA6C,MAAM,CAAA;AAAA,IACzD,SAAS,OAAO;AAAA,MACd,KAAO,EAAA,OAAA;AAAA,KACT,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,+BAA+BD,kBAAW,CAAA;AAAA,EACrD,aAAe,EAAA;AAAA,IACb,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,sBAAyB,GAAA;AAAA,EACpC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD,EAAA;AAEO,MAAM,4BAA+B,GAAA;AAAA,EAC1C,OAAO,MAAM,IAAA;AAAA,EACb,SAAS,MAAM,IAAA;
|
|
1
|
+
{"version":3,"file":"advanced-filtering.js","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n overlayStyle: {\n type: definePropType<TooltipProps['overlayStyle']>(Object),\n default: () => ({\n width: '500px'\n })\n }\n} as const)\n\nexport const advancedFilteringParamsProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n showFooter: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const advancedFilteringEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringParamsEmits = {\n close: () => true,\n confirm: () => true,\n changeValue: (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringTagsEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\n// props\nexport type AdvancedFilteringProps = ExtractPropTypes<\n typeof advancedFilteringProps\n>\n\nexport type AdvancedFilteringParamsProps = ExtractPropTypes<\n typeof advancedFilteringParamsProps\n>\n\n// emits\nexport type AdvancedFilteringEmits = typeof advancedFilteringEmits\n\nexport type AdvancedFilteringParamsEmits = typeof advancedFilteringParamsEmits\n\nexport type AdvancedFilteringTagsEmits = typeof advancedFilteringTagsEmits\n\n// instance\nexport type AdvancedFilteringInstance = InstanceType<typeof advancedFiltering>\n\nexport type AdvancedFilteringParamsInstance = InstanceType<\n typeof advancedFilteringParams\n>\n\nexport type AdvancedFilteringTagsInstance = InstanceType<\n typeof advancedFilteringTags\n>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAeO,MAAM,yBAAyBA,kBAAW,CAAA;AAAA,EAC/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAMA,uBAA6C,MAAM,CAAA;AAAA,IACzD,SAAS,OAAO;AAAA,MACd,KAAO,EAAA,OAAA;AAAA,KACT,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,+BAA+BD,kBAAW,CAAA;AAAA,EACrD,aAAe,EAAA;AAAA,IACb,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,sBAAyB,GAAA;AAAA,EACpC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD,EAAA;AAEO,MAAM,4BAA+B,GAAA;AAAA,EAC1C,OAAO,MAAM,IAAA;AAAA,EACb,SAAS,MAAM,IAAA;AAAA,EACf,WAAa,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACjD,EAAA;AAEO,MAAM,0BAA6B,GAAA;AAAA,EACxC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD;;;;;;;;"}
|