ll-plus 2.3.17 → 2.3.18

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 (61) hide show
  1. package/es/components/index.mjs +1 -1
  2. package/es/components/modal/src/modal.vue2.mjs +23 -13
  3. package/es/components/modal/src/modal.vue2.mjs.map +1 -1
  4. package/es/components/table/index.d.ts +19 -2
  5. package/es/components/table/index.mjs +1 -1
  6. package/es/components/table/src/components/header-search.vue.d.ts +10 -2
  7. package/es/components/table/src/components/header-search.vue2.mjs +29 -2
  8. package/es/components/table/src/components/header-search.vue2.mjs.map +1 -1
  9. package/es/components/table/src/config/header-search.d.ts +2 -0
  10. package/es/components/table/src/config/header-search.mjs +7 -1
  11. package/es/components/table/src/config/header-search.mjs.map +1 -1
  12. package/es/components/table/src/config/index.mjs +1 -1
  13. package/es/components/table/src/config/table.d.ts +4 -0
  14. package/es/components/table/src/config/table.mjs +3 -1
  15. package/es/components/table/src/config/table.mjs.map +1 -1
  16. package/es/components/table/src/table.vue.d.ts +19 -2
  17. package/es/components/table/src/table.vue2.mjs +46 -26
  18. package/es/components/table/src/table.vue2.mjs.map +1 -1
  19. package/es/index.mjs +1 -1
  20. package/es/utils/props/runtime.d.ts +2 -2
  21. package/index.full.js +107 -40
  22. package/index.full.min.js +15 -15
  23. package/index.full.min.js.map +1 -1
  24. package/index.full.min.mjs +16 -16
  25. package/index.full.min.mjs.map +1 -1
  26. package/index.full.mjs +106 -41
  27. package/lib/components/index.js +2 -0
  28. package/lib/components/index.js.map +1 -1
  29. package/lib/components/modal/src/modal.vue2.js +23 -13
  30. package/lib/components/modal/src/modal.vue2.js.map +1 -1
  31. package/lib/components/table/index.d.ts +19 -2
  32. package/lib/components/table/index.js +2 -0
  33. package/lib/components/table/index.js.map +1 -1
  34. package/lib/components/table/src/components/header-search.vue.d.ts +10 -2
  35. package/lib/components/table/src/components/header-search.vue2.js +28 -1
  36. package/lib/components/table/src/components/header-search.vue2.js.map +1 -1
  37. package/lib/components/table/src/config/header-search.d.ts +2 -0
  38. package/lib/components/table/src/config/header-search.js +7 -1
  39. package/lib/components/table/src/config/header-search.js.map +1 -1
  40. package/lib/components/table/src/config/index.js +2 -0
  41. package/lib/components/table/src/config/index.js.map +1 -1
  42. package/lib/components/table/src/config/table.d.ts +4 -0
  43. package/lib/components/table/src/config/table.js +4 -0
  44. package/lib/components/table/src/config/table.js.map +1 -1
  45. package/lib/components/table/src/table.vue.d.ts +19 -2
  46. package/lib/components/table/src/table.vue2.js +45 -25
  47. package/lib/components/table/src/table.vue2.js.map +1 -1
  48. package/lib/index.js +2 -0
  49. package/lib/index.js.map +1 -1
  50. package/lib/utils/props/runtime.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/theme-chalk/css/drawer.css +1 -1
  53. package/theme-chalk/css/index.css +1 -1
  54. package/theme-chalk/css/modal.css +1 -1
  55. package/theme-chalk/css/table.css +1 -1
  56. package/types/packages/components/table/index.d.ts +19 -2
  57. package/types/packages/components/table/src/components/header-search.vue.d.ts +10 -2
  58. package/types/packages/components/table/src/config/header-search.d.ts +2 -0
  59. package/types/packages/components/table/src/config/table.d.ts +4 -0
  60. package/types/packages/components/table/src/table.vue.d.ts +19 -2
  61. package/types/packages/utils/props/runtime.d.ts +2 -2
@@ -4,7 +4,7 @@ import '../../../utils/index.mjs';
4
4
  import HeaderSearch from './components/header-search.vue.mjs';
5
5
  import MainTable from './components/main-table.vue.mjs';
6
6
  import Pagination from './components/pagination.vue.mjs';
7
- import { tableProps } from './config/table.mjs';
7
+ import { tableProps, HEADER_SRARCH_HEIGHT, PAGINATION_HEIGHT } from './config/table.mjs';
8
8
  import { ImenuSwitchType } from './config/header-search.mjs';
9
9
  import { createNamespace } from '../../../utils/create-namespace.mjs';
10
10
 
@@ -21,6 +21,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  columns: []
22
22
  });
23
23
  const contentType = ref(ImenuSwitchType.TABLE);
24
+ const headerSearchHeight = ref(HEADER_SRARCH_HEIGHT);
25
+ const tableRef = ref();
24
26
  const bem = createNamespace("table");
25
27
  const handleChangeDataSource = (dataSource) => {
26
28
  newNaTableptions.value.dataSource = dataSource;
@@ -28,6 +30,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
28
30
  const handleSwitchMenuChange = (v) => {
29
31
  contentType.value = v;
30
32
  };
33
+ const handleChangeHeaderSearch = (height) => {
34
+ if (headerSearchHeight.value === height)
35
+ return;
36
+ headerSearchHeight.value = height;
37
+ };
31
38
  watch(
32
39
  () => props.tableProps,
33
40
  (newValue) => {
@@ -42,6 +49,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
42
49
  immediate: true
43
50
  }
44
51
  );
52
+ watch(
53
+ () => [tableRef, headerSearchHeight],
54
+ () => {
55
+ if (tableRef.value) {
56
+ const diffHeight = headerSearchHeight.value + 20 + PAGINATION_HEIGHT + 10;
57
+ tableRef.value.style.height = `calc(100% - ${diffHeight}px)`;
58
+ }
59
+ },
60
+ {
61
+ immediate: true,
62
+ deep: true
63
+ }
64
+ );
45
65
  provide("contentType", contentType);
46
66
  return (_ctx, _cache) => {
47
67
  const _component_a_spin = resolveComponent("a-spin");
@@ -57,35 +77,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
57
77
  },
58
78
  [
59
79
  createCommentVNode(" \u5934\u90E8seach "),
60
- createVNode(
61
- HeaderSearch,
62
- mergeProps(_ctx.headerSearchProps, { onChange: handleSwitchMenuChange }),
63
- {
64
- header: withCtx(() => [
65
- renderSlot(_ctx.$slots, "header")
66
- ]),
67
- headerLeft: withCtx(() => [
68
- renderSlot(_ctx.$slots, "headerLeft")
69
- ]),
70
- headerMiddle: withCtx(() => [
71
- renderSlot(_ctx.$slots, "headerMiddle")
72
- ]),
73
- headerRight: withCtx(() => [
74
- renderSlot(_ctx.$slots, "headerRight")
75
- ]),
76
- default: withCtx(() => [
77
- renderSlot(_ctx.$slots, "header")
78
- ]),
79
- _: 3
80
- /* FORWARDED */
81
- },
82
- 16
83
- /* FULL_PROPS */
84
- ),
80
+ createVNode(HeaderSearch, mergeProps(_ctx.headerSearchProps, {
81
+ "header-search-height": headerSearchHeight.value,
82
+ onChange: handleSwitchMenuChange,
83
+ onChangeHeaderSearch: handleChangeHeaderSearch
84
+ }), {
85
+ header: withCtx(() => [
86
+ renderSlot(_ctx.$slots, "header")
87
+ ]),
88
+ headerLeft: withCtx(() => [
89
+ renderSlot(_ctx.$slots, "headerLeft")
90
+ ]),
91
+ headerMiddle: withCtx(() => [
92
+ renderSlot(_ctx.$slots, "headerMiddle")
93
+ ]),
94
+ headerRight: withCtx(() => [
95
+ renderSlot(_ctx.$slots, "headerRight")
96
+ ]),
97
+ default: withCtx(() => [
98
+ renderSlot(_ctx.$slots, "header")
99
+ ]),
100
+ _: 3
101
+ /* FORWARDED */
102
+ }, 16, ["header-search-height"]),
85
103
  createCommentVNode(" slot-content table\u548Ccard\u9ED8\u8BA4table "),
86
104
  createElementVNode(
87
105
  "div",
88
106
  {
107
+ ref_key: "tableRef",
108
+ ref: tableRef,
89
109
  class: normalizeClass([
90
110
  unref(bem).m("fixed-height"),
91
111
  !newNaTableptions.value.dataSource.length ? unref(bem).m("empty") : ""
@@ -1 +1 @@
1
- {"version":3,"file":"table.vue2.mjs","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\" wrapper-class-name=\"ll-table-spin-wrapper\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <header-search\n v-bind=\"headerSearchProps\"\n @change=\"handleSwitchMenuChange\"\n >\n <!-- header-slot -->\n <template #header>\n <slot name=\"header\" />\n </template>\n <slot name=\"header\"></slot>\n <!-- left-slot -->\n <template #headerLeft>\n <slot name=\"headerLeft\"></slot>\n </template>\n <!-- middle-slot -->\n <template #headerMiddle>\n <slot name=\"headerMiddle\"></slot>\n </template>\n <!-- right-slot -->\n <template #headerRight>\n <slot name=\"headerRight\"></slot>\n </template>\n </header-search>\n <!-- slot-content table和card默认table -->\n <div\n :class=\"[\n bem.m('fixed-height'),\n !newNaTableptions.dataSource!.length ? bem.m('empty') : ''\n ]\"\n >\n <slot :name=\"contentType\">\n <main-table\n v-bind=\"newNaTableptions\"\n @handle-change-data-source=\"handleChangeDataSource\"\n >\n <!-- tableHeaderCell-slot -->\n <template #tableHeaderCell=\"slots\">\n <slot name=\"tableHeaderCell\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableBodyCell-slot -->\n <template #tableBodyCell=\"slots\">\n <slot name=\"tableBodyCell\" v-bind=\"slots\"></slot>\n </template>\n <!--tableOperate-slot -->\n <template #tableOperate=\"slots\">\n <slot name=\"tableOperate\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableRowExpand-slot -->\n <template v-if=\"$slots.expandedRow\" #expandedRow=\"slots\">\n <slot name=\"expandedRow\" v-bind=\"slots\"></slot>\n </template>\n <!-- expandColumnTitle-slot -->\n <template #expandedTitle>\n <slot name=\"expandedTitle\"> </slot>\n </template>\n <!-- empty-slot -->\n <template #emptyText>\n <slot name=\"emptyText\"></slot>\n </template>\n <!-- customFilterDropdown-slot -->\n <template\n v-if=\"$slots.customFilterDropdown\"\n #customFilterDropdown=\"slots\"\n >\n <slot name=\"customFilterDropdown\" v-bind=\"slots\"></slot>\n </template>\n <!-- customFilterIcon-slot -->\n <template v-if=\"$slots.customFilterIcon\" #customFilterIcon=\"slots\">\n <slot name=\"customFilterIcon\" v-bind=\"slots\"></slot>\n </template>\n <!-- summary-slot -->\n <template v-if=\"$slots.summary\" #summary=\"slots\">\n <slot name=\"summary\" v-bind=\"slots\"></slot>\n </template>\n </main-table>\n </slot>\n </div>\n <!-- 底部分页 -->\n <template\n v-if=\"\n newNaTableptions.dataSource!.length &&\n !newNaTableptions.hiddenPagination\n \"\n >\n <pagination v-bind=\"paginationProps\" />\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, provide } from 'vue'\n\nimport { ImenuSwitchType } from './config'\nimport { createNamespace } from '@ll-plus/utils'\n\nimport HeaderSearch from './components/header-search.vue'\nimport MainTable from './components/main-table.vue'\nimport Pagination from './components/pagination.vue'\n\nimport { tableProps } from './config'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTable' })\n\n// 2.props\nconst props = defineProps(tableProps)\n// 3.ref\n// 表格数据\nconst originDataSource = ref()\nconst newNaTableptions = ref<any>({\n dataSource: [],\n columns: []\n})\n// 菜单切换/内容插槽\nconst contentType = ref(ImenuSwitchType.TABLE) // 菜单切换\nconst bem = createNamespace('table')\n\n// 4.methods\n// 拖拽完成后获取拖拽后的数据\nconst handleChangeDataSource = (dataSource: any[]) => {\n newNaTableptions.value.dataSource = dataSource\n}\n// 切换菜单内容\nconst handleSwitchMenuChange = (v: ImenuSwitchType) => {\n contentType.value = v\n}\n\n// 5.watch\nwatch(\n () => props.tableProps,\n (newValue: any) => {\n if (newValue) {\n newNaTableptions.value = { ...newValue }\n originDataSource.value = [...newValue.dataSource]\n contentType.value = newNaTableptions.value.contentType\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n// 6.其他\nprovide('contentType', contentType)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4GA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAC7B,IAAA,MAAM,mBAAmB,GAAS,CAAA;AAAA,MAChC,YAAY,EAAC;AAAA,MACb,SAAS,EAAC;AAAA,KACX,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,GAAI,CAAA,eAAA,CAAgB,KAAK,CAAA,CAAA;AAC7C,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,UAAsB,KAAA;AACpD,MAAA,gBAAA,CAAiB,MAAM,UAAa,GAAA,UAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAM,MAAA,sBAAA,GAAyB,CAAC,CAAuB,KAAA;AACrD,MAAA,WAAA,CAAY,KAAQ,GAAA,CAAA,CAAA;AAAA,KACtB,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,QAAkB,KAAA;AACjB,QAAA,IAAI,QAAU,EAAA;AACZ,UAAiB,gBAAA,CAAA,KAAA,GAAQ,EAAE,GAAG,QAAS,EAAA,CAAA;AACvC,UAAA,gBAAA,CAAiB,KAAQ,GAAA,CAAC,GAAG,QAAA,CAAS,UAAU,CAAA,CAAA;AAChD,UAAY,WAAA,CAAA,KAAA,GAAQ,iBAAiB,KAAM,CAAA,WAAA,CAAA;AAAA,SAC7C;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAA,OAAA,CAAQ,eAAe,WAAW,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"table.vue2.mjs","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\" wrapper-class-name=\"ll-table-spin-wrapper\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <header-search\n v-bind=\"headerSearchProps\"\n :header-search-height=\"headerSearchHeight\"\n @change=\"handleSwitchMenuChange\"\n @change-header-search=\"handleChangeHeaderSearch\"\n >\n <!-- header-slot -->\n <template #header>\n <slot name=\"header\" />\n </template>\n <slot name=\"header\"></slot>\n <!-- left-slot -->\n <template #headerLeft>\n <slot name=\"headerLeft\"></slot>\n </template>\n <!-- middle-slot -->\n <template #headerMiddle>\n <slot name=\"headerMiddle\"></slot>\n </template>\n <!-- right-slot -->\n <template #headerRight>\n <slot name=\"headerRight\"></slot>\n </template>\n </header-search>\n <!-- slot-content table和card默认table -->\n <div\n ref=\"tableRef\"\n :class=\"[\n bem.m('fixed-height'),\n !newNaTableptions.dataSource!.length ? bem.m('empty') : ''\n ]\"\n >\n <slot :name=\"contentType\">\n <main-table\n v-bind=\"newNaTableptions\"\n @handle-change-data-source=\"handleChangeDataSource\"\n >\n <!-- tableHeaderCell-slot -->\n <template #tableHeaderCell=\"slots\">\n <slot name=\"tableHeaderCell\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableBodyCell-slot -->\n <template #tableBodyCell=\"slots\">\n <slot name=\"tableBodyCell\" v-bind=\"slots\"></slot>\n </template>\n <!--tableOperate-slot -->\n <template #tableOperate=\"slots\">\n <slot name=\"tableOperate\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableRowExpand-slot -->\n <template v-if=\"$slots.expandedRow\" #expandedRow=\"slots\">\n <slot name=\"expandedRow\" v-bind=\"slots\"></slot>\n </template>\n <!-- expandColumnTitle-slot -->\n <template #expandedTitle>\n <slot name=\"expandedTitle\"> </slot>\n </template>\n <!-- empty-slot -->\n <template #emptyText>\n <slot name=\"emptyText\"></slot>\n </template>\n <!-- customFilterDropdown-slot -->\n <template\n v-if=\"$slots.customFilterDropdown\"\n #customFilterDropdown=\"slots\"\n >\n <slot name=\"customFilterDropdown\" v-bind=\"slots\"></slot>\n </template>\n <!-- customFilterIcon-slot -->\n <template v-if=\"$slots.customFilterIcon\" #customFilterIcon=\"slots\">\n <slot name=\"customFilterIcon\" v-bind=\"slots\"></slot>\n </template>\n <!-- summary-slot -->\n <template v-if=\"$slots.summary\" #summary=\"slots\">\n <slot name=\"summary\" v-bind=\"slots\"></slot>\n </template>\n </main-table>\n </slot>\n </div>\n <!-- 底部分页 -->\n <template\n v-if=\"\n newNaTableptions.dataSource!.length &&\n !newNaTableptions.hiddenPagination\n \"\n >\n <pagination v-bind=\"paginationProps\" />\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, provide } from 'vue'\n\nimport { ImenuSwitchType } from './config'\nimport { createNamespace } from '@ll-plus/utils'\nimport { HEADER_SRARCH_HEIGHT, PAGINATION_HEIGHT } from './config'\n\nimport HeaderSearch from './components/header-search.vue'\nimport MainTable from './components/main-table.vue'\nimport Pagination from './components/pagination.vue'\n\nimport { tableProps } from './config'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTable' })\n\n// 2.props\nconst props = defineProps(tableProps)\n// 3.ref\n// 表格数据\nconst originDataSource = ref()\nconst newNaTableptions = ref<any>({\n dataSource: [],\n columns: []\n})\n// 菜单切换/内容插槽\nconst contentType = ref(ImenuSwitchType.TABLE) // 菜单切换\nconst headerSearchHeight = ref(HEADER_SRARCH_HEIGHT) // 头部内容默认高度\nconst tableRef = ref()\nconst bem = createNamespace('table')\n\n// 4.methods\n// 拖拽完成后获取拖拽后的数据\nconst handleChangeDataSource = (dataSource: any[]) => {\n newNaTableptions.value.dataSource = dataSource\n}\n// 切换菜单内容\nconst handleSwitchMenuChange = (v: ImenuSwitchType) => {\n contentType.value = v\n}\n// 改变头部高度\nconst handleChangeHeaderSearch = (height: number) => {\n if (headerSearchHeight.value === height) return\n headerSearchHeight.value = height\n}\n\n// 5.watch\nwatch(\n () => props.tableProps,\n (newValue: any) => {\n if (newValue) {\n newNaTableptions.value = { ...newValue }\n originDataSource.value = [...newValue.dataSource]\n contentType.value = newNaTableptions.value.contentType\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n// 根据头部和分页高度动态设置表格的高度\nwatch(\n () => [tableRef, headerSearchHeight],\n () => {\n if (tableRef.value) {\n const diffHeight = headerSearchHeight.value + 20 + PAGINATION_HEIGHT + 10\n tableRef.value.style.height = `calc(100% - ${diffHeight}px)`\n }\n },\n {\n immediate: true,\n deep: true\n }\n)\n\n// 6.其他\nprovide('contentType', contentType)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgHA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAC7B,IAAA,MAAM,mBAAmB,GAAS,CAAA;AAAA,MAChC,YAAY,EAAC;AAAA,MACb,SAAS,EAAC;AAAA,KACX,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,GAAI,CAAA,eAAA,CAAgB,KAAK,CAAA,CAAA;AAC7C,IAAM,MAAA,kBAAA,GAAqB,IAAI,oBAAoB,CAAA,CAAA;AACnD,IAAA,MAAM,WAAW,GAAI,EAAA,CAAA;AACrB,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,UAAsB,KAAA;AACpD,MAAA,gBAAA,CAAiB,MAAM,UAAa,GAAA,UAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAM,MAAA,sBAAA,GAAyB,CAAC,CAAuB,KAAA;AACrD,MAAA,WAAA,CAAY,KAAQ,GAAA,CAAA,CAAA;AAAA,KACtB,CAAA;AAEA,IAAM,MAAA,wBAAA,GAA2B,CAAC,MAAmB,KAAA;AACnD,MAAA,IAAI,mBAAmB,KAAU,KAAA,MAAA;AAAQ,QAAA,OAAA;AACzC,MAAA,kBAAA,CAAmB,KAAQ,GAAA,MAAA,CAAA;AAAA,KAC7B,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,QAAkB,KAAA;AACjB,QAAA,IAAI,QAAU,EAAA;AACZ,UAAiB,gBAAA,CAAA,KAAA,GAAQ,EAAE,GAAG,QAAS,EAAA,CAAA;AACvC,UAAA,gBAAA,CAAiB,KAAQ,GAAA,CAAC,GAAG,QAAA,CAAS,UAAU,CAAA,CAAA;AAChD,UAAY,WAAA,CAAA,KAAA,GAAQ,iBAAiB,KAAM,CAAA,WAAA,CAAA;AAAA,SAC7C;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,CAAC,QAAA,EAAU,kBAAkB,CAAA;AAAA,MACnC,MAAM;AACJ,QAAA,IAAI,SAAS,KAAO,EAAA;AAClB,UAAA,MAAM,UAAa,GAAA,kBAAA,CAAmB,KAAQ,GAAA,EAAA,GAAK,iBAAoB,GAAA,EAAA,CAAA;AACvE,UAAA,QAAA,CAAS,KAAM,CAAA,KAAA,CAAM,MAAS,GAAA,CAAA,YAAA,EAAe,UAAU,CAAA,GAAA,CAAA,CAAA;AAAA,SACzD;AAAA,OACF;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,QACX,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAGA,IAAA,OAAA,CAAQ,eAAe,WAAW,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/es/index.mjs CHANGED
@@ -80,7 +80,7 @@ export { LlSwitch } from './components/switch/index.mjs';
80
80
  export { ImenuSwitchType, menuSwitchRadioList, tableHeaderSearchEmits, tableHeaderSearchProps } from './components/table/src/config/header-search.mjs';
81
81
  export { mainTableEmits, mainTableProps, tableContentType } from './components/table/src/config/main-table.mjs';
82
82
  export { tablePaginationProps } from './components/table/src/config/pagination.mjs';
83
- export { tableProps } from './components/table/src/config/table.mjs';
83
+ export { HEADER_SRARCH_HEIGHT, PAGINATION_HEIGHT, tableProps } from './components/table/src/config/table.mjs';
84
84
  export { LlTable } from './components/table/index.mjs';
85
85
  export { tabsSimpleEmits, tabsSimpleProps } from './components/tabs-simple/src/tabs-simple.mjs';
86
86
  export { LlTabsSimple } from './components/tabs-simple/index.mjs';
@@ -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
@@ -59173,19 +59173,29 @@
59173
59173
  fn: require$$0.withCtx(() => [
59174
59174
  require$$0.renderSlot(_ctx.$slots, "footer", {}, () => [
59175
59175
  require$$0.createCommentVNode(" \u786E\u8BA4\u6846 "),
59176
- props.showCancel && props.type !== "confirm" ? (require$$0.openBlock(), require$$0.createBlock(require$$0.unref(LlButton), {
59177
- key: 0,
59178
- label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
59179
- size: "middle",
59180
- onClick: handleCancel
59181
- }, null, 8, ["label"])) : require$$0.createCommentVNode("v-if", true),
59182
- require$$0.createVNode(require$$0.unref(LlButton), {
59183
- type: "primary",
59184
- loading: props.loading,
59185
- size: "middle",
59186
- label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
59187
- onClick: handleOk
59188
- }, null, 8, ["loading", "label"])
59176
+ require$$0.createElementVNode(
59177
+ "div",
59178
+ {
59179
+ class: require$$0.normalizeClass(require$$0.unref(bem).e("footer"))
59180
+ },
59181
+ [
59182
+ props.showCancel && props.type !== "confirm" ? (require$$0.openBlock(), require$$0.createBlock(require$$0.unref(LlButton), {
59183
+ key: 0,
59184
+ label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
59185
+ size: "middle",
59186
+ onClick: handleCancel
59187
+ }, null, 8, ["label"])) : require$$0.createCommentVNode("v-if", true),
59188
+ require$$0.createVNode(require$$0.unref(LlButton), {
59189
+ type: "primary",
59190
+ loading: props.loading,
59191
+ size: "middle",
59192
+ label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
59193
+ onClick: handleOk
59194
+ }, null, 8, ["loading", "label"])
59195
+ ],
59196
+ 2
59197
+ /* CLASS */
59198
+ )
59189
59199
  ])
59190
59200
  ]),
59191
59201
  key: "0"
@@ -61704,13 +61714,19 @@
61704
61714
  }
61705
61715
  ];
61706
61716
  const tableHeaderSearchProps = buildProps({
61717
+ headerSearchHeight: {
61718
+ type: Number,
61719
+ default: 36
61720
+ },
61707
61721
  menuSwitchOptions: {
61708
61722
  type: definePropType(Object),
61709
61723
  default: () => mutable({})
61710
61724
  }
61711
61725
  });
61712
61726
  const tableHeaderSearchEmits = {
61713
- change: (v) => !!v
61727
+ change: (v) => !!v,
61728
+ // 返回值要明确返回一个布尔类型要不然vue会警告
61729
+ changeHeaderSearch: (height) => !!height
61714
61730
  // 返回值要明确返回一个布尔类型要不然vue会警告
61715
61731
  };
61716
61732
 
@@ -61889,6 +61905,8 @@
61889
61905
  default: () => mutable({})
61890
61906
  }
61891
61907
  });
61908
+ const HEADER_SRARCH_HEIGHT = 36;
61909
+ const PAGINATION_HEIGHT = 60;
61892
61910
 
61893
61911
  var _sfc_main$i = /* @__PURE__ */ require$$0.defineComponent({
61894
61912
  ...{
@@ -61899,6 +61917,8 @@
61899
61917
  emits: tableHeaderSearchEmits,
61900
61918
  setup(__props, { emit: __emit }) {
61901
61919
  const props = __props;
61920
+ const headerSearchRef = require$$0.ref();
61921
+ const contentType = require$$0.inject("contentType");
61902
61922
  const emits = __emit;
61903
61923
  const bem = createNamespace("table");
61904
61924
  const handleMenuSwitchChange = (event) => {
@@ -61907,13 +61927,38 @@
61907
61927
  props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value);
61908
61928
  emits("change", value);
61909
61929
  };
61910
- const contentType = require$$0.inject("contentType");
61930
+ require$$0.watch(
61931
+ headerSearchRef,
61932
+ () => {
61933
+ if (headerSearchRef.value) {
61934
+ const observer = new MutationObserver(function(mutations) {
61935
+ mutations.forEach(function() {
61936
+ const newHeight = headerSearchRef.value.getBoundingClientRect().height;
61937
+ emits("changeHeaderSearch", newHeight);
61938
+ });
61939
+ });
61940
+ const config = {
61941
+ childList: true,
61942
+ // 观察直接子节点
61943
+ subtree: true
61944
+ // 及其更低的后代节点
61945
+ };
61946
+ observer.observe(headerSearchRef.value, config);
61947
+ }
61948
+ },
61949
+ {
61950
+ immediate: true,
61951
+ deep: true
61952
+ }
61953
+ );
61911
61954
  return (_ctx, _cache) => {
61912
61955
  const _component_a_radio_button = require$$0.resolveComponent("a-radio-button");
61913
61956
  const _component_a_radio_group = require$$0.resolveComponent("a-radio-group");
61914
61957
  return require$$0.openBlock(), require$$0.createElementBlock(
61915
61958
  "div",
61916
61959
  {
61960
+ ref_key: "headerSearchRef",
61961
+ ref: headerSearchRef,
61917
61962
  class: require$$0.normalizeClass(`${require$$0.unref(bem).e("header-wrapper")}`)
61918
61963
  },
61919
61964
  [
@@ -69651,6 +69696,8 @@
69651
69696
  columns: []
69652
69697
  });
69653
69698
  const contentType = require$$0.ref(ImenuSwitchType.TABLE);
69699
+ const headerSearchHeight = require$$0.ref(HEADER_SRARCH_HEIGHT);
69700
+ const tableRef = require$$0.ref();
69654
69701
  const bem = createNamespace("table");
69655
69702
  const handleChangeDataSource = (dataSource) => {
69656
69703
  newNaTableptions.value.dataSource = dataSource;
@@ -69658,6 +69705,11 @@
69658
69705
  const handleSwitchMenuChange = (v) => {
69659
69706
  contentType.value = v;
69660
69707
  };
69708
+ const handleChangeHeaderSearch = (height) => {
69709
+ if (headerSearchHeight.value === height)
69710
+ return;
69711
+ headerSearchHeight.value = height;
69712
+ };
69661
69713
  require$$0.watch(
69662
69714
  () => props.tableProps,
69663
69715
  (newValue) => {
@@ -69672,6 +69724,19 @@
69672
69724
  immediate: true
69673
69725
  }
69674
69726
  );
69727
+ require$$0.watch(
69728
+ () => [tableRef, headerSearchHeight],
69729
+ () => {
69730
+ if (tableRef.value) {
69731
+ const diffHeight = headerSearchHeight.value + 20 + PAGINATION_HEIGHT + 10;
69732
+ tableRef.value.style.height = `calc(100% - ${diffHeight}px)`;
69733
+ }
69734
+ },
69735
+ {
69736
+ immediate: true,
69737
+ deep: true
69738
+ }
69739
+ );
69675
69740
  require$$0.provide("contentType", contentType);
69676
69741
  return (_ctx, _cache) => {
69677
69742
  const _component_a_spin = require$$0.resolveComponent("a-spin");
@@ -69687,35 +69752,35 @@
69687
69752
  },
69688
69753
  [
69689
69754
  require$$0.createCommentVNode(" \u5934\u90E8seach "),
69690
- require$$0.createVNode(
69691
- HeaderSearch$1,
69692
- require$$0.mergeProps(_ctx.headerSearchProps, { onChange: handleSwitchMenuChange }),
69693
- {
69694
- header: require$$0.withCtx(() => [
69695
- require$$0.renderSlot(_ctx.$slots, "header")
69696
- ]),
69697
- headerLeft: require$$0.withCtx(() => [
69698
- require$$0.renderSlot(_ctx.$slots, "headerLeft")
69699
- ]),
69700
- headerMiddle: require$$0.withCtx(() => [
69701
- require$$0.renderSlot(_ctx.$slots, "headerMiddle")
69702
- ]),
69703
- headerRight: require$$0.withCtx(() => [
69704
- require$$0.renderSlot(_ctx.$slots, "headerRight")
69705
- ]),
69706
- default: require$$0.withCtx(() => [
69707
- require$$0.renderSlot(_ctx.$slots, "header")
69708
- ]),
69709
- _: 3
69710
- /* FORWARDED */
69711
- },
69712
- 16
69713
- /* FULL_PROPS */
69714
- ),
69755
+ require$$0.createVNode(HeaderSearch$1, require$$0.mergeProps(_ctx.headerSearchProps, {
69756
+ "header-search-height": headerSearchHeight.value,
69757
+ onChange: handleSwitchMenuChange,
69758
+ onChangeHeaderSearch: handleChangeHeaderSearch
69759
+ }), {
69760
+ header: require$$0.withCtx(() => [
69761
+ require$$0.renderSlot(_ctx.$slots, "header")
69762
+ ]),
69763
+ headerLeft: require$$0.withCtx(() => [
69764
+ require$$0.renderSlot(_ctx.$slots, "headerLeft")
69765
+ ]),
69766
+ headerMiddle: require$$0.withCtx(() => [
69767
+ require$$0.renderSlot(_ctx.$slots, "headerMiddle")
69768
+ ]),
69769
+ headerRight: require$$0.withCtx(() => [
69770
+ require$$0.renderSlot(_ctx.$slots, "headerRight")
69771
+ ]),
69772
+ default: require$$0.withCtx(() => [
69773
+ require$$0.renderSlot(_ctx.$slots, "header")
69774
+ ]),
69775
+ _: 3
69776
+ /* FORWARDED */
69777
+ }, 16, ["header-search-height"]),
69715
69778
  require$$0.createCommentVNode(" slot-content table\u548Ccard\u9ED8\u8BA4table "),
69716
69779
  require$$0.createElementVNode(
69717
69780
  "div",
69718
69781
  {
69782
+ ref_key: "tableRef",
69783
+ ref: tableRef,
69719
69784
  class: require$$0.normalizeClass([
69720
69785
  require$$0.unref(bem).m("fixed-height"),
69721
69786
  !newNaTableptions.value.dataSource.length ? require$$0.unref(bem).m("empty") : ""
@@ -77258,6 +77323,7 @@
77258
77323
 
77259
77324
  exports.DEFAULT_METHOD = DEFAULT_METHOD;
77260
77325
  exports.DEFAULT_TYPE = DEFAULT_TYPE;
77326
+ exports.HEADER_SRARCH_HEIGHT = HEADER_SRARCH_HEIGHT;
77261
77327
  exports.ILlUploadDragProps = ILlUploadDragProps;
77262
77328
  exports.ImenuSwitchType = ImenuSwitchType;
77263
77329
  exports.LEFT_SELECT_MIN_WIDTH = LEFT_SELECT_MIN_WIDTH;
@@ -77319,6 +77385,7 @@
77319
77385
  exports.LlUploadImage = LlUploadImage;
77320
77386
  exports.LlUriInput = LlUriInput;
77321
77387
  exports.OperateTreeEmits = OperateTreeEmits;
77388
+ exports.PAGINATION_HEIGHT = PAGINATION_HEIGHT;
77322
77389
  exports.TypeEnum = TypeEnum;
77323
77390
  exports.advancedFilteringEmits = advancedFilteringEmits;
77324
77391
  exports.advancedFilteringParamsEmits = advancedFilteringParamsEmits;