exploria-ui 2026.9.26 → 2026.10.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/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +3 -4
- package/dist/components/feedback/EDialog/EDialog.vue.d.ts +15 -9
- package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +3 -4
- package/dist/components/feedback/EMessage/EMessage.d.ts +6 -7
- package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +47 -20
- package/dist/components/feedback/EMessageBox/EMessageBox.vue.d.ts +10 -1
- package/dist/components/feedback/ENotification/ENotification.d.ts +3 -4
- package/dist/components/feedback/EPopover.vue.d.ts +5 -0
- package/dist/components/hooks/useContainer.d.ts +8 -7
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +59 -55
- package/dist/components/navigation/ETabs/ETabs.vue.d.ts +4 -0
- package/dist/directives/index.js +3 -3
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/@intlify_core-base@11.4.10/node_modules/@intlify/core-base/dist/core-base.js +829 -0
- package/dist/node_modules/.pnpm/@intlify_message-compiler@11.4.10/node_modules/@intlify/message-compiler/dist/message-compiler.js +775 -0
- package/dist/node_modules/.pnpm/@intlify_shared@11.4.10/node_modules/@intlify/shared/dist/shared.js +148 -0
- package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1110 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/controls/OrbitControls.js +439 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSCurve.js +31 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSUtils.js +115 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/libs/fflate.module.js +251 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FBXLoader.js +1426 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FontLoader.js +68 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1340 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +24 -0
- package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/SkeletonUtils.js +20 -0
- package/dist/node_modules/.pnpm/vue-i18n@11.4.10_vue@3.5.41_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.js +532 -0
- package/dist/package.json.js +86 -0
- package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +7 -0
- package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/src/components/advanced/EVirtualList/EVirtualList.vue.js +7 -0
- package/dist/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/src/components/advanced/EWatermark/EWatermark.vue.js +7 -0
- package/dist/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/src/components/basic/EAvatar/EAvatar.vue.js +7 -0
- package/dist/src/components/basic/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/src/components/basic/EBadge/EBadge.vue.js +7 -0
- package/dist/src/components/basic/EBadge/EBadge.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/src/components/basic/EButton/EButton.vue.js +7 -0
- package/dist/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/src/components/basic/ECard/ECard.vue.js +7 -0
- package/dist/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue.js +5 -0
- package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/src/components/basic/EUnderLine/EUnderLine.vue.js +11 -0
- package/dist/src/components/data/ECalendar.vue.js +7 -0
- package/dist/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/src/components/data/ECarousel/ECarousel.vue.js +7 -0
- package/dist/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/src/components/data/ECarousel/ECarouselItem.vue.js +7 -0
- package/dist/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +7 -0
- package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/src/components/data/ECollapse/ECollapse.vue.js +7 -0
- package/dist/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/src/components/data/EImage.vue.js +7 -0
- package/dist/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/src/components/data/EList.vue.js +7 -0
- package/dist/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/src/components/data/EMediaViewer/EMediaViewer.js +64 -0
- package/dist/src/components/data/EMediaViewer/EMediaViewer.vue.js +7 -0
- package/dist/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +210 -0
- package/dist/src/components/data/EProgress.vue.js +7 -0
- package/dist/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/src/components/data/ERollingPagination.vue.js +7 -0
- package/dist/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/src/components/data/ESkeleton/ESkeleton.vue.js +14 -0
- package/dist/src/components/data/ESteps/EStepItem.vue.js +7 -0
- package/dist/src/components/data/ESteps/EStepItem.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/src/components/data/ESteps/ESteps.vue.js +7 -0
- package/dist/src/components/data/ESteps/ESteps.vue_vue_type_script_setup_true_lang.js +25 -0
- package/dist/src/components/data/ETable/ETable.vue.js +7 -0
- package/dist/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/src/components/data/ETable/ETableColumn.vue.js +5 -0
- package/dist/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/src/components/data/ETable/no_data.svg.js +4 -0
- package/dist/src/components/data/ETimeline/ETimeline.vue.js +7 -0
- package/dist/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/src/components/data/ETimeline/ETimelineItem.vue.js +7 -0
- package/dist/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/src/components/feedback/EDialog/EDialog.vue.js +7 -0
- package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/src/components/feedback/EDrawer/EDrawer.vue.js +7 -0
- package/dist/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/src/components/feedback/EMessage/EMessage.js +135 -0
- package/dist/src/components/feedback/EMessage/EMessage.vue.js +7 -0
- package/dist/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/src/components/feedback/EMessageBox/EMessageBox.js +153 -0
- package/dist/src/components/feedback/EMessageBox/EMessageBox.vue.js +7 -0
- package/dist/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/src/components/feedback/ENotification/ENotification.js +164 -0
- package/dist/src/components/feedback/ENotification/ENotification.vue.js +7 -0
- package/dist/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/src/components/feedback/EPopover.vue.js +7 -0
- package/dist/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +111 -0
- package/dist/src/components/feedback/ETooltip.vue.js +7 -0
- package/dist/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/src/components/form/ECheckbox.vue.js +7 -0
- package/dist/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/src/components/form/EColorPicker.vue.js +7 -0
- package/dist/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue.js +7 -0
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/src/components/form/EFileSelector.vue.js +7 -0
- package/dist/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/src/components/form/EForm/EForm.vue.js +7 -0
- package/dist/src/components/form/EForm/EForm.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/src/components/form/EForm/EFormItem.vue.js +7 -0
- package/dist/src/components/form/EForm/EFormItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/src/components/form/EInput/EInput.vue.js +7 -0
- package/dist/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/src/components/form/ERadio.vue.js +7 -0
- package/dist/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/src/components/form/ESelect/ESelect.vue.js +8 -0
- package/dist/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/src/components/form/ESlider.vue.js +7 -0
- package/dist/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/src/components/form/ETimePicker.vue.js +7 -0
- package/dist/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/src/components/geometry/ECube.vue.js +7 -0
- package/dist/src/components/geometry/ECube.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/src/components/hooks/useContainer.js +129 -0
- package/dist/src/components/hooks/useLiquidGlass.js +63 -0
- package/dist/src/components/hooks/usePosition.js +42 -0
- package/dist/src/components/hooks/useZIndex.js +15 -0
- package/dist/src/components/layout/EContainerWithScrollbar.vue.js +7 -0
- package/dist/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/src/components/layout/EDivider.vue.js +5 -0
- package/dist/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/src/components/layout/EScrollX.vue.js +7 -0
- package/dist/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/src/components/layout/EScrollbar.vue.js +7 -0
- package/dist/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/src/components/navigation/EDropdown.vue.js +7 -0
- package/dist/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/src/components/navigation/ETabs/ETabPane.vue.js +7 -0
- package/dist/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/src/components/navigation/ETabs/ETabs.vue.js +7 -0
- package/dist/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/src/directives/EDrag.js +27 -0
- package/dist/src/directives/ESizeOb.js +23 -0
- package/dist/src/directives/ESlideIn.js +128 -0
- package/dist/src/utils/EAnimateCSSUtil.js +13 -0
- package/dist/src/utils/EClipboardUtil.js +19 -0
- package/dist/src/utils/EDomUtil.js +41 -0
- package/dist/src/utils/EEchartsUtil.js +23 -0
- package/dist/src/utils/EEventBus.js +16 -0
- package/dist/src/utils/EImageUtil.js +26 -0
- package/dist/src/utils/EJSONUtil.js +12 -0
- package/dist/src/utils/ELocalStorageUtil.js +15 -0
- package/dist/src/utils/EMediaQueryUtil.js +28 -0
- package/dist/src/utils/EStringUtil.js +11 -0
- package/dist/src/utils/EThreeUtil.js +40 -0
- package/dist/src/utils/ETimeUtil.js +22 -0
- package/dist/src/utils/EUUIDUtil.js +11 -0
- package/dist/utils/index.js +13 -13
- package/package.json +2 -6
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as e, inject as t, useSlots as n } from "vue";
|
|
2
|
+
//#region src/components/data/ETable/ETableColumn.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var r = e({
|
|
4
|
+
__name: "ETableColumn",
|
|
5
|
+
props: {
|
|
6
|
+
label: {},
|
|
7
|
+
prop: {},
|
|
8
|
+
width: {},
|
|
9
|
+
minWidth: {},
|
|
10
|
+
align: {},
|
|
11
|
+
fixed: {},
|
|
12
|
+
draggable: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
let r = e, i = n();
|
|
16
|
+
return t("addColumn")({
|
|
17
|
+
...r,
|
|
18
|
+
slots: i
|
|
19
|
+
}), (e, t) => null;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { r as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/components/data/ETable/no_data.svg
|
|
2
|
+
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1768788467701'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12993'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M390.26688%20783.47264s-40.2944-1.54112-70.81472-11.66336c0%200-277.85216-116.30592-225.95072-158.78144%20214.13376-175.26272%20658.26816%205.15584%20658.26816%205.15584s-40.32%2064.27648-218.7008%20130.84672c-81.37728%2030.37184-137.14432%2037.05344-142.80192%2033.85856v0.58368z'%20fill='%23757A80'%20p-id='12994'%3e%3c/path%3e%3cpath%20d='M751.56992%20371.20512l-362.20416%20173.14304-228.06528-152.73984%20332.61568-129.44384z'%20fill='%23B2BAC2'%20p-id='12995'%3e%3c/path%3e%3cpath%20d='M491.88352%20484.5824L185.8048%20644.20864l-24.50432-252.60032%20332.61568-129.44384z'%20fill='%23C9D2DB'%20p-id='12996'%3e%3c/path%3e%3cpath%20d='M765.2864%20158.72c-12.66176%2011.8528-26.30656%2017.14176-34.3552%2018.92864-8.0384%201.78176-30.21312%209.24672-37.28384%2027.48928-11.68896%2038.21056%206.8096%2062.08512%206.8096%2062.08512-12.2368-43.0848%207.54688-51.98848%2021.504-59.60704%202.42688-1.29024%204.56704-2.50368%206.5792-3.68128l-0.22528%200.1536c-26.05568%2017.88416-25.856%2028.02176-25.99936%2035.22048-0.1024%205.09952%201.7664%205.0688%204.11136%203.76832%201.14688-0.44032%2022.85056-8.72448%2030.22848-13.19936l0.01024-0.00512a60.14976%2060.14976%200%200%200%2013.696-9.61024C769.7408%20200.99072%20765.2864%20158.72%20765.2864%20158.72z'%20fill='%239BA1A8'%20p-id='12997'%3e%3c/path%3e%3cpath%20d='M749.29152%20612.64896c-6.5536%2011.30496-167.10144%20136.5504-359.02464%20170.24-62.65856-15.47776-8.8576-261.48352-8.8576-261.48352l367.88224-151.36256s13.9776%20218.496%200%20242.60608'%20fill='%23C9D2DB'%20p-id='12998'%3e%3c/path%3e%3cpath%20d='M390.26688%20782.88896c2.15552%2010.24-203.61728-117.13536-212.32128-142.7456-37.75488-111.09376-16.64-248.53504-16.64-248.53504l220.09856%20129.792s-17.80224%20134.92736%208.8576%20261.48864'%20fill='%23B2BAC2'%20p-id='12999'%3e%3c/path%3e%3cpath%20d='M155.4176%20519.12704l5.888-127.51872%20220.09856%20129.792s-21.59616%20136.76544-17.43872%20144.95744c2.816%205.53984-208.54784-147.23072-208.54784-147.23072z'%20fill='%239BA1A8'%20p-id='13000'%3e%3c/path%3e%3cpath%20d='M349.67552%20643.59936L132.67968%20495.2064l28.6208-109.06112%20220.1088%20129.79712z'%20fill='%23E1EAF5'%20p-id='13001'%3e%3c/path%3e%3cpath%20d='M755.5072%20486.4s-350.60224%20171.28448-350.54592%20154.77248c0.19968-54.95808-18.0224-107.5712-18.0224-107.5712l364.63104-162.39616%203.93216%20115.2z'%20fill='%239BA1A8'%20p-id='13002'%3e%3c/path%3e%3cpath%20d='M782.976%20462.7456l-357.98016%20154.75712-43.58656-96.1024%20370.16064-150.1952z'%20fill='%23E1EAF5'%20p-id='13003'%3e%3c/path%3e%3cpath%20d='M161.30048%20386.14528l220.1088%20129.792-220.1088-129.792z'%20fill='%23EAEAEA'%20p-id='13004'%3e%3c/path%3e%3cpath%20d='M798.94528%20443.648c-24.1664%2016.01536-28.90752%2049.6896-9.56416%2071.14752%209.9584%2011.04896%2015.48288%2027.27936-18.7136%2039.61856-57.1648%2020.6336%207.38816%2052.736%203.6864%2067.92192-3.69152%2015.19104%2089.088-8.27904%2084.36224-36.83328-4.72576-28.55936-11.3152-38.56384%2010.496-47.6672%2021.8112-9.10848-3.35872-22.18496%2011.5712-35.95776%2013.78304-12.71296%2037.69344-33.47968-1.6896-62.34624-26.53184-19.45088-25.3952-11.84768-56.23808-7.3728%200%200-11.7248%203.40992-23.9104%2011.48928z'%20fill='%23D3DCE6'%20p-id='13005'%3e%3c/path%3e%3cpath%20d='M826.07616%20557.14816a5.08416%205.08416%200%200%201-0.39424%2010.12736l-0.91648-0.03584c-2.98496-0.38912-8.3456%200.93696-15.0528%203.72224a129.9968%20129.9968%200%200%200-8.46848%203.90656c-2.32448%201.16736-4.62848%202.39616-6.86592%203.6352l-3.3024%201.87904c-1.94048%201.1264-3.36896%201.9968-4.13696%202.47808a5.08416%205.08416%200%200%201-5.4272-8.6016l3.28704-1.98656%201.16736-0.68608a201.85088%20201.85088%200%200%201%2010.71616-5.80608%20140.0064%20140.0064%200%200%201%209.12896-4.21376c7.42912-3.08224%2013.6448-4.74624%2018.64192-4.55168l1.62304%200.13312z'%20fill='%23757A80'%20p-id='13006'%3e%3c/path%3e%3cpath%20d='M842.1632%20457.55904c2.80064%200.18944%204.92032%202.6112%204.736%205.41696l-0.45568%205.6064-0.3072%203.34848c-0.68096%207.0656-1.57696%2014.94016-2.71872%2023.41888-3.26656%2024.22784-7.85408%2048.46592-13.99296%2071.12192-12.40064%2045.7472-29.4656%2079.27808-52.5056%2095.5904a5.08416%205.08416%200%200%201-5.87776-8.30464c20.5824-14.57664%2036.736-46.30016%2048.5632-89.94304%206.01088-22.18496%2010.5216-46.0032%2013.73184-69.82656%200.90112-6.67136%201.64352-12.96384%202.24768-18.7648l0.95744-10.17344a186.88%20186.88%200%200%200%200.2048-2.75456%205.08416%205.08416%200%200%201%205.41696-4.736z'%20fill='%23757A80'%20p-id='13007'%3e%3c/path%3e%3cpath%20d='M799.63136%20482.7648a5.08416%205.08416%200%200%201%206.96832-1.77664l3.39456%201.95584%201.21344%200.68608c3.56352%201.9968%207.28576%203.9936%2010.9824%205.84704%201.96096%200.98816%203.8656%201.90976%205.69344%202.75456%204.46464%202.06848%208.34048%203.6096%2011.40736%204.51584a5.08416%205.08416%200%201%201-2.8672%209.75872c-3.62496-1.06496-7.936-2.78528-12.81024-5.03808-1.93536-0.896-3.93728-1.8688-5.99552-2.90304-2.56-1.28512-5.12512-2.6368-7.64416-4.00384l-7.09632-3.968a146.60608%20146.60608%200%200%201-1.47456-0.86016%205.08416%205.08416%200%200%201-1.77152-6.97344z'%20fill='%23757A80'%20p-id='13008'%3e%3c/path%3e%3cpath%20d='M876.07808%20477.66528a5.08416%205.08416%200%200%201-1.87904%206.94272l-9.216%205.38112-9.216%205.53472-6.85056%204.3008c-3.60448%202.31424-6.13888%204.04992-6.76864%204.608l-0.14336%200.13824a5.08416%205.08416%200%201%201-8.2944-5.888c1.28-1.79712%204.864-4.39296%2011.3408-8.47872l6.99904-4.32128%207.75168-4.64384%209.32864-5.4528a5.08416%205.08416%200%200%201%206.94784%201.87904zM818.176%20576.5376c2.56-1.024%206.97856-0.34304%2016.37888%202.41664a5.08416%205.08416%200%201%201-2.8672%209.76384l-4.57728-1.28c-3.00544-0.78848-4.71552-1.152-5.12-1.34144a6.21568%206.21568%200%200%201-2.6624%200.32256l-0.90112-0.18944a5.08416%205.08416%200%200%201-3.3792-6.3488l0.86528-1.54112c0.57856-0.92672%200.95232-1.1264%202.26304-1.80224z'%20fill='%23757A80'%20p-id='13009'%3e%3c/path%3e%3cpath%20d='M786.10432%20660.736c-12.37504-26.79808-29.0048-42.4192-48.47104-49.4848l2.62144%2033.88928-12.60544-36.72064c-17.09568-3.584-36.0192-1.4336-55.936%204.92544l4.36736%2056.36608-17.70496-51.5584c-11.71968%204.70016-23.71072%2010.7008-35.80928%2017.68448l17.3568%2052.97664-29.2864-45.7984c-12.4928%207.82336-25.0368%2016.5888-37.46816%2025.99424l16.8448%2051.39456-27.5712-43.10016a827.008%20827.008%200%200%200-37.69344%2031.7184l11.776%2035.95264-18.8928-29.5424a3517.58848%203517.58848%200%200%201-117.6576%2070.07232c-12.06272%206.87104-7.2704%2024.9856%206.656%2025.27232%20311.88992%206.56384%20379.47392-150.04672%20379.47392-150.04672'%20fill='%239BA1A8'%20p-id='13010'%3e%3c/path%3e%3c/svg%3e";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ETimeline.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/data/ETimeline/ETimeline.vue
|
|
5
|
+
var n = e(t, [["__scopeId", "data-v-f42c4470"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, provide as c, reactive as l, renderList as u, renderSlot as d } from "vue";
|
|
2
|
+
//#region src/components/data/ETimeline/ETimeline.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = 4, p = i({
|
|
4
|
+
__name: "ETimeline",
|
|
5
|
+
props: { size: { default: "medium" } },
|
|
6
|
+
setup(i) {
|
|
7
|
+
let p = l({});
|
|
8
|
+
c("updateDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
|
|
9
|
+
p[e] = {
|
|
10
|
+
offsetTop: t,
|
|
11
|
+
offsetLeft: n,
|
|
12
|
+
height: r,
|
|
13
|
+
width: i
|
|
14
|
+
};
|
|
15
|
+
}), c("addDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
|
|
16
|
+
if (p[e]) throw Error("已存在相同的时间戳");
|
|
17
|
+
p[e] = {
|
|
18
|
+
offsetTop: t,
|
|
19
|
+
offsetLeft: n,
|
|
20
|
+
height: r,
|
|
21
|
+
width: i
|
|
22
|
+
};
|
|
23
|
+
}), c("removeDotInfo", (e) => {
|
|
24
|
+
delete p[e];
|
|
25
|
+
}), c("timelineSize", i.size);
|
|
26
|
+
let m = t(() => Object.values(p).sort((e, t) => e.offsetTop - t.offsetTop));
|
|
27
|
+
return (t, c) => (s(), r("div", { class: a(["e-timeline", [`e-timeline--${i.size}`]]) }, [(s(!0), r(e, null, u(p, (t, a, c) => (s(), r(e, { key: a }, [c > 0 ? (s(), r("div", {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "e-timeline__line",
|
|
30
|
+
style: o({
|
|
31
|
+
top: `${m.value[c - 1].offsetTop + m.value[c - 1].height + f}px`,
|
|
32
|
+
height: `${t.offsetTop - f - m.value[c - 1].offsetTop - m.value[c - 1].height - f}px`,
|
|
33
|
+
left: `calc(var(--e-timeline-${i.size}-grid-column) / 2)`,
|
|
34
|
+
width: `var(--e-timeline-${i.size}-line-width)`,
|
|
35
|
+
transform: "translateX(-50%)"
|
|
36
|
+
})
|
|
37
|
+
}, null, 4)) : n("", !0)], 64))), 128)), d(t.$slots, "default", {}, void 0, !0)], 2));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { p as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./ETimelineItem.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/data/ETimeline/ETimelineItem.vue
|
|
5
|
+
var n = e(t, [["__scopeId", "data-v-a7f4e704"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
package/dist/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, inject as r, normalizeClass as i, onMounted as a, onUnmounted as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, useSlots as d, useTemplateRef as f } from "vue";
|
|
2
|
+
//#region src/components/data/ETimeline/ETimelineItem.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var p = { class: "e-timeline-item__dot-box" }, m = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "e-timeline-item__dot"
|
|
6
|
+
}, h = { class: "e-timeline-item__timestamp" }, g = { class: "e-timeline-item__content" }, _ = n({
|
|
7
|
+
__name: "ETimelineItem",
|
|
8
|
+
props: { timestamp: {} },
|
|
9
|
+
setup(n) {
|
|
10
|
+
let _ = d(), v = r("timelineSize", "medium"), y = r("updateDotInfo"), b = r("addDotInfo"), x = r("removeDotInfo"), S = f("timelineItemRef");
|
|
11
|
+
return a(() => {
|
|
12
|
+
let e = S.value.parentNode, t = S.value.querySelector(".e-timeline-item__dot-box").firstElementChild;
|
|
13
|
+
b({
|
|
14
|
+
timestamp: n.timestamp,
|
|
15
|
+
offsetTop: t.offsetTop,
|
|
16
|
+
offsetLeft: t.offsetLeft,
|
|
17
|
+
height: t.offsetHeight,
|
|
18
|
+
width: t.offsetWidth
|
|
19
|
+
});
|
|
20
|
+
let r = new ResizeObserver(() => {
|
|
21
|
+
y({
|
|
22
|
+
timestamp: n.timestamp,
|
|
23
|
+
offsetTop: t.offsetTop,
|
|
24
|
+
offsetLeft: t.offsetLeft,
|
|
25
|
+
height: t.offsetHeight,
|
|
26
|
+
width: t.offsetWidth
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
r.observe(e), o(() => {
|
|
30
|
+
x(n.timestamp), r.disconnect();
|
|
31
|
+
});
|
|
32
|
+
}), (r, a) => (s(), e("div", {
|
|
33
|
+
class: i(["e-timeline-item", [`e-timeline-item--${u(v)}`]]),
|
|
34
|
+
ref_key: "timelineItemRef",
|
|
35
|
+
ref: S
|
|
36
|
+
}, [
|
|
37
|
+
t("div", p, [u(_).icon ? c(r.$slots, "icon", {}, void 0, !0, 0) : (s(), e("div", m))]),
|
|
38
|
+
t("div", h, l(n.timestamp), 1),
|
|
39
|
+
t("div", g, [c(r.$slots, "default", {}, void 0, !0)])
|
|
40
|
+
], 2));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { _ as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EDialog.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/feedback/EDialog/EDialog.vue
|
|
5
|
+
var n = e(t, [["__scopeId", "data-v-80e50b55"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import e from "../../basic/EButton/EButton.vue.js";
|
|
2
|
+
import { useZIndex as t } from "../../hooks/useZIndex.js";
|
|
3
|
+
import { useContainer as n } from "../../hooks/useContainer.js";
|
|
4
|
+
import { Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onUnmounted as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useTemplateRef as b, watch as x, withCtx as S } from "vue";
|
|
5
|
+
//#region src/components/feedback/EDialog/EDialog.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var C = { class: "header" }, w = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "title"
|
|
9
|
+
}, T = { class: "header-actions" }, E = ["title"], D = {
|
|
10
|
+
key: 0,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
"stroke-width": "2",
|
|
15
|
+
"stroke-linecap": "round",
|
|
16
|
+
"stroke-linejoin": "round"
|
|
17
|
+
}, O = {
|
|
18
|
+
key: 1,
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
"stroke-width": "2",
|
|
23
|
+
"stroke-linecap": "round",
|
|
24
|
+
"stroke-linejoin": "round"
|
|
25
|
+
}, k = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "btn-box"
|
|
28
|
+
}, A = d({
|
|
29
|
+
__name: "EDialog",
|
|
30
|
+
props: {
|
|
31
|
+
open: { type: Boolean },
|
|
32
|
+
title: {},
|
|
33
|
+
normalWidth: {},
|
|
34
|
+
normalHeight: {},
|
|
35
|
+
okText: { default: "确定" },
|
|
36
|
+
cancelText: { default: "取消" },
|
|
37
|
+
size: { default: "medium" },
|
|
38
|
+
showFooter: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
showFullscreen: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
animationReferenceElement: {},
|
|
47
|
+
mountPoint: {}
|
|
48
|
+
},
|
|
49
|
+
emits: [
|
|
50
|
+
"ok",
|
|
51
|
+
"close",
|
|
52
|
+
"cancel",
|
|
53
|
+
"update:open"
|
|
54
|
+
],
|
|
55
|
+
setup(d, { emit: A }) {
|
|
56
|
+
let { nextZIndex: j } = t(), M = b("modal"), { container: N, coverStyle: P } = n(() => d.mountPoint), F = g(null), I = g(!1), L = null, R = g(""), z, B = () => M.value?.querySelector(".center-box"), V = i(() => {
|
|
57
|
+
if (I.value) return {};
|
|
58
|
+
if (R.value === "enter-freeze" && L) return {
|
|
59
|
+
width: L.width + "px",
|
|
60
|
+
height: L.height + "px"
|
|
61
|
+
};
|
|
62
|
+
if (R.value === "restore" && L) return {
|
|
63
|
+
width: d.normalWidth ?? L.width + "px",
|
|
64
|
+
height: d.normalHeight ?? L.height + "px"
|
|
65
|
+
};
|
|
66
|
+
let e = {};
|
|
67
|
+
return d.normalWidth && (e.width = d.normalWidth), d.normalHeight && (e.height = d.normalHeight), e;
|
|
68
|
+
}), H = () => {
|
|
69
|
+
let e = B();
|
|
70
|
+
e && (window.clearTimeout(z), I.value ? (I.value = !1, R.value = "restore", z = window.setTimeout(() => {
|
|
71
|
+
R.value = "";
|
|
72
|
+
}, 320)) : (L = {
|
|
73
|
+
width: e.offsetWidth,
|
|
74
|
+
height: e.offsetHeight
|
|
75
|
+
}, R.value = "enter-freeze", requestAnimationFrame(() => {
|
|
76
|
+
requestAnimationFrame(() => {
|
|
77
|
+
R.value = "", I.value = !0;
|
|
78
|
+
});
|
|
79
|
+
})));
|
|
80
|
+
}, U = () => d.animationReferenceElement ? d.animationReferenceElement : F.value, W = () => {
|
|
81
|
+
let e = U();
|
|
82
|
+
return !!e && e.isConnected;
|
|
83
|
+
}, G = () => {
|
|
84
|
+
let e = U();
|
|
85
|
+
if (!e) return "translate(0,0) scale(0)";
|
|
86
|
+
let t = e.getBoundingClientRect(), n = M.value?.querySelector(".center-box");
|
|
87
|
+
if (!n) return "translate(0,0) scale(0)";
|
|
88
|
+
let r = n.getBoundingClientRect(), i = t.width / r.width, a = t.height / r.height;
|
|
89
|
+
return `translate(${t.left + t.width / 2 - (r.left + r.width / 2)}px,${t.top + t.height / 2 - (r.top + r.height / 2)}px) scale(${i},${a})`;
|
|
90
|
+
}, K = (e) => {
|
|
91
|
+
let t = M.value, n = parseFloat(getComputedStyle(t).opacity);
|
|
92
|
+
e ? (t.style.opacity = "0", requestAnimationFrame(() => {
|
|
93
|
+
let e = t.animate([{ opacity: 0 }, { opacity: n }], {
|
|
94
|
+
duration: 300,
|
|
95
|
+
easing: "linear"
|
|
96
|
+
});
|
|
97
|
+
e.onfinish = () => {
|
|
98
|
+
e.cancel(), t.style.opacity = "";
|
|
99
|
+
};
|
|
100
|
+
})) : t.animate([{ opacity: n }, { opacity: 0 }], {
|
|
101
|
+
duration: 300,
|
|
102
|
+
easing: "linear"
|
|
103
|
+
}).onfinish = () => {
|
|
104
|
+
t.style.display = "none", t.style.opacity = "";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
x(() => d.open, (e) => {
|
|
108
|
+
let t = M.value?.querySelector(".center-box");
|
|
109
|
+
if (e) {
|
|
110
|
+
window.clearTimeout(z), R.value = "", d.animationReferenceElement || (F.value = document.activeElement instanceof HTMLElement ? document.activeElement : null), M.value.style.display = "flex", M.value.style.zIndex = String(j()), K(!0);
|
|
111
|
+
let e = G();
|
|
112
|
+
t.style.transformOrigin = "center center", t.style.transform = e, requestAnimationFrame(() => {
|
|
113
|
+
let n = t.animate([
|
|
114
|
+
{
|
|
115
|
+
opacity: 0,
|
|
116
|
+
transform: e,
|
|
117
|
+
offset: 0,
|
|
118
|
+
easing: "linear"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
opacity: 1,
|
|
122
|
+
transform: e,
|
|
123
|
+
offset: .15,
|
|
124
|
+
easing: "linear"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
opacity: 1,
|
|
128
|
+
transform: "translate(0,0) scale(1)",
|
|
129
|
+
offset: 1
|
|
130
|
+
}
|
|
131
|
+
], { duration: 300 });
|
|
132
|
+
n.onfinish = () => {
|
|
133
|
+
n.cancel(), t.style.transform = "";
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
} else if (K(!1), W()) {
|
|
137
|
+
let e = G(), n = window.getComputedStyle(t).transform;
|
|
138
|
+
t.style.transformOrigin = "center center", t.animate([
|
|
139
|
+
{
|
|
140
|
+
opacity: 1,
|
|
141
|
+
transform: n,
|
|
142
|
+
offset: 0,
|
|
143
|
+
easing: "linear"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
opacity: 1,
|
|
147
|
+
transform: e,
|
|
148
|
+
offset: .85,
|
|
149
|
+
easing: "linear"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
opacity: 0,
|
|
153
|
+
transform: e,
|
|
154
|
+
offset: 1
|
|
155
|
+
}
|
|
156
|
+
], { duration: 300 });
|
|
157
|
+
} else {
|
|
158
|
+
let e = window.getComputedStyle(t).transform;
|
|
159
|
+
t.style.transformOrigin = "center center", t.animate([
|
|
160
|
+
{
|
|
161
|
+
opacity: 1,
|
|
162
|
+
transform: e,
|
|
163
|
+
offset: 0,
|
|
164
|
+
easing: "linear"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
opacity: 1,
|
|
168
|
+
transform: "translate(0,0) scale(0)",
|
|
169
|
+
offset: .85,
|
|
170
|
+
easing: "linear"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
opacity: 0,
|
|
174
|
+
transform: "translate(0,0) scale(0)",
|
|
175
|
+
offset: 1
|
|
176
|
+
}
|
|
177
|
+
], { duration: 300 }).onfinish = () => {
|
|
178
|
+
t.style.transform = "";
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
let q = A, J = () => {
|
|
183
|
+
q("close"), q("update:open", !1);
|
|
184
|
+
}, Y = () => {
|
|
185
|
+
q("cancel"), q("update:open", !1);
|
|
186
|
+
};
|
|
187
|
+
return m(() => {
|
|
188
|
+
window.clearTimeout(z);
|
|
189
|
+
}), (t, n) => (h(), a(r, { to: y(N) }, [c("div", {
|
|
190
|
+
class: "e-dialog",
|
|
191
|
+
ref: "modal",
|
|
192
|
+
style: p(y(P))
|
|
193
|
+
}, [c("div", {
|
|
194
|
+
class: f(["center-box", [d.size, { fullscreen: I.value }]]),
|
|
195
|
+
style: p(V.value)
|
|
196
|
+
}, [
|
|
197
|
+
c("div", C, [d.title ? (h(), s("div", w, v(d.title), 1)) : o("", !0), c("div", T, [d.showFullscreen ? (h(), s("span", {
|
|
198
|
+
key: 0,
|
|
199
|
+
class: "fullscreen-btn",
|
|
200
|
+
onClick: H,
|
|
201
|
+
title: I.value ? "退出全屏" : "全屏显示"
|
|
202
|
+
}, [I.value ? (h(), s("svg", O, [...n[2] ||= [
|
|
203
|
+
c("path", { d: "M8 3v3a2 2 0 0 1-2 2H3" }, null, -1),
|
|
204
|
+
c("path", { d: "M21 8h-3a2 2 0 0 1-2-2V3" }, null, -1),
|
|
205
|
+
c("path", { d: "M3 16h3a2 2 0 0 1 2 2v3" }, null, -1),
|
|
206
|
+
c("path", { d: "M16 21v-3a2 2 0 0 1 2-2h3" }, null, -1)
|
|
207
|
+
]])) : (h(), s("svg", D, [...n[1] ||= [
|
|
208
|
+
c("path", { d: "M8 3H5a2 2 0 0 0-2 2v3" }, null, -1),
|
|
209
|
+
c("path", { d: "M21 8V5a2 2 0 0 0-2-2h-3" }, null, -1),
|
|
210
|
+
c("path", { d: "M3 16v3a2 2 0 0 0 2 2h3" }, null, -1),
|
|
211
|
+
c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" }, null, -1)
|
|
212
|
+
]]))], 8, E)) : o("", !0), c("span", {
|
|
213
|
+
class: "iconfont icon-guanbi_o",
|
|
214
|
+
onClick: J
|
|
215
|
+
})])]),
|
|
216
|
+
_(t.$slots, "default", {}, void 0, !0),
|
|
217
|
+
d.showFooter ? (h(), s("div", k, [u(e, {
|
|
218
|
+
type: "info",
|
|
219
|
+
plain: "",
|
|
220
|
+
size: d.size,
|
|
221
|
+
onClick: Y
|
|
222
|
+
}, {
|
|
223
|
+
default: S(() => [l(v(d.cancelText), 1)]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["size"]), u(e, {
|
|
226
|
+
type: "primary",
|
|
227
|
+
size: d.size,
|
|
228
|
+
onClick: n[0] ||= (e) => q("ok")
|
|
229
|
+
}, {
|
|
230
|
+
default: S(() => [l(v(d.okText), 1)]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["size"])])) : o("", !0)
|
|
233
|
+
], 6)], 4)], 8, ["to"]));
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
//#endregion
|
|
237
|
+
export { A as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EDrawer.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/feedback/EDrawer/EDrawer.vue
|
|
5
|
+
var n = e(t, [["__scopeId", "data-v-02d6f2fe"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import e from "../../basic/EButton/EButton.vue.js";
|
|
2
|
+
import { useZIndex as t } from "../../hooks/useZIndex.js";
|
|
3
|
+
import { useContainer as n } from "../../hooks/useContainer.js";
|
|
4
|
+
import { 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, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useCssVars as b, useTemplateRef as x, vShow as S, watchEffect as C, withCtx as w, withDirectives as T } from "vue";
|
|
5
|
+
//#region src/components/feedback/EDrawer/EDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var E = { class: "header" }, D = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "title"
|
|
9
|
+
}, O = { class: "body" }, k = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "footer"
|
|
12
|
+
}, A = f({
|
|
13
|
+
__name: "EDrawer",
|
|
14
|
+
props: {
|
|
15
|
+
open: { type: Boolean },
|
|
16
|
+
title: {},
|
|
17
|
+
width: { default: "320px" },
|
|
18
|
+
height: { default: "320px" },
|
|
19
|
+
direction: { default: "right" },
|
|
20
|
+
okText: { default: "确定" },
|
|
21
|
+
cancelText: { default: "取消" },
|
|
22
|
+
size: { default: "medium" },
|
|
23
|
+
showFooter: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
closeOnClickMask: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
mountPoint: {}
|
|
32
|
+
},
|
|
33
|
+
emits: [
|
|
34
|
+
"ok",
|
|
35
|
+
"close",
|
|
36
|
+
"cancel",
|
|
37
|
+
"update:open"
|
|
38
|
+
],
|
|
39
|
+
setup(f, { emit: A }) {
|
|
40
|
+
b((e) => ({
|
|
41
|
+
v67dc86d1: e.width,
|
|
42
|
+
v79e5597c: e.height
|
|
43
|
+
}));
|
|
44
|
+
let { container: j, box: M, coverStyle: N } = n(() => f.mountPoint), P = a(() => {
|
|
45
|
+
let { left: e, top: t, width: n, height: r } = M.value, i = document.documentElement, a = i.clientWidth - e - n, o = i.clientHeight - t - r;
|
|
46
|
+
return f.direction === "left" ? {
|
|
47
|
+
left: `${e}px`,
|
|
48
|
+
top: `${t}px`,
|
|
49
|
+
width: f.width,
|
|
50
|
+
height: `${r}px`
|
|
51
|
+
} : f.direction === "right" ? {
|
|
52
|
+
right: `${a}px`,
|
|
53
|
+
top: `${t}px`,
|
|
54
|
+
width: f.width,
|
|
55
|
+
height: `${r}px`
|
|
56
|
+
} : f.direction === "top" ? {
|
|
57
|
+
left: `${e}px`,
|
|
58
|
+
top: `${t}px`,
|
|
59
|
+
width: `${n}px`,
|
|
60
|
+
height: f.height
|
|
61
|
+
} : {
|
|
62
|
+
left: `${e}px`,
|
|
63
|
+
bottom: `${o}px`,
|
|
64
|
+
width: `${n}px`,
|
|
65
|
+
height: f.height
|
|
66
|
+
};
|
|
67
|
+
}), { nextZIndex: F } = t(), I = A, L = () => {
|
|
68
|
+
I("close"), I("update:open", !1);
|
|
69
|
+
}, R = () => {
|
|
70
|
+
I("cancel"), I("update:open", !1);
|
|
71
|
+
}, z = g("none"), B = x("eDrawerWrapperRef");
|
|
72
|
+
C(() => {
|
|
73
|
+
f.open ? (z.value = "block", B.value.style.zIndex = String(F())) : setTimeout(() => {
|
|
74
|
+
z.value = "none";
|
|
75
|
+
}, 300);
|
|
76
|
+
});
|
|
77
|
+
let V = () => ["left", "right"].includes(f.direction) ? `translateX(${f.direction === "left" ? "-100%" : "100%"})` : `translateY(${f.direction === "top" ? "-100%" : "100%"})`;
|
|
78
|
+
return (t, n) => (h(), o(r, { to: y(j) }, [l("div", {
|
|
79
|
+
class: "e-drawer-wrapper",
|
|
80
|
+
ref_key: "eDrawerWrapperRef",
|
|
81
|
+
ref: B,
|
|
82
|
+
style: m([y(N), { display: z.value }])
|
|
83
|
+
}, [d(i, { name: "mark" }, {
|
|
84
|
+
default: w(() => [T(l("div", {
|
|
85
|
+
class: "mark",
|
|
86
|
+
onClick: n[0] ||= () => {
|
|
87
|
+
f.closeOnClickMask && L();
|
|
88
|
+
}
|
|
89
|
+
}, null, 512), [[S, f.open]])]),
|
|
90
|
+
_: 1
|
|
91
|
+
}), d(i, {
|
|
92
|
+
onEnter: n[2] ||= (e) => {
|
|
93
|
+
e.animate([
|
|
94
|
+
{
|
|
95
|
+
opacity: 0,
|
|
96
|
+
transform: V(),
|
|
97
|
+
offset: 0,
|
|
98
|
+
easing: "linear"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
opacity: 1,
|
|
102
|
+
transform: V(),
|
|
103
|
+
offset: .15,
|
|
104
|
+
easing: "linear"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
opacity: 1,
|
|
108
|
+
transform: "translate(0, 0)",
|
|
109
|
+
offset: 1
|
|
110
|
+
}
|
|
111
|
+
], { duration: 300 }).play();
|
|
112
|
+
},
|
|
113
|
+
onLeave: n[3] ||= (e) => {
|
|
114
|
+
e.animate([
|
|
115
|
+
{
|
|
116
|
+
opacity: 1,
|
|
117
|
+
transform: "translate(0, 0)",
|
|
118
|
+
offset: 0,
|
|
119
|
+
easing: "linear"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
opacity: 1,
|
|
123
|
+
transform: V(),
|
|
124
|
+
offset: .85,
|
|
125
|
+
easing: "linear"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
opacity: 0,
|
|
129
|
+
transform: V(),
|
|
130
|
+
offset: 1
|
|
131
|
+
}
|
|
132
|
+
], { duration: 300 }).play();
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
default: w(() => [T(l("div", {
|
|
136
|
+
class: p(["e-drawer", [f.direction, f.size]]),
|
|
137
|
+
style: m(P.value)
|
|
138
|
+
}, [
|
|
139
|
+
l("div", E, [f.title ? (h(), c("div", D, v(f.title), 1)) : s("", !0), l("span", {
|
|
140
|
+
class: "iconfont icon-guanbi_o",
|
|
141
|
+
onClick: L
|
|
142
|
+
})]),
|
|
143
|
+
l("div", O, [_(t.$slots, "default", {}, void 0, !0)]),
|
|
144
|
+
f.showFooter ? (h(), c("div", k, [d(e, {
|
|
145
|
+
type: "info",
|
|
146
|
+
plain: "",
|
|
147
|
+
size: f.size,
|
|
148
|
+
onClick: R
|
|
149
|
+
}, {
|
|
150
|
+
default: w(() => [u(v(f.cancelText), 1)]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["size"]), d(e, {
|
|
153
|
+
type: "primary",
|
|
154
|
+
size: f.size,
|
|
155
|
+
onClick: n[1] ||= (e) => I("ok")
|
|
156
|
+
}, {
|
|
157
|
+
default: w(() => [u(v(f.okText), 1)]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["size"])])) : s("", !0)
|
|
160
|
+
], 6), [[S, f.open]])]),
|
|
161
|
+
_: 3
|
|
162
|
+
})], 4)], 8, ["to"]));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { A as default };
|