@web-utils/component 5.0.0-beta01 → 5.0.0-beta02
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/awesome-button/index.mjs +19 -19
- package/chat/index.mjs +7 -7
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.D0ByhRTi.mjs} +132 -132
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.B3pY8TkD.mjs} +2 -2
- package/chunks/ElementDialog.DNsDHdQS.mjs +251 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.D_lXbe--.mjs} +23 -23
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.Cufwd4bp.mjs} +19 -19
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.BhY8NY2z.mjs} +1 -1
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DX1ZJ9w2.mjs} +1 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.BRafADXp.mjs} +7 -7
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.B6pqRir_.mjs} +4 -4
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.Dvwji23j.mjs} +1 -1
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.LL-vXDIE.mjs} +12 -13
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.Co7l6USP.mjs} +8 -8
- package/chunks/{FormCascader.CaM-oEhv.mjs → FormCascader.DMY3uNc8.mjs} +352 -351
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.BC4FfWwY.mjs} +186 -185
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.BSXI2cZU.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.D2Htta7J.mjs} +11 -9
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.CY0K-izg.mjs} +369 -368
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.DLqFXaFF.mjs} +34 -33
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.PJFfNRls.mjs} +2 -2
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.me083T8V.mjs} +10 -10
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.vVp8aVtj.mjs} +17 -15
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.BCxVyiWY.mjs} +87 -87
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.CA7Gfa6Q.mjs} +2 -2
- package/chunks/ImagePreview.ByEWJYdu.mjs +639 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.4hi7CjGc.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.B7BUQwb7.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.Ba3XSbZ5.mjs} +83 -81
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.DYhKWs3X.mjs} +7 -7
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.72HOXQkb.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.BxfsOAxU.mjs} +8 -8
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.CkeyTpnn.mjs} +16 -16
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.DEvY5-i7.mjs} +196 -139
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.C6Ycu28Z.mjs} +38 -37
- package/chunks/{checkbox.emIuFmnt.mjs → checkbox.C_9WZ8gc.mjs} +2 -2
- package/chunks/{confirmable-mixin.BBil7dto.mjs → confirmable-mixin.zegaXQTl.mjs} +398 -282
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.CNNpjPL2.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.Dv4XTu8B.mjs} +2 -2
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.FbvlqAGe.mjs} +2 -2
- package/chunks/{form-input.D25eDRMq.mjs → form-input.BUGZmAI1.mjs} +2 -2
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.Ca8U2bIR.mjs} +58 -60
- package/chunks/icon.CxCY22-F.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.ym7735_x.mjs} +28 -36
- package/chunks/{init.DwpukyOB.mjs → init.6jGmuY99.mjs} +3 -3
- package/chunks/input.C2GWsuXE.mjs +547 -0
- package/chunks/{message.BCmee5N0.mjs → message.C4NdvfbE.mjs} +40 -40
- package/chunks/{radio.BotKXqJr.mjs → radio.CeLeSOEo.mjs} +3 -4
- package/chunks/{tag.DPi-PLbb.mjs → tag.ZhEIVRpP.mjs} +18 -18
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.DNiltmX1.mjs} +362 -349
- package/chunks/{use-size.DxrwTUwf.mjs → typescript.CLl-2siQ.mjs} +2 -2
- package/chunks/use-empty-values.D8KYIiKR.mjs +81 -0
- package/chunks/use-form-item.BlWa7ZKe.mjs +56 -0
- package/chunks/{use-global-config.C9hs-O_x.mjs → use-global-config.DRovgom9.mjs} +14 -13
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.Be9HCpTQ.mjs} +12 -87
- package/chunks/{validator.C4-z_t9p.mjs → validator.DuBSEj8O.mjs} +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +3 -3
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +3 -3
- package/form-checkbox-group/index.mjs +5 -5
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +3 -3
- package/form-input-cron-expression/index.mjs +3 -3
- package/form-input-email/index.mjs +9 -8
- package/form-input-id-card/index.mjs +9 -8
- package/form-input-phone-number/index.mjs +10 -9
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +5 -5
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +3 -3
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +5 -5
- package/fy-form/index.mjs +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +2 -2
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/helper-function.d.ts +3 -2
- package/helper-function.mjs +16 -9
- package/image-cropper/index.mjs +6 -6
- package/image-preview/index.mjs +2 -187
- package/index.mjs +91 -91
- package/input-number-range/index.mjs +2 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +3 -3
- package/monaco-editor/index.mjs +1 -1
- package/notice/index.mjs +1 -1
- package/package.json +5 -5
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -4
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +1 -1
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -1
- package/sub-table/index.mjs +3 -3
- package/sub-table-plus/index.mjs +4 -4
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +2 -2
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -4
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +48 -14
- package/x-input-tag/index.mjs +3 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/input.PejnqwSH.mjs +0 -547
- package/chunks/overlay.DubSnqma.mjs +0 -122
- package/chunks/teleport._VGEzK4d.mjs +0 -22
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-id.CFO5NeoV.mjs +0 -15
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.BymtA5SJ.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.VRFTaHSp.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.Bwe5Rc0J.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.BVziVmyT.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.DXaMPWGV.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.CteBVoOe.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.C0abEij9.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.BRhZD-WH.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.DT5kumy4.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.CUvMwtPN.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.BLDb9e6G.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.C-IUDxQQ.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BxnG4lip.mjs} +0 -0
- /package/chunks/{scroll.CzORc5Zk.mjs → scroll.DWjS-gnW.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.DT5QwXL-.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.CRX7ERxJ.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.7zuMMM1E.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.Ce4MHRmD.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.BttmSVX6.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.BGJfM4oG.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.CSPl1l4f.mjs} +0 -0
- /package/chunks/{vnode.D_SioRnx.mjs → vnode.C3PXzhmg.mjs} +0 -0
package/fy-input-table/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, createVNode as s, openBlock as c, resolveComponent as l, withCtx as u } from "vue";
|
|
4
4
|
import { isBlank as d } from "@web-utils/core";
|
|
5
5
|
//#region src/components/fy-from/input-table/FyInputTable.vue
|
package/fy-input-tree/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, normalizeClass as c, openBlock as l, renderSlot as u, resolveComponent as d, toDisplayString as f, withCtx as p, withModifiers as m } from "vue";
|
|
4
4
|
import { isBlank as h } from "@web-utils/core";
|
|
5
5
|
//#region src/components/fy-from/input-tree/FyInputTree.vue
|
|
@@ -181,7 +181,7 @@ function b(e, t, n, h, g, b) {
|
|
|
181
181
|
default: p(() => [n.filter ? (l(), a("div", _, [s(x, {
|
|
182
182
|
modelValue: g.filterValue,
|
|
183
183
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => g.filterValue = e),
|
|
184
|
-
size: "
|
|
184
|
+
size: "default",
|
|
185
185
|
placeholder: n.filterText
|
|
186
186
|
}, null, 8, ["modelValue", "placeholder"])])) : i("v-if", !0), s(C, {
|
|
187
187
|
value: e.text,
|
package/fy-radio/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { Fragment as r, createBlock as i, createElementBlock as a, createTextVNode as o, createVNode as s, openBlock as c, renderList as l, resolveComponent as u, resolveDynamicComponent as d, toDisplayString as f, withCtx as p } from "vue";
|
|
4
4
|
//#region src/components/fy-from/radio/FyRadio.vue
|
|
5
5
|
var m = {
|
package/fy-rate/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createBlock as r, openBlock as i, resolveComponent as a } from "vue";
|
|
4
4
|
//#region src/components/fy-from/rate/FyRate.vue
|
|
5
5
|
var o = {
|
package/fy-select/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import "../chunks/util.g-WQEec9.mjs";
|
|
3
|
-
import { n as t, t as n } from "../chunks/event.
|
|
4
|
-
import { t as r } from "../chunks/packages.
|
|
5
|
-
import { i } from "../chunks/dic.
|
|
3
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
4
|
+
import { t as r } from "../chunks/packages.BLDb9e6G.mjs";
|
|
5
|
+
import { i } from "../chunks/dic.C0abEij9.mjs";
|
|
6
6
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, openBlock as d, renderList as f, renderSlot as p, resolveComponent as m, toDisplayString as h, withCtx as g } from "vue";
|
|
7
7
|
import { isBlank as _ } from "@web-utils/core";
|
|
8
8
|
//#region src/components/fy-from/select/FySelect.vue
|
package/fy-slider/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import { x as t } from "../chunks/util.g-WQEec9.mjs";
|
|
3
|
-
import { n, t as r } from "../chunks/event.
|
|
3
|
+
import { n, t as r } from "../chunks/event.Dv4XTu8B.mjs";
|
|
4
4
|
import { createBlock as i, openBlock as a, resolveComponent as o } from "vue";
|
|
5
5
|
//#region src/components/fy-from/slider/FySlider.vue
|
|
6
6
|
var s = {
|
package/fy-switch/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createBlock as r, openBlock as i, resolveComponent as a } from "vue";
|
|
4
4
|
//#region src/components/fy-from/switch/FySwitch.vue
|
|
5
5
|
var o = {
|
package/fy-time/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createBlock as r, createElementBlock as i, openBlock as a, resolveDynamicComponent as o } from "vue";
|
|
4
4
|
import { isBlank as s } from "@web-utils/core";
|
|
5
5
|
//#region src/components/fy-from/time/FyTime.vue
|
package/fy-title/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t, t as n } from "../chunks/event.
|
|
2
|
+
import { n as t, t as n } from "../chunks/event.Dv4XTu8B.mjs";
|
|
3
3
|
import { createElementBlock as r, createElementVNode as i, normalizeStyle as a, openBlock as o, toDisplayString as s } from "vue";
|
|
4
4
|
//#region src/components/fy-from/title/FyTitle.vue
|
|
5
5
|
var c = {
|
package/fy-tree/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import { O as t, v as n, x as r } from "../chunks/util.g-WQEec9.mjs";
|
|
3
|
-
import { t as i } from "../chunks/permission.
|
|
3
|
+
import { t as i } from "../chunks/permission.C-IUDxQQ.mjs";
|
|
4
4
|
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, normalizeStyle as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
|
|
5
5
|
import { isBlank as y } from "@web-utils/core";
|
|
6
6
|
//#region src/components/tree/FyTree.vue
|
package/fy-u-editor/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/FyUEditor.
|
|
1
|
+
import { t as e } from "../chunks/FyUEditor.BymtA5SJ.mjs";
|
|
2
2
|
export { e as default };
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/FyUpload.
|
|
1
|
+
import { t as e } from "../chunks/FyUpload.CA7Gfa6Q.mjs";
|
|
2
2
|
export { e as default };
|
package/helper-function.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
1
2
|
import { photoswipe } from './photo-swipe';
|
|
2
3
|
import { configComponents } from '../components/configComponents';
|
|
3
|
-
declare const imagePreview: (datas?: never[], index?: number, ops?: {}) =>
|
|
4
|
-
declare const imageCropper: (ops?: {}) =>
|
|
4
|
+
declare const imagePreview: (datas?: never[], index?: number, ops?: {}) => App<Element>;
|
|
5
|
+
declare const imageCropper: (ops?: {}) => App<ImageCropper>;
|
|
5
6
|
export { photoswipe, configComponents, imagePreview, imageCropper };
|
package/helper-function.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { configComponents as e } from "./configComponents.mjs";
|
|
2
|
-
import t from "./
|
|
2
|
+
import { t } from "./chunks/ImagePreview.ByEWJYdu.mjs";
|
|
3
3
|
import n from "./image-cropper/index.mjs";
|
|
4
|
-
import { t as r } from "./chunks/photo-swipe.
|
|
5
|
-
import i from "vue";
|
|
4
|
+
import { t as r } from "./chunks/photo-swipe.BxnG4lip.mjs";
|
|
5
|
+
import { createApp as i } from "vue";
|
|
6
6
|
//#region src/components/helper-function.ts
|
|
7
7
|
var a = (e = [], n = 0, r = {}) => {
|
|
8
|
-
let a =
|
|
8
|
+
let a = i(t, {
|
|
9
9
|
datas: e,
|
|
10
10
|
index: n,
|
|
11
11
|
ops: {
|
|
@@ -13,12 +13,15 @@ var a = (e = [], n = 0, r = {}) => {
|
|
|
13
13
|
beforeClose: null,
|
|
14
14
|
click: null,
|
|
15
15
|
modal: !0,
|
|
16
|
+
visible: !0,
|
|
16
17
|
...r
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
|
-
return document.body.appendChild(a
|
|
19
|
+
}), o = document.createElement("div");
|
|
20
|
+
return document.body.appendChild(o), a.mount(o), a.onUnmount(() => {
|
|
21
|
+
document.body.removeChild(o);
|
|
22
|
+
}), a;
|
|
20
23
|
}, o = (e = {}) => {
|
|
21
|
-
let t =
|
|
24
|
+
let t = {
|
|
22
25
|
outputSize: 1,
|
|
23
26
|
outputType: "jpeg",
|
|
24
27
|
info: !0,
|
|
@@ -35,8 +38,12 @@ var a = (e = [], n = 0, r = {}) => {
|
|
|
35
38
|
infoTrue: !1,
|
|
36
39
|
enlarge: 1,
|
|
37
40
|
...e
|
|
38
|
-
}
|
|
39
|
-
|
|
41
|
+
}, r = document.createElement("div");
|
|
42
|
+
document.body.appendChild(r);
|
|
43
|
+
let a = i(n, t);
|
|
44
|
+
return a.mount(r), a.onUnmount(() => {
|
|
45
|
+
document.body.removeChild(r);
|
|
46
|
+
}), a.show(), a;
|
|
40
47
|
};
|
|
41
48
|
//#endregion
|
|
42
49
|
export { e as configComponents, o as imageCropper, a as imagePreview, r as photoswipe };
|
package/image-cropper/index.mjs
CHANGED
|
@@ -57,14 +57,14 @@ function y(e, t, d, f, y, b) {
|
|
|
57
57
|
width: "1000px"
|
|
58
58
|
}, {
|
|
59
59
|
footer: u(() => [o(S, {
|
|
60
|
-
size: "
|
|
60
|
+
size: "default",
|
|
61
61
|
type: "primary",
|
|
62
62
|
onClick: b.submit
|
|
63
63
|
}, {
|
|
64
64
|
default: u(() => [...t[4] || (t[4] = [a(" 确 定 ", -1)])]),
|
|
65
65
|
_: 1
|
|
66
66
|
}, 8, ["onClick"]), o(S, {
|
|
67
|
-
size: "
|
|
67
|
+
size: "default",
|
|
68
68
|
onClick: t[2] || (t[2] = (e) => b.cancel())
|
|
69
69
|
}, {
|
|
70
70
|
default: u(() => [...t[5] || (t[5] = [a(" 取 消 ", -1)])]),
|
|
@@ -123,25 +123,25 @@ function y(e, t, d, f, y, b) {
|
|
|
123
123
|
r("底部操作工具按钮"),
|
|
124
124
|
i("div", g, [
|
|
125
125
|
o(S, {
|
|
126
|
-
size: "
|
|
126
|
+
size: "default",
|
|
127
127
|
type: "primary",
|
|
128
128
|
icon: "el-icon-zoom-in",
|
|
129
129
|
onClick: t[0] || (t[0] = (e) => b.changeScale(1))
|
|
130
130
|
}),
|
|
131
131
|
o(S, {
|
|
132
|
-
size: "
|
|
132
|
+
size: "default",
|
|
133
133
|
type: "primary",
|
|
134
134
|
icon: "el-icon-zoom-out",
|
|
135
135
|
onClick: t[1] || (t[1] = (e) => b.changeScale(-1))
|
|
136
136
|
}),
|
|
137
137
|
o(S, {
|
|
138
|
-
size: "
|
|
138
|
+
size: "default",
|
|
139
139
|
type: "primary",
|
|
140
140
|
icon: "el-icon-refresh-left",
|
|
141
141
|
onClick: b.rotateLeft
|
|
142
142
|
}, null, 8, ["onClick"]),
|
|
143
143
|
o(S, {
|
|
144
|
-
size: "
|
|
144
|
+
size: "default",
|
|
145
145
|
type: "primary",
|
|
146
146
|
icon: "el-icon-refresh-right",
|
|
147
147
|
onClick: b.rotateRight
|
package/image-preview/index.mjs
CHANGED
|
@@ -1,187 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
2
|
-
|
|
3
|
-
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, normalizeStyle as c, openBlock as l, renderList as u, resolveComponent as d, resolveDynamicComponent as f, toDisplayString as p, withCtx as m, withModifiers as h } from "vue";
|
|
4
|
-
import { setPx as g } from "@web-utils/core";
|
|
5
|
-
//#region src/components/image-preview/ImagePreview.vue
|
|
6
|
-
var _ = {
|
|
7
|
-
name: "ImagePreview",
|
|
8
|
-
data() {
|
|
9
|
-
return {
|
|
10
|
-
left: 0,
|
|
11
|
-
top: 0,
|
|
12
|
-
scale: 1,
|
|
13
|
-
datas: [],
|
|
14
|
-
rotate: 0,
|
|
15
|
-
isShow: !1,
|
|
16
|
-
index: 0,
|
|
17
|
-
ops: {}
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
computed: {
|
|
21
|
-
styleBoxName() {
|
|
22
|
-
return {
|
|
23
|
-
marginLeft: g(this.left),
|
|
24
|
-
marginTop: g(this.top)
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
styleName() {
|
|
28
|
-
return {
|
|
29
|
-
transform: `scale(${this.scale}) rotate(${this.rotate}deg)`,
|
|
30
|
-
maxWidth: "100%",
|
|
31
|
-
maxHeight: "100%"
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
isRrrow() {
|
|
35
|
-
return this.datas.length > 1;
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
methods: {
|
|
39
|
-
getName(e) {
|
|
40
|
-
return e.substring(e.lastIndexOf("/") + 1);
|
|
41
|
-
},
|
|
42
|
-
handlePrint() {
|
|
43
|
-
this.$Print(`#avue-image-preview__${this.index}`);
|
|
44
|
-
},
|
|
45
|
-
handlePrev() {
|
|
46
|
-
this.$refs.carousel.prev(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
|
|
47
|
-
},
|
|
48
|
-
handleNext() {
|
|
49
|
-
this.$refs.carousel.next(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
|
|
50
|
-
},
|
|
51
|
-
stopItem() {
|
|
52
|
-
this.left = 0, this.top = 0, this.$refs.item.forEach((e) => {
|
|
53
|
-
var t;
|
|
54
|
-
(t = e.pause) == null || t.call(e);
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
isMediaType(e) {
|
|
58
|
-
return t(e.url, e.type);
|
|
59
|
-
},
|
|
60
|
-
subScale() {
|
|
61
|
-
this.scale !== .2 && (this.scale = parseFloat((this.scale - .2).toFixed(2)));
|
|
62
|
-
},
|
|
63
|
-
addScale() {
|
|
64
|
-
this.scale = parseFloat((this.scale + .2).toFixed(2));
|
|
65
|
-
},
|
|
66
|
-
handleChange() {
|
|
67
|
-
this.scale = 1, this.rotate = 0;
|
|
68
|
-
},
|
|
69
|
-
move(e) {
|
|
70
|
-
let t = e.clientX, n = e.clientY;
|
|
71
|
-
document.onmousemove = (e) => {
|
|
72
|
-
let r = e.clientX - t, i = e.clientY - n;
|
|
73
|
-
t = e.clientX, n = e.clientY, this.left += r * 2, this.top += i * 2;
|
|
74
|
-
}, document.onmouseup = () => {
|
|
75
|
-
document.onmousemove = null, document.onmouseup = null;
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
handleClick(e, t, n = !1) {
|
|
79
|
-
typeof this.ops.click == "function" ? this.ops.click(e, t) : n && window.open(e.url);
|
|
80
|
-
},
|
|
81
|
-
close() {
|
|
82
|
-
this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}, v = {
|
|
86
|
-
key: 0,
|
|
87
|
-
class: "avue-image-preview"
|
|
88
|
-
}, y = {
|
|
89
|
-
ref: "box",
|
|
90
|
-
class: "avue-image-preview__box"
|
|
91
|
-
}, b = ["id", "onClick"], x = { class: "el-image-viewer__btn el-image-viewer__actions" }, S = { class: "el-image-viewer__actions__inner" };
|
|
92
|
-
function C(e, t, g, _, C, w) {
|
|
93
|
-
let T = d("ElCarouselItem"), E = d("ElCarousel");
|
|
94
|
-
return C.isShow ? (l(), a("div", v, [
|
|
95
|
-
C.ops.modal ? (l(), a("div", {
|
|
96
|
-
key: 0,
|
|
97
|
-
class: "avue-image-preview__mask",
|
|
98
|
-
onClick: t[0] || (t[0] = (...e) => w.close && w.close(...e))
|
|
99
|
-
})) : i("v-if", !0),
|
|
100
|
-
o("span", {
|
|
101
|
-
class: "el-image-viewer__btn el-image-viewer__close",
|
|
102
|
-
onClick: t[1] || (t[1] = (...e) => w.close && w.close(...e))
|
|
103
|
-
}, [...t[10] || (t[10] = [o("i", { class: "el-icon-circle-close" }, null, -1)])]),
|
|
104
|
-
w.isRrrow ? (l(), a("span", {
|
|
105
|
-
key: 1,
|
|
106
|
-
class: "el-image-viewer__btn el-image-viewer__prev",
|
|
107
|
-
onClick: t[2] || (t[2] = (e) => w.handlePrev())
|
|
108
|
-
}, [...t[11] || (t[11] = [o("i", { class: "el-icon-arrow-left" }, null, -1)])])) : i("v-if", !0),
|
|
109
|
-
w.isRrrow ? (l(), a("span", {
|
|
110
|
-
key: 2,
|
|
111
|
-
class: "el-image-viewer__btn el-image-viewer__next",
|
|
112
|
-
onClick: t[3] || (t[3] = (e) => w.handleNext())
|
|
113
|
-
}, [...t[12] || (t[12] = [o("i", { class: "el-icon-arrow-right" }, null, -1)])])) : i("v-if", !0),
|
|
114
|
-
o("div", y, [s(E, {
|
|
115
|
-
ref: "carousel",
|
|
116
|
-
"show-indicators": !1,
|
|
117
|
-
"initial-index": C.index,
|
|
118
|
-
"initial-swipe": C.index,
|
|
119
|
-
interval: 0,
|
|
120
|
-
arrow: "never",
|
|
121
|
-
"indicator-position": "none",
|
|
122
|
-
onChange: w.handleChange
|
|
123
|
-
}, {
|
|
124
|
-
default: m(() => [(l(!0), a(n, null, u(C.datas, (e, n) => (l(), r(T, {
|
|
125
|
-
key: n,
|
|
126
|
-
onClick: t[4] || (t[4] = h((e) => C.ops.closeOnClickModal ? w.close() : "", ["self"]))
|
|
127
|
-
}, {
|
|
128
|
-
default: m(() => [w.isMediaType(e) ? (l(), r(f(w.isMediaType(e)), {
|
|
129
|
-
key: 0,
|
|
130
|
-
id: `avue-image-preview__${n}`,
|
|
131
|
-
ref_for: !0,
|
|
132
|
-
ref: "item",
|
|
133
|
-
src: e.url,
|
|
134
|
-
style: c([w.styleName, w.styleBoxName]),
|
|
135
|
-
controls: "controls",
|
|
136
|
-
ondragstart: "return false",
|
|
137
|
-
onClick: (t) => w.handleClick(e, n),
|
|
138
|
-
onMousedown: w.move
|
|
139
|
-
}, null, 40, [
|
|
140
|
-
"id",
|
|
141
|
-
"src",
|
|
142
|
-
"style",
|
|
143
|
-
"onClick",
|
|
144
|
-
"onMousedown"
|
|
145
|
-
])) : (l(), a("div", {
|
|
146
|
-
key: 1,
|
|
147
|
-
id: `avue-image-preview__${n}`,
|
|
148
|
-
class: "avue-image-preview__file",
|
|
149
|
-
onClick: (t) => w.handleClick(e, n, !0)
|
|
150
|
-
}, [o("span", null, [t[13] || (t[13] = o("i", { class: "el-icon-document" }, null, -1)), o("p", null, p(e.name || w.getName(e.url)), 1)])], 8, b))]),
|
|
151
|
-
_: 2
|
|
152
|
-
}, 1024))), 128))]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, [
|
|
155
|
-
"initial-index",
|
|
156
|
-
"initial-swipe",
|
|
157
|
-
"onChange"
|
|
158
|
-
])], 512),
|
|
159
|
-
o("div", x, [o("div", S, [
|
|
160
|
-
o("i", {
|
|
161
|
-
class: "el-icon-zoom-out",
|
|
162
|
-
onClick: t[5] || (t[5] = (...e) => w.subScale && w.subScale(...e))
|
|
163
|
-
}),
|
|
164
|
-
o("i", {
|
|
165
|
-
class: "el-icon-zoom-in",
|
|
166
|
-
onClick: t[6] || (t[6] = (...e) => w.addScale && w.addScale(...e))
|
|
167
|
-
}),
|
|
168
|
-
t[14] || (t[14] = o("i", { class: "el-image-viewer__actions__divider" }, null, -1)),
|
|
169
|
-
o("i", {
|
|
170
|
-
class: "el-icon-printer",
|
|
171
|
-
onClick: t[7] || (t[7] = (...e) => w.handlePrint && w.handlePrint(...e))
|
|
172
|
-
}),
|
|
173
|
-
t[15] || (t[15] = o("i", { class: "el-image-viewer__actions__divider" }, null, -1)),
|
|
174
|
-
o("i", {
|
|
175
|
-
class: "el-icon-refresh-left",
|
|
176
|
-
onClick: t[8] || (t[8] = (e) => C.rotate -= 90)
|
|
177
|
-
}),
|
|
178
|
-
o("i", {
|
|
179
|
-
class: "el-icon-refresh-right",
|
|
180
|
-
onClick: t[9] || (t[9] = (e) => C.rotate += 90)
|
|
181
|
-
})
|
|
182
|
-
])])
|
|
183
|
-
])) : i("v-if", !0);
|
|
184
|
-
}
|
|
185
|
-
var w = /* @__PURE__ */ e(_, [["render", C]]);
|
|
186
|
-
//#endregion
|
|
187
|
-
export { w as default };
|
|
1
|
+
import { t as e } from "../chunks/ImagePreview.ByEWJYdu.mjs";
|
|
2
|
+
export { e as default };
|