ep-craft 0.1.30 → 0.1.32

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 (154) hide show
  1. package/dist/components/aside/aside.d.ts +26 -0
  2. package/dist/components/aside/aside.js +29 -0
  3. package/dist/components/aside/index.d.ts +2 -2
  4. package/dist/components/aside/index.js +4 -4
  5. package/dist/components/autocomplete/EpAutocomplete.d.ts +494 -0
  6. package/dist/components/autocomplete/EpAutocomplete.js +465 -0
  7. package/dist/components/autocomplete/autocomplete.d.ts +322 -0
  8. package/dist/components/autocomplete/autocomplete.js +120 -0
  9. package/dist/components/autocomplete/index.d.ts +23 -2
  10. package/dist/components/autocomplete/index.js +9 -3
  11. package/dist/components/autocomplete/instance.d.ts +70 -0
  12. package/dist/components/backtop/EpBacktop.vue.d.ts +55 -0
  13. package/dist/components/backtop/EpBacktop.vue.js +59 -0
  14. package/dist/components/backtop/EpBacktop2.vue.js +4 -0
  15. package/dist/components/backtop/backtop.d.ts +43 -0
  16. package/dist/components/backtop/backtop.js +36 -0
  17. package/dist/components/backtop/index.d.ts +35 -2
  18. package/dist/components/backtop/index.js +6 -3
  19. package/dist/components/backtop/instance.d.ts +10 -0
  20. package/dist/components/backtop/use-backtop.d.ts +13 -0
  21. package/dist/components/backtop/use-backtop.js +23 -0
  22. package/dist/components/checkbox/EpCheckbox.vue.d.ts +147 -0
  23. package/dist/components/checkbox/EpCheckbox.vue.js +101 -0
  24. package/dist/components/checkbox/EpCheckbox2.vue.js +4 -0
  25. package/dist/components/checkbox/index.d.ts +34 -2
  26. package/dist/components/checkbox/index.js +10 -4
  27. package/dist/components/checkbox/instance.d.ts +10 -0
  28. package/dist/components/checkbox/src/checkbox.d.ts +208 -0
  29. package/dist/components/checkbox/src/checkbox.js +119 -0
  30. package/dist/components/checkbox/src/composables/use-checkbox-disabled.d.ts +7 -0
  31. package/dist/components/checkbox/src/composables/use-checkbox-disabled.js +31 -0
  32. package/dist/components/checkbox/src/composables/use-checkbox-event.d.ts +9 -0
  33. package/dist/components/checkbox/src/composables/use-checkbox-event.js +48 -0
  34. package/dist/components/checkbox/src/composables/use-checkbox-model.d.ts +7 -0
  35. package/dist/components/checkbox/src/composables/use-checkbox-model.js +31 -0
  36. package/dist/components/checkbox/src/composables/use-checkbox-status.d.ts +12 -0
  37. package/dist/components/checkbox/src/composables/use-checkbox-status.js +33 -0
  38. package/dist/components/checkbox/src/composables/use-checkbox.d.ts +16 -0
  39. package/dist/components/checkbox/src/composables/use-checkbox.js +81 -0
  40. package/dist/components/checkbox/src/constants.d.ts +8 -0
  41. package/dist/components/checkbox/src/constants.js +4 -0
  42. package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +147 -0
  43. package/dist/components/checkbox-button/EpCheckboxButton.vue.js +84 -0
  44. package/dist/components/checkbox-button/EpCheckboxButton2.vue.js +4 -0
  45. package/dist/components/checkbox-button/index.d.ts +24 -2
  46. package/dist/components/checkbox-button/index.js +6 -3
  47. package/dist/components/checkbox-button/instance.d.ts +10 -0
  48. package/dist/components/checkbox-group/EpCheckboxGroup.vue.d.ts +74 -0
  49. package/dist/components/checkbox-group/EpCheckboxGroup.vue.js +92 -0
  50. package/dist/components/checkbox-group/EpCheckboxGroup2.vue.js +4 -0
  51. package/dist/components/checkbox-group/index.d.ts +27 -2
  52. package/dist/components/checkbox-group/index.js +10 -4
  53. package/dist/components/checkbox-group/instance.d.ts +10 -0
  54. package/dist/components/checkbox-group/src/checkbox-group.d.ts +102 -0
  55. package/dist/components/checkbox-group/src/checkbox-group.js +84 -0
  56. package/dist/components/container/container.d.ts +35 -0
  57. package/dist/components/container/container.js +26 -0
  58. package/dist/components/container/index.d.ts +23 -2
  59. package/dist/components/container/index.js +13 -4
  60. package/dist/components/date-picker/src/date-picker.d.ts +5 -5
  61. package/dist/components/footer/footer.d.ts +28 -0
  62. package/dist/components/footer/footer.js +29 -0
  63. package/dist/components/footer/index.d.ts +2 -2
  64. package/dist/components/footer/index.js +4 -4
  65. package/dist/components/header/header.d.ts +28 -0
  66. package/dist/components/header/header.js +29 -0
  67. package/dist/components/header/index.d.ts +2 -2
  68. package/dist/components/header/index.js +4 -4
  69. package/dist/components/input/index.d.ts +177 -0
  70. package/dist/components/input/index.js +8 -6
  71. package/dist/components/input/input.d.ts +2 -2
  72. package/dist/components/input/input.js +6 -6
  73. package/dist/components/input-number/EpInputNumber.vue.d.ts +5 -5
  74. package/dist/components/input-number/input-number.d.ts +2 -2
  75. package/dist/components/main/index.d.ts +2 -2
  76. package/dist/components/main/index.js +3 -3
  77. package/dist/components/main/main.d.ts +14 -0
  78. package/dist/components/main/main.js +14 -0
  79. package/dist/components/pagination/index.d.ts +4 -2
  80. package/dist/components/pagination/index.js +9 -3
  81. package/dist/components/pagination/src/components/jumper.d.ts +13 -0
  82. package/dist/components/pagination/src/components/jumper.js +16 -0
  83. package/dist/components/pagination/src/components/jumper.vue.d.ts +16 -0
  84. package/dist/components/pagination/src/components/jumper.vue.js +58 -0
  85. package/dist/components/pagination/src/components/jumper2.vue.js +4 -0
  86. package/dist/components/pagination/src/components/next.d.ts +22 -0
  87. package/dist/components/pagination/src/components/next.js +26 -0
  88. package/dist/components/pagination/src/components/next.vue.d.ts +42 -0
  89. package/dist/components/pagination/src/components/next.vue.js +44 -0
  90. package/dist/components/pagination/src/components/next2.vue.js +4 -0
  91. package/dist/components/pagination/src/components/pager.d.ts +16 -0
  92. package/dist/components/pagination/src/components/pager.js +24 -0
  93. package/dist/components/pagination/src/components/pager.vue.d.ts +30 -0
  94. package/dist/components/pagination/src/components/pager.vue.js +148 -0
  95. package/dist/components/pagination/src/components/pager2.vue.js +4 -0
  96. package/dist/components/pagination/src/components/prev.d.ts +24 -0
  97. package/dist/components/pagination/src/components/prev.js +25 -0
  98. package/dist/components/pagination/src/components/prev.vue.d.ts +39 -0
  99. package/dist/components/pagination/src/components/prev.vue.js +44 -0
  100. package/dist/components/pagination/src/components/prev2.vue.js +4 -0
  101. package/dist/components/pagination/src/components/sizes.d.ts +35 -0
  102. package/dist/components/pagination/src/components/sizes.js +34 -0
  103. package/dist/components/pagination/src/components/sizes.vue.d.ts +68 -0
  104. package/dist/components/pagination/src/components/sizes.vue.js +73 -0
  105. package/dist/components/pagination/src/components/sizes2.vue.js +4 -0
  106. package/dist/components/pagination/src/components/total.d.ts +8 -0
  107. package/dist/components/pagination/src/components/total.js +15 -0
  108. package/dist/components/pagination/src/components/total.vue.d.ts +8 -0
  109. package/dist/components/pagination/src/components/total.vue.js +33 -0
  110. package/dist/components/pagination/src/components/total2.vue.js +4 -0
  111. package/dist/components/pagination/src/constants.d.ts +9 -0
  112. package/dist/components/pagination/src/constants.js +4 -0
  113. package/dist/components/pagination/src/pagination.d.ts +147 -0
  114. package/dist/components/pagination/src/pagination.js +314 -0
  115. package/dist/components/pagination/src/usePagination.d.ts +1 -0
  116. package/dist/components/pagination/src/usePagination.js +6 -0
  117. package/dist/components/popper/src/content.vue.d.ts +6 -6
  118. package/dist/components/scrollbar/index.d.ts +217 -6
  119. package/dist/components/scrollbar/index.js +12 -5
  120. package/dist/components/scrollbar/src/bar.d.ts +23 -0
  121. package/dist/components/scrollbar/src/bar.js +19 -0
  122. package/dist/components/scrollbar/src/bar.vue.d.ts +23 -0
  123. package/dist/components/scrollbar/src/bar.vue.js +43 -0
  124. package/dist/components/scrollbar/src/bar2.vue.js +4 -0
  125. package/dist/components/scrollbar/src/constants.d.ts +6 -0
  126. package/dist/components/scrollbar/src/constants.js +4 -0
  127. package/dist/components/scrollbar/src/scrollbar.d.ts +111 -6
  128. package/dist/components/scrollbar/src/scrollbar.js +108 -7
  129. package/dist/components/scrollbar/src/scrollbar.vue.d.ts +101 -0
  130. package/dist/components/scrollbar/src/scrollbar.vue.js +178 -0
  131. package/dist/components/scrollbar/src/scrollbar2.vue.js +4 -0
  132. package/dist/components/scrollbar/src/thumb.d.ts +29 -0
  133. package/dist/components/scrollbar/src/thumb.js +19 -0
  134. package/dist/components/scrollbar/src/thumb.vue.d.ts +27 -0
  135. package/dist/components/scrollbar/src/thumb.vue.js +109 -0
  136. package/dist/components/scrollbar/src/thumb2.vue.js +4 -0
  137. package/dist/components/scrollbar/src/util.d.ts +2 -14
  138. package/dist/components/scrollbar/src/util.js +12 -3
  139. package/dist/components/select/index.d.ts +2214 -0
  140. package/dist/components/select/index.js +10 -7
  141. package/dist/components/select/select.vue.d.ts +148 -90
  142. package/dist/components/select-v2/src/select.vue.d.ts +30 -30
  143. package/dist/components/time-picker/src/common/picker.vue.d.ts +5 -5
  144. package/dist/components/time-picker/src/time-picker.d.ts +5 -5
  145. package/dist/components/tooltip/index.d.ts +24 -24
  146. package/dist/components/tooltip/src/content.vue.d.ts +6 -6
  147. package/dist/components/tooltip/src/tooltip.vue.d.ts +8 -8
  148. package/dist/ep-craft.js +187 -179
  149. package/dist/index.css +1 -1
  150. package/dist/index.d.ts +18 -0
  151. package/dist/vendored-components.d.ts +5 -2
  152. package/dist/vendored-components.js +22 -1
  153. package/package.json +5 -2
  154. package/theme-chalk/src/float-label.scss +51 -26
@@ -0,0 +1,102 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { ComponentSize } from '@element-plus/constants';
3
+ import type { AriaProps } from '@element-plus/hooks/use-aria';
4
+ import type { CheckboxProps, CheckboxValueType } from '../../checkbox/src/checkbox';
5
+ export type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[];
6
+ export type CheckboxOptionProps = {
7
+ value?: string;
8
+ label?: string;
9
+ disabled?: string;
10
+ };
11
+ export type CheckboxOption = CheckboxProps & Record<string, any>;
12
+ export interface CheckboxGroupProps extends Pick<AriaProps, 'ariaLabel'> {
13
+ /**
14
+ * @description binding value
15
+ */
16
+ modelValue?: CheckboxGroupValueType;
17
+ /**
18
+ * @description whether the nesting checkboxes are disabled
19
+ */
20
+ disabled?: boolean;
21
+ /**
22
+ * @description minimum number of checkbox checked
23
+ */
24
+ min?: number;
25
+ /**
26
+ * @description maximum number of checkbox checked
27
+ */
28
+ max?: number;
29
+ /**
30
+ * @description size of checkbox
31
+ */
32
+ size?: ComponentSize;
33
+ /**
34
+ * @description border and background color when button is active
35
+ */
36
+ fill?: string;
37
+ /**
38
+ * @description font color when button is active
39
+ */
40
+ textColor?: string;
41
+ /**
42
+ * @description element tag of the checkbox group
43
+ */
44
+ tag?: string;
45
+ /**
46
+ * @description whether to trigger form validation
47
+ */
48
+ validateEvent?: boolean;
49
+ /**
50
+ * @description data of the options, the key of `value` and `label` and `disabled` can be customize by `props`
51
+ */
52
+ options?: CheckboxOption[];
53
+ /**
54
+ * @description configuration options
55
+ */
56
+ props?: CheckboxOptionProps;
57
+ /**
58
+ * @description component type to render options (e.g. `'button'`)
59
+ */
60
+ type?: 'checkbox' | 'button';
61
+ }
62
+ /**
63
+ * @description default values for CheckboxOptionProps
64
+ */
65
+ export declare const checkboxDefaultProps: Required<CheckboxOptionProps>;
66
+ /**
67
+ * @deprecated Removed after 3.0.0, Use `CheckboxGroupProps` instead.
68
+ */
69
+ export declare const checkboxGroupProps: {
70
+ ariaLabel: StringConstructor;
71
+ modelValue: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType) | (((new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType)) | null)[], unknown, unknown, () => never[], boolean>;
72
+ disabled: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
73
+ min: NumberConstructor;
74
+ max: NumberConstructor;
75
+ size: {
76
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ __epPropKey: true;
80
+ };
81
+ fill: StringConstructor;
82
+ textColor: StringConstructor;
83
+ tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
84
+ validateEvent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
85
+ options: {
86
+ readonly type: import("vue").PropType<CheckboxOption[]>;
87
+ readonly required: false;
88
+ readonly validator: ((val: unknown) => boolean) | undefined;
89
+ __epPropKey: true;
90
+ };
91
+ props: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => CheckboxOptionProps) | (() => CheckboxOptionProps) | (((new (...args: any[]) => CheckboxOptionProps) | (() => CheckboxOptionProps)) | null)[], unknown, unknown, () => Required<CheckboxOptionProps>, boolean>;
92
+ type: import("@element-plus/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
93
+ };
94
+ export declare const checkboxGroupEmits: {
95
+ "update:modelValue": (val: CheckboxGroupValueType) => boolean;
96
+ change: (val: CheckboxValueType[]) => boolean;
97
+ };
98
+ export type CheckboxGroupEmits = typeof checkboxGroupEmits;
99
+ /**
100
+ * @deprecated Removed after 3.0.0, Use `CheckboxGroupProps` instead.
101
+ */
102
+ export type CheckboxGroupPropsPublic = ExtractPublicPropTypes<typeof checkboxGroupProps>;
@@ -0,0 +1,84 @@
1
+ import { UPDATE_MODEL_EVENT as r } from "../../../constants/event.js";
2
+ import { useAriaProps as a } from "../../../hooks/use-aria/index.js";
3
+ import { useSizeProp as i } from "../../../hooks/use-size/index.js";
4
+ import { isArray as t } from "@vue/shared";
5
+ import "lodash-unified";
6
+ import "@vueuse/core";
7
+ import "@element-plus/icons-vue";
8
+ import { buildProps as p, definePropType as o } from "../../../utils/vue/props/runtime.js";
9
+ import "vue";
10
+ const l = {
11
+ label: "label",
12
+ value: "value",
13
+ disabled: "disabled"
14
+ }, x = p({
15
+ /**
16
+ * @description binding value
17
+ */
18
+ modelValue: {
19
+ type: o(Array),
20
+ default: () => []
21
+ },
22
+ /**
23
+ * @description whether the nesting checkboxes are disabled
24
+ */
25
+ disabled: {
26
+ type: Boolean,
27
+ default: void 0
28
+ },
29
+ /**
30
+ * @description minimum number of checkbox checked
31
+ */
32
+ min: Number,
33
+ /**
34
+ * @description maximum number of checkbox checked
35
+ */
36
+ max: Number,
37
+ /**
38
+ * @description size of checkbox
39
+ */
40
+ size: i,
41
+ /**
42
+ * @description border and background color when button is active
43
+ */
44
+ fill: String,
45
+ /**
46
+ * @description font color when button is active
47
+ */
48
+ textColor: String,
49
+ /**
50
+ * @description element tag of the checkbox group
51
+ */
52
+ tag: {
53
+ type: String,
54
+ default: "div"
55
+ },
56
+ /**
57
+ * @description whether to trigger form validation
58
+ */
59
+ validateEvent: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ options: {
64
+ type: o(Array)
65
+ },
66
+ props: {
67
+ type: o(Object),
68
+ default: () => l
69
+ },
70
+ type: {
71
+ type: String,
72
+ values: ["checkbox", "button"],
73
+ default: "checkbox"
74
+ },
75
+ ...a(["ariaLabel"])
76
+ }), v = {
77
+ [r]: (e) => t(e),
78
+ change: (e) => t(e)
79
+ };
80
+ export {
81
+ l as checkboxDefaultProps,
82
+ v as checkboxGroupEmits,
83
+ x as checkboxGroupProps
84
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * EpContainer —— 从 element-plus 的 container 源码 vendored 而来(el -> ep 命名),
3
+ * 样式复用仓库内置的 theme-chalk/src/container.scss(命名空间为 el)。
4
+ *
5
+ * 本文件逐行镜像上游 `container.vue_vue_type_script_setup_true_lang.mjs` 的方向判定:
6
+ * 显式 `direction` 优先,否则扫描默认插槽子节点的组件名,命中 Header/Footer 即判垂直。
7
+ * 渲染语义标签 `<section>`,垂直时附 `is-vertical` 类名。
8
+ *
9
+ * 与上游判定逻辑的差异**恰为三处**(均属预期):
10
+ * 1. 命名集合:本仓为 `['ElHeader', 'EpHeader', 'ElFooter', 'EpFooter']`,
11
+ * 相较上游 `['ElHeader', 'ElFooter']` **仅**多出 `Ep*` 两项——包装态把子组件名改写为
12
+ * `EpHeader` / `EpFooter`,上游判定因此恒不成立;保留 `El*` 两项以兼容使用方嵌入
13
+ * 原生 element-plus 组件。这是本 spec 对上游逻辑的唯一有意偏离。
14
+ * 2. 取 `vNode.type.name` 前的类型窄化:上游 `.mjs` 是 SFC 编译产物,类型已擦除,
15
+ * 直接 `vNode.type.name`;本仓 strict 下须先判定 `type` 为非空对象再取 `name`
16
+ * (非组件节点如原生元素/文本/注释的 `type` 非对象,天然不匹配)。此差异仅类型安全所需,
17
+ * **不计为逻辑偏离**。
18
+ * 3. `direction` 的公开类型补回联合 `'horizontal' | 'vertical'`:上游 `.vue` 源码用
19
+ * `defineProps<ContainerProps>()` 声明该联合,但 SFC 编译产物把它擦成
20
+ * `props: { direction: { type: String, required: false } }`,公开类型退化为 `string`。
21
+ * 本仓显式声明 `ContainerProps` 并传给 `defineComponent<ContainerProps>` 以还原联合——
22
+ * 迁移前包装态(`typeof ElContainer`)对使用方暴露的正是该联合,故此举是维持对使用方的
23
+ * 透明性(需求 1.4)。**这不是 props 差异**:运行时 props 仍与上游编译产物逐字节一致
24
+ * (无 `values`、无 `default`、无 dev 期校验),仅相对 `.mjs` 多一处类型声明、运行时零差异。
25
+ *
26
+ * 组件 `name` 固定为 `EpContainer`。
27
+ */
28
+ interface ContainerProps {
29
+ /**
30
+ * @description layout direction for child elements
31
+ */
32
+ direction?: 'horizontal' | 'vertical';
33
+ }
34
+ declare const _default: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { useNamespace as l } from "../../hooks/use-namespace/index.js";
2
+ import { defineComponent as c, computed as s, openBlock as u, createElementBlock as p, normalizeClass as d, renderSlot as f } from "vue";
3
+ const v = c({
4
+ name: "EpContainer",
5
+ props: {
6
+ direction: {
7
+ type: String,
8
+ required: !1
9
+ }
10
+ },
11
+ setup(n, { slots: e }) {
12
+ const o = l("container"), a = s(() => n.direction === "vertical" ? !0 : n.direction === "horizontal" ? !1 : e && e.default ? e.default().some((i) => {
13
+ const r = i.type, t = typeof r == "object" && r !== null ? r.name : void 0;
14
+ return t === "ElHeader" || t === "EpHeader" || t === "ElFooter" || t === "EpFooter";
15
+ }) : !1);
16
+ return () => (u(), p(
17
+ "section",
18
+ { class: d([o.b(), o.is("vertical", a.value)]) },
19
+ [f(e, "default")],
20
+ 2
21
+ ));
22
+ }
23
+ });
24
+ export {
25
+ v as default
26
+ };
@@ -1,4 +1,25 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElContainer } from 'element-plus';
3
- export declare const EpContainer: typeof ElContainer & Plugin;
2
+ import _EpContainer from './container';
3
+ import { EpAside } from '../aside';
4
+ import { EpHeader } from '../header';
5
+ import { EpMain } from '../main';
6
+ import { EpFooter } from '../footer';
7
+ /**
8
+ * EpContainer 自持 barrel:用本地安装辅助把容器本体注册为 `ep-container`
9
+ * (对外注册名与迁移前一致),并挂载 4 个子组件访问入口指向**本地**叶组件。
10
+ *
11
+ * 与上游 element-plus 的**有意偏离**:上游 `ElContainer.install` 会一并全局注册
12
+ * 4 个子组件(`app.use(ElContainer)` 等价于注册 5 个组件);此处只注册 `ep-container`,
13
+ * 访问入口仅作静态引用挂载。需求 4.3 只要求访问入口可用,未要求该注册语义,
14
+ * 故不改动被约 90 个组件共用的 `src/utils/with-install.ts`(见 research.md 的
15
+ * Decision「不扩展共享的 withInstall」)。
16
+ *
17
+ * 不使用 `export *`:`container.ts` 内的 `ContainerProps` 等声明不外泄到主入口。
18
+ */
19
+ export declare const EpContainer: typeof _EpContainer & Plugin & {
20
+ Aside: typeof EpAside;
21
+ Header: typeof EpHeader;
22
+ Main: typeof EpMain;
23
+ Footer: typeof EpFooter;
24
+ };
4
25
  export default EpContainer;
@@ -1,6 +1,15 @@
1
- import { ElContainer as n } from "element-plus";
2
- import { withInstall as t } from "../../utils/with-install.js";
3
- const o = Object.assign({}, n, { name: "EpContainer" }), i = t(o, "ep-container");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import r from "./container.js";
3
+ import { EpAside as t } from "../aside/index.js";
4
+ import { EpHeader as i } from "../header/index.js";
5
+ import { EpMain as e } from "../main/index.js";
6
+ import { EpFooter as p } from "../footer/index.js";
7
+ const d = Object.assign(o(r, "ep-container"), {
8
+ Aside: t,
9
+ Header: i,
10
+ Main: e,
11
+ Footer: p
12
+ });
4
13
  export {
5
- i as EpContainer
14
+ d as EpContainer
6
15
  };
@@ -410,14 +410,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
410
410
  readonly modelValue: import("../../../utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import("@element-plus/components/time-picker").ModelValueType | null) | (((new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import("@element-plus/components/time-picker").ModelValueType | null)) | null)[], unknown, unknown>;
411
411
  readonly valueOnClear: import("../../../utils").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
412
412
  readonly floatLabel: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
413
- readonly readonly: boolean;
414
- readonly clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
413
+ readonly fallbackPlacements: import("element-plus").Placement[];
414
+ readonly popperOptions: Partial<import("element-plus").Options>;
415
+ readonly popperStyle: import("vue").StyleValue;
415
416
  readonly clearIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
416
417
  readonly prefixIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
417
418
  readonly validateEvent: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
418
- readonly popperStyle: import("vue").StyleValue;
419
- readonly fallbackPlacements: import("element-plus").Placement[];
420
- readonly popperOptions: Partial<import("element-plus").Options>;
419
+ readonly readonly: boolean;
420
+ readonly clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
421
421
  readonly automaticDropdown: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
422
422
  readonly editable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
423
423
  readonly saveOnBlur: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * EpFooter —— 从 element-plus 的 container/footer 源码 vendored 而来(el -> ep 命名),
3
+ * 样式复用仓库内置的 theme-chalk/src/footer.scss(命名空间为 el)。
4
+ *
5
+ * 本文件逐行镜像上游 `footer.vue_vue_type_script_setup_true_lang.mjs`:
6
+ * 可选 `height` prop → `cssVarBlock` 内联样式 → 渲染语义标签 `<footer>` → 透传默认插槽。
7
+ * `height` 缺省时不生成内联样式,由 theme-chalk 的 CSS 变量默认值兜底。
8
+ *
9
+ * 组件 `name` 固定为 `EpFooter`:Container 的方向判定集合依赖该名。
10
+ */
11
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ height: {
13
+ type: (StringConstructor | null)[];
14
+ required: false;
15
+ default: null;
16
+ };
17
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ height: {
21
+ type: (StringConstructor | null)[];
22
+ required: false;
23
+ default: null;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ height: string | null;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { useNamespace as r } from "../../hooks/use-namespace/index.js";
2
+ import { defineComponent as n, computed as s, openBlock as a, createElementBlock as c, normalizeStyle as i, normalizeClass as m, renderSlot as p } from "vue";
3
+ const h = n({
4
+ name: "EpFooter",
5
+ props: {
6
+ height: {
7
+ type: [String, null],
8
+ required: !1,
9
+ default: null
10
+ }
11
+ },
12
+ setup(e, { slots: o }) {
13
+ const t = r("footer"), l = s(
14
+ () => e.height ? t.cssVarBlock({ height: e.height }) : {}
15
+ );
16
+ return () => (a(), c(
17
+ "footer",
18
+ {
19
+ class: m(t.b()),
20
+ style: i(l.value)
21
+ },
22
+ [p(o, "default")],
23
+ 6
24
+ ));
25
+ }
26
+ });
27
+ export {
28
+ h as default
29
+ };
@@ -1,4 +1,4 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElFooter } from 'element-plus';
3
- export declare const EpFooter: typeof ElFooter & Plugin;
2
+ import _EpFooter from './footer';
3
+ export declare const EpFooter: typeof _EpFooter & Plugin;
4
4
  export default EpFooter;
@@ -1,6 +1,6 @@
1
- import { ElFooter as o } from "element-plus";
2
- import { withInstall as t } from "../../utils/with-install.js";
3
- const r = Object.assign({}, o, { name: "EpFooter" }), m = t(r, "ep-footer");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import t from "./footer.js";
3
+ const e = o(t, "ep-footer");
4
4
  export {
5
- m as EpFooter
5
+ e as EpFooter
6
6
  };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * EpHeader —— 从 element-plus 的 container/header 源码 vendored 而来(el -> ep 命名),
3
+ * 样式复用仓库内置的 theme-chalk/src/header.scss(命名空间为 el)。
4
+ *
5
+ * 本文件逐行镜像上游 `header.vue_vue_type_script_setup_true_lang.mjs`:
6
+ * 可选 `height` prop → `cssVarBlock` 内联样式 → 渲染语义标签 `<header>` → 透传默认插槽。
7
+ * `height` 缺省时不生成内联样式,由 theme-chalk 的 CSS 变量默认值兜底。
8
+ *
9
+ * 组件 `name` 固定为 `EpHeader`:Container 的方向判定集合依赖该名。
10
+ */
11
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ height: {
13
+ type: (StringConstructor | null)[];
14
+ required: false;
15
+ default: null;
16
+ };
17
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ height: {
21
+ type: (StringConstructor | null)[];
22
+ required: false;
23
+ default: null;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ height: string | null;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { useNamespace as a } from "../../hooks/use-namespace/index.js";
2
+ import { defineComponent as o, computed as n, openBlock as s, createElementBlock as c, normalizeStyle as d, normalizeClass as i, renderSlot as m } from "vue";
3
+ const h = o({
4
+ name: "EpHeader",
5
+ props: {
6
+ height: {
7
+ type: [String, null],
8
+ required: !1,
9
+ default: null
10
+ }
11
+ },
12
+ setup(e, { slots: l }) {
13
+ const t = a("header"), r = n(
14
+ () => e.height ? t.cssVarBlock({ height: e.height }) : {}
15
+ );
16
+ return () => (s(), c(
17
+ "header",
18
+ {
19
+ class: i(t.b()),
20
+ style: d(r.value)
21
+ },
22
+ [m(l, "default")],
23
+ 6
24
+ ));
25
+ }
26
+ });
27
+ export {
28
+ h as default
29
+ };
@@ -1,4 +1,4 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElHeader } from 'element-plus';
3
- export declare const EpHeader: typeof ElHeader & Plugin;
2
+ import _EpHeader from './header';
3
+ export declare const EpHeader: typeof _EpHeader & Plugin;
4
4
  export default EpHeader;
@@ -1,6 +1,6 @@
1
- import { ElHeader as e } from "element-plus";
2
- import { withInstall as r } from "../../utils/with-install.js";
3
- const a = Object.assign({}, e, { name: "EpHeader" }), p = r(a, "ep-header");
1
+ import { withInstall as e } from "../../utils/with-install.js";
2
+ import r from "./header.js";
3
+ const t = e(r, "ep-header");
4
4
  export {
5
- p as EpHeader
5
+ t as EpHeader
6
6
  };