@vrojs/element-plus 0.0.7 → 0.0.8

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 (190) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/dist/index.js +125 -83
  3. package/dist/locale/index.js +6 -7
  4. package/dist/locale/lang/en.d.ts +8 -0
  5. package/dist/locale/lang/en.js +8 -0
  6. package/dist/locale/lang/zh-cn.d.ts +8 -0
  7. package/dist/locale/lang/zh-cn.js +8 -0
  8. package/dist/locale/useLocale.d.ts +1 -48
  9. package/dist/locale/useLocale.js +16 -17
  10. package/dist/style/deps.js +7 -0
  11. package/dist/style/index.css +1 -1
  12. package/dist/style/index.js +7 -0
  13. package/dist/utils/elTableColumnProps.d.ts +149 -0
  14. package/dist/utils/elTableColumnProps.js +152 -0
  15. package/dist/utils/index.d.ts +1 -0
  16. package/dist/utils/index.js +4 -2
  17. package/dist/vro-el-checkbox-group/index.d.ts +1 -1
  18. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
  19. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
  20. package/dist/vro-el-config-provider/config.d.ts +14 -0
  21. package/dist/vro-el-config-provider/config.js +36 -0
  22. package/dist/vro-el-config-provider/index.d.ts +16 -0
  23. package/dist/vro-el-config-provider/index.js +8 -2
  24. package/dist/vro-el-config-provider/types.d.ts +7 -0
  25. package/dist/vro-el-config-provider/types.js +7 -0
  26. package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
  27. package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
  28. package/dist/vro-el-file-upload/index.d.ts +6 -6
  29. package/dist/vro-el-file-upload/style/index.css +1 -1
  30. package/dist/vro-el-file-upload/types.d.ts +9 -2
  31. package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
  32. package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
  33. package/dist/vro-el-icon/index.d.ts +28 -40
  34. package/dist/vro-el-icon/style/css.js +1 -0
  35. package/dist/vro-el-icon/style/deps.js +1 -1
  36. package/dist/vro-el-icon/style/index.js +1 -1
  37. package/dist/vro-el-icon/types.d.ts +16 -13
  38. package/dist/vro-el-icon/types.js +8 -1
  39. package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
  40. package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
  41. package/dist/vro-el-image/index.d.ts +10 -4
  42. package/dist/vro-el-image/style/css.js +4 -0
  43. package/dist/vro-el-image/style/index.css +1 -0
  44. package/dist/vro-el-image/style/index.js +4 -0
  45. package/dist/vro-el-image/types.d.ts +35 -0
  46. package/dist/vro-el-image/types.js +24 -1
  47. package/dist/vro-el-image/utils.d.ts +1 -1
  48. package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
  49. package/dist/vro-el-image/vro-el-image.vue.js +55 -24
  50. package/dist/vro-el-image-upload/index.d.ts +1 -1
  51. package/dist/vro-el-image-upload/style/css.js +4 -0
  52. package/dist/vro-el-image-upload/style/index.css +1 -1
  53. package/dist/vro-el-image-upload/style/index.js +4 -0
  54. package/dist/vro-el-image-upload/types.d.ts +24 -7
  55. package/dist/vro-el-image-upload/types.js +21 -7
  56. package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
  57. package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
  58. package/dist/vro-el-radio-group/index.d.ts +1 -1
  59. package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
  60. package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
  61. package/dist/vro-el-schema-filter/index.d.ts +27 -31
  62. package/dist/vro-el-schema-filter/style/css.js +5 -0
  63. package/dist/vro-el-schema-filter/style/index.css +1 -1
  64. package/dist/vro-el-schema-filter/style/index.js +5 -0
  65. package/dist/vro-el-schema-filter/types.d.ts +17 -0
  66. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
  67. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
  68. package/dist/vro-el-schema-form/index.d.ts +16 -18
  69. package/dist/vro-el-schema-form/style/css.js +5 -0
  70. package/dist/vro-el-schema-form/style/index.css +1 -1
  71. package/dist/vro-el-schema-form/style/index.js +5 -0
  72. package/dist/vro-el-schema-form/types.d.ts +65 -7
  73. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +33 -37
  74. package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
  75. package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
  76. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
  77. package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
  78. package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
  79. package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
  80. package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
  81. package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
  82. package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
  83. package/dist/vro-el-schema-form-dialog/types.js +6 -11
  84. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
  85. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
  86. package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
  87. package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
  88. package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
  89. package/dist/vro-el-schema-form-drawer/index.js +16 -0
  90. package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
  91. package/dist/vro-el-schema-form-drawer/injection.js +9 -0
  92. package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
  93. package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
  94. package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
  95. package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
  96. package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
  97. package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
  98. package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
  99. package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
  100. package/dist/vro-el-schema-form-drawer/types.js +75 -0
  101. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
  102. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
  103. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
  104. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
  105. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
  106. package/dist/vro-el-select/index.d.ts +11 -11
  107. package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
  108. package/dist/vro-el-select/vro-el-select.vue.js +11 -11
  109. package/dist/vro-el-skeleton/index.d.ts +9 -73
  110. package/dist/vro-el-skeleton/style/index.css +1 -1
  111. package/dist/vro-el-skeleton/types.d.ts +32 -24
  112. package/dist/vro-el-skeleton/types.js +3 -23
  113. package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
  114. package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
  115. package/dist/vro-el-table/createUseVroElTable.d.ts +9 -0
  116. package/dist/vro-el-table/createUseVroElTable.js +7 -0
  117. package/dist/vro-el-table/index.js +13 -0
  118. package/dist/vro-el-table/style/css.d.ts +0 -0
  119. package/dist/vro-el-table/style/css.js +29 -0
  120. package/dist/vro-el-table/style/deps.d.ts +0 -0
  121. package/dist/vro-el-table/style/deps.js +28 -0
  122. package/dist/vro-el-table/style/index.css +1 -0
  123. package/dist/vro-el-table/style/index.d.ts +0 -0
  124. package/dist/vro-el-table/style/index.js +57 -0
  125. package/dist/vro-el-table/types.d.ts +97 -0
  126. package/dist/vro-el-table/types.js +66 -0
  127. package/dist/vro-el-table/useVroElTable.d.ts +43 -0
  128. package/dist/vro-el-table/useVroElTable.js +47 -0
  129. package/dist/vro-el-table/vro-el-table.vue.js +94 -0
  130. package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
  131. package/dist/vro-el-table-actions-column/index.d.ts +269 -0
  132. package/dist/vro-el-table-actions-column/index.js +9 -0
  133. package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
  134. package/dist/vro-el-table-actions-column/style/css.js +4 -0
  135. package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
  136. package/dist/vro-el-table-actions-column/style/deps.js +5 -0
  137. package/dist/vro-el-table-actions-column/style/index.css +1 -0
  138. package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
  139. package/dist/vro-el-table-actions-column/style/index.js +9 -0
  140. package/dist/vro-el-table-actions-column/types.d.ts +139 -0
  141. package/dist/vro-el-table-actions-column/types.js +37 -0
  142. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
  143. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
  144. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
  145. package/dist/vro-el-table-column/index.d.ts +257 -0
  146. package/dist/vro-el-table-column/index.js +9 -0
  147. package/dist/vro-el-table-column/style/css.d.ts +0 -0
  148. package/dist/vro-el-table-column/style/css.js +6 -0
  149. package/dist/vro-el-table-column/style/deps.d.ts +0 -0
  150. package/dist/vro-el-table-column/style/deps.js +1 -0
  151. package/dist/vro-el-table-column/style/index.css +1 -0
  152. package/dist/vro-el-table-column/style/index.d.ts +0 -0
  153. package/dist/vro-el-table-column/style/index.js +7 -0
  154. package/dist/vro-el-table-column/types.d.ts +141 -0
  155. package/dist/vro-el-table-column/types.js +43 -0
  156. package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
  157. package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
  158. package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
  159. package/dist/vro-el-table-column-group/index.d.ts +23 -0
  160. package/dist/vro-el-table-column-group/index.js +13 -0
  161. package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
  162. package/dist/vro-el-table-column-group/style/css.js +9 -0
  163. package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
  164. package/dist/vro-el-table-column-group/style/deps.js +5 -0
  165. package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
  166. package/dist/vro-el-table-column-group/style/index.js +14 -0
  167. package/dist/vro-el-table-column-group/types.d.ts +87 -0
  168. package/dist/vro-el-table-column-group/types.js +12 -0
  169. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
  170. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
  171. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
  172. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
  173. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
  174. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
  175. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
  176. package/dist/vro-el-tags/index.d.ts +234 -187
  177. package/dist/vro-el-tags/style/css.js +1 -0
  178. package/dist/vro-el-tags/style/index.css +1 -0
  179. package/dist/vro-el-tags/style/index.js +1 -0
  180. package/dist/vro-el-tags/types.d.ts +37 -1
  181. package/dist/vro-el-tags/types.js +17 -1
  182. package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
  183. package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
  184. package/dist/vro-el-tree/index.d.ts +3235 -32
  185. package/dist/vro-el-tree/style/index.css +1 -1
  186. package/dist/vro-el-tree/types.d.ts +124 -5
  187. package/dist/vro-el-tree/types.js +12 -6
  188. package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
  189. package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
  190. package/package.json +6 -6
@@ -0,0 +1,101 @@
1
+ import { defineComponent as V, computed as A, reactive as D, createBlock as c, openBlock as a, unref as i, mergeProps as m, withCtx as r, renderSlot as f, normalizeProps as M, guardReactiveProps as z, createElementBlock as v, createCommentVNode as F, Fragment as w, renderList as T, withModifiers as h, createTextVNode as p, toDisplayString as b, createVNode as E, normalizeClass as K } from "vue";
2
+ import { pick as S, typedKeys as j, isFunction as R, isPromiseLike as q } from "@daysnap/utils";
3
+ import { ElTableColumn as G, ElButton as L, ElDropdown as H, ElDropdownMenu as J, ElDropdownItem as O } from "element-plus";
4
+ import { useLocale as Q } from "../locale/useLocale.js";
5
+ import { elTableColumnProps as U } from "../utils/elTableColumnProps.js";
6
+ import "@vrojs/base";
7
+ import { vroElTableActionsColumnProps as W } from "./types.js";
8
+ const ne = /* @__PURE__ */ V({
9
+ name: "VroElTableActionsColumn",
10
+ __name: "vro-el-table-actions-column",
11
+ props: W,
12
+ setup(P) {
13
+ const u = P, { t: g } = Q(), _ = A(() => {
14
+ const e = S(u, j(U));
15
+ return {
16
+ ...e,
17
+ label: u.label ?? g("tableActionsColumn.label"),
18
+ className: ["vro-el-table-actions-column-cell", e.className].filter(Boolean).join(" ")
19
+ };
20
+ }), B = A(() => u.moreText ?? g("tableActionsColumn.moreText")), y = D(/* @__PURE__ */ new Map()), d = (e, l, o) => (typeof e == "function" ? e(l, o) : e).filter((t) => !(R(t.hidden) ? t.hidden(l, o) : t.hidden)), s = (e, l) => e.key ?? `${l}-${e.label}`, $ = (e, l, o) => !!y.get(`${l}-${s(e, o)}`), k = (e, l, o, n) => {
21
+ y.set(`${l}-${s(e, o)}`, n);
22
+ }, C = async (e, l, o, n) => {
23
+ const t = e.onAction?.(l, o);
24
+ if (!(!e.icon || !q(t))) {
25
+ k(e, o, n, !0);
26
+ try {
27
+ await t;
28
+ } finally {
29
+ k(e, o, n, !1);
30
+ }
31
+ }
32
+ };
33
+ return (e, l) => (a(), c(i(G), m(_.value, { class: "vro-el-table-actions-column" }), {
34
+ default: r((o) => [
35
+ f(e.$slots, "default", M(z(o)), () => [
36
+ (a(!0), v(w, null, T(d(e.actions, o.row, o.$index), (n, t) => (a(), c(i(L), {
37
+ key: s(n, t),
38
+ link: "",
39
+ type: n.type || "primary",
40
+ icon: n.icon,
41
+ loading: $(n, o.$index, t),
42
+ disabled: n.disabled,
43
+ onClick: h((N) => C(n, o.row, o.$index, t), ["stop"])
44
+ }, {
45
+ default: r(() => [
46
+ f(e.$slots, "action", m({ ref_for: !0 }, { ...o, action: n }), () => [
47
+ p(b(n.label), 1)
48
+ ])
49
+ ]),
50
+ _: 2
51
+ }, 1032, ["type", "icon", "loading", "disabled", "onClick"]))), 128)),
52
+ d(e.moreActions, o.row, o.$index).length ? (a(), c(i(H), {
53
+ key: 0,
54
+ trigger: e.moreTrigger
55
+ }, {
56
+ dropdown: r(() => [
57
+ E(i(J), null, {
58
+ default: r(() => [
59
+ (a(!0), v(w, null, T(d(e.moreActions, o.row, o.$index), (n, t) => (a(), c(i(O), {
60
+ key: s(n, t),
61
+ class: K([
62
+ "vro-el-table-actions-column-dropdown-action",
63
+ n.type && `is-${n.type}`
64
+ ]),
65
+ icon: n.icon,
66
+ disabled: n.disabled || $(n, o.$index, t),
67
+ onClick: h((N) => C(n, o.row, o.$index, t), ["stop"])
68
+ }, {
69
+ default: r(() => [
70
+ f(e.$slots, "more-action", m({ ref_for: !0 }, { ...o, action: n }), () => [
71
+ p(b(n.label), 1)
72
+ ])
73
+ ]),
74
+ _: 2
75
+ }, 1032, ["class", "icon", "disabled", "onClick"]))), 128))
76
+ ]),
77
+ _: 2
78
+ }, 1024)
79
+ ]),
80
+ default: r(() => [
81
+ E(i(L), {
82
+ type: "primary",
83
+ link: ""
84
+ }, {
85
+ default: r(() => [
86
+ p(b(B.value), 1)
87
+ ]),
88
+ _: 1
89
+ })
90
+ ]),
91
+ _: 2
92
+ }, 1032, ["trigger"])) : F("", !0)
93
+ ])
94
+ ]),
95
+ _: 3
96
+ }, 16));
97
+ }
98
+ });
99
+ export {
100
+ ne as default
101
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./vro-el-table-actions-column.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,257 @@
1
+ export * from './types';
2
+ export declare const VroElTableColumn: import('@vrojs/base').WithInstall<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ placeholder: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ unit: StringConstructor;
9
+ lineClamp: NumberConstructor;
10
+ map: import('vue').PropType<Record<PropertyKey, any>>;
11
+ renderDefault: import('vue').PropType<import('./types').VroElTableColumnRender>;
12
+ renderContent: import('vue').PropType<import('./types').VroElTableColumnRender>;
13
+ prefixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
14
+ suffixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
15
+ type: {
16
+ type: import('vue').PropType<"default" | "selection" | "index" | "expand">;
17
+ default: string;
18
+ };
19
+ label: StringConstructor;
20
+ className: StringConstructor;
21
+ labelClassName: StringConstructor;
22
+ property: StringConstructor;
23
+ prop: StringConstructor;
24
+ width: {
25
+ type: (NumberConstructor | StringConstructor)[];
26
+ default: string;
27
+ };
28
+ minWidth: {
29
+ type: (NumberConstructor | StringConstructor)[];
30
+ default: string;
31
+ };
32
+ renderHeader: import('vue').PropType<import('element-plus').TableColumnCtx<any>["renderHeader"]>;
33
+ sortable: {
34
+ type: (BooleanConstructor | StringConstructor)[];
35
+ default: boolean;
36
+ };
37
+ sortMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortMethod"]>;
38
+ sortBy: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortBy"]>;
39
+ resizable: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ columnKey: StringConstructor;
44
+ align: StringConstructor;
45
+ headerAlign: StringConstructor;
46
+ showOverflowTooltip: {
47
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["showOverflowTooltip"]>;
48
+ default: undefined;
49
+ };
50
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["tooltipFormatter"]>;
51
+ fixed: (BooleanConstructor | StringConstructor)[];
52
+ formatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["formatter"]>;
53
+ selectable: import('vue').PropType<import('element-plus').TableColumnCtx<any>["selectable"]>;
54
+ reserveSelection: BooleanConstructor;
55
+ filterMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filterMethod"]>;
56
+ filteredValue: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filteredValue"]>;
57
+ filters: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filters"]>;
58
+ filterPlacement: StringConstructor;
59
+ filterMultiple: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ filterClassName: StringConstructor;
64
+ index: import('vue').PropType<import('element-plus').TableColumnCtx<any>["index"]>;
65
+ sortOrders: {
66
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortOrders"]>;
67
+ default: () => (string | null)[];
68
+ validator: (val: import('element-plus').TableColumnCtx<any>["sortOrders"]) => boolean;
69
+ };
70
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
71
+ type: "default" | "selection" | "index" | "expand";
72
+ placeholder: string;
73
+ showOverflowTooltip: boolean | Partial<Omit<import('element-plus').UseTooltipProps, "content" | "rawContent" | "persistent" | "visible" | "autoClose" | "referenceEl" | "triggerTargetEl" | "virtualRef" | "virtualTriggering">> | undefined;
74
+ sortOrders: (import('element-plus/es/components/table/src/table/defaults.mjs').TableSortOrder | null)[];
75
+ width: string | number;
76
+ resizable: boolean;
77
+ minWidth: string | number;
78
+ sortable: string | boolean;
79
+ reserveSelection: boolean;
80
+ filterMultiple: boolean;
81
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
82
+ P: {};
83
+ B: {};
84
+ D: {};
85
+ C: {};
86
+ M: {};
87
+ Defaults: {};
88
+ }, Readonly<import('vue').ExtractPropTypes<{
89
+ placeholder: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ unit: StringConstructor;
94
+ lineClamp: NumberConstructor;
95
+ map: import('vue').PropType<Record<PropertyKey, any>>;
96
+ renderDefault: import('vue').PropType<import('./types').VroElTableColumnRender>;
97
+ renderContent: import('vue').PropType<import('./types').VroElTableColumnRender>;
98
+ prefixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
99
+ suffixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
100
+ type: {
101
+ type: import('vue').PropType<"default" | "selection" | "index" | "expand">;
102
+ default: string;
103
+ };
104
+ label: StringConstructor;
105
+ className: StringConstructor;
106
+ labelClassName: StringConstructor;
107
+ property: StringConstructor;
108
+ prop: StringConstructor;
109
+ width: {
110
+ type: (NumberConstructor | StringConstructor)[];
111
+ default: string;
112
+ };
113
+ minWidth: {
114
+ type: (NumberConstructor | StringConstructor)[];
115
+ default: string;
116
+ };
117
+ renderHeader: import('vue').PropType<import('element-plus').TableColumnCtx<any>["renderHeader"]>;
118
+ sortable: {
119
+ type: (BooleanConstructor | StringConstructor)[];
120
+ default: boolean;
121
+ };
122
+ sortMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortMethod"]>;
123
+ sortBy: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortBy"]>;
124
+ resizable: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ columnKey: StringConstructor;
129
+ align: StringConstructor;
130
+ headerAlign: StringConstructor;
131
+ showOverflowTooltip: {
132
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["showOverflowTooltip"]>;
133
+ default: undefined;
134
+ };
135
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["tooltipFormatter"]>;
136
+ fixed: (BooleanConstructor | StringConstructor)[];
137
+ formatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["formatter"]>;
138
+ selectable: import('vue').PropType<import('element-plus').TableColumnCtx<any>["selectable"]>;
139
+ reserveSelection: BooleanConstructor;
140
+ filterMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filterMethod"]>;
141
+ filteredValue: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filteredValue"]>;
142
+ filters: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filters"]>;
143
+ filterPlacement: StringConstructor;
144
+ filterMultiple: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ filterClassName: StringConstructor;
149
+ index: import('vue').PropType<import('element-plus').TableColumnCtx<any>["index"]>;
150
+ sortOrders: {
151
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortOrders"]>;
152
+ default: () => (string | null)[];
153
+ validator: (val: import('element-plus').TableColumnCtx<any>["sortOrders"]) => boolean;
154
+ };
155
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
156
+ type: "default" | "selection" | "index" | "expand";
157
+ placeholder: string;
158
+ showOverflowTooltip: boolean | Partial<Omit<import('element-plus').UseTooltipProps, "content" | "rawContent" | "persistent" | "visible" | "autoClose" | "referenceEl" | "triggerTargetEl" | "virtualRef" | "virtualTriggering">> | undefined;
159
+ sortOrders: (import('element-plus/es/components/table/src/table/defaults.mjs').TableSortOrder | null)[];
160
+ width: string | number;
161
+ resizable: boolean;
162
+ minWidth: string | number;
163
+ sortable: string | boolean;
164
+ reserveSelection: boolean;
165
+ filterMultiple: boolean;
166
+ }>;
167
+ __isFragment?: never;
168
+ __isTeleport?: never;
169
+ __isSuspense?: never;
170
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
171
+ placeholder: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ unit: StringConstructor;
176
+ lineClamp: NumberConstructor;
177
+ map: import('vue').PropType<Record<PropertyKey, any>>;
178
+ renderDefault: import('vue').PropType<import('./types').VroElTableColumnRender>;
179
+ renderContent: import('vue').PropType<import('./types').VroElTableColumnRender>;
180
+ prefixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
181
+ suffixIcon: import('vue').PropType<import('./types').VroElTableColumnIcon>;
182
+ type: {
183
+ type: import('vue').PropType<"default" | "selection" | "index" | "expand">;
184
+ default: string;
185
+ };
186
+ label: StringConstructor;
187
+ className: StringConstructor;
188
+ labelClassName: StringConstructor;
189
+ property: StringConstructor;
190
+ prop: StringConstructor;
191
+ width: {
192
+ type: (NumberConstructor | StringConstructor)[];
193
+ default: string;
194
+ };
195
+ minWidth: {
196
+ type: (NumberConstructor | StringConstructor)[];
197
+ default: string;
198
+ };
199
+ renderHeader: import('vue').PropType<import('element-plus').TableColumnCtx<any>["renderHeader"]>;
200
+ sortable: {
201
+ type: (BooleanConstructor | StringConstructor)[];
202
+ default: boolean;
203
+ };
204
+ sortMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortMethod"]>;
205
+ sortBy: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortBy"]>;
206
+ resizable: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ columnKey: StringConstructor;
211
+ align: StringConstructor;
212
+ headerAlign: StringConstructor;
213
+ showOverflowTooltip: {
214
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["showOverflowTooltip"]>;
215
+ default: undefined;
216
+ };
217
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["tooltipFormatter"]>;
218
+ fixed: (BooleanConstructor | StringConstructor)[];
219
+ formatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["formatter"]>;
220
+ selectable: import('vue').PropType<import('element-plus').TableColumnCtx<any>["selectable"]>;
221
+ reserveSelection: BooleanConstructor;
222
+ filterMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filterMethod"]>;
223
+ filteredValue: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filteredValue"]>;
224
+ filters: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filters"]>;
225
+ filterPlacement: StringConstructor;
226
+ filterMultiple: {
227
+ type: BooleanConstructor;
228
+ default: boolean;
229
+ };
230
+ filterClassName: StringConstructor;
231
+ index: import('vue').PropType<import('element-plus').TableColumnCtx<any>["index"]>;
232
+ sortOrders: {
233
+ type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortOrders"]>;
234
+ default: () => (string | null)[];
235
+ validator: (val: import('element-plus').TableColumnCtx<any>["sortOrders"]) => boolean;
236
+ };
237
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
238
+ type: "default" | "selection" | "index" | "expand";
239
+ placeholder: string;
240
+ showOverflowTooltip: boolean | Partial<Omit<import('element-plus').UseTooltipProps, "content" | "rawContent" | "persistent" | "visible" | "autoClose" | "referenceEl" | "triggerTargetEl" | "virtualRef" | "virtualTriggering">> | undefined;
241
+ sortOrders: (import('element-plus/es/components/table/src/table/defaults.mjs').TableSortOrder | null)[];
242
+ width: string | number;
243
+ resizable: boolean;
244
+ minWidth: string | number;
245
+ sortable: string | boolean;
246
+ reserveSelection: boolean;
247
+ filterMultiple: boolean;
248
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
249
+ $slots: Readonly<import('./types').VroElTableColumnSlots<any>> & import('./types').VroElTableColumnSlots<any>;
250
+ })>;
251
+ export default VroElTableColumn;
252
+ export type VroElTableColumnInstance = InstanceType<typeof VroElTableColumn>;
253
+ declare module 'vue' {
254
+ interface GlobalComponents {
255
+ VroElTableColumn: typeof VroElTableColumn;
256
+ }
257
+ }
@@ -0,0 +1,9 @@
1
+ import { withInstall as o } from "@vrojs/base";
2
+ import r from "./vro-el-table-column.vue.js";
3
+ import { vroElTableColumnProps as f } from "./types.js";
4
+ const t = o(r);
5
+ export {
6
+ t as VroElTableColumn,
7
+ t as default,
8
+ f as vroElTableColumnProps
9
+ };
File without changes
@@ -0,0 +1,6 @@
1
+ import '../../style/base.css';
2
+ import './index.css';
3
+ /* empty css */
4
+ import "@vrojs/base/src/vro-icon/style/css";
5
+ /* empty css */
6
+ /* empty css */
File without changes
@@ -0,0 +1 @@
1
+ import "element-plus/es/components/table-column/style/css";
@@ -0,0 +1 @@
1
+ :root,:host{--vro-el-table-column-gap: 4px;--vro-el-table-column-icon-size: 14px;--vro-el-table-column-line-clamp: 1}.vro-el-table-column-content{display:inline-flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:var(--vro-el-table-column-gap);vertical-align:middle}.vro-el-table-column-content.is-center{justify-content:center}.vro-el-table-column-content.is-right{justify-content:flex-end}.vro-el-table-column-content .vro-el-icon{flex:none;font-size:var(--vro-el-table-column-icon-size)}.vro-el-table-column-prefix,.vro-el-table-column-suffix{display:inline-flex;flex:none;min-width:0;align-items:center}.vro-el-table-column-text{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vro-el-table-column-text.is-line-clamp{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vro-el-table-column-line-clamp)}
File without changes
@@ -0,0 +1,7 @@
1
+ import '../../style/base.css';
2
+ import './index.css';
3
+ import "element-plus/es/components/table-column/style/css";
4
+ /* empty css */
5
+ import "@vrojs/base/src/vro-icon/style/css";
6
+ /* empty css */
7
+ /* empty css */
@@ -0,0 +1,141 @@
1
+ import { TableColumnCtx } from 'element-plus';
2
+ import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
3
+ import { VroElIconProps } from '../vro-el-icon';
4
+ export type VroElTableColumnFormatter = TableColumnCtx<any>['formatter'];
5
+ export type VroElTableColumnIcon = string | Partial<VroElIconProps>;
6
+ export interface VroElTableColumnScope<T extends Record<string, any> = any> {
7
+ row: T;
8
+ column: TableColumnCtx<T>;
9
+ $index: number;
10
+ }
11
+ export interface VroElTableColumnHeaderScope<T extends Record<string, any> = any> {
12
+ column: TableColumnCtx<T>;
13
+ $index: number;
14
+ }
15
+ export interface VroElTableColumnExpandScope {
16
+ expanded: boolean;
17
+ expandable: boolean;
18
+ }
19
+ export interface VroElTableColumnFilterIconScope {
20
+ filterOpened: boolean;
21
+ }
22
+ export type VroElTableColumnRender<T extends Record<string, any> = any> = (scope: VroElTableColumnScope<T>) => VNodeChild;
23
+ export declare const vroElTableColumnProps: {
24
+ /**
25
+ * 空值占位内容。
26
+ */
27
+ placeholder: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ /**
32
+ * 非空值后缀单位。
33
+ */
34
+ unit: StringConstructor;
35
+ /**
36
+ * 超出指定行数后隐藏并显示省略号。
37
+ */
38
+ lineClamp: NumberConstructor;
39
+ /**
40
+ * 枚举值映射表。
41
+ */
42
+ map: PropType<Record<PropertyKey, any>>;
43
+ /**
44
+ * 自定义整格内容渲染函数,优先级高于 renderContent、formatter、map。
45
+ */
46
+ renderDefault: PropType<VroElTableColumnRender>;
47
+ /**
48
+ * 自定义中间主体内容渲染函数。
49
+ */
50
+ renderContent: PropType<VroElTableColumnRender>;
51
+ /**
52
+ * 内容前缀图标。
53
+ */
54
+ prefixIcon: PropType<VroElTableColumnIcon>;
55
+ /**
56
+ * 内容后缀图标。
57
+ */
58
+ suffixIcon: PropType<VroElTableColumnIcon>;
59
+ type: {
60
+ type: PropType<"default" | "selection" | "index" | "expand">;
61
+ default: string;
62
+ };
63
+ label: StringConstructor;
64
+ className: StringConstructor;
65
+ labelClassName: StringConstructor;
66
+ property: StringConstructor;
67
+ prop: StringConstructor;
68
+ width: {
69
+ type: (NumberConstructor | StringConstructor)[];
70
+ default: string;
71
+ };
72
+ minWidth: {
73
+ type: (NumberConstructor | StringConstructor)[];
74
+ default: string;
75
+ };
76
+ renderHeader: PropType<TableColumnCtx<any>["renderHeader"]>;
77
+ sortable: {
78
+ type: (BooleanConstructor | StringConstructor)[];
79
+ default: boolean;
80
+ };
81
+ sortMethod: PropType<TableColumnCtx<any>["sortMethod"]>;
82
+ sortBy: PropType<TableColumnCtx<any>["sortBy"]>;
83
+ resizable: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ columnKey: StringConstructor;
88
+ align: StringConstructor;
89
+ headerAlign: StringConstructor;
90
+ showOverflowTooltip: {
91
+ type: PropType<TableColumnCtx<any>["showOverflowTooltip"]>;
92
+ default: undefined;
93
+ };
94
+ tooltipFormatter: PropType<TableColumnCtx<any>["tooltipFormatter"]>;
95
+ fixed: (BooleanConstructor | StringConstructor)[];
96
+ formatter: PropType<TableColumnCtx<any>["formatter"]>;
97
+ selectable: PropType<TableColumnCtx<any>["selectable"]>;
98
+ reserveSelection: BooleanConstructor;
99
+ filterMethod: PropType<TableColumnCtx<any>["filterMethod"]>;
100
+ filteredValue: PropType<TableColumnCtx<any>["filteredValue"]>;
101
+ filters: PropType<TableColumnCtx<any>["filters"]>;
102
+ filterPlacement: StringConstructor;
103
+ filterMultiple: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ filterClassName: StringConstructor;
108
+ index: PropType<TableColumnCtx<any>["index"]>;
109
+ sortOrders: {
110
+ type: PropType<TableColumnCtx<any>["sortOrders"]>;
111
+ default: () => (string | null)[];
112
+ validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
113
+ };
114
+ };
115
+ export type VroElTableColumnProps = ExtractPropTypes<typeof vroElTableColumnProps>;
116
+ export interface VroElTableColumnSlots<T extends Record<string, any> = any> {
117
+ /**
118
+ * 自定义单元格内容。
119
+ */
120
+ default?: (props: VroElTableColumnScope<T>) => any;
121
+ /**
122
+ * 自定义表头内容。
123
+ */
124
+ header?: (props: VroElTableColumnHeaderScope<T>) => any;
125
+ /**
126
+ * 自定义展开图标。
127
+ */
128
+ expand?: (props: VroElTableColumnExpandScope) => any;
129
+ /**
130
+ * 自定义筛选图标。
131
+ */
132
+ 'filter-icon'?: (props: VroElTableColumnFilterIconScope) => any;
133
+ /**
134
+ * 自定义默认内容前缀。
135
+ */
136
+ prefix?: (props: VroElTableColumnScope<T>) => any;
137
+ /**
138
+ * 自定义默认内容后缀。
139
+ */
140
+ suffix?: (props: VroElTableColumnScope<T>) => any;
141
+ }
@@ -0,0 +1,43 @@
1
+ import { elTableColumnProps as e } from "../utils/elTableColumnProps.js";
2
+ import "@vrojs/base";
3
+ const r = {
4
+ ...e,
5
+ /**
6
+ * 空值占位内容。
7
+ */
8
+ placeholder: {
9
+ type: String,
10
+ default: "-"
11
+ },
12
+ /**
13
+ * 非空值后缀单位。
14
+ */
15
+ unit: String,
16
+ /**
17
+ * 超出指定行数后隐藏并显示省略号。
18
+ */
19
+ lineClamp: Number,
20
+ /**
21
+ * 枚举值映射表。
22
+ */
23
+ map: Object,
24
+ /**
25
+ * 自定义整格内容渲染函数,优先级高于 renderContent、formatter、map。
26
+ */
27
+ renderDefault: Function,
28
+ /**
29
+ * 自定义中间主体内容渲染函数。
30
+ */
31
+ renderContent: Function,
32
+ /**
33
+ * 内容前缀图标。
34
+ */
35
+ prefixIcon: [String, Object],
36
+ /**
37
+ * 内容后缀图标。
38
+ */
39
+ suffixIcon: [String, Object]
40
+ };
41
+ export {
42
+ r as vroElTableColumnProps
43
+ };