@web-utils/component 3.8.3 → 4.0.1
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 +25 -55
- package/base.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- 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-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +344 -375
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +60 -64
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +43 -77
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +12 -17
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +5 -7
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +14 -16
- package/fy-empty/index.mjs +1 -1
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +319 -345
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +21 -26
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +10 -12
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -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 +77 -103
- package/fy-upload/index.mjs +3 -3
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +44 -74
- package/name-avatar/style.css +1 -1
- package/package.json +18 -17
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +354 -226
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +63 -106
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +2 -2
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +2 -2
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +112 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +178 -135
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +48 -66
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +36 -67
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3843
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/input-number/index.mjs
CHANGED
|
@@ -1,13 +1,68 @@
|
|
|
1
1
|
import s from "element-ui/src/mixins/focus";
|
|
2
2
|
import u from "element-ui/src/directives/repeat-click";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const a = {
|
|
5
|
+
props: {
|
|
6
|
+
suffixIcon: {
|
|
7
|
+
type: String
|
|
8
|
+
},
|
|
9
|
+
prefixIcon: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
step: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 1
|
|
15
|
+
},
|
|
16
|
+
stepStrictly: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
max: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 1 / 0
|
|
23
|
+
},
|
|
24
|
+
min: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: -1 / 0
|
|
27
|
+
},
|
|
28
|
+
value: {
|
|
29
|
+
type: [Number, String]
|
|
30
|
+
},
|
|
31
|
+
disabled: Boolean,
|
|
32
|
+
size: {
|
|
33
|
+
type: String
|
|
34
|
+
},
|
|
35
|
+
controls: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
controlsPosition: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
name: {
|
|
44
|
+
type: String
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
precision: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: void 0,
|
|
55
|
+
validator(t) {
|
|
56
|
+
return t >= 0 && t === parseInt(t, 10);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, l = {
|
|
6
61
|
name: "InputNumber",
|
|
7
62
|
directives: {
|
|
8
63
|
repeatClick: u
|
|
9
64
|
},
|
|
10
|
-
mixins: [s("input"),
|
|
65
|
+
mixins: [s("input"), a],
|
|
11
66
|
inject: {
|
|
12
67
|
elForm: {
|
|
13
68
|
default: ""
|
|
@@ -137,7 +192,7 @@ const l = {
|
|
|
137
192
|
}
|
|
138
193
|
}
|
|
139
194
|
};
|
|
140
|
-
var
|
|
195
|
+
var p = function() {
|
|
141
196
|
var e = this, n = e._self._c;
|
|
142
197
|
return n("div", { class: [
|
|
143
198
|
"input-number",
|
|
@@ -163,15 +218,15 @@ var c = function() {
|
|
|
163
218
|
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
164
219
|
return [e._t("suffix")];
|
|
165
220
|
}, proxy: !0 }], null, !0) })], 1);
|
|
166
|
-
},
|
|
221
|
+
}, c = [], d = /* @__PURE__ */ o(
|
|
167
222
|
l,
|
|
168
|
-
c,
|
|
169
223
|
p,
|
|
224
|
+
c,
|
|
170
225
|
!1,
|
|
171
226
|
null,
|
|
172
227
|
null
|
|
173
228
|
);
|
|
174
|
-
const
|
|
229
|
+
const b = d.exports;
|
|
175
230
|
export {
|
|
176
|
-
|
|
231
|
+
b as default
|
|
177
232
|
};
|
package/keyboard/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-keyboard--default .akeyboard-keyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--default .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--default .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--default .akeyboard-keyboard-keys:hover{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-keys-Delete,.avue-keyboard--default .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--default .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--default .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--default .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--default .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--default .keyboard-keyboard-keys-focus{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--default .akeyboard-numberKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--default .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--default .akeyboard-mobileKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--default .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--green .akeyboard-keyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--green .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--green .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#cc9;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--green .akeyboard-keyboard-keys:hover{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-keys-Delete,.avue-keyboard--green .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--green .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--green .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--green .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--green .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--green .keyboard-keyboard-keys-focus{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--green .akeyboard-numberKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--green .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--green .akeyboard-mobileKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#cc9;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--green .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#693!important}.avue-keyboard--dark .akeyboard-keyboard{box-sizing:border-box;color:#fff;background:#000;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--dark .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--dark .akeyboard-keyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#393d49;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--dark .akeyboard-keyboard-keys:hover{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-keys-Delete,.avue-keyboard--dark .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--dark .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--dark .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--dark .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--dark .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--dark .keyboard-keyboard-keys-focus{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--dark .akeyboard-numberKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--dark .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--dark .akeyboard-mobileKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#393d49;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--classic .akeyboard-keyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--classic .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--classic .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--classic .akeyboard-keyboard-keys:hover{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-keys-Delete,.avue-keyboard--classic .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--classic .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--classic .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--classic .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--classic .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--classic .keyboard-keyboard-keys-focus{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--classic .akeyboard-numberKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--classic .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--classic .akeyboard-mobileKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#c2c2c2!important}
|
|
1
|
+
.avue-keyboard--default .akeyboard-keyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--default .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--default .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--default .akeyboard-keyboard-keys:hover{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-keys-Delete,.avue-keyboard--default .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--default .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--default .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--default .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--default .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--default .keyboard-keyboard-keys-focus{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--default .akeyboard-numberKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--default .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--default .akeyboard-mobileKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--default .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--green .akeyboard-keyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--green .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--green .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#cc9;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--green .akeyboard-keyboard-keys:hover{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-keys-Delete,.avue-keyboard--green .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--green .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--green .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--green .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--green .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--green .keyboard-keyboard-keys-focus{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--green .akeyboard-numberKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--green .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--green .akeyboard-mobileKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#cc9;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--green .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#693!important}.avue-keyboard--dark .akeyboard-keyboard{box-sizing:border-box;color:#fff;background:#000;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--dark .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--dark .akeyboard-keyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#393d49;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--dark .akeyboard-keyboard-keys:hover{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-keys-Delete,.avue-keyboard--dark .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--dark .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--dark .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--dark .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--dark .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--dark .keyboard-keyboard-keys-focus{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--dark .akeyboard-numberKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--dark .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--dark .akeyboard-mobileKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#393d49;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--classic .akeyboard-keyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--classic .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--classic .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--classic .akeyboard-keyboard-keys:hover{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-keys-Delete,.avue-keyboard--classic .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--classic .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--classic .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--classic .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--classic .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--classic .keyboard-keyboard-keys-focus{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--classic .akeyboard-numberKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--classic .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--classic .akeyboard-mobileKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#c2c2c2!important}
|
package/license/index.mjs
CHANGED
package/login/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as l } from "../chunks/util.
|
|
1
|
+
import { s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { isBlank as n } from "@web-utils/core";
|
|
3
3
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const r = "发送验证码", i = "{{time}}s后重获取", c = {
|
package/monaco-editor/index.mjs
CHANGED
|
@@ -1,35 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
_.call(t, i) && c(e, i, t[i]);
|
|
7
|
-
if (u)
|
|
8
|
-
for (var i of u(t))
|
|
9
|
-
M.call(t, i) && c(e, i, t[i]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var a = (e, t, i) => new Promise((d, s) => {
|
|
13
|
-
var r = (n) => {
|
|
14
|
-
try {
|
|
15
|
-
l(i.next(n));
|
|
16
|
-
} catch (h) {
|
|
17
|
-
s(h);
|
|
18
|
-
}
|
|
19
|
-
}, p = (n) => {
|
|
20
|
-
try {
|
|
21
|
-
l(i.throw(n));
|
|
22
|
-
} catch (h) {
|
|
23
|
-
s(h);
|
|
24
|
-
}
|
|
25
|
-
}, l = (n) => n.done ? d(n.value) : Promise.resolve(n.value).then(r, p);
|
|
26
|
-
l((i = i.apply(e, t)).next());
|
|
27
|
-
});
|
|
28
|
-
import * as o from "monaco-editor/esm/vs/editor/editor.api";
|
|
29
|
-
import { c as g } from "../chunks/json-beautifier.Bp3GslGm.mjs";
|
|
30
|
-
import { NOOP as m } from "@web-utils/core";
|
|
31
|
-
import { n as E } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
32
|
-
const v = {
|
|
1
|
+
import * as i from "monaco-editor/esm/vs/editor/editor.api";
|
|
2
|
+
import { c as d } from "../chunks/json-beautifier.Bp3GslGm.mjs";
|
|
3
|
+
import { NOOP as r } from "@web-utils/core";
|
|
4
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const a = {
|
|
33
6
|
name: "MonacoEditor",
|
|
34
7
|
props: {
|
|
35
8
|
diffEditor: { type: Boolean, default: !1 },
|
|
@@ -48,8 +21,8 @@ const v = {
|
|
|
48
21
|
return {};
|
|
49
22
|
}
|
|
50
23
|
},
|
|
51
|
-
editorMounted: { type: Function, default:
|
|
52
|
-
editorBeforeMount: { type: Function, default:
|
|
24
|
+
editorMounted: { type: Function, default: r },
|
|
25
|
+
editorBeforeMount: { type: Function, default: r },
|
|
53
26
|
keyIndex: { type: String }
|
|
54
27
|
},
|
|
55
28
|
data() {
|
|
@@ -76,18 +49,18 @@ const v = {
|
|
|
76
49
|
},
|
|
77
50
|
keyIndex() {
|
|
78
51
|
let e = this.value;
|
|
79
|
-
typeof e == "object" && (e =
|
|
52
|
+
typeof e == "object" && (e = d(e)), this.editor && e !== this._getValue() && this._setValue(e);
|
|
80
53
|
},
|
|
81
54
|
language() {
|
|
82
55
|
if (this.editor)
|
|
83
56
|
if (this.diffEditor) {
|
|
84
57
|
const { original: e, modified: t } = this.editor.getModel();
|
|
85
|
-
|
|
58
|
+
i.editor.setModelLanguage(e, this.language), i.editor.setModelLanguage(t, this.language);
|
|
86
59
|
} else
|
|
87
|
-
|
|
60
|
+
i.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
88
61
|
},
|
|
89
62
|
theme() {
|
|
90
|
-
this.editor &&
|
|
63
|
+
this.editor && i.editor.setTheme(this.theme);
|
|
91
64
|
},
|
|
92
65
|
style() {
|
|
93
66
|
this.$nextTick(() => {
|
|
@@ -108,41 +81,38 @@ const v = {
|
|
|
108
81
|
},
|
|
109
82
|
methods: {
|
|
110
83
|
initMonaco() {
|
|
111
|
-
const { value: e, language: t, theme:
|
|
112
|
-
Object.assign(s, this._editorBeforeMount()), this.editor =
|
|
113
|
-
value: typeof e == "string" ? e :
|
|
84
|
+
const { value: e, language: t, theme: o, readOnly: n, options: s } = this;
|
|
85
|
+
Object.assign(s, this._editorBeforeMount()), this.editor = i.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
|
|
86
|
+
value: typeof e == "string" ? e : d(e),
|
|
114
87
|
language: t,
|
|
115
|
-
theme:
|
|
116
|
-
readOnly:
|
|
117
|
-
|
|
88
|
+
theme: o,
|
|
89
|
+
readOnly: n,
|
|
90
|
+
...s
|
|
91
|
+
}), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor), this.editor.addAction({
|
|
118
92
|
id: "f1",
|
|
119
93
|
label: "full screen",
|
|
120
|
-
keybindings: [
|
|
121
|
-
run: (
|
|
94
|
+
keybindings: [i.KeyCode.F1],
|
|
95
|
+
run: (l) => {
|
|
122
96
|
this.toggleFullScreen();
|
|
123
97
|
}
|
|
124
98
|
}), this.editor.addAction({
|
|
125
99
|
id: "escape",
|
|
126
100
|
label: "exit full screen",
|
|
127
|
-
keybindings: [
|
|
128
|
-
run: (
|
|
101
|
+
keybindings: [i.KeyCode.Escape],
|
|
102
|
+
run: (l) => {
|
|
129
103
|
this.fullscreen = !1;
|
|
130
104
|
}
|
|
131
105
|
});
|
|
132
106
|
},
|
|
133
107
|
toggleFullScreen() {
|
|
134
|
-
|
|
135
|
-
this.fullscreen = !this.fullscreen;
|
|
136
|
-
});
|
|
108
|
+
this.fullscreen = !this.fullscreen;
|
|
137
109
|
},
|
|
138
|
-
onResize() {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
height: e.clientHeight
|
|
145
|
-
});
|
|
110
|
+
async onResize() {
|
|
111
|
+
await this.$nextTick();
|
|
112
|
+
const e = this.$el;
|
|
113
|
+
this.editor.layout({
|
|
114
|
+
width: e.clientWidth,
|
|
115
|
+
height: e.clientHeight
|
|
146
116
|
});
|
|
147
117
|
},
|
|
148
118
|
_handleFullScreen() {
|
|
@@ -174,9 +144,9 @@ const v = {
|
|
|
174
144
|
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
175
145
|
},
|
|
176
146
|
_setModel(e, t) {
|
|
177
|
-
const { language:
|
|
147
|
+
const { language: o } = this, n = i.editor.createModel(t, o), s = i.editor.createModel(e, o);
|
|
178
148
|
this.editor.setModel({
|
|
179
|
-
original:
|
|
149
|
+
original: n,
|
|
180
150
|
modified: s
|
|
181
151
|
});
|
|
182
152
|
},
|
|
@@ -189,15 +159,15 @@ const v = {
|
|
|
189
159
|
return e ? e.getValue() : "";
|
|
190
160
|
},
|
|
191
161
|
_editorBeforeMount() {
|
|
192
|
-
return this.editorBeforeMount(
|
|
162
|
+
return this.editorBeforeMount(i) || {};
|
|
193
163
|
},
|
|
194
164
|
_editorMounted(e) {
|
|
195
|
-
this.editorMounted(e,
|
|
196
|
-
const
|
|
197
|
-
this._emitChange(
|
|
165
|
+
this.editorMounted(e, i), this.diffEditor ? e.onDidUpdateDiff((t) => {
|
|
166
|
+
const o = this._getValue();
|
|
167
|
+
this._emitChange(o, t);
|
|
198
168
|
}) : e.onDidChangeModelContent((t) => {
|
|
199
|
-
const
|
|
200
|
-
this._emitChange(
|
|
169
|
+
const o = this._getValue();
|
|
170
|
+
this._emitChange(o, t);
|
|
201
171
|
});
|
|
202
172
|
},
|
|
203
173
|
_emitChange(e, t) {
|
|
@@ -222,16 +192,16 @@ const v = {
|
|
|
222
192
|
}) : ""
|
|
223
193
|
]);
|
|
224
194
|
}
|
|
225
|
-
},
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
195
|
+
}, u = null, c = null;
|
|
196
|
+
var f = /* @__PURE__ */ h(
|
|
197
|
+
a,
|
|
198
|
+
u,
|
|
199
|
+
c,
|
|
230
200
|
!1,
|
|
231
201
|
null,
|
|
232
202
|
null
|
|
233
203
|
);
|
|
234
|
-
const
|
|
204
|
+
const y = f.exports;
|
|
235
205
|
export {
|
|
236
|
-
|
|
206
|
+
y as default
|
|
237
207
|
};
|
package/name-avatar/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.name-avatar{width:40px;height:40px;overflow:hidden}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{justify-content:center;align-items:center;display:flex}.round{z-index:10;text-align:center;vertical-align:bottom;-webkit-user-select:none
|
|
1
|
+
.name-avatar{width:40px;height:40px;overflow:hidden}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{justify-content:center;align-items:center;display:flex}.round{z-index:10;text-align:center;vertical-align:bottom;-webkit-user-select:none;user-select:none;border-radius:50%;font-size:8px;display:inline-block;position:relative}.square{border-radius:8px;display:block;overflow:hidden}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
3
|
"description": "Web Components",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -17,31 +17,32 @@
|
|
|
17
17
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
18
18
|
"@wangeditor/editor": "^5.1.23",
|
|
19
19
|
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
20
|
-
"@web-utils/core": "^
|
|
21
|
-
"@web-utils/integrations": "^
|
|
22
|
-
"@web-utils/vue": "^
|
|
23
|
-
"
|
|
24
|
-
"bpmn-js
|
|
25
|
-
"
|
|
26
|
-
"
|
|
20
|
+
"@web-utils/core": "^5.0.3",
|
|
21
|
+
"@web-utils/integrations": "^5.0.3",
|
|
22
|
+
"@web-utils/vue": "^5.0.3",
|
|
23
|
+
"async-validator": "1.8.5",
|
|
24
|
+
"bpmn-js": "^18.13.1",
|
|
25
|
+
"bpmn-js-token-simulation": "^0.39.3",
|
|
26
|
+
"codemirror": "^5.65.20",
|
|
27
|
+
"countup.js": "^2.10.0",
|
|
27
28
|
"cronosjs": "^1.7.1",
|
|
28
|
-
"dayjs": "^1.11.
|
|
29
|
-
"diagram-js": "15.
|
|
29
|
+
"dayjs": "^1.11.20",
|
|
30
|
+
"diagram-js": "15.9.1",
|
|
30
31
|
"echarts": "^6.0.0",
|
|
31
32
|
"highlight.js": "^11.11.1",
|
|
32
|
-
"lodash-es": "^4.17.
|
|
33
|
-
"min-dash": "^
|
|
34
|
-
"min-dom": "^5.
|
|
35
|
-
"monaco-editor": "^0.
|
|
36
|
-
"overlayscrollbars": "^2.
|
|
33
|
+
"lodash-es": "^4.17.23",
|
|
34
|
+
"min-dash": "^5.0.0",
|
|
35
|
+
"min-dom": "^5.3.0",
|
|
36
|
+
"monaco-editor": "^0.55.1",
|
|
37
|
+
"overlayscrollbars": "^2.14.0",
|
|
37
38
|
"photoswipe": "^5.4.4",
|
|
38
39
|
"qrcode": "^1.5.4",
|
|
39
40
|
"quill": "^1.3.7",
|
|
40
41
|
"resize-detector": "^0.3.0",
|
|
41
42
|
"simple-uploader.js": "^0.6.0",
|
|
42
|
-
"tiny-svg": "^4.1.
|
|
43
|
+
"tiny-svg": "^4.1.4",
|
|
43
44
|
"tinymce": "4.9.11",
|
|
44
|
-
"video.js": "^8.23.
|
|
45
|
+
"video.js": "^8.23.7",
|
|
45
46
|
"viewerjs": "^1.11.7",
|
|
46
47
|
"vue-cropper": "^0.6.5",
|
|
47
48
|
"vuedraggable": "^2.24.3",
|
package/page-index/index.mjs
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
u(e.next(i));
|
|
5
|
-
} catch (d) {
|
|
6
|
-
r(d);
|
|
7
|
-
}
|
|
8
|
-
}, p = (i) => {
|
|
9
|
-
try {
|
|
10
|
-
u(e.throw(i));
|
|
11
|
-
} catch (d) {
|
|
12
|
-
r(d);
|
|
13
|
-
}
|
|
14
|
-
}, u = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, p);
|
|
15
|
-
u((e = e.apply(a, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { findFirstMatchNode as h, treeToArray as c } from "@web-utils/core";
|
|
18
|
-
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
|
-
const f = {
|
|
1
|
+
import { findFirstMatchNode as r, treeToArray as n } from "@web-utils/core";
|
|
2
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const d = {
|
|
20
4
|
name: "PageIndex",
|
|
21
5
|
props: {
|
|
22
6
|
menus: {
|
|
@@ -64,60 +48,52 @@ const f = {
|
|
|
64
48
|
this.setCurrentKey(this.$route.path);
|
|
65
49
|
},
|
|
66
50
|
methods: {
|
|
67
|
-
activeFirstMenu() {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
});
|
|
51
|
+
async activeFirstMenu() {
|
|
52
|
+
if (n(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
|
|
53
|
+
await this.setCurrentKey(this.$route.path);
|
|
54
|
+
else {
|
|
55
|
+
const t = r(this.menus, (e) => e.path);
|
|
56
|
+
t && (await this.$router.push({ path: t.path, query: t.query }), await this.setCurrentKey(t.path));
|
|
57
|
+
}
|
|
76
58
|
},
|
|
77
|
-
onNodeClick(a) {
|
|
78
|
-
|
|
79
|
-
a.path && a.path.indexOf("/") > -1 && (yield this.$router.push({ path: a.path, query: a.query })), yield this.setCurrentKey(a.key);
|
|
80
|
-
});
|
|
59
|
+
async onNodeClick(a) {
|
|
60
|
+
a.path && a.path.indexOf("/") > -1 && await this.$router.push({ path: a.path, query: a.query }), await this.setCurrentKey(a.key);
|
|
81
61
|
},
|
|
82
|
-
setCurrentKey(a) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
yield this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
|
|
86
|
-
});
|
|
62
|
+
async setCurrentKey(a) {
|
|
63
|
+
var t;
|
|
64
|
+
await this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
|
|
87
65
|
},
|
|
88
|
-
beforeRouteUpdate(a, t, e) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
yield e(), yield this.setCurrentKey(this.$route.path);
|
|
95
|
-
});
|
|
66
|
+
async beforeRouteUpdate(a, t, e) {
|
|
67
|
+
if (a.path === this.schema) {
|
|
68
|
+
const s = r(this.menus, (i) => i.path);
|
|
69
|
+
s ? (await e({ path: s.path, query: s.query }), await this.setCurrentKey(s.path)) : await e(!1);
|
|
70
|
+
} else
|
|
71
|
+
await e(), await this.setCurrentKey(this.$route.path);
|
|
96
72
|
}
|
|
97
73
|
}
|
|
98
74
|
};
|
|
99
|
-
var
|
|
75
|
+
var h = function() {
|
|
100
76
|
var t = this, e = t._self._c;
|
|
101
77
|
return e("div", { staticClass: "egd-container" }, [t.aside ? e("div", { staticClass: "egd-aside", style: { width: t.asideWidth } }, [t._t("aside", function() {
|
|
102
78
|
return [e("div", { staticClass: "egd-main" }, [t._t("nav-top"), e("div", { staticClass: "egd-header" }, [e("span", { staticClass: "section-title flex-not-shrink" }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
|
|
103
|
-
return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node:
|
|
79
|
+
return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: i }) {
|
|
104
80
|
return [t._t("tree-node", function() {
|
|
105
81
|
return [e("span", [e("i", { class: s.icon }), t._v(" " + t._s(s.label))])];
|
|
106
|
-
}, { data: s, node:
|
|
82
|
+
}, { data: s, node: i })];
|
|
107
83
|
} }], null, !0) })];
|
|
108
84
|
})], 2)];
|
|
109
85
|
})], 2) : t._e(), e("div", { staticClass: "page-index-content", style: { width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%" } }, [t._t("default", function() {
|
|
110
86
|
return [e("div", { staticClass: "page-index-content-empty" }, [t._v(" " + t._s(t.tips) + " ")])];
|
|
111
87
|
})], 2)]);
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
88
|
+
}, o = [], p = /* @__PURE__ */ u(
|
|
89
|
+
d,
|
|
90
|
+
h,
|
|
91
|
+
o,
|
|
116
92
|
!1,
|
|
117
93
|
null,
|
|
118
94
|
null
|
|
119
95
|
);
|
|
120
|
-
const
|
|
96
|
+
const f = p.exports;
|
|
121
97
|
export {
|
|
122
|
-
|
|
98
|
+
f as default
|
|
123
99
|
};
|
package/page-index-top/index.mjs
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
u(e.next(n));
|
|
5
|
-
} catch (o) {
|
|
6
|
-
r(o);
|
|
7
|
-
}
|
|
8
|
-
}, l = (n) => {
|
|
9
|
-
try {
|
|
10
|
-
u(e.throw(n));
|
|
11
|
-
} catch (o) {
|
|
12
|
-
r(o);
|
|
13
|
-
}
|
|
14
|
-
}, u = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(c, l);
|
|
15
|
-
u((e = e.apply(s, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { findFirstMatchNode as p, treeToArray as h } from "@web-utils/core";
|
|
18
|
-
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
|
-
const f = {
|
|
1
|
+
import { findFirstMatchNode as n, treeToArray as i } from "@web-utils/core";
|
|
2
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const o = {
|
|
20
4
|
name: "PageIndexTop",
|
|
21
5
|
props: {
|
|
22
6
|
menus: {
|
|
@@ -44,33 +28,27 @@ const f = {
|
|
|
44
28
|
this.activeFirstMenu();
|
|
45
29
|
},
|
|
46
30
|
methods: {
|
|
47
|
-
activeFirstMenu() {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
});
|
|
31
|
+
async activeFirstMenu() {
|
|
32
|
+
if (i(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
|
|
33
|
+
this.activeTab = this.$route.path;
|
|
34
|
+
else {
|
|
35
|
+
const t = n(this.menus, (e) => e.path);
|
|
36
|
+
t && (this.activeTab = t.path, await this.$router.push({ path: t.path, query: t.query }));
|
|
37
|
+
}
|
|
56
38
|
},
|
|
57
|
-
tabClick(s) {
|
|
58
|
-
|
|
59
|
-
yield this.$router.push(s.name);
|
|
60
|
-
});
|
|
39
|
+
async tabClick(s) {
|
|
40
|
+
await this.$router.push(s.name);
|
|
61
41
|
},
|
|
62
|
-
beforeRouteUpdate(s, t, e) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
yield e();
|
|
69
|
-
});
|
|
42
|
+
async beforeRouteUpdate(s, t, e) {
|
|
43
|
+
if (s.path === this.schema) {
|
|
44
|
+
const a = n(this.menus, (r) => r.path);
|
|
45
|
+
a ? (await e({ path: a.path, query: a.query }), this.activeTab = a.path) : await e(!1);
|
|
46
|
+
} else
|
|
47
|
+
await e();
|
|
70
48
|
}
|
|
71
49
|
}
|
|
72
50
|
};
|
|
73
|
-
var
|
|
51
|
+
var p = function() {
|
|
74
52
|
var t = this, e = t._self._c;
|
|
75
53
|
return t.menus && t.menus.length ? e("PageSkeleton", { scopedSlots: t._u([{ key: "header", fn: function() {
|
|
76
54
|
return [e("PageHeader", { scopedSlots: t._u([{ key: "section-title", fn: function() {
|
|
@@ -83,15 +61,15 @@ var d = function() {
|
|
|
83
61
|
}, proxy: !0 }], null, !1, 2288233724) }, [t._t("default", function() {
|
|
84
62
|
return [e("EmptyView", { attrs: { "empty-tips": t.tips } })];
|
|
85
63
|
})], 2) : e("EmptyView", { attrs: { "empty-tips": "暂无权限!" } });
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
64
|
+
}, c = [], l = /* @__PURE__ */ u(
|
|
65
|
+
o,
|
|
66
|
+
p,
|
|
67
|
+
c,
|
|
90
68
|
!1,
|
|
91
69
|
null,
|
|
92
70
|
null
|
|
93
71
|
);
|
|
94
|
-
const
|
|
72
|
+
const f = l.exports;
|
|
95
73
|
export {
|
|
96
|
-
|
|
74
|
+
f as default
|
|
97
75
|
};
|