ll-plus 2.2.13 → 2.2.15

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 (58) hide show
  1. package/es/components/checkbox/src/checkbox-group.vue2.mjs +3 -2
  2. package/es/components/checkbox/src/checkbox-group.vue2.mjs.map +1 -1
  3. package/es/components/icon-base/index.d.ts +13 -0
  4. package/es/components/icon-base/src/icon-base.d.ts +6 -0
  5. package/es/components/icon-base/src/icon-base.mjs +6 -0
  6. package/es/components/icon-base/src/icon-base.mjs.map +1 -1
  7. package/es/components/icon-base/src/icon-base.vue.d.ts +13 -0
  8. package/es/components/icon-base/src/icon-base.vue2.mjs +1 -1
  9. package/es/components/icon-base/src/icon-base.vue2.mjs.map +1 -1
  10. package/es/components/key-value/index.d.ts +5 -17
  11. package/es/components/key-value/src/components/key-value-item.vue.d.ts +3 -15
  12. package/es/components/key-value/src/config/key-value-item.d.ts +3 -9
  13. package/es/components/key-value/src/config/key-value-item.mjs.map +1 -1
  14. package/es/components/key-value/src/key-value.vue.d.ts +5 -17
  15. package/es/components/operate-icon/index.d.ts +16 -0
  16. package/es/components/operate-icon/src/operate-icon.vue.d.ts +16 -0
  17. package/es/components/operate-icon/src/operate-icon.vue2.mjs +12 -7
  18. package/es/components/operate-icon/src/operate-icon.vue2.mjs.map +1 -1
  19. package/es/utils/props/runtime.d.ts +2 -2
  20. package/index.full.js +22 -10
  21. package/index.full.min.js +11 -11
  22. package/index.full.min.js.map +1 -1
  23. package/index.full.min.mjs +11 -11
  24. package/index.full.min.mjs.map +1 -1
  25. package/index.full.mjs +22 -10
  26. package/lib/components/checkbox/src/checkbox-group.vue2.js +3 -2
  27. package/lib/components/checkbox/src/checkbox-group.vue2.js.map +1 -1
  28. package/lib/components/icon-base/index.d.ts +13 -0
  29. package/lib/components/icon-base/src/icon-base.d.ts +6 -0
  30. package/lib/components/icon-base/src/icon-base.js +6 -0
  31. package/lib/components/icon-base/src/icon-base.js.map +1 -1
  32. package/lib/components/icon-base/src/icon-base.vue.d.ts +13 -0
  33. package/lib/components/icon-base/src/icon-base.vue2.js +1 -1
  34. package/lib/components/icon-base/src/icon-base.vue2.js.map +1 -1
  35. package/lib/components/key-value/index.d.ts +5 -17
  36. package/lib/components/key-value/src/components/key-value-item.vue.d.ts +3 -15
  37. package/lib/components/key-value/src/config/key-value-item.d.ts +3 -9
  38. package/lib/components/key-value/src/config/key-value-item.js.map +1 -1
  39. package/lib/components/key-value/src/key-value.vue.d.ts +5 -17
  40. package/lib/components/operate-icon/index.d.ts +16 -0
  41. package/lib/components/operate-icon/src/operate-icon.vue.d.ts +16 -0
  42. package/lib/components/operate-icon/src/operate-icon.vue2.js +12 -7
  43. package/lib/components/operate-icon/src/operate-icon.vue2.js.map +1 -1
  44. package/lib/utils/props/runtime.d.ts +2 -2
  45. package/package.json +1 -1
  46. package/theme-chalk/css/checkbox.css +1 -1
  47. package/theme-chalk/css/index.css +1 -1
  48. package/theme-chalk/css/operate-icon.css +1 -1
  49. package/types/packages/components/icon-base/index.d.ts +13 -0
  50. package/types/packages/components/icon-base/src/icon-base.d.ts +6 -0
  51. package/types/packages/components/icon-base/src/icon-base.vue.d.ts +13 -0
  52. package/types/packages/components/key-value/index.d.ts +5 -17
  53. package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +3 -15
  54. package/types/packages/components/key-value/src/config/key-value-item.d.ts +3 -9
  55. package/types/packages/components/key-value/src/key-value.vue.d.ts +5 -17
  56. package/types/packages/components/operate-icon/index.d.ts +16 -0
  57. package/types/packages/components/operate-icon/src/operate-icon.vue.d.ts +16 -0
  58. package/types/packages/utils/props/runtime.d.ts +2 -2
package/index.full.mjs CHANGED
@@ -4946,7 +4946,8 @@ var _sfc_main$$ = /* @__PURE__ */ defineComponent({
4946
4946
  renderList(props.options, (item, idx) => {
4947
4947
  return openBlock(), createBlock(unref(Col), mergeProps({ ref_for: true }, item.colOptions, {
4948
4948
  key: idx,
4949
- span: item.span || 24
4949
+ span: item.span || 24,
4950
+ class: unref(bem).e("item")
4950
4951
  }), {
4951
4952
  default: withCtx(() => [
4952
4953
  createVNode(
@@ -4971,7 +4972,7 @@ var _sfc_main$$ = /* @__PURE__ */ defineComponent({
4971
4972
  ]),
4972
4973
  _: 2
4973
4974
  /* DYNAMIC */
4974
- }, 1040, ["span"]);
4975
+ }, 1040, ["span", "class"]);
4975
4976
  }),
4976
4977
  128
4977
4978
  /* KEYED_FRAGMENT */
@@ -57256,6 +57257,12 @@ const iconBaseProps = buildProps({
57256
57257
  type: String,
57257
57258
  values: iconTypes
57258
57259
  },
57260
+ /**
57261
+ * @description icon的class
57262
+ */
57263
+ class: {
57264
+ type: String
57265
+ },
57259
57266
  /**
57260
57267
  * @description 是否显示tooltip
57261
57268
  */
@@ -57322,7 +57329,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
57322
57329
  const exposedClass = props.isShowContainer ? "" : bem.m("exposed");
57323
57330
  const hasTextClass = props.isShowTitle ? bem.m("has-text") : "";
57324
57331
  const disabledClass = props.disabled ? isDefault ? bem.is("default-disable") : bem.is("primary-disable") : "";
57325
- return `${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`;
57332
+ return `${props.class} ${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`;
57326
57333
  });
57327
57334
  const bem = createNamespace("icon-base");
57328
57335
  const handleClickBtn = (e) => props.onClick && props.onClick(e, props.data);
@@ -58978,6 +58985,9 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
58978
58985
  const isHasDropdown = props.showDropdown && modalIconList.value.length;
58979
58986
  return `${bem.b()} ${isHasDropdown ? bem.m("has-dropdown") : ""}`;
58980
58987
  });
58988
+ const marginButtonClass = (index, length) => {
58989
+ return index < length ? "margin-button-container" : "";
58990
+ };
58981
58991
  const handleDropdownOpenChange = (open) => {
58982
58992
  if (!open) {
58983
58993
  dropdownOpen.value = false;
@@ -59009,7 +59019,7 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
59009
59019
  return (_ctx, _cache) => {
59010
59020
  const _component_a_menu_item = resolveComponent("a-menu-item");
59011
59021
  const _component_a_menu = resolveComponent("a-menu");
59012
- const _component_a_dropdown = resolveComponent("a-dropdown");
59022
+ const _component_a_dropdownx = resolveComponent("a-dropdownx");
59013
59023
  return openBlock(), createElementBlock(
59014
59024
  "div",
59015
59025
  {
@@ -59020,17 +59030,18 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
59020
59030
  (openBlock(true), createElementBlock(
59021
59031
  Fragment,
59022
59032
  null,
59023
- renderList(showIconList.value, (item) => {
59033
+ renderList(showIconList.value, (item, index) => {
59024
59034
  return openBlock(), createBlock(unref(LlIconBase), mergeProps({ ref_for: true }, item, {
59025
59035
  key: item.iconName,
59026
- data: _ctx.data
59027
- }), null, 16, ["data"]);
59036
+ data: _ctx.data,
59037
+ class: unref(bem).e(marginButtonClass(index, showIconList.value.length - 1))
59038
+ }), null, 16, ["data", "class"]);
59028
59039
  }),
59029
59040
  128
59030
59041
  /* KEYED_FRAGMENT */
59031
59042
  )),
59032
59043
  createCommentVNode(" \u4E0B\u62C9\u63D0\u793A\u7684icon "),
59033
- _ctx.showDropdown && modalIconList.value.length ? (openBlock(), createBlock(_component_a_dropdown, {
59044
+ _ctx.showDropdown && modalIconList.value.length ? (openBlock(), createBlock(_component_a_dropdownx, {
59034
59045
  key: 0,
59035
59046
  "overlay-class-name": unref(bem).e("dropdown"),
59036
59047
  open: dropdownOpen.value,
@@ -59082,8 +59093,9 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
59082
59093
  "is-show-container": showIconList.value[0].isShowContainer,
59083
59094
  "icon-type": showIconList.value[0].iconType,
59084
59095
  data: _ctx.data,
59085
- "icon-name": "icon-more"
59086
- }, null, 8, ["is-show-container", "icon-type", "data"])
59096
+ "icon-name": "icon-more",
59097
+ class: normalizeClass(unref(bem).e("icon-more"))
59098
+ }, null, 8, ["is-show-container", "icon-type", "data", "class"])
59087
59099
  ],
59088
59100
  34
59089
59101
  /* CLASS, NEED_HYDRATION */
@@ -34,7 +34,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
34
  vue.renderList(props.options, (item, idx) => {
35
35
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Col), vue.mergeProps({ ref_for: true }, item.colOptions, {
36
36
  key: idx,
37
- span: item.span || 24
37
+ span: item.span || 24,
38
+ class: vue.unref(bem).e("item")
38
39
  }), {
39
40
  default: vue.withCtx(() => [
40
41
  vue.createVNode(
@@ -59,7 +60,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
59
60
  ]),
60
61
  _: 2
61
62
  /* DYNAMIC */
62
- }, 1040, ["span"]);
63
+ }, 1040, ["span", "class"]);
63
64
  }),
64
65
  128
65
66
  /* KEYED_FRAGMENT */
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group.vue2.js","sources":["../../../../../packages/components/checkbox/src/checkbox-group.vue"],"sourcesContent":["<template>\n <CheckboxGroup :class=\"bem.b()\" v-bind=\"attrs\">\n <Row v-bind=\"props.rowOptions\">\n <Col\n v-for=\"(item, idx) in props.options\"\n v-bind=\"item.colOptions\"\n :key=\"idx\"\n :span=\"item.span || 24\"\n >\n <checkbox v-bind=\"item\">\n <slot v-bind=\"item\">\n {{ item.label }}\n </slot>\n </checkbox>\n </Col>\n </Row>\n </CheckboxGroup>\n</template>\n\n<script setup lang=\"ts\">\nimport { useAttrs } from 'vue'\nimport { Row, Col, CheckboxGroup } from 'ant-design-vue'\nimport { checkboxGroupProps } from './checkbox'\nimport Checkbox from './checkbox.vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\ndefineOptions({ name: 'LlCheckboxGroup' })\n\nconst props = defineProps(checkboxGroupProps)\n\nconst bem = createNamespace('checkbox-group')\n\nconst attrs = useAttrs()\n</script>\n"],"names":["createNamespace","useAttrs"],"mappings":";;;;;;;;;;;;;;;;;AA6BA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAMA,gCAAgB,gBAAgB,CAAA,CAAA;AAE5C,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox-group.vue2.js","sources":["../../../../../packages/components/checkbox/src/checkbox-group.vue"],"sourcesContent":["<template>\n <CheckboxGroup :class=\"bem.b()\" v-bind=\"attrs\">\n <Row v-bind=\"props.rowOptions\">\n <Col\n v-for=\"(item, idx) in props.options\"\n v-bind=\"item.colOptions\"\n :key=\"idx\"\n :span=\"item.span || 24\"\n :class=\"bem.e('item')\"\n >\n <checkbox v-bind=\"item\">\n <slot v-bind=\"item\">\n {{ item.label }}\n </slot>\n </checkbox>\n </Col>\n </Row>\n </CheckboxGroup>\n</template>\n\n<script setup lang=\"ts\">\nimport { useAttrs } from 'vue'\nimport { Row, Col, CheckboxGroup } from 'ant-design-vue'\nimport { checkboxGroupProps } from './checkbox'\nimport Checkbox from './checkbox.vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\ndefineOptions({ name: 'LlCheckboxGroup' })\n\nconst props = defineProps(checkboxGroupProps)\n\nconst bem = createNamespace('checkbox-group')\n\nconst attrs = useAttrs()\n</script>\n"],"names":["createNamespace","useAttrs"],"mappings":";;;;;;;;;;;;;;;;;AA8BA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAMA,gCAAgB,gBAAgB,CAAA,CAAA;AAE5C,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,6 +6,12 @@ export declare const LlIconBase: import("ll-plus/es/utils").SFCWithInstall<impor
6
6
  readonly validator: ((val: unknown) => boolean) | undefined;
7
7
  __epPropKey: true;
8
8
  };
9
+ readonly class: {
10
+ readonly type: import("vue").PropType<string>;
11
+ readonly required: false;
12
+ readonly validator: ((val: unknown) => boolean) | undefined;
13
+ __epPropKey: true;
14
+ };
9
15
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
10
16
  readonly tooltipTitle: {
11
17
  readonly type: import("vue").PropType<string>;
@@ -51,6 +57,7 @@ export declare const LlIconBase: import("ll-plus/es/utils").SFCWithInstall<impor
51
57
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
52
58
  readonly onClick?: Function | undefined;
53
59
  readonly data?: any;
60
+ readonly class?: string | undefined;
54
61
  readonly iconName?: string | undefined;
55
62
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
56
63
  readonly tooltipTitle?: string | undefined;
@@ -75,6 +82,12 @@ export declare const LlIconBase: import("ll-plus/es/utils").SFCWithInstall<impor
75
82
  readonly validator: ((val: unknown) => boolean) | undefined;
76
83
  __epPropKey: true;
77
84
  };
85
+ readonly class: {
86
+ readonly type: import("vue").PropType<string>;
87
+ readonly required: false;
88
+ readonly validator: ((val: unknown) => boolean) | undefined;
89
+ __epPropKey: true;
90
+ };
78
91
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
79
92
  readonly tooltipTitle: {
80
93
  readonly type: import("vue").PropType<string>;
@@ -8,6 +8,12 @@ export declare const iconBaseProps: {
8
8
  readonly validator: ((val: unknown) => boolean) | undefined;
9
9
  __epPropKey: true;
10
10
  };
11
+ readonly class: {
12
+ readonly type: import("vue").PropType<string>;
13
+ readonly required: false;
14
+ readonly validator: ((val: unknown) => boolean) | undefined;
15
+ __epPropKey: true;
16
+ };
11
17
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
12
18
  readonly tooltipTitle: {
13
19
  readonly type: import("vue").PropType<string>;
@@ -13,6 +13,12 @@ const iconBaseProps = runtime.buildProps({
13
13
  type: String,
14
14
  values: iconTypes
15
15
  },
16
+ /**
17
+ * @description icon的class
18
+ */
19
+ class: {
20
+ type: String
21
+ },
16
22
  /**
17
23
  * @description 是否显示tooltip
18
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"icon-base.js","sources":["../../../../../packages/components/icon-base/src/icon-base.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type IconBase from './icon-base.vue'\n\nexport const iconTypes = ['default', 'primary'] as const\nexport const iconBaseProps = buildProps({\n /**\n * @description icon的类型\n */\n iconType: {\n type: String,\n values: iconTypes\n },\n /**\n * @description 是否显示tooltip\n */\n isShowTooltip: {\n type: Boolean,\n default: true\n },\n /**\n * @description tooltip的提示语\n */\n tooltipTitle: {\n type: String\n },\n /**\n * @description 是否显示button的容器\n */\n isShowContainer: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否禁用\n */\n disabled: {\n type: Boolean\n },\n /**\n * @description icon的name\n */\n iconName: {\n type: String\n },\n /**\n * @description 是否显示icon右边的文字\n */\n isShowTitle: {\n type: Boolean\n },\n /**\n * @description 点击按钮传递的数据\n */\n data: {\n type: definePropType<any>(undefined)\n },\n /**\n * @description 按钮点击事件\n */\n onClick: {\n type: Function\n }\n} as const)\n\n// props\nexport type IconBaseProps = ExtractPropTypes<typeof iconBaseProps>\nexport type IconTypes = IconBaseProps['iconType']\n\n// instance\nexport type IconBaseInstance = InstanceType<typeof IconBase>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAKa,MAAA,SAAA,GAAY,CAAC,SAAA,EAAW,SAAS,EAAA;AACvC,MAAM,gBAAgBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAItC,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,SAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAoB,KAAS,CAAA,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,QAAA;AAAA,GACR;AACF,CAAU;;;;;"}
1
+ {"version":3,"file":"icon-base.js","sources":["../../../../../packages/components/icon-base/src/icon-base.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type IconBase from './icon-base.vue'\n\nexport const iconTypes = ['default', 'primary'] as const\nexport const iconBaseProps = buildProps({\n /**\n * @description icon的类型\n */\n iconType: {\n type: String,\n values: iconTypes\n },\n /**\n * @description icon的class\n */\n class: {\n type: String\n },\n /**\n * @description 是否显示tooltip\n */\n isShowTooltip: {\n type: Boolean,\n default: true\n },\n /**\n * @description tooltip的提示语\n */\n tooltipTitle: {\n type: String\n },\n /**\n * @description 是否显示button的容器\n */\n isShowContainer: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否禁用\n */\n disabled: {\n type: Boolean\n },\n /**\n * @description icon的name\n */\n iconName: {\n type: String\n },\n /**\n * @description 是否显示icon右边的文字\n */\n isShowTitle: {\n type: Boolean\n },\n /**\n * @description 点击按钮传递的数据\n */\n data: {\n type: definePropType<any>(undefined)\n },\n /**\n * @description 按钮点击事件\n */\n onClick: {\n type: Function\n }\n} as const)\n\n// props\nexport type IconBaseProps = ExtractPropTypes<typeof iconBaseProps>\nexport type IconTypes = IconBaseProps['iconType']\n\n// instance\nexport type IconBaseInstance = InstanceType<typeof IconBase>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAKa,MAAA,SAAA,GAAY,CAAC,SAAA,EAAW,SAAS,EAAA;AACvC,MAAM,gBAAgBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAItC,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,SAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAoB,KAAS,CAAA,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,QAAA;AAAA,GACR;AACF,CAAU;;;;;"}
@@ -5,6 +5,12 @@ declare const _default: import("vue").DefineComponent<{
5
5
  readonly validator: ((val: unknown) => boolean) | undefined;
6
6
  __epPropKey: true;
7
7
  };
8
+ readonly class: {
9
+ readonly type: import("vue").PropType<string>;
10
+ readonly required: false;
11
+ readonly validator: ((val: unknown) => boolean) | undefined;
12
+ __epPropKey: true;
13
+ };
8
14
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
9
15
  readonly tooltipTitle: {
10
16
  readonly type: import("vue").PropType<string>;
@@ -50,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
50
56
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
51
57
  readonly onClick?: Function | undefined;
52
58
  readonly data?: any;
59
+ readonly class?: string | undefined;
53
60
  readonly iconName?: string | undefined;
54
61
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
55
62
  readonly tooltipTitle?: string | undefined;
@@ -74,6 +81,12 @@ declare const _default: import("vue").DefineComponent<{
74
81
  readonly validator: ((val: unknown) => boolean) | undefined;
75
82
  __epPropKey: true;
76
83
  };
84
+ readonly class: {
85
+ readonly type: import("vue").PropType<string>;
86
+ readonly required: false;
87
+ readonly validator: ((val: unknown) => boolean) | undefined;
88
+ __epPropKey: true;
89
+ };
77
90
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
78
91
  readonly tooltipTitle: {
79
92
  readonly type: import("vue").PropType<string>;
@@ -22,7 +22,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
22
  const exposedClass = props.isShowContainer ? "" : bem.m("exposed");
23
23
  const hasTextClass = props.isShowTitle ? bem.m("has-text") : "";
24
24
  const disabledClass = props.disabled ? isDefault ? bem.is("default-disable") : bem.is("primary-disable") : "";
25
- return `${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`;
25
+ return `${props.class} ${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`;
26
26
  });
27
27
  const bem = createNamespace.createNamespace("icon-base");
28
28
  const handleClickBtn = (e) => props.onClick && props.onClick(e, props.data);
@@ -1 +1 @@
1
- {"version":3,"file":"icon-base.vue2.js","sources":["../../../../../packages/components/icon-base/src/icon-base.vue"],"sourcesContent":["<template>\n <!-- 有文字提示弹窗 -->\n <template v-if=\"isShowTooltip\">\n <ll-tooltip :tip=\"tooltipTitle\">\n <a-button\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{\n tooltipTitle\n }}</span>\n </a-button>\n </ll-tooltip>\n </template>\n <!-- 没有文字提示弹窗 -->\n <template v-else>\n <a-button\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{ tooltipTitle }}</span>\n </a-button>\n </template>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { iconBaseProps } from './icon-base'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIconBase'\n})\n\n// 2.props\nconst props = defineProps(iconBaseProps)\n\n// 3.computed/const\n// button的类名样式\nconst btnClass = computed(() => {\n const isDefault = props.iconType === 'default' || !props.iconType\n // 1.类型的class\n const typeClass = isDefault ? bem.m('default') : bem.m('primary')\n // 2.是否要裸露的class\n const exposedClass = props.isShowContainer ? '' : bem.m('exposed')\n // 3.有文本的class\n const hasTextClass = props.isShowTitle ? bem.m('has-text') : ''\n // 4.禁用的class\n const disabledClass = props.disabled\n ? isDefault\n ? bem.is('default-disable')\n : bem.is('primary-disable')\n : ''\n return `${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`\n})\nconst bem = createNamespace('icon-base')\n\n// 4.methods\nconst handleClickBtn = (e: Event) =>\n props.onClick && props.onClick(e, props.data)\n</script>\n"],"names":["computed","createNamespace"],"mappings":";;;;;;;;;;;;;;;;;AA0CA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAId,IAAM,MAAA,QAAA,GAAWA,aAAS,MAAM;AAC9B,MAAA,MAAM,SAAY,GAAA,KAAA,CAAM,QAAa,KAAA,SAAA,IAAa,CAAC,KAAM,CAAA,QAAA,CAAA;AAEzD,MAAM,MAAA,SAAA,GAAY,YAAY,GAAI,CAAA,CAAA,CAAE,SAAS,CAAI,GAAA,GAAA,CAAI,EAAE,SAAS,CAAA,CAAA;AAEhE,MAAA,MAAM,eAAe,KAAM,CAAA,eAAA,GAAkB,EAAK,GAAA,GAAA,CAAI,EAAE,SAAS,CAAA,CAAA;AAEjE,MAAA,MAAM,eAAe,KAAM,CAAA,WAAA,GAAc,GAAI,CAAA,CAAA,CAAE,UAAU,CAAI,GAAA,EAAA,CAAA;AAE7D,MAAM,MAAA,aAAA,GAAgB,KAAM,CAAA,QAAA,GACxB,SACE,GAAA,GAAA,CAAI,EAAG,CAAA,iBAAiB,CACxB,GAAA,GAAA,CAAI,EAAG,CAAA,iBAAiB,CAC1B,GAAA,EAAA,CAAA;AACJ,MAAO,OAAA,CAAA,EAAG,GAAI,CAAA,CAAA,EAAG,CAAA,CAAA,EAAI,SAAS,CAAA,CAAA,EAAI,YAAY,CAAA,CAAA,EAAI,YAAY,CAAA,CAAA,EAAI,aAAa,CAAA,CAAA,CAAA;AAAA,KAChF,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAMC,gCAAgB,WAAW,CAAA,CAAA;AAGvC,IAAM,MAAA,cAAA,GAAiB,CAAC,CACtB,KAAA,KAAA,CAAM,WAAW,KAAM,CAAA,OAAA,CAAQ,CAAG,EAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"icon-base.vue2.js","sources":["../../../../../packages/components/icon-base/src/icon-base.vue"],"sourcesContent":["<template>\n <!-- 有文字提示弹窗 -->\n <template v-if=\"isShowTooltip\">\n <ll-tooltip :tip=\"tooltipTitle\">\n <a-button\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{\n tooltipTitle\n }}</span>\n </a-button>\n </ll-tooltip>\n </template>\n <!-- 没有文字提示弹窗 -->\n <template v-else>\n <a-button\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{ tooltipTitle }}</span>\n </a-button>\n </template>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { iconBaseProps } from './icon-base'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIconBase'\n})\n\n// 2.props\nconst props = defineProps(iconBaseProps)\n\n// 3.computed/const\n// button的类名样式\nconst btnClass = computed(() => {\n const isDefault = props.iconType === 'default' || !props.iconType\n // 1.类型的class\n const typeClass = isDefault ? bem.m('default') : bem.m('primary')\n // 2.是否要裸露的class\n const exposedClass = props.isShowContainer ? '' : bem.m('exposed')\n // 3.有文本的class\n const hasTextClass = props.isShowTitle ? bem.m('has-text') : ''\n // 4.禁用的class\n const disabledClass = props.disabled\n ? isDefault\n ? bem.is('default-disable')\n : bem.is('primary-disable')\n : ''\n return `${\n props.class\n } ${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`\n})\nconst bem = createNamespace('icon-base')\n\n// 4.methods\nconst handleClickBtn = (e: Event) =>\n props.onClick && props.onClick(e, props.data)\n</script>\n"],"names":["computed","createNamespace"],"mappings":";;;;;;;;;;;;;;;;;AA0CA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAId,IAAM,MAAA,QAAA,GAAWA,aAAS,MAAM;AAC9B,MAAA,MAAM,SAAY,GAAA,KAAA,CAAM,QAAa,KAAA,SAAA,IAAa,CAAC,KAAM,CAAA,QAAA,CAAA;AAEzD,MAAM,MAAA,SAAA,GAAY,YAAY,GAAI,CAAA,CAAA,CAAE,SAAS,CAAI,GAAA,GAAA,CAAI,EAAE,SAAS,CAAA,CAAA;AAEhE,MAAA,MAAM,eAAe,KAAM,CAAA,eAAA,GAAkB,EAAK,GAAA,GAAA,CAAI,EAAE,SAAS,CAAA,CAAA;AAEjE,MAAA,MAAM,eAAe,KAAM,CAAA,WAAA,GAAc,GAAI,CAAA,CAAA,CAAE,UAAU,CAAI,GAAA,EAAA,CAAA;AAE7D,MAAM,MAAA,aAAA,GAAgB,KAAM,CAAA,QAAA,GACxB,SACE,GAAA,GAAA,CAAI,EAAG,CAAA,iBAAiB,CACxB,GAAA,GAAA,CAAI,EAAG,CAAA,iBAAiB,CAC1B,GAAA,EAAA,CAAA;AACJ,MAAA,OAAO,CACL,EAAA,KAAA,CAAM,KACR,CAAA,CAAA,EAAI,IAAI,CAAE,EAAC,CAAI,CAAA,EAAA,SAAS,CAAI,CAAA,EAAA,YAAY,CAAI,CAAA,EAAA,YAAY,IAAI,aAAa,CAAA,CAAA,CAAA;AAAA,KAC1E,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAMC,gCAAgB,WAAW,CAAA,CAAA;AAGvC,IAAM,MAAA,cAAA,GAAiB,CAAC,CACtB,KAAA,KAAA,CAAM,WAAW,KAAM,CAAA,OAAA,CAAQ,CAAG,EAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -62,23 +62,17 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
62
62
  bem: (blockSuffix: string, element: string, modifier: string) => string;
63
63
  is: (name?: string) => string;
64
64
  };
65
- innerValue: import("vue").Ref<(Record<string, any> | {
65
+ innerValue: import("vue").Ref<{
66
66
  key: string | null;
67
67
  value: any;
68
- })[]>;
68
+ }[]>;
69
69
  keyValueItems: import("vue").Ref<any[]>;
70
70
  keyValueTypeDict: import("vue").ComputedRef<{}>;
71
71
  handleAddItem: () => void;
72
72
  handleDelete: (idx: number) => void;
73
73
  handleChange: () => void;
74
74
  keyValueItem: import("vue").DefineComponent<{
75
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
76
- key: string | null;
77
- value: any;
78
- }) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
79
- key: string | null;
80
- value: any;
81
- }) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
75
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
82
76
  key: string;
83
77
  value: string;
84
78
  }, boolean>;
@@ -107,7 +101,7 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
107
101
  bem: (blockSuffix: string, element: string, modifier: string) => string;
108
102
  is: (name?: string) => string;
109
103
  };
110
- innerValue: import("vue").Ref<Record<string, any> | {
104
+ innerValue: import("vue").Ref<{
111
105
  key: string | null;
112
106
  value: any;
113
107
  }>;
@@ -360,13 +354,7 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
360
354
  change: () => boolean;
361
355
  'update:value': (value: import("./src/config").KeyValueItem) => boolean;
362
356
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
363
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
364
- key: string | null;
365
- value: any;
366
- }) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
367
- key: string | null;
368
- value: any;
369
- }) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
357
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
370
358
  key: string;
371
359
  value: string;
372
360
  }, boolean>;
@@ -1,11 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
3
- key: string | null;
4
- value: any;
5
- }) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
6
- key: string | null;
7
- value: any;
8
- }) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
2
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
9
3
  key: string;
10
4
  value: string;
11
5
  }, boolean>;
@@ -34,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
34
28
  bem: (blockSuffix: string, element: string, modifier: string) => string;
35
29
  is: (name?: string) => string;
36
30
  };
37
- innerValue: import("vue").Ref<Record<string, any> | {
31
+ innerValue: import("vue").Ref<{
38
32
  key: string | null;
39
33
  value: any;
40
34
  }>;
@@ -287,13 +281,7 @@ declare const _default: import("vue").DefineComponent<{
287
281
  change: () => boolean;
288
282
  'update:value': (value: import("ll-plus/es/components").KeyValueItem) => boolean;
289
283
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
290
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
291
- key: string | null;
292
- value: any;
293
- }) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
294
- key: string | null;
295
- value: any;
296
- }) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
284
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
297
285
  key: string;
298
286
  value: string;
299
287
  }, boolean>;
@@ -233,18 +233,12 @@ export declare const formColumns: {
233
233
  span: number;
234
234
  };
235
235
  }[];
236
- export type KeyValueItem = {
236
+ export interface KeyValueItem {
237
237
  key: string | null;
238
238
  value: any | null;
239
- } | Record<string, any>;
239
+ }
240
240
  export declare const keyValueItemProps: {
241
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
242
- key: string | null;
243
- value: any | null;
244
- }) | (() => KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
245
- key: string | null;
246
- value: any | null;
247
- }) | (() => KeyValueItem))[], unknown, unknown, () => {
241
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => KeyValueItem) | (() => KeyValueItem) | ((new (...args: any[]) => KeyValueItem) | (() => KeyValueItem))[], unknown, unknown, () => {
248
242
  key: string;
249
243
  value: string;
250
244
  }, boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"key-value-item.js","sources":["../../../../../../packages/components/key-value/src/config/key-value-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\nimport type { FormProps } from 'ant-design-vue'\n\nexport const typeRules = [\n {\n trigger: ['blur', 'change'],\n message: '此字段是必需的',\n validator: async (_rule: any, value: any) => {\n if (!value) {\n return Promise.reject(new Error('此字段是必需的'))\n } else {\n return Promise.resolve()\n }\n }\n }\n]\nexport const formOptions = {\n layout: 'horizontal',\n labelAlign: 'left'\n} as FormProps\n\nexport const formColumns = [\n {\n key: 'other',\n labelCol: {\n span: 24\n }\n }\n]\n\nexport type KeyValueItem =\n | {\n key: string | null\n value: any | null\n }\n | Record<string, any>\nexport const keyValueItemProps = buildProps({\n value: {\n type: definePropType<KeyValueItem>(Object),\n default: () => ({\n key: '',\n value: ''\n })\n },\n keyValueTypeDict: {\n type: Object,\n default: () => ({})\n },\n showDelete: {\n type: Boolean,\n default: true\n }\n} as const)\n\nexport const keyValueItemEmits = {\n delete: () => true,\n change: () => true,\n 'update:value': (value: KeyValueItem) => !!value\n}\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAGO,MAAM,SAAY,GAAA;AAAA,EACvB;AAAA,IACE,OAAA,EAAS,CAAC,MAAA,EAAQ,QAAQ,CAAA;AAAA,IAC1B,OAAS,EAAA,4CAAA;AAAA,IACT,SAAA,EAAW,OAAO,KAAA,EAAY,KAAe,KAAA;AAC3C,MAAA,IAAI,CAAC,KAAO,EAAA;AACV,QAAA,OAAO,OAAQ,CAAA,MAAA,CAAO,IAAI,KAAA,CAAM,4CAAS,CAAC,CAAA,CAAA;AAAA,OACrC,MAAA;AACL,QAAA,OAAO,QAAQ,OAAQ,EAAA,CAAA;AAAA,OACzB;AAAA,KACF;AAAA,GACF;AACF,EAAA;AACO,MAAM,WAAc,GAAA;AAAA,EACzB,MAAQ,EAAA,YAAA;AAAA,EACR,UAAY,EAAA,MAAA;AACd,EAAA;AAEO,MAAM,WAAc,GAAA;AAAA,EACzB;AAAA,IACE,GAAK,EAAA,OAAA;AAAA,IACL,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,EAAA;AAAA,KACR;AAAA,GACF;AACF,EAAA;AAQO,MAAM,oBAAoBA,kBAAW,CAAA;AAAA,EAC1C,KAAO,EAAA;AAAA,IACL,IAAA,EAAMC,uBAA6B,MAAM,CAAA;AAAA,IACzC,SAAS,OAAO;AAAA,MACd,GAAK,EAAA,EAAA;AAAA,MACL,KAAO,EAAA,EAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,iBAAoB,GAAA;AAAA,EAC/B,QAAQ,MAAM,IAAA;AAAA,EACd,QAAQ,MAAM,IAAA;AAAA,EACd,cAAgB,EAAA,CAAC,KAAwB,KAAA,CAAC,CAAC,KAAA;AAC7C;;;;;;;;"}
1
+ {"version":3,"file":"key-value-item.js","sources":["../../../../../../packages/components/key-value/src/config/key-value-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\nimport type { FormProps } from 'ant-design-vue'\n\nexport const typeRules = [\n {\n trigger: ['blur', 'change'],\n message: '此字段是必需的',\n validator: async (_rule: any, value: any) => {\n if (!value) {\n return Promise.reject(new Error('此字段是必需的'))\n } else {\n return Promise.resolve()\n }\n }\n }\n]\nexport const formOptions = {\n layout: 'horizontal',\n labelAlign: 'left'\n} as FormProps\n\nexport const formColumns = [\n {\n key: 'other',\n labelCol: {\n span: 24\n }\n }\n]\n\nexport interface KeyValueItem {\n key: string | null\n value: any | null\n}\n \nexport const keyValueItemProps = buildProps({\n value: {\n type: definePropType<KeyValueItem>(Object),\n default: () => ({\n key: '',\n value: ''\n })\n },\n keyValueTypeDict: {\n type: Object,\n default: () => ({})\n },\n showDelete: {\n type: Boolean,\n default: true\n }\n} as const)\n\nexport const keyValueItemEmits = {\n delete: () => true,\n change: () => true,\n 'update:value': (value: KeyValueItem) => !!value\n}\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAGO,MAAM,SAAY,GAAA;AAAA,EACvB;AAAA,IACE,OAAA,EAAS,CAAC,MAAA,EAAQ,QAAQ,CAAA;AAAA,IAC1B,OAAS,EAAA,4CAAA;AAAA,IACT,SAAA,EAAW,OAAO,KAAA,EAAY,KAAe,KAAA;AAC3C,MAAA,IAAI,CAAC,KAAO,EAAA;AACV,QAAA,OAAO,OAAQ,CAAA,MAAA,CAAO,IAAI,KAAA,CAAM,4CAAS,CAAC,CAAA,CAAA;AAAA,OACrC,MAAA;AACL,QAAA,OAAO,QAAQ,OAAQ,EAAA,CAAA;AAAA,OACzB;AAAA,KACF;AAAA,GACF;AACF,EAAA;AACO,MAAM,WAAc,GAAA;AAAA,EACzB,MAAQ,EAAA,YAAA;AAAA,EACR,UAAY,EAAA,MAAA;AACd,EAAA;AAEO,MAAM,WAAc,GAAA;AAAA,EACzB;AAAA,IACE,GAAK,EAAA,OAAA;AAAA,IACL,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,EAAA;AAAA,KACR;AAAA,GACF;AACF,EAAA;AAOO,MAAM,oBAAoBA,kBAAW,CAAA;AAAA,EAC1C,KAAO,EAAA;AAAA,IACL,IAAA,EAAMC,uBAA6B,MAAM,CAAA;AAAA,IACzC,SAAS,OAAO;AAAA,MACd,GAAK,EAAA,EAAA;AAAA,MACL,KAAO,EAAA,EAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,iBAAoB,GAAA;AAAA,EAC/B,QAAQ,MAAM,IAAA;AAAA,EACd,QAAQ,MAAM,IAAA;AAAA,EACd,cAAgB,EAAA,CAAC,KAAwB,KAAA,CAAC,CAAC,KAAA;AAC7C;;;;;;;;"}
@@ -61,23 +61,17 @@ declare const _default: import("vue").DefineComponent<{
61
61
  bem: (blockSuffix: string, element: string, modifier: string) => string;
62
62
  is: (name?: string) => string;
63
63
  };
64
- innerValue: import("vue").Ref<(Record<string, any> | {
64
+ innerValue: import("vue").Ref<{
65
65
  key: string | null;
66
66
  value: any;
67
- })[]>;
67
+ }[]>;
68
68
  keyValueItems: import("vue").Ref<any[]>;
69
69
  keyValueTypeDict: import("vue").ComputedRef<{}>;
70
70
  handleAddItem: () => void;
71
71
  handleDelete: (idx: number) => void;
72
72
  handleChange: () => void;
73
73
  keyValueItem: import("vue").DefineComponent<{
74
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
75
- key: string | null;
76
- value: any;
77
- }) | (() => import("./config").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
78
- key: string | null;
79
- value: any;
80
- }) | (() => import("./config").KeyValueItem))[], unknown, unknown, () => {
74
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config").KeyValueItem) | (() => import("./config").KeyValueItem) | ((new (...args: any[]) => import("./config").KeyValueItem) | (() => import("./config").KeyValueItem))[], unknown, unknown, () => {
81
75
  key: string;
82
76
  value: string;
83
77
  }, boolean>;
@@ -106,7 +100,7 @@ declare const _default: import("vue").DefineComponent<{
106
100
  bem: (blockSuffix: string, element: string, modifier: string) => string;
107
101
  is: (name?: string) => string;
108
102
  };
109
- innerValue: import("vue").Ref<Record<string, any> | {
103
+ innerValue: import("vue").Ref<{
110
104
  key: string | null;
111
105
  value: any;
112
106
  }>;
@@ -359,13 +353,7 @@ declare const _default: import("vue").DefineComponent<{
359
353
  change: () => boolean;
360
354
  'update:value': (value: import("./config").KeyValueItem) => boolean;
361
355
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
362
- readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any> | {
363
- key: string | null;
364
- value: any;
365
- }) | (() => import("./config").KeyValueItem) | ((new (...args: any[]) => Record<string, any> | {
366
- key: string | null;
367
- value: any;
368
- }) | (() => import("./config").KeyValueItem))[], unknown, unknown, () => {
356
+ readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config").KeyValueItem) | (() => import("./config").KeyValueItem) | ((new (...args: any[]) => import("./config").KeyValueItem) | (() => import("./config").KeyValueItem))[], unknown, unknown, () => {
369
357
  key: string;
370
358
  value: string;
371
359
  }, boolean>;
@@ -43,6 +43,7 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
43
43
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
44
44
  readonly onClick?: Function | undefined;
45
45
  readonly data?: any;
46
+ readonly class?: string | undefined;
46
47
  readonly iconName?: string | undefined;
47
48
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
48
49
  readonly tooltipTitle?: string | undefined;
@@ -54,6 +55,7 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
54
55
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
55
56
  readonly onClick?: Function | undefined;
56
57
  readonly data?: any;
58
+ readonly class?: string | undefined;
57
59
  readonly iconName?: string | undefined;
58
60
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
59
61
  readonly tooltipTitle?: string | undefined;
@@ -79,6 +81,7 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
79
81
  is: (name?: string) => string;
80
82
  };
81
83
  operateIconClass: import("vue").ComputedRef<string>;
84
+ marginButtonClass: (index: any, length: any) => "" | "margin-button-container";
82
85
  handleDropdownOpenChange: (open: boolean) => void;
83
86
  handleIconMouseenter: () => void;
84
87
  readonly LlIconBase: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -88,6 +91,12 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
88
91
  readonly validator: ((val: unknown) => boolean) | undefined;
89
92
  __epPropKey: true;
90
93
  };
94
+ readonly class: {
95
+ readonly type: import("vue").PropType<string>;
96
+ readonly required: false;
97
+ readonly validator: ((val: unknown) => boolean) | undefined;
98
+ __epPropKey: true;
99
+ };
91
100
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
92
101
  readonly tooltipTitle: {
93
102
  readonly type: import("vue").PropType<string>;
@@ -133,6 +142,7 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
133
142
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
134
143
  readonly onClick?: Function | undefined;
135
144
  readonly data?: any;
145
+ readonly class?: string | undefined;
136
146
  readonly iconName?: string | undefined;
137
147
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
138
148
  readonly tooltipTitle?: string | undefined;
@@ -157,6 +167,12 @@ export declare const LlOperateIcon: import("ll-plus/es/utils").SFCWithInstall<im
157
167
  readonly validator: ((val: unknown) => boolean) | undefined;
158
168
  __epPropKey: true;
159
169
  };
170
+ readonly class: {
171
+ readonly type: import("vue").PropType<string>;
172
+ readonly required: false;
173
+ readonly validator: ((val: unknown) => boolean) | undefined;
174
+ __epPropKey: true;
175
+ };
160
176
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
161
177
  readonly tooltipTitle: {
162
178
  readonly type: import("vue").PropType<string>;
@@ -43,6 +43,7 @@ declare const _default: import("vue").DefineComponent<{
43
43
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
44
44
  readonly onClick?: Function | undefined;
45
45
  readonly data?: any;
46
+ readonly class?: string | undefined;
46
47
  readonly iconName?: string | undefined;
47
48
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
48
49
  readonly tooltipTitle?: string | undefined;
@@ -54,6 +55,7 @@ declare const _default: import("vue").DefineComponent<{
54
55
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
55
56
  readonly onClick?: Function | undefined;
56
57
  readonly data?: any;
58
+ readonly class?: string | undefined;
57
59
  readonly iconName?: string | undefined;
58
60
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
59
61
  readonly tooltipTitle?: string | undefined;
@@ -79,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
79
81
  is: (name?: string) => string;
80
82
  };
81
83
  operateIconClass: import("vue").ComputedRef<string>;
84
+ marginButtonClass: (index: any, length: any) => "" | "margin-button-container";
82
85
  handleDropdownOpenChange: (open: boolean) => void;
83
86
  handleIconMouseenter: () => void;
84
87
  readonly LlIconBase: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -88,6 +91,12 @@ declare const _default: import("vue").DefineComponent<{
88
91
  readonly validator: ((val: unknown) => boolean) | undefined;
89
92
  __epPropKey: true;
90
93
  };
94
+ readonly class: {
95
+ readonly type: import("vue").PropType<string>;
96
+ readonly required: false;
97
+ readonly validator: ((val: unknown) => boolean) | undefined;
98
+ __epPropKey: true;
99
+ };
91
100
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
92
101
  readonly tooltipTitle: {
93
102
  readonly type: import("vue").PropType<string>;
@@ -133,6 +142,7 @@ declare const _default: import("vue").DefineComponent<{
133
142
  readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
134
143
  readonly onClick?: Function | undefined;
135
144
  readonly data?: any;
145
+ readonly class?: string | undefined;
136
146
  readonly iconName?: string | undefined;
137
147
  readonly iconType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "default" | "primary", unknown> | undefined;
138
148
  readonly tooltipTitle?: string | undefined;
@@ -157,6 +167,12 @@ declare const _default: import("vue").DefineComponent<{
157
167
  readonly validator: ((val: unknown) => boolean) | undefined;
158
168
  __epPropKey: true;
159
169
  };
170
+ readonly class: {
171
+ readonly type: import("vue").PropType<string>;
172
+ readonly required: false;
173
+ readonly validator: ((val: unknown) => boolean) | undefined;
174
+ __epPropKey: true;
175
+ };
160
176
  readonly isShowTooltip: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
161
177
  readonly tooltipTitle: {
162
178
  readonly type: import("vue").PropType<string>;
@@ -55,6 +55,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
55
  const isHasDropdown = props.showDropdown && modalIconList.value.length;
56
56
  return `${bem.b()} ${isHasDropdown ? bem.m("has-dropdown") : ""}`;
57
57
  });
58
+ const marginButtonClass = (index, length) => {
59
+ return index < length ? "margin-button-container" : "";
60
+ };
58
61
  const handleDropdownOpenChange = (open) => {
59
62
  if (!open) {
60
63
  dropdownOpen.value = false;
@@ -86,7 +89,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
86
89
  return (_ctx, _cache) => {
87
90
  const _component_a_menu_item = vue.resolveComponent("a-menu-item");
88
91
  const _component_a_menu = vue.resolveComponent("a-menu");
89
- const _component_a_dropdown = vue.resolveComponent("a-dropdown");
92
+ const _component_a_dropdownx = vue.resolveComponent("a-dropdownx");
90
93
  return vue.openBlock(), vue.createElementBlock(
91
94
  "div",
92
95
  {
@@ -97,17 +100,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
97
100
  (vue.openBlock(true), vue.createElementBlock(
98
101
  vue.Fragment,
99
102
  null,
100
- vue.renderList(showIconList.value, (item) => {
103
+ vue.renderList(showIconList.value, (item, index$1) => {
101
104
  return vue.openBlock(), vue.createBlock(vue.unref(index.LlIconBase), vue.mergeProps({ ref_for: true }, item, {
102
105
  key: item.iconName,
103
- data: _ctx.data
104
- }), null, 16, ["data"]);
106
+ data: _ctx.data,
107
+ class: vue.unref(bem).e(marginButtonClass(index$1, showIconList.value.length - 1))
108
+ }), null, 16, ["data", "class"]);
105
109
  }),
106
110
  128
107
111
  /* KEYED_FRAGMENT */
108
112
  )),
109
113
  vue.createCommentVNode(" \u4E0B\u62C9\u63D0\u793A\u7684icon "),
110
- _ctx.showDropdown && modalIconList.value.length ? (vue.openBlock(), vue.createBlock(_component_a_dropdown, {
114
+ _ctx.showDropdown && modalIconList.value.length ? (vue.openBlock(), vue.createBlock(_component_a_dropdownx, {
111
115
  key: 0,
112
116
  "overlay-class-name": vue.unref(bem).e("dropdown"),
113
117
  open: dropdownOpen.value,
@@ -159,8 +163,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
159
163
  "is-show-container": showIconList.value[0].isShowContainer,
160
164
  "icon-type": showIconList.value[0].iconType,
161
165
  data: _ctx.data,
162
- "icon-name": "icon-more"
163
- }, null, 8, ["is-show-container", "icon-type", "data"])
166
+ "icon-name": "icon-more",
167
+ class: vue.normalizeClass(vue.unref(bem).e("icon-more"))
168
+ }, null, 8, ["is-show-container", "icon-type", "data", "class"])
164
169
  ],
165
170
  34
166
171
  /* CLASS, NEED_HYDRATION */