ll-plus 2.2.8 → 2.2.10

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.
Files changed (27) hide show
  1. package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs +2 -5
  2. package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs.map +1 -1
  3. package/es/components/select-group/index.d.ts +4 -13
  4. package/es/components/select-group/src/select-group.d.ts +1 -6
  5. package/es/components/select-group/src/select-group.mjs +2 -1
  6. package/es/components/select-group/src/select-group.mjs.map +1 -1
  7. package/es/components/select-group/src/select-group.vue.d.ts +4 -13
  8. package/es/utils/props/runtime.d.ts +2 -2
  9. package/index.full.js +3 -5
  10. package/index.full.min.js +2 -2
  11. package/index.full.min.js.map +1 -1
  12. package/index.full.min.mjs +11 -11
  13. package/index.full.min.mjs.map +1 -1
  14. package/index.full.mjs +3 -5
  15. package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js +1 -4
  16. package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js.map +1 -1
  17. package/lib/components/select-group/index.d.ts +4 -13
  18. package/lib/components/select-group/src/select-group.d.ts +1 -6
  19. package/lib/components/select-group/src/select-group.js +2 -1
  20. package/lib/components/select-group/src/select-group.js.map +1 -1
  21. package/lib/components/select-group/src/select-group.vue.d.ts +4 -13
  22. package/lib/utils/props/runtime.d.ts +2 -2
  23. package/package.json +1 -1
  24. package/types/packages/components/select-group/index.d.ts +4 -13
  25. package/types/packages/components/select-group/src/select-group.d.ts +1 -6
  26. package/types/packages/components/select-group/src/select-group.vue.d.ts +4 -13
  27. package/types/packages/utils/props/runtime.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { createElementVNode, defineComponent, ref, watch, watchEffect, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
1
+ import { createElementVNode, defineComponent, ref, watch, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
2
2
  import '../../../utils/index.mjs';
3
3
  import { advancedFilteringProps, advancedFilteringEmits } from './advanced-filtering.mjs';
4
4
  import '../../index.mjs';
@@ -25,7 +25,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  const props = __props;
26
26
  const emits = __emit;
27
27
  const bem = createNamespace("advanced-filtering");
28
- const filterValue = ref({});
28
+ const filterValue = ref(props.value);
29
29
  const showSelectBox = ref(false);
30
30
  const showValueBox = ref(false);
31
31
  const handleHoverChange = (visible) => {
@@ -54,9 +54,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  deep: true
55
55
  }
56
56
  );
57
- watchEffect(() => {
58
- filterValue.value = props.value;
59
- });
60
57
  return (_ctx, _cache) => {
61
58
  const _component_a_popover = resolveComponent("a-popover");
62
59
  return openBlock(), createBlock(_component_a_popover, {
@@ -1 +1 @@
1
- {"version":3,"file":"advanced-filtering.vue2.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.vue"],"sourcesContent":["<template>\n <a-popover\n :overlay-class-name=\"bem.b()\"\n placement=\"bottomRight\"\n :overlay-style=\"props.overlayStyle\"\n :open=\"showSelectBox\"\n >\n <template #content>\n <advanced-filtering-params\n v-model:value=\"filterValue\"\n :filter-columns=\"props.filterColumns\"\n :form-options=\"props.formOptions\"\n @close=\"handleClose\"\n />\n </template>\n <a-popover\n :overlay-class-name=\"bem.b()\"\n trigger=\"hover\"\n placement=\"bottomRight\"\n :open=\"showValueBox\"\n :overlay-style=\"props.overlayStyle\"\n @open-change=\"handleHoverChange\"\n >\n <template #content>\n <advanced-filtering-tags\n :value=\"filterValue\"\n :filter-columns=\"props.filterColumns\"\n @change=\"handleChange\"\n />\n </template>\n <ll-button @click.stop=\"handleClickChange\">\n <ll-icon icon-name=\"icon-Screening\" style=\"margin-right: 10px\" />\n <span>高级筛选</span>\n </ll-button>\n </a-popover>\n </a-popover>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch, watchEffect } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport {\n advancedFilteringProps,\n advancedFilteringEmits\n} from './advanced-filtering'\n\nimport { LlButton, LlIcon } from '@ll-plus/components'\nimport AdvancedFilteringParams from './components/advanced-filtering-params.vue'\nimport AdvancedFilteringTags from './components/advanced-filtering-tags.vue'\n\ndefineOptions({ name: 'LlAdvancedFiltering' })\nconst props = defineProps(advancedFilteringProps)\nconst emits = defineEmits(advancedFilteringEmits)\nconst bem = createNamespace('advanced-filtering')\nconst filterValue = ref<any>({})\nconst showSelectBox = ref<boolean>(false)\nconst showValueBox = ref<boolean>(false)\n\nconst handleHoverChange = (visible: boolean) => {\n if (showSelectBox.value) return\n showValueBox.value = visible\n}\n\nconst handleClickChange = () => {\n showSelectBox.value = !showSelectBox.value\n showValueBox.value = false\n}\n\nconst handleClose = () => {\n showSelectBox.value = false\n showValueBox.value = false\n}\n\nconst handleChange = val => {\n filterValue.value = val\n}\nwatch(\n filterValue,\n n => {\n emits('update:value', n)\n emits('change', n)\n },\n {\n deep: true\n }\n)\nwatchEffect(() => {\n filterValue.value = props.value\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AACd,IAAM,MAAA,GAAA,GAAM,gBAAgB,oBAAoB,CAAA,CAAA;AAChD,IAAM,MAAA,WAAA,GAAc,GAAS,CAAA,EAAE,CAAA,CAAA;AAC/B,IAAM,MAAA,aAAA,GAAgB,IAAa,KAAK,CAAA,CAAA;AACxC,IAAM,MAAA,YAAA,GAAe,IAAa,KAAK,CAAA,CAAA;AAEvC,IAAM,MAAA,iBAAA,GAAoB,CAAC,OAAqB,KAAA;AAC9C,MAAA,IAAI,aAAc,CAAA,KAAA;AAAO,QAAA,OAAA;AACzB,MAAA,YAAA,CAAa,KAAQ,GAAA,OAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,oBAAoB,MAAM;AAC9B,MAAc,aAAA,CAAA,KAAA,GAAQ,CAAC,aAAc,CAAA,KAAA,CAAA;AACrC,MAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,eAAe,CAAO,GAAA,KAAA;AAC1B,MAAA,WAAA,CAAY,KAAQ,GAAA,GAAA,CAAA;AAAA,KACtB,CAAA;AACA,IAAA,KAAA;AAAA,MACE,WAAA;AAAA,MACA,CAAK,CAAA,KAAA;AACH,QAAA,KAAA,CAAM,gBAAgB,CAAC,CAAA,CAAA;AACvB,QAAA,KAAA,CAAM,UAAU,CAAC,CAAA,CAAA;AAAA,OACnB;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AACA,IAAA,WAAA,CAAY,MAAM;AAChB,MAAA,WAAA,CAAY,QAAQ,KAAM,CAAA,KAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"advanced-filtering.vue2.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.vue"],"sourcesContent":["<template>\n <a-popover\n :overlay-class-name=\"bem.b()\"\n placement=\"bottomRight\"\n :overlay-style=\"props.overlayStyle\"\n :open=\"showSelectBox\"\n >\n <template #content>\n <advanced-filtering-params\n v-model:value=\"filterValue\"\n :filter-columns=\"props.filterColumns\"\n :form-options=\"props.formOptions\"\n @close=\"handleClose\"\n />\n </template>\n <a-popover\n :overlay-class-name=\"bem.b()\"\n trigger=\"hover\"\n placement=\"bottomRight\"\n :open=\"showValueBox\"\n :overlay-style=\"props.overlayStyle\"\n @open-change=\"handleHoverChange\"\n >\n <template #content>\n <advanced-filtering-tags\n :value=\"filterValue\"\n :filter-columns=\"props.filterColumns\"\n @change=\"handleChange\"\n />\n </template>\n <ll-button @click.stop=\"handleClickChange\">\n <ll-icon icon-name=\"icon-Screening\" style=\"margin-right: 10px\" />\n <span>高级筛选</span>\n </ll-button>\n </a-popover>\n </a-popover>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport {\n advancedFilteringProps,\n advancedFilteringEmits\n} from './advanced-filtering'\n\nimport { LlButton, LlIcon } from '@ll-plus/components'\nimport AdvancedFilteringParams from './components/advanced-filtering-params.vue'\nimport AdvancedFilteringTags from './components/advanced-filtering-tags.vue'\n\ndefineOptions({ name: 'LlAdvancedFiltering' })\nconst props = defineProps(advancedFilteringProps)\nconst emits = defineEmits(advancedFilteringEmits)\nconst bem = createNamespace('advanced-filtering')\nconst filterValue = ref<any>(props.value)\nconst showSelectBox = ref<boolean>(false)\nconst showValueBox = ref<boolean>(false)\n\nconst handleHoverChange = (visible: boolean) => {\n if (showSelectBox.value) return\n showValueBox.value = visible\n}\n\nconst handleClickChange = () => {\n showSelectBox.value = !showSelectBox.value\n showValueBox.value = false\n}\n\nconst handleClose = () => {\n showSelectBox.value = false\n showValueBox.value = false\n}\n\nconst handleChange = val => {\n filterValue.value = val\n}\nwatch(\n filterValue,\n n => {\n emits('update:value', n)\n emits('change', n)\n },\n {\n deep: true\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AACd,IAAM,MAAA,GAAA,GAAM,gBAAgB,oBAAoB,CAAA,CAAA;AAChD,IAAM,MAAA,WAAA,GAAc,GAAS,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACxC,IAAM,MAAA,aAAA,GAAgB,IAAa,KAAK,CAAA,CAAA;AACxC,IAAM,MAAA,YAAA,GAAe,IAAa,KAAK,CAAA,CAAA;AAEvC,IAAM,MAAA,iBAAA,GAAoB,CAAC,OAAqB,KAAA;AAC9C,MAAA,IAAI,aAAc,CAAA,KAAA;AAAO,QAAA,OAAA;AACzB,MAAA,YAAA,CAAa,KAAQ,GAAA,OAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,oBAAoB,MAAM;AAC9B,MAAc,aAAA,CAAA,KAAA,GAAQ,CAAC,aAAc,CAAA,KAAA,CAAA;AACrC,MAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,YAAA,CAAa,KAAQ,GAAA,KAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAA,MAAM,eAAe,CAAO,GAAA,KAAA;AAC1B,MAAA,WAAA,CAAY,KAAQ,GAAA,GAAA,CAAA;AAAA,KACtB,CAAA;AACA,IAAA,KAAA;AAAA,MACE,WAAA;AAAA,MACA,CAAK,CAAA,KAAA;AACH,QAAA,KAAA,CAAM,gBAAgB,CAAC,CAAA,CAAA;AACvB,QAAA,KAAA,CAAM,UAAU,CAAC,CAAA,CAAA;AAAA,OACnB;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,17 +6,12 @@ export declare const LlSelectGroup: import("ll-plus/es/utils").SFCWithInstall<im
6
6
  readonly validator: ((val: unknown) => boolean) | undefined;
7
7
  __epPropKey: true;
8
8
  };
9
- readonly value: {
10
- readonly type: import("vue").PropType<any>;
11
- readonly required: false;
12
- readonly validator: ((val: unknown) => boolean) | undefined;
13
- __epPropKey: true;
14
- };
9
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
15
10
  readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]) | ((new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
16
11
  }, {
17
12
  props: import("@vue/shared").LooseRequired<{
18
13
  readonly data: import("./src/select-group").SelectGroupData[];
19
- readonly value?: any;
14
+ readonly value?: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown> | undefined;
20
15
  readonly selectValue?: string | undefined;
21
16
  readonly onChange?: ((selectV: string, value: string) => any) | undefined;
22
17
  } & {}>;
@@ -55,16 +50,12 @@ export declare const LlSelectGroup: import("ll-plus/es/utils").SFCWithInstall<im
55
50
  readonly validator: ((val: unknown) => boolean) | undefined;
56
51
  __epPropKey: true;
57
52
  };
58
- readonly value: {
59
- readonly type: import("vue").PropType<any>;
60
- readonly required: false;
61
- readonly validator: ((val: unknown) => boolean) | undefined;
62
- __epPropKey: true;
63
- };
53
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
64
54
  readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]) | ((new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
65
55
  }>> & {
66
56
  onChange?: ((selectV: string, value: string) => any) | undefined;
67
57
  }, {
58
+ readonly value: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown>;
68
59
  readonly data: import("./src/select-group").SelectGroupData[];
69
60
  }, {}>>;
70
61
  export default LlSelectGroup;
@@ -57,12 +57,7 @@ export declare const selectGroupProps: {
57
57
  readonly validator: ((val: unknown) => boolean) | undefined;
58
58
  __epPropKey: true;
59
59
  };
60
- readonly value: {
61
- readonly type: import("vue").PropType<any>;
62
- readonly required: false;
63
- readonly validator: ((val: unknown) => boolean) | undefined;
64
- __epPropKey: true;
65
- };
60
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
66
61
  readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]) | ((new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
67
62
  };
68
63
  export declare const selectGroupEmits: {
@@ -67,7 +67,8 @@ const selectGroupProps = buildProps({
67
67
  * @description 右边表单的 value
68
68
  */
69
69
  value: {
70
- type: definePropType(String || Number || void 0)
70
+ type: [Array, String, Number, Boolean, Object],
71
+ default: void 0
71
72
  },
72
73
  /**
73
74
  * @description select的options
@@ -1 +1 @@
1
- {"version":3,"file":"select-group.mjs","sources":["../../../../../packages/components/select-group/src/select-group.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type SelectGroup from './select-group.vue'\n\nexport interface ISelectGroupItem {\n name?: string\n value?: any\n [key: string]: any\n}\n\nexport const selectGroupFormType = [\n 'input',\n 'select',\n 'range-picker',\n 'treeSelect'\n] as const\n\nexport const selectGroupData = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 表单提示占位符\n */\n placeholder: {\n type: String\n },\n /**\n * @description 表单的字段 name\n */\n name: {\n type: String,\n required: true\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: String,\n required: true\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n showFormType: {\n type: String,\n values: selectGroupFormType\n },\n /**\n * @description 格式化属性例如tree/select\n */\n fieldNames: {\n type: definePropType<object>(Object)\n },\n /**\n * @description select的options\n */\n options: {\n type: definePropType<any[]>(Array)\n },\n /**\n * @description 左侧选择的options\n */\n list: {\n type: definePropType<ISelectGroupItem[]>(Array)\n }\n} as const)\nexport const selectGroupProps = buildProps({\n /**\n * @description 选中select中的某一项(和value对应)\n */\n selectValue: {\n type: String\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: definePropType<any>(String || Number || undefined)\n },\n /**\n * @description select的options\n */\n data: {\n type: definePropType<SelectGroupData[]>(Array),\n default: () => []\n }\n} as const)\n\nexport const selectGroupEmits = {\n change: (selectV: string, value: string) => !!selectV && !!value\n}\n\n// props\nexport type SelectGroupProps = ExtractPropTypes<typeof selectGroupProps>\nexport type SelectGroupData = ExtractPropTypes<typeof selectGroupData>\nexport type SelectGroupFormType = SelectGroupData['showFormType']\n\nexport type SelectGroupEmits = typeof selectGroupEmits\n\n// instance\nexport type SelectGroupInstance = InstanceType<typeof SelectGroup>\n"],"names":[],"mappings":";;;;AAYO,MAAM,mBAAsB,GAAA;AAAA,EACjC,OAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AACF,EAAA;AAEO,MAAM,kBAAkB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,mBAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAuB,MAAM,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAsB,KAAK,CAAA;AAAA,GACnC;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAmC,KAAK,CAAA;AAAA,GAChD;AACF,CAAU,EAAA;AACH,MAAM,mBAAmB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,cAAA,CAAoB,MAAU,IAAA,MAAA,IAAU,KAAS,CAAA,CAAA;AAAA,GACzD;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU,EAAA;AAEH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA,EAAQ,CAAC,OAAiB,EAAA,KAAA,KAAkB,CAAC,CAAC,OAAA,IAAW,CAAC,CAAC,KAAA;AAC7D;;;;"}
1
+ {"version":3,"file":"select-group.mjs","sources":["../../../../../packages/components/select-group/src/select-group.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type SelectGroup from './select-group.vue'\n\nexport interface ISelectGroupItem {\n name?: string\n value?: any\n [key: string]: any\n}\n\nexport const selectGroupFormType = [\n 'input',\n 'select',\n 'range-picker',\n 'treeSelect'\n] as const\n\nexport const selectGroupData = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 表单提示占位符\n */\n placeholder: {\n type: String\n },\n /**\n * @description 表单的字段 name\n */\n name: {\n type: String,\n required: true\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: String,\n required: true\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n showFormType: {\n type: String,\n values: selectGroupFormType\n },\n /**\n * @description 格式化属性例如tree/select\n */\n fieldNames: {\n type: definePropType<object>(Object)\n },\n /**\n * @description select的options\n */\n options: {\n type: definePropType<any[]>(Array)\n },\n /**\n * @description 左侧选择的options\n */\n list: {\n type: definePropType<ISelectGroupItem[]>(Array)\n }\n} as const)\nexport const selectGroupProps = buildProps({\n /**\n * @description 选中select中的某一项(和value对应)\n */\n selectValue: {\n type: String\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: [Array, String, Number, Boolean, Object],\n default: undefined\n },\n /**\n * @description select的options\n */\n data: {\n type: definePropType<SelectGroupData[]>(Array),\n default: () => []\n }\n} as const)\n\nexport const selectGroupEmits = {\n change: (selectV: string, value: string) => !!selectV && !!value\n}\n\n// props\nexport type SelectGroupProps = ExtractPropTypes<typeof selectGroupProps>\nexport type SelectGroupData = ExtractPropTypes<typeof selectGroupData>\nexport type SelectGroupFormType = SelectGroupData['showFormType']\n\nexport type SelectGroupEmits = typeof selectGroupEmits\n\n// instance\nexport type SelectGroupInstance = InstanceType<typeof SelectGroup>\n"],"names":[],"mappings":";;;;AAYO,MAAM,mBAAsB,GAAA;AAAA,EACjC,OAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AACF,EAAA;AAEO,MAAM,kBAAkB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,mBAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAuB,MAAM,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAsB,KAAK,CAAA;AAAA,GACnC;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAmC,KAAK,CAAA;AAAA,GAChD;AACF,CAAU,EAAA;AACH,MAAM,mBAAmB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,MAAM,CAAC,KAAA,EAAO,MAAQ,EAAA,MAAA,EAAQ,SAAS,MAAM,CAAA;AAAA,IAC7C,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU,EAAA;AAEH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA,EAAQ,CAAC,OAAiB,EAAA,KAAA,KAAkB,CAAC,CAAC,OAAA,IAAW,CAAC,CAAC,KAAA;AAC7D;;;;"}
@@ -6,17 +6,12 @@ declare const _default: import("vue").DefineComponent<{
6
6
  readonly validator: ((val: unknown) => boolean) | undefined;
7
7
  __epPropKey: true;
8
8
  };
9
- readonly value: {
10
- readonly type: import("vue").PropType<any>;
11
- readonly required: false;
12
- readonly validator: ((val: unknown) => boolean) | undefined;
13
- __epPropKey: true;
14
- };
9
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
15
10
  readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]) | ((new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
16
11
  }, {
17
12
  props: import("@vue/shared").LooseRequired<{
18
13
  readonly data: SelectGroupData[];
19
- readonly value?: any;
14
+ readonly value?: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown> | undefined;
20
15
  readonly selectValue?: string | undefined;
21
16
  readonly onChange?: ((selectV: string, value: string) => any) | undefined;
22
17
  } & {}>;
@@ -55,16 +50,12 @@ declare const _default: import("vue").DefineComponent<{
55
50
  readonly validator: ((val: unknown) => boolean) | undefined;
56
51
  __epPropKey: true;
57
52
  };
58
- readonly value: {
59
- readonly type: import("vue").PropType<any>;
60
- readonly required: false;
61
- readonly validator: ((val: unknown) => boolean) | undefined;
62
- __epPropKey: true;
63
- };
53
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
64
54
  readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]) | ((new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
65
55
  }>> & {
66
56
  onChange?: ((selectV: string, value: string) => any) | undefined;
67
57
  }, {
58
+ readonly value: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown>;
68
59
  readonly data: SelectGroupData[];
69
60
  }, {}>;
70
61
  export default _default;
@@ -27,6 +27,6 @@ export declare const buildProp: <Type = never, Value = never, Validator = never,
27
27
  export type TestProps = Record<string, {
28
28
  [epPropKey]: true;
29
29
  } | NativePropType | EpPropInput<any, any, any, any, any>>;
30
- export declare const buildProps: <Props extends Record<string, {
30
+ export declare const buildProps: <Props extends Record<string, NativePropType | EpPropInput<any, any, any, any, any> | {
31
31
  __epPropKey: true;
32
- } | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
32
+ }>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
package/index.full.js CHANGED
@@ -2418,7 +2418,7 @@
2418
2418
  const props = __props;
2419
2419
  const emits = __emit;
2420
2420
  const bem = createNamespace("advanced-filtering");
2421
- const filterValue = require$$0.ref({});
2421
+ const filterValue = require$$0.ref(props.value);
2422
2422
  const showSelectBox = require$$0.ref(false);
2423
2423
  const showValueBox = require$$0.ref(false);
2424
2424
  const handleHoverChange = (visible) => {
@@ -2447,9 +2447,6 @@
2447
2447
  deep: true
2448
2448
  }
2449
2449
  );
2450
- require$$0.watchEffect(() => {
2451
- filterValue.value = props.value;
2452
- });
2453
2450
  return (_ctx, _cache) => {
2454
2451
  const _component_a_popover = require$$0.resolveComponent("a-popover");
2455
2452
  return require$$0.openBlock(), require$$0.createBlock(_component_a_popover, {
@@ -60825,7 +60822,8 @@
60825
60822
  * @description 右边表单的 value
60826
60823
  */
60827
60824
  value: {
60828
- type: definePropType(String || Number || void 0)
60825
+ type: [Array, String, Number, Boolean, Object],
60826
+ default: void 0
60829
60827
  },
60830
60828
  /**
60831
60829
  * @description select的options