exploria-ui 2026.2.31 → 2026.3.2
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/README.md +240 -16
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/basic/ECard/ECard.vue.d.ts +27 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +60 -19368
- package/dist/directives/EDrag.d.ts +3 -1
- package/dist/directives/index.js +4 -23
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1111 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/controls/OrbitControls.js +424 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSCurve.js +31 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSUtils.js +115 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/libs/fflate.module.js +250 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FBXLoader.js +1385 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FontLoader.js +69 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1346 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +23 -0
- package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/loading.gif.js +4 -0
- package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue.js +5 -0
- package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/packages/exploria-ui/src/components/basic/EUnderLine/EUnderLine.vue.js +11 -0
- package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/packages/exploria-ui/src/components/data/ECalendar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/packages/exploria-ui/src/components/data/EImage.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/packages/exploria-ui/src/components/data/EList.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.js +36 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/packages/exploria-ui/src/components/data/EProgress.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/packages/exploria-ui/src/components/data/ESkeleton/ESkeleton.vue.js +14 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue.js +5 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/no_data.svg.js +4 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.js +56 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/loading.gif.js +4 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.js +31 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.js +141 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +149 -0
- package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/packages/exploria-ui/src/components/form/EForm.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EForm.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/packages/exploria-ui/src/components/form/EFormItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EFormItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/packages/exploria-ui/src/components/form/ERadio.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/packages/exploria-ui/src/components/form/ESlider.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/packages/exploria-ui/src/components/geometry/ECube.vue.js +11 -0
- package/dist/packages/exploria-ui/src/components/hooks/usePosition.js +42 -0
- package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/packages/exploria-ui/src/components/layout/EDivider.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +15 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/packages/exploria-ui/src/directives/EDrag.js +27 -0
- package/dist/packages/exploria-ui/src/directives/ESizeOb.js +23 -0
- package/dist/packages/exploria-ui/src/directives/ESlideIn.js +24 -0
- package/dist/packages/exploria-ui/src/utils/EAnimateCSSUtil.js +13 -0
- package/dist/packages/exploria-ui/src/utils/EClipboardUtil.js +19 -0
- package/dist/packages/exploria-ui/src/utils/EDomUtil.js +9 -0
- package/dist/packages/exploria-ui/src/utils/EEchartsUtil.js +23 -0
- package/dist/packages/exploria-ui/src/utils/EImageUtil.js +26 -0
- package/dist/packages/exploria-ui/src/utils/ELocalStorageUtil.js +15 -0
- package/dist/packages/exploria-ui/src/utils/EMediaQueryUtil.js +28 -0
- package/dist/packages/exploria-ui/src/utils/EStringUtil.js +11 -0
- package/dist/packages/exploria-ui/src/utils/EThreeUtil.js +40 -0
- package/dist/packages/exploria-ui/src/utils/EUUIDUtil.js +11 -0
- package/dist/utils/EAnimateCSSUtil.d.ts +6 -0
- package/dist/utils/EClipboardUtil.d.ts +3 -0
- package/dist/utils/EDomUtil.d.ts +5 -0
- package/dist/utils/EEchartsUtil.d.ts +12 -0
- package/dist/utils/EEventBus.d.ts +8 -0
- package/dist/utils/EImageUtil.d.ts +3 -0
- package/dist/utils/EJSONUtil.d.ts +3 -0
- package/dist/utils/ELocalStorageUtil.d.ts +5 -0
- package/dist/utils/EMediaQueryUtil.d.ts +6 -0
- package/dist/utils/EStringUtil.d.ts +22 -0
- package/dist/utils/EThreeUtil.d.ts +21 -0
- package/dist/utils/ETimeUtil.d.ts +5 -0
- package/dist/utils/EUUIDUtil.d.ts +3 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -2
- package/package.json +25 -13
- package/src/plugins/EPreloadImageBuilder.ts +1 -1
- package/src/plugins/ESvgSpriteBuilder.ts +4 -5
- package/src/plugins/index.ts +3 -3
- package/dist/EDomUtil-Bm3Zqw96.js +0 -65
- package/dist/ESizeOb-VeHF4XTz.js +0 -44
- package/dist/plugins/EPreloadImageBuilder.d.ts +0 -5
- package/dist/plugins/ESvgPolyfill.d.ts +0 -3
- package/dist/plugins/ESvgSpriteBuilder.d.ts +0 -6
- package/dist/plugins/index.d.ts +0 -4
- package/dist/plugins/index.js +0 -3127
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, inject as a, normalizeClass as o, onMounted as s, onUnmounted as c, openBlock as l, ref as u, renderSlot as d, unref as f, useCssVars as p, useSlots as m, useTemplateRef as h, vModelDynamic as g, vModelText as _, withDirectives as v } from "vue";
|
|
2
|
+
//#region src/components/form/EInput/EInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var y = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "e-input__prefix"
|
|
6
|
+
}, b = ["disabled", "placeholder"], x = [
|
|
7
|
+
"disabled",
|
|
8
|
+
"placeholder",
|
|
9
|
+
"min",
|
|
10
|
+
"max"
|
|
11
|
+
], S = [
|
|
12
|
+
"disabled",
|
|
13
|
+
"type",
|
|
14
|
+
"placeholder"
|
|
15
|
+
], C = {
|
|
16
|
+
key: 4,
|
|
17
|
+
class: "e-input__number-controller"
|
|
18
|
+
}, w = {
|
|
19
|
+
key: 6,
|
|
20
|
+
class: "e-input__suffix"
|
|
21
|
+
}, T = {
|
|
22
|
+
key: 7,
|
|
23
|
+
class: "e-input__suffix"
|
|
24
|
+
}, E = ["src"], D = /* @__PURE__ */ i({
|
|
25
|
+
__name: "EInput",
|
|
26
|
+
props: {
|
|
27
|
+
type: {},
|
|
28
|
+
modelValue: {},
|
|
29
|
+
disabled: { type: Boolean },
|
|
30
|
+
placeholder: {},
|
|
31
|
+
clearable: { type: Boolean },
|
|
32
|
+
eyeTrigger: { default: "click" },
|
|
33
|
+
min: {},
|
|
34
|
+
max: {},
|
|
35
|
+
size: { default: "medium" },
|
|
36
|
+
src: {}
|
|
37
|
+
},
|
|
38
|
+
emits: [
|
|
39
|
+
"update:modelValue",
|
|
40
|
+
"click:img",
|
|
41
|
+
"focus",
|
|
42
|
+
"blur"
|
|
43
|
+
],
|
|
44
|
+
setup(i, { emit: D }) {
|
|
45
|
+
p((e) => ({
|
|
46
|
+
v53f8da20: f(P).prefix ? "0" : "8px",
|
|
47
|
+
v6f916d8a: L.value ? "8px" : "0"
|
|
48
|
+
}));
|
|
49
|
+
let O = h("input");
|
|
50
|
+
s(() => {
|
|
51
|
+
let e = O.value.querySelector(".e-input__eye");
|
|
52
|
+
if (e) {
|
|
53
|
+
let t = () => {
|
|
54
|
+
M.value = !M.value;
|
|
55
|
+
};
|
|
56
|
+
i.eyeTrigger === "hover" && (e.addEventListener("mouseenter", t), e.addEventListener("mouseleave", t)), i.eyeTrigger === "click" && e.addEventListener("click", t), i.eyeTrigger === "long-press" && (e.addEventListener("mousedown", t), e.addEventListener("mouseup", t)), i.eyeTrigger === "dblclick" && e.addEventListener("dblclick", t), c(() => {
|
|
57
|
+
e.removeEventListener("mouseenter", t), e.removeEventListener("mouseleave", t), e.removeEventListener("click", t), e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", t), e.removeEventListener("dblclick", t);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
let k = D, A = e({
|
|
62
|
+
get: () => i.modelValue,
|
|
63
|
+
set: (e) => {
|
|
64
|
+
k("update:modelValue", e);
|
|
65
|
+
}
|
|
66
|
+
}), j = a("isError", e(() => !1)), M = u(!1), N = u(!1), P = m(), F = () => {
|
|
67
|
+
N.value = !0, k("focus");
|
|
68
|
+
}, I = () => {
|
|
69
|
+
N.value = !1, k("blur");
|
|
70
|
+
}, L = e(() => [
|
|
71
|
+
P.suffix,
|
|
72
|
+
i.clearable,
|
|
73
|
+
i.type === "password"
|
|
74
|
+
].filter((e) => !!e).length >= 2);
|
|
75
|
+
return (e, a) => (l(), n("div", {
|
|
76
|
+
ref: "input",
|
|
77
|
+
class: o([
|
|
78
|
+
"e-input",
|
|
79
|
+
f(j) && "e-input--error",
|
|
80
|
+
`e-input--${i.size}`
|
|
81
|
+
])
|
|
82
|
+
}, [
|
|
83
|
+
f(P).prefix ? (l(), n("div", y, [d(e.$slots, "prefix", {}, void 0, !0)])) : t("", !0),
|
|
84
|
+
["captcha", "text"].includes(i.type) ? v((l(), n("input", {
|
|
85
|
+
key: 1,
|
|
86
|
+
disabled: i.disabled,
|
|
87
|
+
placeholder: i.placeholder,
|
|
88
|
+
onFocus: F,
|
|
89
|
+
onBlur: I,
|
|
90
|
+
type: "text",
|
|
91
|
+
"onUpdate:modelValue": a[0] ||= (e) => A.value = e
|
|
92
|
+
}, null, 40, b)), [[_, A.value]]) : i.type === "number" ? v((l(), n("input", {
|
|
93
|
+
key: 2,
|
|
94
|
+
disabled: i.disabled,
|
|
95
|
+
placeholder: i.placeholder,
|
|
96
|
+
onFocus: F,
|
|
97
|
+
onBlur: I,
|
|
98
|
+
type: "number",
|
|
99
|
+
"onUpdate:modelValue": a[1] ||= (e) => A.value = e,
|
|
100
|
+
min: i.min,
|
|
101
|
+
max: i.max
|
|
102
|
+
}, null, 40, x)), [[_, A.value]]) : i.type === "password" ? v((l(), n("input", {
|
|
103
|
+
key: 3,
|
|
104
|
+
disabled: i.disabled,
|
|
105
|
+
type: M.value ? "text" : "password",
|
|
106
|
+
"onUpdate:modelValue": a[2] ||= (e) => A.value = e,
|
|
107
|
+
placeholder: i.placeholder,
|
|
108
|
+
autocomplete: "off",
|
|
109
|
+
autocapitalize: "off",
|
|
110
|
+
onFocus: F,
|
|
111
|
+
onBlur: I
|
|
112
|
+
}, null, 40, S)), [[g, A.value]]) : t("", !0),
|
|
113
|
+
i.type === "number" ? (l(), n("div", C, [r("div", {
|
|
114
|
+
class: o(["e-input__number-controller-top", { "e-input__number-controller-top--disabled": i.max && Number(A.value) >= i.max }]),
|
|
115
|
+
onClick: a[3] ||= (e) => A.value = A.value === i.max ? i.max : Number(A.value) + 1
|
|
116
|
+
}, " + ", 2), r("div", {
|
|
117
|
+
class: o(["e-input__number-controller-bottom", { "e-input__number-controller-bottom--disabled": i.min && Number(A.value) <= i.min }]),
|
|
118
|
+
onClick: a[4] ||= (e) => A.value = A.value === i.min ? i.min : Number(A.value) - 1
|
|
119
|
+
}, " - ", 2)])) : t("", !0),
|
|
120
|
+
i.clearable && A.value.toString().length > 0 ? (l(), n("span", {
|
|
121
|
+
key: 5,
|
|
122
|
+
class: "e-input__controller iconfont icon-iov-clear e-input__controller--interactive",
|
|
123
|
+
onClick: a[5] ||= (e) => k("update:modelValue", "")
|
|
124
|
+
})) : t("", !0),
|
|
125
|
+
f(P).suffix ? (l(), n("div", w, [d(e.$slots, "suffix", {}, void 0, !0)])) : i.type === "password" && A.value ? (l(), n("div", T, [r("i", {
|
|
126
|
+
onClick: a[6] ||= () => {
|
|
127
|
+
i.eyeTrigger === "click" && (M.value = !M.value);
|
|
128
|
+
},
|
|
129
|
+
onDblclick: a[7] ||= () => {
|
|
130
|
+
i.eyeTrigger === "dblclick" && (M.value = !M.value);
|
|
131
|
+
},
|
|
132
|
+
onLongpress: a[8] ||= () => {
|
|
133
|
+
i.eyeTrigger === "long-press" && (M.value = !0);
|
|
134
|
+
},
|
|
135
|
+
onMouseup: a[9] ||= () => {
|
|
136
|
+
i.eyeTrigger === "long-press" && (M.value = !1);
|
|
137
|
+
},
|
|
138
|
+
onMouseleave: a[10] ||= () => {
|
|
139
|
+
i.eyeTrigger === "hover" && (M.value = !1);
|
|
140
|
+
},
|
|
141
|
+
onMouseenter: a[11] ||= () => {
|
|
142
|
+
i.eyeTrigger === "hover" && (M.value = !0);
|
|
143
|
+
},
|
|
144
|
+
class: o([
|
|
145
|
+
"e-input__eye",
|
|
146
|
+
"iconfont",
|
|
147
|
+
"e-input__eye--interactive",
|
|
148
|
+
M.value ? "icon-yanjing_xianshi_o" : "icon-yanjing_yincang_o"
|
|
149
|
+
])
|
|
150
|
+
}, null, 34)])) : t("", !0),
|
|
151
|
+
i.type === "captcha" ? (l(), n("img", {
|
|
152
|
+
key: 8,
|
|
153
|
+
src: i.src,
|
|
154
|
+
alt: "验证码",
|
|
155
|
+
style: {
|
|
156
|
+
height: "100%",
|
|
157
|
+
"background-color": "red"
|
|
158
|
+
},
|
|
159
|
+
onClick: a[12] ||= (e) => k("click:img")
|
|
160
|
+
}, null, 8, E)) : t("", !0)
|
|
161
|
+
], 2));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
//#endregion
|
|
165
|
+
export { D as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ERadio.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/form/ERadio.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-a51ea617"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
package/dist/packages/exploria-ui/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
2
|
+
//#region src/components/form/ERadio.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var s = {
|
|
4
|
+
key: 0,
|
|
5
|
+
t: "1771315717569",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "200",
|
|
9
|
+
height: "200"
|
|
10
|
+
}, c = { class: "e-radio__label" }, l = /* @__PURE__ */ r({
|
|
11
|
+
__name: "ERadio",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
size: { default: "medium" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(r, { emit: l }) {
|
|
21
|
+
let u = l;
|
|
22
|
+
return (l, d) => (a(), t("label", {
|
|
23
|
+
class: i([
|
|
24
|
+
"e-radio",
|
|
25
|
+
`e-radio--${r.size}`,
|
|
26
|
+
{ "e-radio--checked": r.modelValue }
|
|
27
|
+
]),
|
|
28
|
+
onClick: d[0] ||= (e) => u("update:modelValue", !r.modelValue)
|
|
29
|
+
}, [n("span", { class: i(["e-radio__icon", [`e-radio__icon--${r.size}`, { "e-radio__icon--checked": r.modelValue }]]) }, [r.modelValue ? (a(), t("svg", s, [...d[1] ||= [n("path", {
|
|
30
|
+
d: "M422.4 802.133333L128 512l29.866667-29.866667 264.533333 264.533334L908.8 256l29.866667 29.866667L422.4 802.133333z",
|
|
31
|
+
fill: "#fff"
|
|
32
|
+
}, null, -1)]])) : e("", !0)], 2), n("span", c, [o(l.$slots, "default", {}, void 0, !0)])], 2));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ESelect.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/form/ESelect/ESelect.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-8393a1c7"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "../../../utils/EUUIDUtil.js";
|
|
2
|
+
import { usePosition as t } from "../../hooks/usePosition.js";
|
|
3
|
+
import { Fragment as n, Teleport as r, Transition as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, isRef as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, useTemplateRef as w, withCtx as T, withModifiers as E } from "vue";
|
|
4
|
+
//#region src/components/form/ESelect/ESelect.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var D = ["data-id"], O = ["onClick"], k = /* @__PURE__ */ f({
|
|
6
|
+
__name: "ESelect",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {},
|
|
9
|
+
items: {},
|
|
10
|
+
size: { default: "medium" },
|
|
11
|
+
placement: { default: "start" }
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:model-value"],
|
|
14
|
+
setup(f, { emit: k }) {
|
|
15
|
+
let A = k, j = a({
|
|
16
|
+
get: () => f.modelValue,
|
|
17
|
+
set: (e) => A("update:model-value", e)
|
|
18
|
+
}), M = b(!1), N = w("eSelectRef"), { position: P, arrowPosition: F, arrowSize: I, resetPosition: L, computePositionByRect: R, _computePosition: z } = t(a(() => `bottom-${f.placement}`).value, f.size, !0), B = () => M.value = !1;
|
|
19
|
+
_(() => {
|
|
20
|
+
window.addEventListener("click", B);
|
|
21
|
+
}), v(() => {
|
|
22
|
+
window.removeEventListener("click", B);
|
|
23
|
+
});
|
|
24
|
+
let V = b(!1), H = p()?.uid || e.generate(), U;
|
|
25
|
+
return (e, t) => (y(), c("div", {
|
|
26
|
+
ref_key: "eSelectRef",
|
|
27
|
+
ref: N,
|
|
28
|
+
class: h([
|
|
29
|
+
"e-select",
|
|
30
|
+
f.size,
|
|
31
|
+
V.value && "hover"
|
|
32
|
+
]),
|
|
33
|
+
"data-id": C(H),
|
|
34
|
+
onMouseenter: t[3] ||= (e) => V.value = !0,
|
|
35
|
+
onMouseleave: t[4] ||= (e) => V.value = !1,
|
|
36
|
+
onClick: t[5] ||= E((e) => {
|
|
37
|
+
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
38
|
+
M.value = !M.value, M.value ? (C(L)(), C(R)(n), m(U) ? U.value = C(z)(t) : U = C(z)(t)) : C(U)?.();
|
|
39
|
+
}, ["stop"])
|
|
40
|
+
}, [
|
|
41
|
+
u(S(f.items.find((e) => e.value == j.value)?.label) + " ", 1),
|
|
42
|
+
t[6] ||= l("span", {
|
|
43
|
+
style: { "font-family": "'iconfont-select', serif" },
|
|
44
|
+
class: "icon-xia"
|
|
45
|
+
}, null, -1),
|
|
46
|
+
(y(), o(r, { to: "body" }, [d(i, { onEnter: t[2] ||= (e) => {
|
|
47
|
+
e.animate([{ clipPath: "inset(0 0 100% 0)" }, { clipPath: "inset(0 0 0 0)" }], { duration: 0 }).play();
|
|
48
|
+
} }, {
|
|
49
|
+
default: T(() => [M.value ? (y(), c("div", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "e-select-option-list",
|
|
52
|
+
onMouseenter: t[0] ||= (e) => V.value = !0,
|
|
53
|
+
onMouseleave: t[1] ||= (e) => V.value = !1,
|
|
54
|
+
style: g({
|
|
55
|
+
left: `${C(P).left}px`,
|
|
56
|
+
top: `${C(P).top}px`,
|
|
57
|
+
transform: `translateX(${C(P).translateX}) translateY(${C(P).translateY})`,
|
|
58
|
+
minWidth: `${N.value?.offsetWidth}px`
|
|
59
|
+
})
|
|
60
|
+
}, [l("div", {
|
|
61
|
+
class: "e-select-arrow",
|
|
62
|
+
style: g({
|
|
63
|
+
height: `${C(I)}px`,
|
|
64
|
+
width: `${C(I)}px`,
|
|
65
|
+
left: C(F).left,
|
|
66
|
+
top: C(F).top,
|
|
67
|
+
clipPath: C(F).clipPath
|
|
68
|
+
})
|
|
69
|
+
}, null, 4), (y(!0), c(n, null, x(f.items, (e, t) => (y(), c("div", {
|
|
70
|
+
class: h(["option", f.size]),
|
|
71
|
+
key: t,
|
|
72
|
+
onClick: E(() => {
|
|
73
|
+
j.value = e.value, M.value = !1, V.value = !1;
|
|
74
|
+
}, ["stop"])
|
|
75
|
+
}, S(e.label), 11, O))), 128))], 36)) : s("", !0)]),
|
|
76
|
+
_: 1
|
|
77
|
+
})]))
|
|
78
|
+
], 42, D));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { k as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ESlider.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/form/ESlider.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-360719d0"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
package/dist/packages/exploria-ui/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import e from "../feedback/ETooltip.vue.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, ref as c, useTemplateRef as l, watchEffect as u, withCtx as d, withModifiers as f } from "vue";
|
|
3
|
+
//#region src/components/form/ESlider.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = /* @__PURE__ */ i({
|
|
5
|
+
__name: "ESlider",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
min: {},
|
|
9
|
+
max: {},
|
|
10
|
+
step: {},
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
size: { default: "medium" },
|
|
16
|
+
showValue: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(i, { emit: p }) {
|
|
23
|
+
let m = p, h = l("eSliderRef"), g = c(0);
|
|
24
|
+
u(() => {
|
|
25
|
+
g.value = (i.modelValue - i.min) / (i.max - i.min);
|
|
26
|
+
});
|
|
27
|
+
let _ = (e) => e < 0 ? i.min : e > 1 ? i.max : i.step ? Math.round((e * (i.max - i.min) + i.min) / i.step) * i.step : e * (i.max - i.min) + i.min, v = c(!1), y = (e) => {
|
|
28
|
+
if (v.value = !0, i.disabled) return;
|
|
29
|
+
let t = h.value.querySelector(".e-slider__track").getBoundingClientRect(), n = e.pageX, r = g.value;
|
|
30
|
+
window.onmousemove = (e) => {
|
|
31
|
+
m("update:modelValue", _(r + (e.pageX - n) / t.width));
|
|
32
|
+
}, window.onmouseup = () => {
|
|
33
|
+
v.value = !1, window.onmousemove = null, window.onmouseup = null;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
return (c, l) => (s(), t("div", {
|
|
37
|
+
class: a(["e-slider", [`e-slider--${i.size}`, { "e-slider--disabled": i.disabled }]]),
|
|
38
|
+
ref_key: "eSliderRef",
|
|
39
|
+
ref: h
|
|
40
|
+
}, [n("div", {
|
|
41
|
+
class: a(["e-slider__track", `e-slider__track--${i.size}`]),
|
|
42
|
+
onMousedown: l[2] ||= (e) => {
|
|
43
|
+
if (i.disabled) return;
|
|
44
|
+
let t = e.currentTarget;
|
|
45
|
+
m("update:modelValue", _(e.offsetX / t.offsetWidth));
|
|
46
|
+
}
|
|
47
|
+
}, [n("div", {
|
|
48
|
+
class: "e-slider__track-fill",
|
|
49
|
+
style: o({ width: `${g.value * 100}%` })
|
|
50
|
+
}, null, 4), r(e, {
|
|
51
|
+
open: i.showValue,
|
|
52
|
+
placement: "top",
|
|
53
|
+
content: i.modelValue.toString(),
|
|
54
|
+
style: o([{ left: `${g.value * 100}%` }, {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
top: "50%",
|
|
57
|
+
right: "0",
|
|
58
|
+
"user-select": "none"
|
|
59
|
+
}])
|
|
60
|
+
}, {
|
|
61
|
+
default: d(() => [n("div", {
|
|
62
|
+
class: a(["e-slider__thumb", { "e-slider__thumb--disabled": i.disabled }]),
|
|
63
|
+
onMousedown: f(y, ["stop"]),
|
|
64
|
+
onMouseenter: l[0] ||= (e) => v.value = !0,
|
|
65
|
+
onMouseleave: l[1] ||= (e) => v.value = !1
|
|
66
|
+
}, null, 34)]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, [
|
|
69
|
+
"open",
|
|
70
|
+
"content",
|
|
71
|
+
"style"
|
|
72
|
+
])], 34)], 2));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
export { p as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ETimePicker.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/form/ETimePicker.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-29f6aca7"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import e from "../../utils/EDomUtil.js";
|
|
2
|
+
import { Fragment as t, computed as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, onMounted as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, useTemplateRef as f } from "vue";
|
|
3
|
+
//#region src/components/form/ETimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = /* @__PURE__ */ a({
|
|
5
|
+
__name: "ETimePicker",
|
|
6
|
+
props: {
|
|
7
|
+
time: {},
|
|
8
|
+
size: { default: "default" }
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:time"],
|
|
11
|
+
setup(a, { emit: p }) {
|
|
12
|
+
let m = p, h = f("eTimePickerRef");
|
|
13
|
+
function g(e) {
|
|
14
|
+
let t = e.currentTarget, n = e.pageY, r = t.scrollTop;
|
|
15
|
+
window.onmousemove = (e) => {
|
|
16
|
+
t.scrollTop = r + (n - e.pageY), window.onmouseup = () => {
|
|
17
|
+
let e = t.children[0];
|
|
18
|
+
t.scrollTop = Math.round(t.scrollTop / e.clientHeight) * e.clientHeight, window.onmousemove = null, window.onmouseup = null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
let _ = Array.from({ length: 24 }, (e, t) => t.toString().padStart(2, "0")), v = Array.from({ length: 60 }, (e, t) => t.toString().padStart(2, "0"));
|
|
23
|
+
s(() => {
|
|
24
|
+
let t = h.value.querySelector(".h"), n = h.value.querySelector(".m"), r = Array.from(t.children).filter((e) => e.innerText === y(a.time).split(":")[0])[0], i = Array.from(n.children).filter((e) => e.innerText === y(a.time).split(":")[1])[0];
|
|
25
|
+
e.scrollIntoView({
|
|
26
|
+
element: r,
|
|
27
|
+
block: "center"
|
|
28
|
+
}), e.scrollIntoView({
|
|
29
|
+
element: i,
|
|
30
|
+
block: "center"
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
let y = (e) => {
|
|
34
|
+
let t = String(e.getHours()).padStart(2, "0"), n = String(e.getMinutes()).padStart(2, "0");
|
|
35
|
+
return "HH:mm".replace("HH", t).replace("mm", n);
|
|
36
|
+
}, b = n({
|
|
37
|
+
get() {
|
|
38
|
+
return y(a.time);
|
|
39
|
+
},
|
|
40
|
+
set(e) {
|
|
41
|
+
let [t, n] = e.split(":");
|
|
42
|
+
m("update:time", new Date(0, 0, 0, Number(t), Number(n)));
|
|
43
|
+
}
|
|
44
|
+
}), x = (e) => {
|
|
45
|
+
let t = e.currentTarget, n = Math.round(t.scrollTop / (t.scrollHeight / _.length));
|
|
46
|
+
b.value = b.value.replace(/\d{2}/, n.toString());
|
|
47
|
+
}, S = (e) => {
|
|
48
|
+
let t = e.currentTarget, n = Math.round(t.scrollTop / (t.scrollHeight / v.length));
|
|
49
|
+
b.value = b.value.replace(/\d{2}$/, n.toString());
|
|
50
|
+
};
|
|
51
|
+
return (n, s) => (c(), r("div", {
|
|
52
|
+
class: o(["e-time-picker", a.size]),
|
|
53
|
+
ref_key: "eTimePickerRef",
|
|
54
|
+
ref: h
|
|
55
|
+
}, [
|
|
56
|
+
i("div", {
|
|
57
|
+
class: "h",
|
|
58
|
+
onMousedown: g,
|
|
59
|
+
onScroll: x
|
|
60
|
+
}, [(c(!0), r(t, null, l(d(_), (t) => (c(), r("div", {
|
|
61
|
+
class: "item",
|
|
62
|
+
key: t,
|
|
63
|
+
onClick: s[0] ||= (t) => {
|
|
64
|
+
d(e).scrollIntoView({
|
|
65
|
+
element: t.target,
|
|
66
|
+
block: "center"
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}, u(t), 1))), 128))], 32),
|
|
70
|
+
s[2] ||= i("div", { class: "icon" }, ":", -1),
|
|
71
|
+
i("div", {
|
|
72
|
+
class: "m",
|
|
73
|
+
onMousedown: g,
|
|
74
|
+
onScroll: S
|
|
75
|
+
}, [(c(!0), r(t, null, l(d(v), (t) => (c(), r("div", {
|
|
76
|
+
class: "item",
|
|
77
|
+
key: t,
|
|
78
|
+
onClick: s[1] ||= (t) => {
|
|
79
|
+
d(e).scrollIntoView({
|
|
80
|
+
element: t.target,
|
|
81
|
+
block: "center"
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}, u(t), 1))), 128))], 32)
|
|
85
|
+
], 2));
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { p as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createElementBlock as t, createStaticVNode as n, openBlock as r } from "vue";
|
|
4
|
+
//#region src/components/geometry/ECube.vue
|
|
5
|
+
var i = {}, a = { class: "cube" };
|
|
6
|
+
function o(e, i) {
|
|
7
|
+
return r(), t("div", a, [...i[0] ||= [n("<div class=\"plane top\" data-v-0ea5b937></div><div class=\"plane bottom\" data-v-0ea5b937></div><div class=\"plane front\" data-v-0ea5b937></div><div class=\"plane back\" data-v-0ea5b937></div><div class=\"plane right\" data-v-0ea5b937></div><div class=\"plane left\" data-v-0ea5b937></div><div class=\"cube-inner\" data-v-0ea5b937><div class=\"plane top\" data-v-0ea5b937></div><div class=\"plane bottom\" data-v-0ea5b937></div><div class=\"plane front\" data-v-0ea5b937></div><div class=\"plane back\" data-v-0ea5b937></div><div class=\"plane right\" data-v-0ea5b937></div><div class=\"plane left\" data-v-0ea5b937></div></div>", 7)]]);
|
|
8
|
+
}
|
|
9
|
+
var s = /* @__PURE__ */ e(i, [["render", o], ["__scopeId", "data-v-0ea5b937"]]);
|
|
10
|
+
//#endregion
|
|
11
|
+
export { s as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { reactive as e } from "vue";
|
|
2
|
+
//#region src/components/hooks/usePosition.ts
|
|
3
|
+
var t = (t, n, r) => {
|
|
4
|
+
let i = r ? {
|
|
5
|
+
large: 12,
|
|
6
|
+
medium: 8,
|
|
7
|
+
small: 6
|
|
8
|
+
}[n] : 0, a = e({
|
|
9
|
+
left: 0,
|
|
10
|
+
top: 0,
|
|
11
|
+
translateX: "0",
|
|
12
|
+
translateY: "0"
|
|
13
|
+
}), o = e({
|
|
14
|
+
left: "0",
|
|
15
|
+
top: "0",
|
|
16
|
+
clipPath: ""
|
|
17
|
+
}), s = () => {
|
|
18
|
+
a.left = 0, a.top = 0, a.translateX = "0", a.translateY = "0";
|
|
19
|
+
}, c = (e) => {
|
|
20
|
+
t.startsWith("top") && (a.left = e.left + e.width / 2, a.translateX = "-50%", a.top = e.top - i, a.translateY = "-100%", o.left = `calc(50% - ${i / 2}px)`, o.top = "100%", o.clipPath = "polygon(0% 0%, 100% 0%, 50% 100%)", t.endsWith("start") ? (a.left = e.left, a.translateX = "0", o.left = `${e.width / 2 - i / 2}px`) : t.endsWith("end") && (a.left = e.left + e.width, a.translateX = "-100%", o.left = `calc(100% - ${e.width / 2 + i / 2}px)`)), t.startsWith("bottom") && (a.left = e.left + e.width / 2, a.translateX = "-50%", a.top = e.bottom + i, o.left = `calc(50% - ${i / 2}px)`, o.clipPath = "polygon(0% 100%, 50% 0%, 100% 100%)", o.top = `-${i}px`, t.endsWith("start") ? (a.left = e.left, a.translateX = "0%", o.left = `${e.width / 2 - i / 2}px`) : t.endsWith("end") && (a.left = e.left + e.width, a.translateX = "-100%", o.left = `calc(100% - ${e.width / 2 + i / 2}px)`)), t.startsWith("left") && (a.left = e.left - i, a.translateX = "-100%", a.top = e.top + e.height / 2, a.translateY = "-50%", o.left = "100%", o.clipPath = "polygon(0% 0%, 100% 50%, 0% 100%)", o.top = `calc(50% - ${i / 2}px)`, t.endsWith("start") ? (a.top = e.top, a.translateY = "0%", o.top = e.height / 2 - i / 2 + "px") : t.endsWith("end") && (a.top = e.top + e.height, a.translateY = "-100%", o.top = `calc(100% - ${e.height / 2 + i / 2}px)`)), t.startsWith("right") && (a.left = e.right + i, a.top = e.top + e.height / 2, a.translateY = "-50%", o.left = `-${i}px`, o.clipPath = "polygon(0% 50%, 100% 0%, 100% 100%)", o.top = `calc(50% - ${i / 2}px)`, t.endsWith("start") ? (a.top = e.top, a.translateY = "0", o.top = e.height / 2 - i / 2 + "px") : t.endsWith("end") && (a.top = e.top + e.height, a.translateY = "-100%", o.top = `calc(100% - ${e.height / 2 + i / 2}px)`));
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
position: a,
|
|
24
|
+
arrowPosition: o,
|
|
25
|
+
arrowSize: i,
|
|
26
|
+
DELAY_TIME: 100,
|
|
27
|
+
resetPosition: s,
|
|
28
|
+
computePositionByRect: c,
|
|
29
|
+
_computePosition: (e) => {
|
|
30
|
+
let t = () => c(e.getBoundingClientRect()), n = new MutationObserver(t), r = new ResizeObserver(t);
|
|
31
|
+
return r.observe(e), window.onresize = t, window.addEventListener("scroll", t, !0), n.observe(e.parentNode, {
|
|
32
|
+
attributes: !0,
|
|
33
|
+
childList: !0,
|
|
34
|
+
subtree: !0
|
|
35
|
+
}), () => {
|
|
36
|
+
r.disconnect(), window.onresize = null, window.removeEventListener("scroll", t, !0), n.disconnect();
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { t as usePosition };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/layout/EContainerWithScrollbar.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-9c812bf8"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "./EScrollbar.vue.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, openBlock as a, renderSlot as o } from "vue";
|
|
3
|
+
//#region src/components/layout/EContainerWithScrollbar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var s = { class: "e-container-with-scrollbar" }, c = { class: "content" }, l = /* @__PURE__ */ i({
|
|
5
|
+
__name: "EContainerWithScrollbar",
|
|
6
|
+
props: {
|
|
7
|
+
scrollbarThumbColor: { default: "#ffffff" },
|
|
8
|
+
scrollbarThumbMarginRight: { default: "2px" },
|
|
9
|
+
scrollbarWidth: { default: "4px" }
|
|
10
|
+
},
|
|
11
|
+
emits: ["scroll"],
|
|
12
|
+
setup(i, { emit: l }) {
|
|
13
|
+
let u = l;
|
|
14
|
+
return (l, d) => (a(), t("div", s, [n("div", c, [o(l.$slots, "default", {}, void 0, !0)]), r(e, {
|
|
15
|
+
onScroll: d[0] ||= (e) => u("scroll", e),
|
|
16
|
+
scrollbarThumbMarginRight: i.scrollbarThumbMarginRight,
|
|
17
|
+
scrollbarWidth: i.scrollbarWidth,
|
|
18
|
+
"scrollbar-thumb-color": i.scrollbarThumbColor
|
|
19
|
+
}, null, 8, [
|
|
20
|
+
"scrollbarThumbMarginRight",
|
|
21
|
+
"scrollbarWidth",
|
|
22
|
+
"scrollbar-thumb-color"
|
|
23
|
+
])]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EDivider.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/layout/EDivider.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-1368e8aa"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
|
|
2
|
+
//#region src/components/layout/EDivider.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var o = { class: "one-divider-text" }, s = /* @__PURE__ */ n({
|
|
4
|
+
__name: "EDivider",
|
|
5
|
+
props: { direction: { default: "left" } },
|
|
6
|
+
setup(n) {
|
|
7
|
+
return (s, c) => (i(), e("div", { class: r(["one-divider", n.direction]) }, [
|
|
8
|
+
c[0] ||= t("div", { class: "one-divider-line" }, null, -1),
|
|
9
|
+
t("div", o, [a(s.$slots, "default", {}, void 0, !0)]),
|
|
10
|
+
c[1] ||= t("div", { class: "one-divider-line" }, null, -1)
|
|
11
|
+
], 2));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { s as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EScrollX.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/layout/EScrollX.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-3b883da6"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, normalizeStyle as r, onBeforeUnmount as i, onMounted as a, openBlock as o, reactive as s, renderSlot as c, useTemplateRef as l } from "vue";
|
|
2
|
+
//#region src/components/layout/EScrollX.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = {
|
|
4
|
+
class: "e-scroll-y",
|
|
5
|
+
ref: "scroll-y"
|
|
6
|
+
}, d = /* @__PURE__ */ n({
|
|
7
|
+
__name: "EScrollX",
|
|
8
|
+
setup(n) {
|
|
9
|
+
let d = s({
|
|
10
|
+
width: 0,
|
|
11
|
+
height: 0
|
|
12
|
+
}), f = l("scroll-y"), p = new ResizeObserver((e) => {
|
|
13
|
+
let t = e[0].contentRect;
|
|
14
|
+
d.width = t.width, d.height = t.height;
|
|
15
|
+
});
|
|
16
|
+
return a(() => {
|
|
17
|
+
p.observe(f.value);
|
|
18
|
+
}), i(() => {
|
|
19
|
+
p.unobserve(f.value);
|
|
20
|
+
}), (n, i) => (o(), e("div", u, [t("div", {
|
|
21
|
+
class: "v-scroll",
|
|
22
|
+
style: r({
|
|
23
|
+
transform: `translateY(${d.height + "px"}) rotate(-90deg)`,
|
|
24
|
+
height: d.width + "px",
|
|
25
|
+
width: d.height + "px"
|
|
26
|
+
})
|
|
27
|
+
}, [t("div", {
|
|
28
|
+
class: "content",
|
|
29
|
+
style: r({ height: d.height + "px" })
|
|
30
|
+
}, [c(n.$slots, "default", {}, void 0, !0)], 4)], 4)], 512));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { d as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EScrollbar.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/layout/EScrollbar.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-8d7de205"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|