@web-utils/component 5.0.0-beta02 → 5.0.0-beta04
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/chunks/DialogForm.BzmXN481.mjs +37816 -0
- package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
- package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
- package/chunks/FyButton.DGd1yE_h.mjs +27 -0
- package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DmIW6Tjw.mjs} +500 -496
- package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.Dh77gj0Z.mjs} +158 -156
- package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
- package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
- package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
- package/chunks/dataformat.BpAzVPYN.mjs +165 -0
- package/chunks/{dic.C0abEij9.mjs → dic.N2PNjL8o.mjs} +1 -1
- package/chunks/{event.Dv4XTu8B.mjs → event.BevSLXu4.mjs} +10 -14
- package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
- package/dialog/index.d.ts +14 -0
- package/dialog/props.d.ts +101 -0
- package/dialog-form/index.mjs +2 -145
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/fy-array/index.mjs +7 -7
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +2 -2
- package/fy-date/style.css +1 -1
- package/fy-dynamic/index.mjs +17 -21
- package/fy-empty/index.mjs +4 -4
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-input/index.mjs +3 -3
- package/fy-input-color/index.mjs +2 -3
- package/fy-input-map/index.mjs +36 -34
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +40 -38
- package/fy-input-tree/index.mjs +19 -19
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +3 -3
- package/fy-rate/index.mjs +3 -3
- package/fy-select/index.mjs +31 -31
- package/fy-slider/index.mjs +5 -5
- package/fy-switch/index.mjs +3 -3
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +7 -7
- package/fy-title/index.mjs +2 -2
- package/fy-tree/index.mjs +76 -74
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/icon-temp/index.mjs +1 -1
- package/index.d.ts +2 -142
- package/index.mjs +31 -179
- package/monaco-editor/index.mjs +1 -1
- package/package.json +11 -13
- package/web-types.json +2461 -20206
- package/address-input/index.mjs +0 -76
- package/address-input/style.css +0 -1
- package/affix/index.mjs +0 -72
- package/affix/style.css +0 -1
- package/aside-menu/index.mjs +0 -20
- package/aside-menu/style.css +0 -1
- package/avatar/index.mjs +0 -94
- package/avatar/style.css +0 -1
- package/awesome-button/index.mjs +0 -55
- package/capsule-tab/index.mjs +0 -27
- package/capsule-tab/style.css +0 -1
- package/card/index.mjs +0 -86
- package/card/style.css +0 -1
- package/carousel/index.mjs +0 -46
- package/carousel/style.css +0 -1
- package/chat/index.mjs +0 -441
- package/chat/style.css +0 -1
- package/chunk-file-uploader/index.mjs +0 -2
- package/chunk-file-uploader/style.css +0 -1
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
- package/chunks/EditableTree.D0ByhRTi.mjs +0 -648
- package/chunks/ElementBaseInfo.B3pY8TkD.mjs +0 -209
- package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
- package/chunks/ElementForm.D_lXbe--.mjs +0 -627
- package/chunks/ElementListeners.Cufwd4bp.mjs +0 -656
- package/chunks/ElementMultiInstance.BhY8NY2z.mjs +0 -290
- package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +0 -51
- package/chunks/ElementProperties.BRafADXp.mjs +0 -196
- package/chunks/ElementTaskConfig.B6pqRir_.mjs +0 -446
- package/chunks/FlowCondition.Dvwji23j.mjs +0 -194
- package/chunks/FlowDesigner.LL-vXDIE.mjs +0 -5100
- package/chunks/FormBlock.Co7l6USP.mjs +0 -117
- package/chunks/FormCascader.DMY3uNc8.mjs +0 -1227
- package/chunks/FormInputTime.BC4FfWwY.mjs +0 -1774
- package/chunks/FormItem.BSXI2cZU.mjs +0 -89
- package/chunks/FormItemGroup.D2Htta7J.mjs +0 -149
- package/chunks/FormSelect.CY0K-izg.mjs +0 -1473
- package/chunks/FormSwitch.DLqFXaFF.mjs +0 -297
- package/chunks/FormTemp.PJFfNRls.mjs +0 -139
- package/chunks/FyFormDesign.BCxVyiWY.mjs +0 -5600
- package/chunks/ImagePreview.ByEWJYdu.mjs +0 -639
- package/chunks/Keyboard.4hi7CjGc.mjs +0 -379
- package/chunks/PageableTable.Ba3XSbZ5.mjs +0 -660
- package/chunks/RecordVideo.VRFTaHSp.mjs +0 -116
- package/chunks/SignalAndMessage.DYhKWs3X.mjs +0 -198
- package/chunks/SplitPane.Bwe5Rc0J.mjs +0 -219
- package/chunks/TableColumn.72HOXQkb.mjs +0 -186
- package/chunks/TableView.BxfsOAxU.mjs +0 -484
- package/chunks/Toolbar.BVziVmyT.mjs +0 -219
- package/chunks/UserTaskListeners.CkeyTpnn.mjs +0 -599
- package/chunks/VueCron.DEvY5-i7.mjs +0 -1823
- package/chunks/VueTreeSelect.C6Ycu28Z.mjs +0 -1873
- package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
- package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
- package/chunks/core.DXaMPWGV.mjs +0 -51
- package/chunks/dataformat.CteBVoOe.mjs +0 -144
- package/chunks/dictionary.BRhZD-WH.mjs +0 -19
- package/chunks/dictionary.CNNpjPL2.mjs +0 -87
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/focus-trap.FbvlqAGe.mjs +0 -211
- package/chunks/form-input.BUGZmAI1.mjs +0 -34
- package/chunks/form-item.Ca8U2bIR.mjs +0 -712
- package/chunks/form-pick.DT5kumy4.mjs +0 -7
- package/chunks/form-validate.CUvMwtPN.mjs +0 -11
- package/chunks/icon.CxCY22-F.mjs +0 -26
- package/chunks/icon.ym7735_x.mjs +0 -251
- package/chunks/init.6jGmuY99.mjs +0 -115
- package/chunks/input.C2GWsuXE.mjs +0 -547
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/message.C4NdvfbE.mjs +0 -400
- package/chunks/photo-swipe.BxnG4lip.mjs +0 -55
- package/chunks/radio.CeLeSOEo.mjs +0 -273
- package/chunks/scroll.DWjS-gnW.mjs +0 -28
- package/chunks/scrollbar.CAmrlKi9.mjs +0 -345
- package/chunks/slot.DT5QwXL-.mjs +0 -25
- package/chunks/style.BmlGmjpO.mjs +0 -325
- package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +0 -28
- package/chunks/tab-mixin.7zuMMM1E.mjs +0 -70
- package/chunks/tag.ZhEIVRpP.mjs +0 -141
- package/chunks/tooltip.DNiltmX1.mjs +0 -1939
- package/chunks/typescript.CLl-2siQ.mjs +0 -18
- package/chunks/use-aria.BW7nWOl1.mjs +0 -17
- package/chunks/use-composition.mUaomyno.mjs +0 -47
- package/chunks/use-deprecated.BfDSbZS9.mjs +0 -12
- package/chunks/use-empty-values.D8KYIiKR.mjs +0 -81
- package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
- package/chunks/use-global-config.DRovgom9.mjs +0 -57
- package/chunks/use-locale.Be9HCpTQ.mjs +0 -188
- package/chunks/util.Ce4MHRmD.mjs +0 -103
- package/chunks/utilSelf.BttmSVX6.mjs +0 -46
- package/chunks/utils.BGJfM4oG.mjs +0 -60
- package/chunks/utils.CSPl1l4f.mjs +0 -14
- package/chunks/validator.DuBSEj8O.mjs +0 -5
- package/chunks/vnode.C3PXzhmg.mjs +0 -14
- package/code-mirror-editor/index.mjs +0 -99
- package/code-mirror-editor/style.css +0 -1
- package/comment/index.mjs +0 -62
- package/comment/style.css +0 -1
- package/configComponents.d.ts +0 -29
- package/configComponents.mjs +0 -42
- package/confirm-button/index.mjs +0 -35
- package/confirmable/index.mjs +0 -8
- package/context-menu/index.mjs +0 -195
- package/context-menu/style.css +0 -1
- package/count-up/index.mjs +0 -99
- package/custom-scrollbar/index.mjs +0 -93
- package/data-box/index.mjs +0 -64
- package/data-box/style.css +0 -1
- package/data-card/index.mjs +0 -60
- package/data-card/style.css +0 -1
- package/data-card-text/index.mjs +0 -64
- package/data-card-text/style.css +0 -1
- package/data-display/index.mjs +0 -71
- package/data-display/style.css +0 -1
- package/data-icons/index.mjs +0 -70
- package/data-icons/style.css +0 -1
- package/data-imgtext/index.mjs +0 -67
- package/data-imgtext/style.css +0 -1
- package/data-operatext/index.mjs +0 -51
- package/data-operatext/style.css +0 -1
- package/data-panel/index.mjs +0 -57
- package/data-panel/style.css +0 -1
- package/data-pay/index.mjs +0 -105
- package/data-pay/style.css +0 -1
- package/data-price/index.mjs +0 -48
- package/data-price/style.css +0 -1
- package/data-progress/index.mjs +0 -67
- package/data-progress/style.css +0 -1
- package/data-rotate/index.mjs +0 -61
- package/data-rotate/style.css +0 -1
- package/data-table-picker/index.mjs +0 -120
- package/data-tabs/index.mjs +0 -67
- package/data-tabs/style.css +0 -1
- package/dynamic-table/index.mjs +0 -166
- package/dynamic-table/style.css +0 -1
- package/e-charts/index.mjs +0 -176
- package/e-charts/style.css +0 -1
- package/easy-popup/index.mjs +0 -92
- package/easy-popup/style.css +0 -1
- package/editable-progress/index.mjs +0 -113
- package/editable-progress/style.css +0 -1
- package/editable-tree/index.mjs +0 -2
- package/editable-tree/style.css +0 -1
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
- package/ellipsis/index.mjs +0 -124
- package/ellipsis/style.css +0 -1
- package/empty-view/index.mjs +0 -48
- package/empty-view/style.css +0 -1
- package/error-view/index.mjs +0 -39
- package/error-view/style.css +0 -1
- package/flex-column/index.mjs +0 -35
- package/flex-item/index.mjs +0 -61
- package/flex-row/index.mjs +0 -34
- package/flex-scroller/index.mjs +0 -29
- package/flex-scroller/style.css +0 -1
- package/flow/index.mjs +0 -240
- package/flow/style.css +0 -1
- package/flow-designer/index.mjs +0 -2
- package/flow-designer/style.css +0 -1
- package/flow-node/index.mjs +0 -56
- package/flow-viewer/index.mjs +0 -160
- package/flow-viewer/style.css +0 -1
- package/form-block/index.mjs +0 -2
- package/form-block/style.css +0 -1
- package/form-button/index.mjs +0 -36
- package/form-card/index.mjs +0 -14
- package/form-cascader/index.mjs +0 -2
- package/form-checkbox/index.mjs +0 -90
- package/form-checkbox-group/index.mjs +0 -162
- package/form-checkbox-group/style.css +0 -1
- package/form-date-picker/index.mjs +0 -156
- package/form-holder/index.mjs +0 -134
- package/form-holder/style.css +0 -1
- package/form-input/index.mjs +0 -114
- package/form-input-cron-expression/index.mjs +0 -98
- package/form-input-cron-expression/style.css +0 -1
- package/form-input-email/index.mjs +0 -66
- package/form-input-id-card/index.mjs +0 -74
- package/form-input-phone-number/index.mjs +0 -73
- package/form-input-tag/index.mjs +0 -89
- package/form-input-time/index.mjs +0 -2
- package/form-item/index.mjs +0 -2
- package/form-item/style.css +0 -1
- package/form-item-config-provider/index.mjs +0 -47
- package/form-item-group/index.mjs +0 -2
- package/form-item-group/style.css +0 -1
- package/form-radio-group/index.mjs +0 -162
- package/form-radio-group/style.css +0 -1
- package/form-select/index.mjs +0 -2
- package/form-select/style.css +0 -1
- package/form-switch/index.mjs +0 -2
- package/form-table/index.mjs +0 -132
- package/form-table-plus/index.mjs +0 -165
- package/form-textarea/index.mjs +0 -91
- package/form-tree-select/index.mjs +0 -90
- package/form-tree-select/style.css +0 -1
- package/form-tree-select-multiple/index.mjs +0 -93
- package/form-view/index.mjs +0 -280
- package/form-view/style.css +0 -1
- package/fy-article/index.mjs +0 -73
- package/fy-article/style.css +0 -1
- package/fy-code/index.mjs +0 -48
- package/fy-draggable/index.mjs +0 -323
- package/fy-draggable/style.css +0 -1
- package/fy-form-design/index.mjs +0 -2
- package/fy-form-design/style.css +0 -1
- package/fy-input-icon/index.mjs +0 -129
- package/fy-input-icon/style.css +0 -1
- package/fy-progress/index.mjs +0 -36
- package/guide-steps/index.mjs +0 -73
- package/guide-steps/style.css +0 -1
- package/helper-function.d.ts +0 -6
- package/helper-function.mjs +0 -49
- package/highlight-j-s/index.mjs +0 -51
- package/highlight-j-s/style.css +0 -1
- package/icon-card/index.mjs +0 -34
- package/icon-card/style.css +0 -1
- package/iframe-window/index.mjs +0 -39
- package/iframe-window/style.css +0 -1
- package/image-cropper/index.mjs +0 -171
- package/image-cropper/style.css +0 -1
- package/image-preview/index.mjs +0 -2
- package/image-preview/style.css +0 -1
- package/image-viewer/index.mjs +0 -70
- package/image-viewer/style.css +0 -1
- package/input-number-range/index.mjs +0 -78
- package/input-number-range/style.css +0 -1
- package/j-s-x-component/index.mjs +0 -14
- package/keyboard/index.mjs +0 -2
- package/keyboard/style.css +0 -1
- package/license/index.mjs +0 -106
- package/loading-view/index.mjs +0 -39
- package/loading-view/style.css +0 -1
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- package/name-avatar/index.mjs +0 -61
- package/name-avatar/style.css +0 -1
- package/nav-bar/index.mjs +0 -34
- package/nav-bar/style.css +0 -1
- package/not-implement/index.mjs +0 -10
- package/not-implement/style.css +0 -1
- package/notice/index.mjs +0 -100
- package/notice/style.css +0 -1
- package/page/index.mjs +0 -19
- package/page/style.css +0 -1
- package/page-header/index.mjs +0 -27
- package/page-header/style.css +0 -1
- package/page-index/index.mjs +0 -121
- package/page-index/style.css +0 -1
- package/page-index-top/index.mjs +0 -80
- package/page-skeleton/index.mjs +0 -49
- package/page-skeleton/style.css +0 -1
- package/page-skeleton-new/index.mjs +0 -79
- package/page-skeleton-new/style.css +0 -1
- package/pageable-table/index.mjs +0 -2
- package/pageable-table/style.css +0 -1
- package/pageable-view/index.mjs +0 -280
- package/pageable-view/style.css +0 -1
- package/photo-swipe/index.d.ts +0 -8
- package/photo-swipe/index.mjs +0 -33
- package/picker-table-view/index.mjs +0 -225
- package/present-view/index.mjs +0 -271
- package/present-view/style.css +0 -1
- package/queue/index.mjs +0 -46
- package/queue/style.css +0 -1
- package/record-video/index.mjs +0 -2
- package/record-video/style.css +0 -1
- package/resize-observer/index.mjs +0 -45
- package/resize-observer/style.css +0 -1
- package/search/index.mjs +0 -116
- package/search/style.css +0 -1
- package/sign/index.mjs +0 -104
- package/sign/style.css +0 -1
- package/sign-panel/index.mjs +0 -183
- package/sign-panel/style.css +0 -1
- package/skeleton/index.mjs +0 -51
- package/skeleton/style.css +0 -1
- package/skeleton-panel/index.mjs +0 -34
- package/skeleton-panel/style.css +0 -1
- package/split-pane/index.mjs +0 -3
- package/split-pane/style.css +0 -1
- package/stateful/index.mjs +0 -71
- package/stateful/style.css +0 -1
- package/static-pageable-table/index.mjs +0 -72
- package/static-pageable-table/style.css +0 -1
- package/sub-table/index.mjs +0 -508
- package/sub-table/style.css +0 -1
- package/sub-table-plus/index.mjs +0 -593
- package/sub-table-plus/style.css +0 -1
- package/swiper/index.mjs +0 -128
- package/swiper/style.css +0 -1
- package/tab/index.mjs +0 -117
- package/tab/style.css +0 -1
- package/tab-item/index.mjs +0 -49
- package/table-column/index.mjs +0 -2
- package/table-column/style.css +0 -1
- package/table-view/index.mjs +0 -3
- package/table-view/style.css +0 -1
- package/tabs-view/index.mjs +0 -109
- package/tabs-view/style.css +0 -1
- package/tag-render/index.mjs +0 -80
- package/tag-render/style.css +0 -1
- package/text-ellipsis/index.mjs +0 -95
- package/text-ellipsis/style.css +0 -1
- package/toolbar/index.mjs +0 -2
- package/toolbar/style.css +0 -1
- package/toolbar-button/index.mjs +0 -143
- package/utils/style.css +0 -1
- package/verify/index.mjs +0 -58
- package/verify/style.css +0 -1
- package/video/index.d.ts +0 -10
- package/vue-cron/index.mjs +0 -2
- package/vue-cron/style.css +0 -1
- package/vue-qr-code/index.mjs +0 -32
- package/vue-quill-editor/index.mjs +0 -127
- package/vue-quill-editor/style.css +0 -1
- package/vue-tags-input/index.mjs +0 -348
- package/vue-tags-input/style.css +0 -1
- package/vue-tree-select/index.mjs +0 -2
- package/vue-tree-select/style.css +0 -1
- package/vue-video-player/index.mjs +0 -136
- package/vue-video-player/style.css +0 -1
- package/watermark/index.mjs +0 -47
- package/watermark/style.css +0 -1
- package/x-input-tag/index.mjs +0 -145
- package/x-input-tag/style.css +0 -1
- /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
- /package/chunks/{packages.BLDb9e6G.mjs → packages.W76nKiMk.mjs} +0 -0
- /package/chunks/{permission.C-IUDxQQ.mjs → permission.ZYdXiCsn.mjs} +0 -0
package/toolbar-button/index.mjs
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { hasAuthority as t } from "../configComponents.mjs";
|
|
3
|
-
import { createBlock as n, createCommentVNode as r, createTextVNode as i, openBlock as a, renderSlot as o, resolveComponent as s, toDisplayString as c, withCtx as l } from "vue";
|
|
4
|
-
import { isArray as u, isFunction as d } from "@web-utils/core";
|
|
5
|
-
//#region src/components/toolbar/ToolbarButton.vue
|
|
6
|
-
var f = {
|
|
7
|
-
name: "ToolbarButton",
|
|
8
|
-
inject: { toolbar: { default: "" } },
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
props: {
|
|
11
|
-
label: String,
|
|
12
|
-
icon: String,
|
|
13
|
-
type: String,
|
|
14
|
-
size: { type: String },
|
|
15
|
-
loadable: Boolean,
|
|
16
|
-
disabled: Boolean,
|
|
17
|
-
footer: Boolean,
|
|
18
|
-
circle: Boolean,
|
|
19
|
-
plain: Boolean,
|
|
20
|
-
round: Boolean,
|
|
21
|
-
primary: Boolean,
|
|
22
|
-
warning: Boolean,
|
|
23
|
-
nativeType: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "button"
|
|
26
|
-
},
|
|
27
|
-
privilege: String,
|
|
28
|
-
condition: {},
|
|
29
|
-
conditionTips: String,
|
|
30
|
-
confirm: Boolean,
|
|
31
|
-
confirmTips: String,
|
|
32
|
-
beforeExecute: Function,
|
|
33
|
-
afterExecute: Function,
|
|
34
|
-
route: [String, Object],
|
|
35
|
-
title: String,
|
|
36
|
-
cancelButtonText: String,
|
|
37
|
-
confirmButtonText: String
|
|
38
|
-
},
|
|
39
|
-
data() {
|
|
40
|
-
return { loading: !1 };
|
|
41
|
-
},
|
|
42
|
-
computed: { isVisible() {
|
|
43
|
-
return this.privilege ? t(this.privilege) : !0;
|
|
44
|
-
} },
|
|
45
|
-
methods: { async onClick(e) {
|
|
46
|
-
try {
|
|
47
|
-
if (d(this.beforeExecute) && await this.beforeExecute() === !1) return;
|
|
48
|
-
if (this.conditionTips) {
|
|
49
|
-
let e = !0;
|
|
50
|
-
if (e = u(this.condition) ? this.condition.length <= 0 : d(this.condition) ? !this.condition() : !this.condition, e) {
|
|
51
|
-
this.$message.warning(this.conditionTips);
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (this.confirm || this.confirmTips) try {
|
|
56
|
-
await this.$confirm(this.confirmTips || "你确定要删除该记录吗?", "系统提示", {
|
|
57
|
-
type: "warning",
|
|
58
|
-
distinguishCancelAndClose: !0,
|
|
59
|
-
cancelButtonText: this.cancelButtonText,
|
|
60
|
-
confirmButtonText: this.confirmButtonText
|
|
61
|
-
});
|
|
62
|
-
} catch (e) {
|
|
63
|
-
if (e === "cancel") {
|
|
64
|
-
let { cancel: t } = this.$listeners;
|
|
65
|
-
d(t) && await t(e);
|
|
66
|
-
} else if (e === "close") {
|
|
67
|
-
let { close: t } = this.$listeners;
|
|
68
|
-
d(t) && await t(e);
|
|
69
|
-
}
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
this.loading = !0;
|
|
73
|
-
let t;
|
|
74
|
-
if (this.route) await this.$router.push(this.route);
|
|
75
|
-
else {
|
|
76
|
-
let { click: n } = this.$listeners;
|
|
77
|
-
if (d(n)) try {
|
|
78
|
-
t = await n(e);
|
|
79
|
-
} catch {}
|
|
80
|
-
}
|
|
81
|
-
this.loading = !1, d(this.afterExecute) && await this.afterExecute(t);
|
|
82
|
-
} catch {}
|
|
83
|
-
} }
|
|
84
|
-
};
|
|
85
|
-
function p(e, t, u, d, f, p) {
|
|
86
|
-
let m = s("ElButton");
|
|
87
|
-
return p.isVisible && (u.footer || p.toolbar.footer) ? (a(), n(m, {
|
|
88
|
-
key: 0,
|
|
89
|
-
disabled: u.disabled || f.loading,
|
|
90
|
-
circle: u.circle,
|
|
91
|
-
plain: u.plain,
|
|
92
|
-
size: u.size,
|
|
93
|
-
loading: u.loadable ? f.loading : !1,
|
|
94
|
-
type: u.primary ? "primary" : u.warning ? "warning" : u.type,
|
|
95
|
-
round: u.round,
|
|
96
|
-
"native-type": u.nativeType,
|
|
97
|
-
onClick: p.onClick
|
|
98
|
-
}, {
|
|
99
|
-
default: l(() => [u.circle ? r("v-if", !0) : o(e.$slots, "default", { key: 0 }, () => [i(c(u.label), 1)])]),
|
|
100
|
-
_: 3
|
|
101
|
-
}, 8, [
|
|
102
|
-
"disabled",
|
|
103
|
-
"circle",
|
|
104
|
-
"plain",
|
|
105
|
-
"size",
|
|
106
|
-
"loading",
|
|
107
|
-
"type",
|
|
108
|
-
"round",
|
|
109
|
-
"native-type",
|
|
110
|
-
"onClick"
|
|
111
|
-
])) : p.isVisible ? (a(), n(m, {
|
|
112
|
-
key: 1,
|
|
113
|
-
disabled: u.disabled || f.loading,
|
|
114
|
-
plain: u.plain,
|
|
115
|
-
size: u.size,
|
|
116
|
-
icon: u.icon,
|
|
117
|
-
"native-type": u.nativeType,
|
|
118
|
-
circle: u.circle,
|
|
119
|
-
loading: u.loadable ? f.loading : !1,
|
|
120
|
-
type: u.primary ? "primary" : u.warning ? "warning" : u.type,
|
|
121
|
-
round: u.round,
|
|
122
|
-
title: u.title,
|
|
123
|
-
onClick: p.onClick
|
|
124
|
-
}, {
|
|
125
|
-
default: l(() => [u.circle ? r("v-if", !0) : o(e.$slots, "default", { key: 0 }, () => [i(c(u.label), 1)])]),
|
|
126
|
-
_: 3
|
|
127
|
-
}, 8, [
|
|
128
|
-
"disabled",
|
|
129
|
-
"plain",
|
|
130
|
-
"size",
|
|
131
|
-
"icon",
|
|
132
|
-
"native-type",
|
|
133
|
-
"circle",
|
|
134
|
-
"loading",
|
|
135
|
-
"type",
|
|
136
|
-
"round",
|
|
137
|
-
"title",
|
|
138
|
-
"onClick"
|
|
139
|
-
])) : r("v-if", !0);
|
|
140
|
-
}
|
|
141
|
-
var m = /* @__PURE__ */ e(f, [["render", p]]);
|
|
142
|
-
//#endregion
|
|
143
|
-
export { m as default };
|
package/utils/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.border-bottom{border-bottom:1px solid #d7dae0}.clear-fix:after{clear:both;visibility:hidden;content:" ";height:0;display:block}.flex-row{flex-direction:row;flex-shrink:0;display:flex}.flex-row.vertical-center{align-items:center}.flex-row.vertical-start{align-items:flex-start}.flex-row.horizon-center{justify-content:center}.text-center{text-align:center}.flex-column{flex-direction:column;display:flex}.flex-column.vertical-center{justify-content:center}.flex-column.horizon-center{align-items:center}.flex-item,.flex-item-relative{flex:auto}.flex-item-relative{position:relative}.flex-item-relative .flex-content{position:absolute;top:0;bottom:0;left:0;right:0}.flex-not-shrink{flex-shrink:0}body{font-family:Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}*{outline:none}.avue-canvas{display:none}.avue-ghost{opacity:.5;background:#c8ebfb}.avue--disabled{color:#ccc}.avue--detail .hover-row td{background-color:#fff!important}.avue--detail .avue-group__header{border-bottom:1px solid #eee;padding-left:10px}.avue--detail .el-collapse-item__header{margin-bottom:0}.avue--detail .el-input.is-disabled .el-input__inner,.avue--detail .el-textarea.is-disabled .el-textarea__inner,.avue--detail .el-range-editor.is-disabled,.avue--detail .el-range-editor.is-disabled input{color:#606266;background-color:#fff;padding-left:0}.avue--detail .el-input-number__decrease,.avue--detail .el-input-number__increase{display:none}.avue--detail .el-input-group__append,.avue--detail .el-input-group__prepend{background-color:#0000;border:none}.avue--detail .el-input__suffix,.avue--detail .el-input__prefix{display:none}.avue--detail .el-input__inner,.avue--detail .el-textarea__inner{border:none}.avue--detail .el-input__inner::placeholder,.avue--detail .el-textarea__inner::placeholder{color:#0000!important}.avue--detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#409eff;border-color:#409eff}.avue--detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:#fff}.avue--detail .el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#409eff;border-color:#409eff}.avue--detail .el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:#fff}.avue--detail .el-checkbox__input.is-disabled+span.el-checkbox__label,.avue--detail .el-radio__input.is-disabled+span.el-radio__label{color:#606266}.avue--detail .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before,.avue--detail .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before{display:none}.avue--detail .el-row{border-top:1px solid #ebeef5;border-left:1px solid #ebeef5}.avue--detail .el-col{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;margin:0!important;padding:0!important}.avue--detail .el-form-item--medium.el-form-item,.avue--detail .el-form-item--mini.el-form-item,.avue--detail .el-form-item--small.el-form-item{background:#fafafa;margin:0}.avue--detail .el-form-item__label,.avue--detail .el-form-item__content{padding:2px 0}.avue--detail .el-form-item__label{box-sizing:border-box;color:#909399;padding-right:20px}.avue--detail .el-tag{margin-left:0!important;margin-right:6px!important}.avue--detail .avue-crud .el-form-item__content{border:none}.avue--detail .el-form-item__content{box-sizing:border-box;background-color:#fff;border-left:1px solid #ebeef5;padding-left:20px}.avue--detail__column .el-form-item{background-color:#fff}.avue--detail__column .el-form-item__label{padding-right:12px}.avue--detail__column .el-form-item__content{border-left:none;padding-left:0}.avue-grid{background-image:linear-gradient(#0000001a 1px,#0000 0),linear-gradient(90deg,#0000001a 1px,#0000 0);background-size:20px 20px,20px 20px;width:100%;height:100%;position:absolute;top:0;left:0}.avue-mask{z-index:1000;background-color:#37373799;height:100%;position:fixed;top:0;bottom:0;left:0;right:0}.avue--card{border-radius:5px;box-shadow:2px 1px 8px #00000026}.avue-dialog{overflow:visible}.avue-dialog .el-dialog{border-radius:2px;flex-direction:column;max-width:calc(100% - 100px);min-height:180px;max-height:calc(100% - 200px);display:flex;position:absolute;top:0;left:50%;transform:translate(-50%)}.avue-dialog .el-dialog__header{border-bottom:1px solid #f0f0f0;min-height:20px;padding:16px 24px}.avue-dialog .el-dialog__title,.avue-dialog .el-drawer__header{color:#000000d9;word-wrap:break-word;font-weight:500}.avue-dialog .el-dialog__body{margin-bottom:50px;padding:30px 20px 20px}.avue-dialog .el-dialog .el-dialog__body{flex:1;overflow:hidden auto}.avue-dialog .el-drawer{flex-direction:column;display:flex;position:absolute;top:0;right:0}.avue-dialog .el-drawer__header{border-bottom:1px solid #f0f0f0;min-height:20px;margin:0;padding:16px 10px 16px 24px}.avue-dialog .el-drawer,.avue-dialog .el-drawer__body{flex:1;overflow:auto}.avue-dialog__footer{z-index:4;box-sizing:border-box;text-align:right;background-color:#fff;border-top:1px solid #f0f0f0;width:100%;padding:0 10px;display:block}.avue-dialog__footer>*{margin-top:10px;margin-bottom:10px}.avue-dialog__footer--left{text-align:left}.avue-dialog__footer--center{text-align:center}.avue-dialog--fullscreen .el-dialog{max-width:100%;height:100%;max-height:100%;top:0;left:0;transform:translate(0);width:100%!important}.avue-dialog--top .el-dialog{top:15%}.avue-dialog--none .el-dialog__body{margin-bottom:0}.avue-opacity{opacity:0}.avue-opacity--active{opacity:1}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.flow-background-image{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+)}.avue-crud .el-select,.avue-crud .el-date-editor.el-input,.avue-crud .el-date-editor.el-input__inner,.avue-crud .el-cascader,.avue-crud .avue-input-number,.avue-form .el-select,.avue-form .el-date-editor.el-input,.avue-form .el-date-editor.el-input__inner,.avue-form .el-cascader,.avue-form .avue-input-number{width:100%!important}.avue-crud .el-form-item.el-form-item--small .el-input-group--append .el-input__inner,.avue-form .el-form-item.el-form-item--small .el-input-group--append .el-input__inner{height:33px;line-height:33px}.avue-crud .el-input-number .el-input__inner,.avue-form .el-input-number .el-input__inner{text-align:left}.avue-crud .avue-crud__left .el-button+.el-button,.avue-crud .avue-crud__right .el-button+.el-button,.avue-form .avue-crud__left .el-button+.el-button,.avue-form .avue-crud__right .el-button+.el-button{margin-left:0}.avue-crud .avue-crud__left .el-button,.avue-crud .avue-crud__right .el-button,.avue-form .avue-crud__left .el-button,.avue-form .avue-crud__right .el-button{margin-bottom:0;margin-right:5px}.avue-crud .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,.avue-form .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{color:#409eff}.avue-crud .el-tree-node__label,.avue-form .el-tree-node__label{margin-left:8px}.avue-crud .el-input__inner,.avue-form .el-input__inner{height:38px;line-height:38px}.avue-crud .el-range-editor--small,.avue-form .el-range-editor--small{height:32px;line-height:32px}.avue-crud .el-range-editor--mini,.avue-form .el-range-editor--mini{height:28px;line-height:28px}.avue-crud .el-input--small input,.avue-form .el-input--small input{height:32px;line-height:32px}.avue-crud .el-input--mini input,.avue-form .el-input--mini input{height:28px;line-height:28px}.avue-crud .el-table--medium td,.avue-form .el-table--medium td{padding:7px 0!important}.avue-crud .el-tooltip__popper,.avue-form .el-tooltip__popper{max-width:60%}.avue-crud .el-dropdown-menu__item,.avue-form .el-dropdown-menu__item{line-height:25px}.avue-crud .el-table-filter__list,.avue-form .el-table-filter__list{width:100%;height:300px;overflow-y:auto}@media screen and (max-width:992px){.el-dialog__footer{justify-content:center;display:flex}.el-button+.el-button{margin-left:0}.el-upload-list--picture-card .el-upload-list__item,.avue-upload__avatar,.el-upload--picture-card,.avue-upload__icon{width:100px;height:100px;line-height:100px}.avue-tip{display:none}.avue-crud__menu{display:block!important}.avue-crud .el-form-item{width:100%}.avue-crud .el-form-item__label{flex:1}.avue-crud .el-form-item__content{flex:5}.avue-crud__searchMenu{text-align:center}.avue-crud__title{display:block!important}.avue-crud__title p{margin-bottom:20px}.avue-crud__title .avue-date__group{justify-content:center}.avue-crud__title .avue-date__date{display:none}.avue-crud__title .avue-date__radio{width:100%}.avue-crud__title .avue-date__radio .el-radio-group{display:flex}.avue-crud__title .avue-date__radio .el-radio-group label,.avue-crud__title .avue-date__radio .el-radio-group .el-radio-button__inner{width:100%}.avue-crud__title .avue-date__radio .el-radio-button:last-child .el-radio-button__inner{border-right:1px solid #dcdfe6;border-radius:0 4px 4px 0}}
|
package/verify/index.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { x as t } from "../chunks/util.g-WQEec9.mjs";
|
|
3
|
-
import { Fragment as n, createElementBlock as r, normalizeStyle as i, openBlock as a, renderList as o, toDisplayString as s } from "vue";
|
|
4
|
-
//#region src/components/verify/Verify.vue
|
|
5
|
-
var c = {
|
|
6
|
-
name: "Verify",
|
|
7
|
-
props: {
|
|
8
|
-
size: {
|
|
9
|
-
type: [Number, String],
|
|
10
|
-
default: 50
|
|
11
|
-
},
|
|
12
|
-
modelValue: [Number, String],
|
|
13
|
-
len: {
|
|
14
|
-
type: [Number, String],
|
|
15
|
-
default: 6
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["change", "update:modelValue"],
|
|
19
|
-
computed: {
|
|
20
|
-
data: {
|
|
21
|
-
get() {
|
|
22
|
-
return this.modelValue || "";
|
|
23
|
-
},
|
|
24
|
-
set(e) {
|
|
25
|
-
let t = `${e}`;
|
|
26
|
-
this.$emit("update:modelValue", t), this.$emit("change", t);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
styleName() {
|
|
30
|
-
return {
|
|
31
|
-
padding: `${t(this.size / 7)} ${t(this.size / 4)}`,
|
|
32
|
-
fontSize: t(this.size)
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
list() {
|
|
36
|
-
return this.data.split("");
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
created() {
|
|
40
|
-
this.random();
|
|
41
|
-
},
|
|
42
|
-
methods: { random() {
|
|
43
|
-
let e = this.len;
|
|
44
|
-
if (e > 21) return null;
|
|
45
|
-
let t = RegExp(`(\\d{${e}})(\\.|$)`);
|
|
46
|
-
this.data = (Array(e - 1).join(0) + 10 ** e * Math.random()).match(t)[1];
|
|
47
|
-
} }
|
|
48
|
-
}, l = { class: "avue-verify" };
|
|
49
|
-
function u(e, t, c, u, d, f) {
|
|
50
|
-
return a(), r("div", l, [(a(!0), r(n, null, o(f.list, (e, t) => (a(), r("span", {
|
|
51
|
-
key: t,
|
|
52
|
-
class: "avue-verify__item",
|
|
53
|
-
style: i(f.styleName)
|
|
54
|
-
}, s(e), 5))), 128))]);
|
|
55
|
-
}
|
|
56
|
-
var d = /* @__PURE__ */ e(c, [["render", u]]);
|
|
57
|
-
//#endregion
|
|
58
|
-
export { d as default };
|
package/verify/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avue-verify__item{box-sizing:border-box;text-align:center;border:1px solid #e1e1e1;margin:0 4px;padding:5px 10px;font-size:64px;display:inline-block}
|
package/video/index.d.ts
DELETED
package/vue-cron/index.mjs
DELETED
package/vue-cron/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vue-cron{min-width:600px}.vue-cron .language{z-index:1;position:absolute;right:25px}.vue-cron .el-tabs{box-shadow:none}.vue-cron .el-tabs .el-tabs__content{padding:0 14px}.vue-cron .tabBody{display:block}.vue-cron .tabBody .long .el-select{width:350px}.vue-cron .tabBody .el-input-number{width:110px}.vue-cron .tabBody .el-radio{margin-top:10px;display:block}.vue-cron .tabBody .el-radio:last-child{margin-bottom:10px}.vue-cron .bottom{text-align:center;width:100%;margin-top:5px;position:relative}.vue-cron .cron-expression{border:1px solid #ccc;border-radius:4px;margin-top:20px;padding:14px;position:relative}.vue-cron .cron-expression .title{background:#fff;padding:10px 40px;position:absolute;top:-50%;left:50%;transform:translate(-50%,60%)}.vue-cron .cron-expression .field-name{text-align:center;margin-bottom:6px}.vue-cron .cron-expression .field-value{text-align:center;border:1px solid #ccc;border-radius:4px;min-width:20px;padding:6px}.vue-cron .cron-expression .field-value.highlight{color:#ff8100;border-color:#ff8100}.vue-cron .cron-expression .field{justify-content:center;align-items:center;padding-left:10px;padding-right:10px}
|
package/vue-qr-code/index.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { h as e } from "vue";
|
|
2
|
-
import { drawToCanvas as t, genDataURL as n, genSVG as r } from "@web-utils/integrations/qrcode";
|
|
3
|
-
//#region src/components/vue-qrcode/VueQrCode.vue
|
|
4
|
-
var i = {
|
|
5
|
-
name: "VueQrCode",
|
|
6
|
-
props: {
|
|
7
|
-
text: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "0"
|
|
10
|
-
},
|
|
11
|
-
options: Object,
|
|
12
|
-
tag: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "canvas"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
watch: { $props: {
|
|
18
|
-
deep: !0,
|
|
19
|
-
immediate: !0,
|
|
20
|
-
handler: "generate"
|
|
21
|
-
} },
|
|
22
|
-
methods: { async generate() {
|
|
23
|
-
await this.$nextTick();
|
|
24
|
-
let { options: e, tag: i } = this;
|
|
25
|
-
i === "canvas" ? await t(this.$el, this.text, e) : i === "img" ? this.$el.src = await n(this.text, e) : this.$el.innerHTML = await r(this.text, e);
|
|
26
|
-
} },
|
|
27
|
-
render() {
|
|
28
|
-
return e(this.tag, this.$slots.default);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { i as default };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { createElementBlock as t, createElementVNode as n, openBlock as r, renderSlot as i } from "vue";
|
|
3
|
-
import "quill/dist/quill.core.css";
|
|
4
|
-
import "quill/dist/quill.snow.css";
|
|
5
|
-
import "quill/dist/quill.bubble.css";
|
|
6
|
-
import a from "quill";
|
|
7
|
-
//#region src/components/vue-quill-editor/VueQuillEditor.vue
|
|
8
|
-
var o = {
|
|
9
|
-
theme: "snow",
|
|
10
|
-
boundary: document.body,
|
|
11
|
-
modules: { toolbar: [
|
|
12
|
-
[
|
|
13
|
-
"bold",
|
|
14
|
-
"italic",
|
|
15
|
-
"underline",
|
|
16
|
-
"strike"
|
|
17
|
-
],
|
|
18
|
-
["blockquote", "code-block"],
|
|
19
|
-
[{ header: 1 }, { header: 2 }],
|
|
20
|
-
[{ list: "ordered" }, { list: "bullet" }],
|
|
21
|
-
[{ script: "sub" }, { script: "super" }],
|
|
22
|
-
[{ indent: "-1" }, { indent: "+1" }],
|
|
23
|
-
[{ direction: "rtl" }],
|
|
24
|
-
[{ size: [
|
|
25
|
-
"small",
|
|
26
|
-
!1,
|
|
27
|
-
"large",
|
|
28
|
-
"huge"
|
|
29
|
-
] }],
|
|
30
|
-
[{ header: [
|
|
31
|
-
1,
|
|
32
|
-
2,
|
|
33
|
-
3,
|
|
34
|
-
4,
|
|
35
|
-
5,
|
|
36
|
-
6,
|
|
37
|
-
!1
|
|
38
|
-
] }],
|
|
39
|
-
[{ color: [] }, { background: [] }],
|
|
40
|
-
[{ font: [] }],
|
|
41
|
-
[{ align: [] }],
|
|
42
|
-
["clean"],
|
|
43
|
-
[
|
|
44
|
-
"link",
|
|
45
|
-
"image",
|
|
46
|
-
"video"
|
|
47
|
-
]
|
|
48
|
-
] },
|
|
49
|
-
placeholder: "Insert text here ...",
|
|
50
|
-
readOnly: !1
|
|
51
|
-
}, s = {
|
|
52
|
-
name: "VueQuillEditor",
|
|
53
|
-
props: {
|
|
54
|
-
content: String,
|
|
55
|
-
modelValue: String,
|
|
56
|
-
disabled: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !1
|
|
59
|
-
},
|
|
60
|
-
options: {
|
|
61
|
-
type: Object,
|
|
62
|
-
required: !1,
|
|
63
|
-
default: () => ({})
|
|
64
|
-
},
|
|
65
|
-
globalOptions: {
|
|
66
|
-
type: Object,
|
|
67
|
-
required: !1,
|
|
68
|
-
default: () => ({})
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
emits: [
|
|
72
|
-
"ready",
|
|
73
|
-
"change",
|
|
74
|
-
"update:modelValue",
|
|
75
|
-
"blur",
|
|
76
|
-
"focus"
|
|
77
|
-
],
|
|
78
|
-
data() {
|
|
79
|
-
return {
|
|
80
|
-
innerOptions: {},
|
|
81
|
-
innerContent: "",
|
|
82
|
-
defaultOptions: o
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
watch: {
|
|
86
|
-
content(e) {
|
|
87
|
-
this.quill && (e && e !== this.innerContent ? (this.innerContent = e, this.quill.pasteHTML(e)) : e || this.quill.setText(""));
|
|
88
|
-
},
|
|
89
|
-
modelValue(e) {
|
|
90
|
-
this.quill && (e && e !== this.innerContent ? (this.innerContent = e, this.quill.pasteHTML(e)) : e || this.quill.setText(""));
|
|
91
|
-
},
|
|
92
|
-
disabled(e) {
|
|
93
|
-
this.quill && this.quill.enable(!e);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
mounted() {
|
|
97
|
-
this.initialize();
|
|
98
|
-
},
|
|
99
|
-
beforeUnmount() {
|
|
100
|
-
this.quill = null, delete this.quill;
|
|
101
|
-
},
|
|
102
|
-
methods: { initialize() {
|
|
103
|
-
this.$el && (this.innerOptions = {
|
|
104
|
-
...this.defaultOptions,
|
|
105
|
-
...this.globalOptions,
|
|
106
|
-
...this.options
|
|
107
|
-
}, this.quill = new a(this.$refs.editor, this.innerOptions), this.quill.enable(!1), (this.modelValue || this.content) && this.quill.pasteHTML(this.modelValue || this.content), this.disabled || this.quill.enable(!0), this.quill.on("selection-change", (e) => {
|
|
108
|
-
e ? this.$emit("focus", this.quill) : this.$emit("blur", this.quill);
|
|
109
|
-
}), this.quill.on("text-change", () => {
|
|
110
|
-
let e = this.$refs.editor.children[0].innerHTML, t = this.quill, n = this.quill.getText();
|
|
111
|
-
e === "<p><br></p>" && (e = ""), this.innerContent = e, this.$emit("update:modelValue", this.innerContent), this.$emit("change", {
|
|
112
|
-
html: e,
|
|
113
|
-
text: n,
|
|
114
|
-
quill: t
|
|
115
|
-
});
|
|
116
|
-
}), this.$emit("ready", this.quill));
|
|
117
|
-
} }
|
|
118
|
-
}, c = { class: "vue-quill-editor" }, l = {
|
|
119
|
-
ref: "editor",
|
|
120
|
-
class: "quill-editor"
|
|
121
|
-
};
|
|
122
|
-
function u(e, a, o, s, u, d) {
|
|
123
|
-
return r(), t("div", c, [i(e.$slots, "toolbar"), n("div", l, null, 512)]);
|
|
124
|
-
}
|
|
125
|
-
var d = /* @__PURE__ */ e(s, [["render", u]]);
|
|
126
|
-
//#endregion
|
|
127
|
-
export { d as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vue-quill-editor .quill-editor{min-height:400px}
|