ep-craft 0.1.2 → 0.1.3
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.
- package/dist/components/button/EpButton.vue.d.ts +4 -4
- package/dist/components/button/EpButton.vue.js +19 -19
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/index.js +4 -3
- package/dist/index.css +2 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +325 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1730 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
|
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
10
|
readonly size: {
|
|
11
|
-
readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
|
|
12
|
-
readonly values: readonly ["", "large", "default", "small"];
|
|
11
|
+
readonly type: import("vue").PropType<"" | "large" | "default" | "small" | "mini">;
|
|
12
|
+
readonly values: readonly ["", "large", "default", "small", "mini"];
|
|
13
13
|
};
|
|
14
14
|
readonly disabled: {
|
|
15
15
|
readonly type: BooleanConstructor;
|
|
@@ -73,8 +73,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
73
73
|
click: (evt: MouseEvent) => void;
|
|
74
74
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
75
|
readonly size: {
|
|
76
|
-
readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
|
|
77
|
-
readonly values: readonly ["", "large", "default", "small"];
|
|
76
|
+
readonly type: import("vue").PropType<"" | "large" | "default" | "small" | "mini">;
|
|
77
|
+
readonly values: readonly ["", "large", "default", "small", "mini"];
|
|
78
78
|
};
|
|
79
79
|
readonly disabled: {
|
|
80
80
|
readonly type: BooleanConstructor;
|
|
@@ -4,40 +4,40 @@ import { useFormSize as no, useFormDisabled as ao } from "element-plus/es/compon
|
|
|
4
4
|
import { useFormItem as so } from "element-plus/es/components/form/src/hooks/use-form-item.mjs";
|
|
5
5
|
import { useGlobalConfig as io } from "element-plus/es/components/config-provider/src/hooks/use-global-config.mjs";
|
|
6
6
|
import { buttonGroupContextKey as co } from "element-plus/es/components/button/src/constants.mjs";
|
|
7
|
-
import { buttonEmits as uo, buttonProps as
|
|
8
|
-
import { TinyColor as
|
|
9
|
-
const b = "
|
|
7
|
+
import { buttonEmits as uo, buttonProps as vo } from "./button.js";
|
|
8
|
+
import { TinyColor as po } from "../../node_modules/@ctrl/tinycolor/dist/module/index.js";
|
|
9
|
+
const b = "el", k = "button", So = /* @__PURE__ */ Z({
|
|
10
10
|
name: "EpButton",
|
|
11
11
|
__name: "EpButton",
|
|
12
|
-
props:
|
|
12
|
+
props: vo,
|
|
13
13
|
emits: uo,
|
|
14
14
|
setup(U, { expose: q, emit: H }) {
|
|
15
15
|
const w = lo, e = U, J = H, h = j(), L = (o = "") => o ? `${b}-${k}-${o}` : `${b}-${k}`, B = (o) => o ? `${b}-${k}--${o}` : "", i = (o, r = !0) => o && r ? `is-${o}` : "", l = (o) => `--${b}-${k}-${o}`, g = (o) => `--${b}-${o}`, y = (o) => {
|
|
16
16
|
const r = {};
|
|
17
17
|
for (const n in o) o[n] && (r[`--${b}-${k}-${n}`] = o[n]);
|
|
18
18
|
return r;
|
|
19
|
-
}, u = G(co, void 0),
|
|
19
|
+
}, u = G(co, void 0), v = io("button"), { form: S } = so(), I = no(a(() => u == null ? void 0 : u.size)), c = ao(), E = oo(), z = a(
|
|
20
20
|
() => {
|
|
21
21
|
var o;
|
|
22
|
-
return e.type || (u == null ? void 0 : u.type) || ((o =
|
|
22
|
+
return e.type || (u == null ? void 0 : u.type) || ((o = v.value) == null ? void 0 : o.type) || "";
|
|
23
23
|
}
|
|
24
24
|
), M = a(
|
|
25
25
|
() => {
|
|
26
26
|
var o;
|
|
27
|
-
return e.autoInsertSpace ?? ((o =
|
|
27
|
+
return e.autoInsertSpace ?? ((o = v.value) == null ? void 0 : o.autoInsertSpace) ?? !1;
|
|
28
28
|
}
|
|
29
29
|
), F = a(() => {
|
|
30
30
|
var o;
|
|
31
|
-
return e.plain ?? ((o =
|
|
31
|
+
return e.plain ?? ((o = v.value) == null ? void 0 : o.plain) ?? !1;
|
|
32
32
|
}), O = a(() => {
|
|
33
33
|
var o;
|
|
34
|
-
return e.round ?? ((o =
|
|
34
|
+
return e.round ?? ((o = v.value) == null ? void 0 : o.round) ?? !1;
|
|
35
35
|
}), V = a(() => {
|
|
36
36
|
var o;
|
|
37
|
-
return e.text ?? ((o =
|
|
37
|
+
return e.text ?? ((o = v.value) == null ? void 0 : o.text) ?? !1;
|
|
38
38
|
}), Q = a(() => {
|
|
39
39
|
var o;
|
|
40
|
-
return e.dashed ?? ((o =
|
|
40
|
+
return e.dashed ?? ((o = v.value) == null ? void 0 : o.dashed) ?? !1;
|
|
41
41
|
}), R = a(() => e.tag === "button" ? {
|
|
42
42
|
ariaDisabled: c.value || e.loading,
|
|
43
43
|
disabled: c.value || e.loading,
|
|
@@ -69,7 +69,7 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
|
|
|
69
69
|
if (r) {
|
|
70
70
|
const n = r.match(/var\((.*?)\)/);
|
|
71
71
|
n && (r = window.getComputedStyle(window.document.documentElement).getPropertyValue(n[1]));
|
|
72
|
-
const t = new
|
|
72
|
+
const t = new po(r), p = e.dark ? t.tint(20).toString() : s(t, 20);
|
|
73
73
|
if (F.value)
|
|
74
74
|
o = y({
|
|
75
75
|
"bg-color": e.dark ? s(t, 90) : t.tint(90).toString(),
|
|
@@ -78,17 +78,17 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
|
|
|
78
78
|
"hover-text-color": `var(${g("color-white")})`,
|
|
79
79
|
"hover-bg-color": r,
|
|
80
80
|
"hover-border-color": r,
|
|
81
|
-
"active-bg-color":
|
|
81
|
+
"active-bg-color": p,
|
|
82
82
|
"active-text-color": `var(${g("color-white")})`,
|
|
83
|
-
"active-border-color":
|
|
83
|
+
"active-border-color": p
|
|
84
84
|
}), c.value && (o[l("disabled-bg-color")] = e.dark ? s(t, 90) : t.tint(90).toString(), o[l("disabled-text-color")] = e.dark ? s(t, 50) : t.tint(50).toString(), o[l("disabled-border-color")] = e.dark ? s(t, 80) : t.tint(80).toString());
|
|
85
85
|
else if (e.link || V.value) {
|
|
86
86
|
const f = e.dark ? s(t, 30) : t.tint(30).toString();
|
|
87
87
|
if (o = y({
|
|
88
88
|
"text-color": r,
|
|
89
89
|
"hover-text-color": f,
|
|
90
|
-
"active-text-color":
|
|
91
|
-
}), e.link && (o[l("hover-link-text-color")] = f, o[l("active-color")] =
|
|
90
|
+
"active-text-color": p
|
|
91
|
+
}), e.link && (o[l("hover-link-text-color")] = f, o[l("active-color")] = p), c.value) {
|
|
92
92
|
const $ = e.dark ? s(t, 50) : t.tint(50).toString();
|
|
93
93
|
o[l("disabled-bg-color")] = "transparent", o[l("disabled-text-color")] = $, o[l("disabled-border-color")] = "transparent";
|
|
94
94
|
}
|
|
@@ -101,8 +101,8 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
|
|
|
101
101
|
"hover-bg-color": f,
|
|
102
102
|
"hover-text-color": $,
|
|
103
103
|
"hover-border-color": f,
|
|
104
|
-
"active-bg-color":
|
|
105
|
-
"active-border-color":
|
|
104
|
+
"active-bg-color": p,
|
|
105
|
+
"active-border-color": p
|
|
106
106
|
}), c.value) {
|
|
107
107
|
const P = e.dark ? s(t, 50) : t.tint(50).toString();
|
|
108
108
|
o[l("disabled-bg-color")] = P, o[l("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${g("color-white")})`, o[l("disabled-border-color")] = P;
|
|
@@ -157,7 +157,7 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
|
|
|
157
157
|
})) : A("", !0),
|
|
158
158
|
o.$slots.default ? (d(), T("span", {
|
|
159
159
|
key: 2,
|
|
160
|
-
class: K({ "
|
|
160
|
+
class: K({ "el-button__text--expand": D.value })
|
|
161
161
|
}, [
|
|
162
162
|
_(o.$slots, "default")
|
|
163
163
|
], 2)) : A("", !0)
|
|
@@ -8,8 +8,8 @@ export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
|
|
|
8
8
|
export declare const buttonProps: {
|
|
9
9
|
/** 按钮尺寸 */
|
|
10
10
|
readonly size: {
|
|
11
|
-
readonly type: PropType<"" | "large" | "default" | "small">;
|
|
12
|
-
readonly values: readonly ["", "large", "default", "small"];
|
|
11
|
+
readonly type: PropType<"" | "large" | "default" | "small" | "mini">;
|
|
12
|
+
readonly values: readonly ["", "large", "default", "small", "mini"];
|
|
13
13
|
};
|
|
14
14
|
/** 是否禁用 */
|
|
15
15
|
readonly disabled: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
2
|
import EpButtonComponent from './EpButton.vue';
|
|
3
|
-
import '
|
|
3
|
+
import '../../../theme-chalk/src/base.scss';
|
|
4
|
+
import '../../../theme-chalk/src/button.scss';
|
|
4
5
|
export declare const EpButton: typeof EpButtonComponent & Plugin;
|
|
5
6
|
export default EpButton;
|
|
6
7
|
export * from './button';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
2
|
import o from "./EpButton.vue.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
4
5
|
import "@element-plus/icons-vue";
|
|
5
|
-
const
|
|
6
|
+
const f = t(o, "ep-button");
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
f as EpButton
|
|
8
9
|
};
|