@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
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import "../chunks/install.yLcn5MLL.mjs";
|
|
2
|
-
import { t as e } from "../chunks/message.C4NdvfbE.mjs";
|
|
3
|
-
import { l as t } from "../chunks/util.Ce4MHRmD.mjs";
|
|
4
|
-
import { createBlock as n, createElementVNode as r, createSlots as i, createTextVNode as a, createVNode as o, onMounted as s, openBlock as c, ref as l, renderSlot as u, resolveComponent as d, toDisplayString as f, withCtx as p, withModifiers as m } from "vue";
|
|
5
|
-
import { isFunction as h, isPlainObject as g } from "@web-utils/core";
|
|
6
|
-
import { cloneDeep as _ } from "@web-utils/integrations/lodash";
|
|
7
|
-
//#region src/components/form/PickerTableView.vue
|
|
8
|
-
var v = { style: {
|
|
9
|
-
padding: "10px 0",
|
|
10
|
-
"font-size": "16px",
|
|
11
|
-
"border-bottom": "1px solid #eee"
|
|
12
|
-
} }, y = /* @__PURE__ */ Object.assign({ name: "PickerTableView" }, {
|
|
13
|
-
props: {
|
|
14
|
-
title: String,
|
|
15
|
-
treeTitle: String,
|
|
16
|
-
useTree: Boolean,
|
|
17
|
-
expandFirstNode: Boolean,
|
|
18
|
-
nodeKey: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "id"
|
|
21
|
-
},
|
|
22
|
-
width: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "80%"
|
|
25
|
-
},
|
|
26
|
-
height: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "90vh"
|
|
29
|
-
},
|
|
30
|
-
visible: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
multiple: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
},
|
|
38
|
-
descs: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default: () => []
|
|
41
|
-
},
|
|
42
|
-
model: Object,
|
|
43
|
-
tableApi: Function,
|
|
44
|
-
treeApi: Function,
|
|
45
|
-
onNodeClick: Function,
|
|
46
|
-
treeProps: Object,
|
|
47
|
-
rowKey: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "id"
|
|
50
|
-
},
|
|
51
|
-
customRootNode: [Object, Function],
|
|
52
|
-
expandOnClickNode: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: !0
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
emits: [
|
|
58
|
-
"cancel",
|
|
59
|
-
"confirm",
|
|
60
|
-
"update:visible"
|
|
61
|
-
],
|
|
62
|
-
setup(y, { expose: b, emit: x }) {
|
|
63
|
-
let S = y, C = x, w = l([]), T = l(null), E = l([]), D = l([]), O = l(null), k = l(null), A = l(null), j = l(null), M = (e) => {
|
|
64
|
-
w.value = e;
|
|
65
|
-
}, N = (e) => {
|
|
66
|
-
T.value = e;
|
|
67
|
-
}, P = () => {
|
|
68
|
-
O.value.reload();
|
|
69
|
-
}, F = () => {
|
|
70
|
-
k.value.resetFields(), P();
|
|
71
|
-
}, I = () => {
|
|
72
|
-
A.value.hide();
|
|
73
|
-
}, L = () => {
|
|
74
|
-
C("cancel"), I();
|
|
75
|
-
}, R = () => {
|
|
76
|
-
let n;
|
|
77
|
-
if (S.multiple) {
|
|
78
|
-
var r;
|
|
79
|
-
(r = w.value) != null && r.length && (n = w.value);
|
|
80
|
-
} else T.value && (n = [T.value]);
|
|
81
|
-
if (!n.length) {
|
|
82
|
-
t(e).warning("请选择!");
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
C("confirm", n), I();
|
|
86
|
-
}, z = (e) => {
|
|
87
|
-
C("update:visible", e);
|
|
88
|
-
};
|
|
89
|
-
return s(async () => {
|
|
90
|
-
if (S.useTree) {
|
|
91
|
-
let t = (await S.treeApi()).data.data;
|
|
92
|
-
if (g(S.customRootNode)) {
|
|
93
|
-
let e = _(S.customRootNode);
|
|
94
|
-
e[S.treeProps.children || "children"] = t, E.value = [e];
|
|
95
|
-
} else if (h(S.customRootNode)) {
|
|
96
|
-
let e = S.customRootNode(t);
|
|
97
|
-
e[S.treeProps.children || "children"] = t, E.value = g(e) ? [e] : e;
|
|
98
|
-
} else E.value = t;
|
|
99
|
-
if (S.expandFirstNode) {
|
|
100
|
-
var e;
|
|
101
|
-
D.value = [(e = E.value[0]) == null ? void 0 : e.id];
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}), b({ search: P }), (e, t) => {
|
|
105
|
-
let s = d("ElTree"), l = d("ElButton"), h = d("FormItem"), g = d("ElRow"), _ = d("FormItemConfigProvider"), b = d("FormHolder"), x = d("PageableTable"), S = d("SkeletonPanel"), C = d("ElementDialog");
|
|
106
|
-
return c(), n(C, {
|
|
107
|
-
ref_key: "dialog",
|
|
108
|
-
ref: A,
|
|
109
|
-
visible: y.visible,
|
|
110
|
-
height: y.height,
|
|
111
|
-
width: y.width,
|
|
112
|
-
"body-padding": !1,
|
|
113
|
-
"show-full-screen": "",
|
|
114
|
-
title: y.title,
|
|
115
|
-
"onUpdate:visible": z
|
|
116
|
-
}, {
|
|
117
|
-
footer: p(() => [o(l, {
|
|
118
|
-
size: "default",
|
|
119
|
-
type: "primary",
|
|
120
|
-
onClick: R
|
|
121
|
-
}, {
|
|
122
|
-
default: p(() => [...t[2] || (t[2] = [a("确定", -1)])]),
|
|
123
|
-
_: 1
|
|
124
|
-
}), o(l, {
|
|
125
|
-
size: "default",
|
|
126
|
-
onClick: L
|
|
127
|
-
}, {
|
|
128
|
-
default: p(() => [...t[3] || (t[3] = [a("取消", -1)])]),
|
|
129
|
-
_: 1
|
|
130
|
-
})]),
|
|
131
|
-
default: p(() => [o(S, {
|
|
132
|
-
"flex-column": "",
|
|
133
|
-
"use-tab": !1,
|
|
134
|
-
"hide-left": !y.useTree
|
|
135
|
-
}, i({
|
|
136
|
-
default: p(() => [o(b, {
|
|
137
|
-
ref_key: "form",
|
|
138
|
-
ref: k,
|
|
139
|
-
model: y.model,
|
|
140
|
-
style: { padding: "10px" },
|
|
141
|
-
"not-table-form": "",
|
|
142
|
-
onSubmit: m(P, ["prevent"])
|
|
143
|
-
}, {
|
|
144
|
-
default: p(() => [o(_, { reactive: "" }, {
|
|
145
|
-
default: p(() => [o(g, { gutter: 0 }, {
|
|
146
|
-
default: p(() => [u(e.$slots, "search-form"), o(h, {
|
|
147
|
-
"hide-label": "",
|
|
148
|
-
span: 24,
|
|
149
|
-
style: { "text-align": "right" }
|
|
150
|
-
}, {
|
|
151
|
-
default: p(() => [o(l, {
|
|
152
|
-
type: "primary",
|
|
153
|
-
"native-type": "submit"
|
|
154
|
-
}, {
|
|
155
|
-
default: p(() => [...t[0] || (t[0] = [a("搜索", -1)])]),
|
|
156
|
-
_: 1
|
|
157
|
-
}), o(l, { onClick: F }, {
|
|
158
|
-
default: p(() => [...t[1] || (t[1] = [a("清空", -1)])]),
|
|
159
|
-
_: 1
|
|
160
|
-
})]),
|
|
161
|
-
_: 1
|
|
162
|
-
})]),
|
|
163
|
-
_: 3
|
|
164
|
-
})]),
|
|
165
|
-
_: 3
|
|
166
|
-
})]),
|
|
167
|
-
_: 3
|
|
168
|
-
}, 8, ["model"]), o(x, {
|
|
169
|
-
ref_key: "table",
|
|
170
|
-
ref: O,
|
|
171
|
-
"highlight-current-row": "",
|
|
172
|
-
"hide-on-single-page": "",
|
|
173
|
-
"click-row-select": "",
|
|
174
|
-
"row-key": y.rowKey,
|
|
175
|
-
descs: y.descs,
|
|
176
|
-
"payload-style": "body",
|
|
177
|
-
api: y.tableApi,
|
|
178
|
-
model: y.model,
|
|
179
|
-
multiple: y.multiple,
|
|
180
|
-
onCurrentChange: N,
|
|
181
|
-
onSelectionChange: M
|
|
182
|
-
}, {
|
|
183
|
-
default: p(() => [u(e.$slots, "columns")]),
|
|
184
|
-
_: 3
|
|
185
|
-
}, 8, [
|
|
186
|
-
"row-key",
|
|
187
|
-
"descs",
|
|
188
|
-
"api",
|
|
189
|
-
"model",
|
|
190
|
-
"multiple"
|
|
191
|
-
])]),
|
|
192
|
-
_: 2
|
|
193
|
-
}, [y.useTree ? {
|
|
194
|
-
name: "left",
|
|
195
|
-
fn: p(() => [r("div", v, f(y.treeTitle), 1), o(s, {
|
|
196
|
-
ref_key: "tree",
|
|
197
|
-
ref: j,
|
|
198
|
-
"node-key": y.nodeKey,
|
|
199
|
-
data: E.value,
|
|
200
|
-
"default-expanded-keys": D.value,
|
|
201
|
-
props: y.treeProps,
|
|
202
|
-
"expand-on-click-node": y.expandOnClickNode,
|
|
203
|
-
onNodeClick: y.onNodeClick
|
|
204
|
-
}, null, 8, [
|
|
205
|
-
"node-key",
|
|
206
|
-
"data",
|
|
207
|
-
"default-expanded-keys",
|
|
208
|
-
"props",
|
|
209
|
-
"expand-on-click-node",
|
|
210
|
-
"onNodeClick"
|
|
211
|
-
])]),
|
|
212
|
-
key: "0"
|
|
213
|
-
} : void 0]), 1032, ["hide-left"])]),
|
|
214
|
-
_: 3
|
|
215
|
-
}, 8, [
|
|
216
|
-
"visible",
|
|
217
|
-
"height",
|
|
218
|
-
"width",
|
|
219
|
-
"title"
|
|
220
|
-
]);
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
//#endregion
|
|
225
|
-
export { y as default };
|
package/present-view/index.mjs
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import t from "../resize-observer/index.mjs";
|
|
3
|
-
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createVNode as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m, resolveComponent as h, toDisplayString as g, toHandlers as _, vShow as v, withCtx as y, withDirectives as b } from "vue";
|
|
4
|
-
import { delay as x, hasOwn as S, isInContainer as C, toStringArray as w } from "@web-utils/core";
|
|
5
|
-
import { merge as T } from "@web-utils/integrations/lodash";
|
|
6
|
-
//#region src/components/form/PresentView.vue
|
|
7
|
-
var E = [
|
|
8
|
-
"back",
|
|
9
|
-
"create",
|
|
10
|
-
"save",
|
|
11
|
-
"withdraw",
|
|
12
|
-
"edit",
|
|
13
|
-
"submit",
|
|
14
|
-
"publish",
|
|
15
|
-
"agree",
|
|
16
|
-
"disagree",
|
|
17
|
-
"reject",
|
|
18
|
-
"finish",
|
|
19
|
-
"cancel",
|
|
20
|
-
"enable",
|
|
21
|
-
"exp",
|
|
22
|
-
"imp",
|
|
23
|
-
"del",
|
|
24
|
-
"disabled",
|
|
25
|
-
"reload",
|
|
26
|
-
"slot"
|
|
27
|
-
], D = E.map((e) => `${e}-down`), O = [
|
|
28
|
-
"back",
|
|
29
|
-
"withdraw",
|
|
30
|
-
"edit"
|
|
31
|
-
], k = [
|
|
32
|
-
"save",
|
|
33
|
-
"submit",
|
|
34
|
-
"",
|
|
35
|
-
"publish",
|
|
36
|
-
"agree",
|
|
37
|
-
"disagree",
|
|
38
|
-
"reject",
|
|
39
|
-
"finish",
|
|
40
|
-
"cancel"
|
|
41
|
-
], A = (e, t) => {
|
|
42
|
-
if (e.classList.contains(t)) return e;
|
|
43
|
-
let n = e.parentNode;
|
|
44
|
-
for (; n && !n.classList.contains(t);) n = n.parentNode;
|
|
45
|
-
return n.classList.contains(t) ? n : null;
|
|
46
|
-
}, j = {
|
|
47
|
-
name: "PresentView",
|
|
48
|
-
components: { ResizeObserver: t },
|
|
49
|
-
provide() {
|
|
50
|
-
return { presentView: this };
|
|
51
|
-
},
|
|
52
|
-
inject: { flowContext: { default: {} } },
|
|
53
|
-
props: {
|
|
54
|
-
notForm: Boolean,
|
|
55
|
-
loading: Boolean,
|
|
56
|
-
unLimit: Boolean,
|
|
57
|
-
formWidth: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "75%"
|
|
60
|
-
},
|
|
61
|
-
toolbarAttrs: {
|
|
62
|
-
type: Object,
|
|
63
|
-
default: () => {}
|
|
64
|
-
},
|
|
65
|
-
toolbarListeners: Object,
|
|
66
|
-
contentClass: String,
|
|
67
|
-
className: String,
|
|
68
|
-
title: String,
|
|
69
|
-
showToolbar: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: !0
|
|
72
|
-
},
|
|
73
|
-
formNav: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: !0
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
data() {
|
|
79
|
-
return {
|
|
80
|
-
tabs: [],
|
|
81
|
-
activeIndex: -1,
|
|
82
|
-
tryByClick: !1,
|
|
83
|
-
showNav: !1
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
computed: {
|
|
87
|
-
isFormLoading() {
|
|
88
|
-
return this.loading || S(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
89
|
-
},
|
|
90
|
-
toolbarProps() {
|
|
91
|
-
var e;
|
|
92
|
-
let t = {}, n = ((e = this.toolbarAttrs) == null ? void 0 : e.buttons) || this.$parent.buttons, r = T({}, this.toolbarAttrs, t);
|
|
93
|
-
return r.buttons = n || ["back"], r.buttons = w(r.buttons), r;
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
created() {
|
|
97
|
-
this.onFormResize({ width: window.document.body.clientWidth });
|
|
98
|
-
},
|
|
99
|
-
async activated() {
|
|
100
|
-
this.$refs.formScroller && (await this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
|
|
101
|
-
},
|
|
102
|
-
methods: {
|
|
103
|
-
addTab() {
|
|
104
|
-
tab && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(tab), this.tabs = this.tabs.sort((e, t) => {
|
|
105
|
-
let n = A(e.$el, "form-card"), r = A(t.$el, "form-card");
|
|
106
|
-
if (n === r) return [].indexOf.call(e.$el.parentNode.children, e.$el) - [].indexOf.call(t.$el.parentNode.children, t.$el);
|
|
107
|
-
{
|
|
108
|
-
let e = A(n, "form-scroller");
|
|
109
|
-
return [].indexOf.call(e.children, n) - [].indexOf.call(e.children, r);
|
|
110
|
-
}
|
|
111
|
-
}), tab.active && (this.activeIndex = this.tabs.indexOf(tab), this.tabClick(tab, this.activeIndex)));
|
|
112
|
-
},
|
|
113
|
-
removeTab() {
|
|
114
|
-
if (tab) {
|
|
115
|
-
let e = this.tabs.indexOf(tab);
|
|
116
|
-
this.tabs.splice(e, 1), this.activeIndex > this.tabs.length - 1 && (this.activeIndex = 0);
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
getToolbarSlotKeys() {
|
|
120
|
-
return Object.keys(this.$slots).filter((e) => E.includes(e));
|
|
121
|
-
},
|
|
122
|
-
getFooterSlotKeys() {
|
|
123
|
-
return Object.keys(this.$slots).filter((e) => D.includes(e));
|
|
124
|
-
},
|
|
125
|
-
getFooterSlotKey(e) {
|
|
126
|
-
return e.replace("-down", "");
|
|
127
|
-
},
|
|
128
|
-
onFormResize({ width: e }) {
|
|
129
|
-
this.showNav = e > 1500;
|
|
130
|
-
},
|
|
131
|
-
onEdit() {
|
|
132
|
-
!this.toolbarListeners.edit && S(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
133
|
-
},
|
|
134
|
-
async tabClick(e, t) {
|
|
135
|
-
this.showNav && (await this.$nextTick(), e.expand || (e.open(), await x(200), await this.$nextTick()), this.tryByClick = !0, this.activeIndex = t, this.$refs.formScroller.scrollTop = e.$el.offsetTop - 10);
|
|
136
|
-
},
|
|
137
|
-
tryActive() {
|
|
138
|
-
if (this.showNav) {
|
|
139
|
-
for (let e = 0; e < this.tabs.length; e++) if (C(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
140
|
-
this.activeIndex = e;
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
onFormScroll() {
|
|
146
|
-
this.formScrollTop = this.$refs.formScroller.scrollTop, this.formScrollLeft = this.$refs.formScroller.scrollLeft, !this.tryByClick && this.tabs.length && window.requestAnimationFrame(this.tryActive), this.tryByClick = !1;
|
|
147
|
-
},
|
|
148
|
-
scrollTo(e, t) {
|
|
149
|
-
e && (this.$refs.formScroller.scrollTop = e), t && (this.$refs.formScroller.scrollLeft = t);
|
|
150
|
-
},
|
|
151
|
-
getToolbarButtons(e) {
|
|
152
|
-
return e.filter((e) => !k.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
|
|
153
|
-
},
|
|
154
|
-
getFooterBarButtons(e) {
|
|
155
|
-
let t = e.filter((e) => !O.includes(e) && (k.includes(e) || e.indexOf(":down") > -1)).map((e) => e.replace(":down", ""));
|
|
156
|
-
return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}, M = { class: "form-view-toolbar" }, N = { class: "form-scroller-wrapper" }, P = {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: "form-view-title"
|
|
162
|
-
}, F = { class: "form-content" }, I = {
|
|
163
|
-
key: 0,
|
|
164
|
-
class: "form-view-title"
|
|
165
|
-
}, L = { class: "form-content" }, R = {
|
|
166
|
-
key: 0,
|
|
167
|
-
class: "form-nav"
|
|
168
|
-
}, z = { class: "form-nav-list" }, B = ["onClick"];
|
|
169
|
-
function V(e, t, x, S, C, w) {
|
|
170
|
-
let T = h("Toolbar"), E = h("EmptyView"), D = h("FlowLog"), O = h("FormItemGroup"), k = h("ResizeObserver"), A = h("LoadingView");
|
|
171
|
-
return f(), a("div", { class: u(["form-view", x.className]) }, [
|
|
172
|
-
i(" 顶部工具栏 "),
|
|
173
|
-
b(o("div", M, [m(e.$slots, "form-view-toolbar", {}, () => [b(c(T, l({
|
|
174
|
-
...w.toolbarProps,
|
|
175
|
-
buttons: w.getToolbarButtons(w.toolbarProps.buttons)
|
|
176
|
-
}, { onEdit: w.onEdit }, _(x.toolbarListeners)), s({
|
|
177
|
-
default: y(({ buttons: t }) => [m(e.$slots, "toolbar-button", { buttons: t })]),
|
|
178
|
-
"toolbar-right": y(() => [m(e.$slots, "toolbar-right")]),
|
|
179
|
-
_: 2
|
|
180
|
-
}, [p(w.getToolbarSlotKeys(), (t) => ({
|
|
181
|
-
name: t,
|
|
182
|
-
fn: y(() => [m(e.$slots, t)])
|
|
183
|
-
}))]), 1040, ["onEdit"]), [[v, x.showToolbar]])])], 512), [[v, !w.isFormLoading]]),
|
|
184
|
-
i(" 表单 "),
|
|
185
|
-
b(o("div", N, [o("div", {
|
|
186
|
-
ref: "formScroller",
|
|
187
|
-
class: u([
|
|
188
|
-
"form-scroller",
|
|
189
|
-
"absolute-box",
|
|
190
|
-
x.contentClass
|
|
191
|
-
]),
|
|
192
|
-
onScroll: t[0] || (t[0] = (...e) => w.onFormScroll && w.onFormScroll(...e))
|
|
193
|
-
}, [x.notForm ? (f(), a("div", {
|
|
194
|
-
key: 0,
|
|
195
|
-
style: d({ width: x.formWidth }),
|
|
196
|
-
class: "not-form"
|
|
197
|
-
}, [
|
|
198
|
-
x.title ? (f(), a("div", P, g(x.title), 1)) : i("v-if", !0),
|
|
199
|
-
i(" 表单内容 "),
|
|
200
|
-
m(e.$slots, "default", {}, () => [c(E, { "empty-tips": "请添加表单内容" })]),
|
|
201
|
-
i(" 底部工具栏 "),
|
|
202
|
-
c(T, l({
|
|
203
|
-
...w.toolbarProps,
|
|
204
|
-
buttons: w.getFooterBarButtons(w.toolbarProps.buttons)
|
|
205
|
-
}, { footer: "" }, _(x.toolbarListeners)), s({
|
|
206
|
-
default: y(({ buttons: t, footer: n }) => [m(e.$slots, "footer-button", {
|
|
207
|
-
buttons: t,
|
|
208
|
-
footer: n
|
|
209
|
-
})]),
|
|
210
|
-
_: 2
|
|
211
|
-
}, [p(w.getFooterSlotKeys(), (t) => ({
|
|
212
|
-
name: w.getFooterSlotKey(t),
|
|
213
|
-
fn: y(() => [m(e.$slots, t)])
|
|
214
|
-
}))]), 1040),
|
|
215
|
-
i(" 表单底部 "),
|
|
216
|
-
e.$slots["form-bottom"] ? m(e.$slots, "form-bottom", { key: 1 }) : i("v-if", !0)
|
|
217
|
-
], 4)) : (f(), a("div", {
|
|
218
|
-
key: 1,
|
|
219
|
-
class: u(["form-card", { "un-limit": x.unLimit }]),
|
|
220
|
-
style: d({ width: `calc(${x.formWidth} + 40px)` })
|
|
221
|
-
}, [o("div", F, [
|
|
222
|
-
i(" 表单内容 "),
|
|
223
|
-
x.title ? (f(), a("div", I, g(x.title), 1)) : i("v-if", !0),
|
|
224
|
-
m(e.$slots, "default", {}, () => [c(E, { "empty-tips": "请添加表单内容" })]),
|
|
225
|
-
i(" 底部工具栏 "),
|
|
226
|
-
w.getFooterBarButtons(w.toolbarProps.buttons).length ? (f(), r(T, l({ key: 1 }, {
|
|
227
|
-
...w.toolbarProps,
|
|
228
|
-
buttons: w.getFooterBarButtons(w.toolbarProps.buttons)
|
|
229
|
-
}, { footer: "" }, _(x.toolbarListeners)), s({
|
|
230
|
-
default: y(({ buttons: t, footer: n }) => [m(e.$slots, "footer-button", {
|
|
231
|
-
buttons: t,
|
|
232
|
-
footer: n
|
|
233
|
-
})]),
|
|
234
|
-
_: 2
|
|
235
|
-
}, [p(w.getFooterSlotKeys(), (t) => ({
|
|
236
|
-
name: w.getFooterSlotKey(t),
|
|
237
|
-
fn: y(() => [m(e.$slots, t)])
|
|
238
|
-
}))]), 1040)) : i("v-if", !0)
|
|
239
|
-
])], 6)), e.$slots["form-bottom"] || e.$parent.$options.flowForm && w.flowContext.logs.length ? (f(), a("div", {
|
|
240
|
-
key: 2,
|
|
241
|
-
class: u(["form-card", { "un-limit": x.unLimit }]),
|
|
242
|
-
style: d([{ width: `calc(${x.formWidth} + 40px)` }, { "min-height": "0" }])
|
|
243
|
-
}, [o("div", L, [
|
|
244
|
-
c(O, { "block-title": "流程日志" }, {
|
|
245
|
-
default: y(() => [c(D, {
|
|
246
|
-
fetch: !1,
|
|
247
|
-
"show-title": !1,
|
|
248
|
-
"business-key": e.$parent.bizKey
|
|
249
|
-
}, null, 8, ["business-key"])]),
|
|
250
|
-
_: 1
|
|
251
|
-
}),
|
|
252
|
-
i(" 表单底部 "),
|
|
253
|
-
m(e.$slots, "form-bottom")
|
|
254
|
-
])], 6)) : i("v-if", !0)], 34), c(k, { onNotify: w.onFormResize }, null, 8, ["onNotify"])], 512), [[v, !w.isFormLoading]]),
|
|
255
|
-
i(" 表单导航 "),
|
|
256
|
-
x.formNav && !w.isFormLoading && C.showNav && C.tabs.length ? (f(), a("div", R, [t[1] || (t[1] = o("div", { class: "form-nav-header" }, "表单导航", -1)), o("ul", z, [(f(!0), a(n, null, p(C.tabs, (e, t) => (f(), a("li", {
|
|
257
|
-
key: e.blockTitle,
|
|
258
|
-
class: u(["form-nav-item", { active: C.activeIndex === t }]),
|
|
259
|
-
onClick: (n) => w.tabClick(e, t)
|
|
260
|
-
}, g(e.blockTitle), 11, B))), 128))])])) : i("v-if", !0),
|
|
261
|
-
i(" 加载提示 "),
|
|
262
|
-
w.isFormLoading ? (f(), r(A, {
|
|
263
|
-
key: 1,
|
|
264
|
-
"icon-size": "34px",
|
|
265
|
-
"font-size": "16px"
|
|
266
|
-
})) : i("v-if", !0)
|
|
267
|
-
], 2);
|
|
268
|
-
}
|
|
269
|
-
var H = /* @__PURE__ */ e(j, [["render", V]]);
|
|
270
|
-
//#endregion
|
|
271
|
-
export { H as default };
|
package/present-view/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form-view{flex-direction:column;height:100%;display:flex}.form-view .form-scroller-wrapper{flex:1;position:relative}.form-view .not-form{margin:0 auto}.form-view .form-view-toolbar{overflow:hidden}.form-view .form-scroller{flex:1;overflow:auto}.form-view .form-scroller .el-row{position:static}.form-view .form-content .el-form .el-row{padding-right:2rem}.form-view .form-content .el-form .el-row .el-row{padding-right:0}.form-view .form-card{color:#303133;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;max-width:1000px;margin:14px auto;padding:20px;transition:all .3s;box-shadow:0 2px 12px #0000001a}.form-view .form-card.un-limit{max-width:100%}.form-view .form-nav{background-color:#fff;position:absolute;top:55px;left:20px;box-shadow:0 2px 12px #0000001a}.form-view .form-nav-list{min-width:180px;padding:10px 20px}.form-view .form-nav-header{color:#e34e55;background-color:#f3f5fb;padding:5px 20px;font-size:15px;font-weight:700;position:relative}.form-view .form-nav-item{cursor:pointer;padding:5px 0;position:relative;font-family:element-icons!important}.form-view .form-nav-item.active,.form-view .form-nav-item:hover{color:#e34e55;font-weight:700}.form-view .form-nav-item.active:before{content:"";position:absolute;left:-14px}.form-view .form-view-title{color:#333;text-align:center;background-color:#fff;width:100%;height:36px;margin-top:-10px;margin-bottom:10px;font-size:22px;line-height:36px}.form-view .tip{background-color:#ecf8ff;border-left:5px solid #50bfff;border-radius:4px;margin:20px 0;padding:8px 16px}.form-view .tip p{color:#5e6d82;font-size:14px;line-height:1.5em}.form-view .tip.danger{background-color:#fde2e2;border-left-color:#f56c6c}.form-view .tip.danger p{color:#564646}.form-view .tip.warning{background-color:#f7efe2;border-left-color:#e6a23c}.form-view .tip.warning p{color:#5d564b}.form-view .select-num{color:#898989;font-size:12px}.form-view .select-num .num{font-family:impact,Constantia,Georgia;font-size:19px}.form-view .el-table .el-table__header th{color:#595959;background:#fff;font-weight:400}.form-view .el-table td{padding:4px 0}
|
package/queue/index.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { createElementBlock as t, createElementVNode as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
|
|
3
|
-
//#region src/components/queue/Queue.vue
|
|
4
|
-
var o = {
|
|
5
|
-
name: "Queue",
|
|
6
|
-
props: {
|
|
7
|
-
enter: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "fadeInLeft"
|
|
10
|
-
},
|
|
11
|
-
block: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
delay: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 0
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
data() {
|
|
21
|
-
return { animate: [] };
|
|
22
|
-
},
|
|
23
|
-
mounted() {
|
|
24
|
-
this.$nextTick(() => {
|
|
25
|
-
addEventListener("scroll", this.handleAnimate), this.handleAnimate();
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
unmounted() {
|
|
29
|
-
removeEventListener("scroll", this.handleAnimate);
|
|
30
|
-
},
|
|
31
|
-
methods: { handleAnimate() {
|
|
32
|
-
let e = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, t = document.documentElement.clientHeight, n = this.$refs.queue;
|
|
33
|
-
e + t > n.offsetTop ? setTimeout(() => {
|
|
34
|
-
this.animate = [this.enter, "avue-opacity--active"];
|
|
35
|
-
}, this.delay) : this.animate = ["avue-opacity"];
|
|
36
|
-
} }
|
|
37
|
-
};
|
|
38
|
-
function s(e, o, s, c, l, u) {
|
|
39
|
-
return i(), t("div", { class: r(["avue-queue", { "avue-queue--block": s.block }]) }, [n("div", {
|
|
40
|
-
ref: "queue",
|
|
41
|
-
class: r(["animate__animated", l.animate])
|
|
42
|
-
}, [a(e.$slots, "default")], 2)], 2);
|
|
43
|
-
}
|
|
44
|
-
var c = /* @__PURE__ */ e(o, [["render", s]]);
|
|
45
|
-
//#endregion
|
|
46
|
-
export { c as default };
|
package/queue/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avue-queue--block{display:inline-block}
|
package/record-video/index.mjs
DELETED
package/record-video/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avue-video{width:500px;position:relative;overflow:hidden}.avue-video__border span{color:#0073eb;border-style:solid;border-width:4px;width:30px;height:30px;position:absolute}.avue-video__border span:first-child{border-bottom:0;border-right:0;top:15px;left:15px}.avue-video__border span:nth-child(2){border-bottom:0;border-left:0;top:15px;right:15px}.avue-video__border span:nth-child(3){border-top:0;border-right:0;bottom:15px;left:15px}.avue-video__border span:nth-child(4){border-top:0;border-left:0;bottom:15px;right:15px}.avue-video__img{width:100px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.avue-video__main{width:100%}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { n as t } from "../chunks/utils.CSPl1l4f.mjs";
|
|
3
|
-
import { createElementBlock as n, openBlock as r } from "vue";
|
|
4
|
-
//#region src/components/ResizeObserver.vue
|
|
5
|
-
var i;
|
|
6
|
-
function a() {
|
|
7
|
-
a.init || (a.init = !0, i = t() !== -1);
|
|
8
|
-
}
|
|
9
|
-
var o = {
|
|
10
|
-
name: "ResizeObserver",
|
|
11
|
-
emits: ["notify"],
|
|
12
|
-
mounted() {
|
|
13
|
-
a(), this.$nextTick(() => {
|
|
14
|
-
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
|
|
15
|
-
});
|
|
16
|
-
let e = document.createElement("object");
|
|
17
|
-
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
|
|
18
|
-
},
|
|
19
|
-
beforeUnmount() {
|
|
20
|
-
this.removeResizeHandlers();
|
|
21
|
-
},
|
|
22
|
-
methods: {
|
|
23
|
-
compareAndNotify() {
|
|
24
|
-
(this._w !== this.$el.offsetWidth || this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.$emit("notify", {
|
|
25
|
-
width: this._w,
|
|
26
|
-
height: this._h
|
|
27
|
-
}));
|
|
28
|
-
},
|
|
29
|
-
addResizeHandlers() {
|
|
30
|
-
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
31
|
-
},
|
|
32
|
-
removeResizeHandlers() {
|
|
33
|
-
this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}, s = {
|
|
37
|
-
class: "resize-observer",
|
|
38
|
-
tabindex: "-1"
|
|
39
|
-
};
|
|
40
|
-
function c(e, t, i, a, o, c) {
|
|
41
|
-
return r(), n("div", s);
|
|
42
|
-
}
|
|
43
|
-
var l = /* @__PURE__ */ e(o, [["render", c]]);
|
|
44
|
-
//#endregion
|
|
45
|
-
export { l as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.resize-observer{z-index:-1;opacity:0;pointer-events:none;background-color:#0000;border:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.resize-observer>object{z-index:-1;pointer-events:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}
|