@vtj/designer 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +662 -659
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,18 +3,18 @@ import { ElNotification as Ue, ElMessageBox as ct, ElMessage as dt, ElButton as
|
|
|
3
3
|
import Bn from "element-plus/es/locale/lang/zh-cn";
|
|
4
4
|
import { XAction as ye, XIcon as De, XDialog as $e, XDialogForm as ce, XField as P, XPanel as mt, XTabs as Nt, XContainer as O, XForm as Tn, XActionBar as Fn, vResizable as _t, createDialog as zn } from "@vtj/ui";
|
|
5
5
|
import { delay as Ot, upperFirstCamelCase as Wt, toRawType as Qe, cloneDeep as He, isPlainObject as Mn, merge as Lt, arrayToMap as Nn, toArray as On } from "@vtj/utils";
|
|
6
|
-
import { parseExpression as Je, parseFunction as Wn, JSCodeToString as Ce, LIFE_CYCLES_LIST as Ln, DATA_TYPES as Jn, logger as me, isJSExpression as Pe, createLoader as Un, ContextMode as
|
|
7
|
-
import { isBlock as U, DirectiveModel as Jt, emitter as q, EVENT_PROJECT_ACTIVED as
|
|
6
|
+
import { parseExpression as Je, parseFunction as Wn, JSCodeToString as Ce, LIFE_CYCLES_LIST as Ln, DATA_TYPES as Jn, logger as me, isJSExpression as Pe, createLoader as Un, ContextMode as ot, createRenderer as Hn, parseDeps as qn, createAssetsCss as Gn, createAssetScripts as yt, getRawComponent as Kn, createSchemaApis as Zn, Provider as Qn, isJSFunction as Xn } from "@vtj/renderer";
|
|
7
|
+
import { isBlock as U, DirectiveModel as Jt, emitter as q, EVENT_PROJECT_ACTIVED as at, EVENT_NODE_CHANGE as Ie, NodeModel as kt, EVENT_BLOCK_CHANGE as rt, Base as Ut, ProjectModel as Yn, EVENT_PROJECT_CHANGE as es, EVENT_PROJECT_BLOCKS_CHANGE as ts, EVENT_PROJECT_PAGES_CHANGE as ns, EVENT_PROJECT_DEPS_CHANGE as ss, EVENT_PROJECT_PUBLISH as ls, EVENT_PROJECT_FILE_PUBLISH as os, EVENT_HISTORY_CHANGE as as, EVENT_HISTORY_LOAD as rs, BlockModel as wt, HistoryModel as is } from "@vtj/core";
|
|
8
8
|
import { VtjIconBack as us, VtjIconPc as cs, VtjIconPhone as ds, VtjIconPad as ps, VtjIconUndo as ms, VtjIconRedo as vs, VtjIconBug as fs, VtjIconPreview as gs, VtjIconRefresh as hs, VtjIconSetting as bs, icons as it, ArrowDown as _s, Search as Ht, Back as ys, VtjIconPlus as qt, Delete as ks, VtjIconSave as ws, MoreFilled as vt, VtjIconCheck as Gt, VtjIconCopy as Kt, VtjIconEdit as Zt, VtjIconRemove as qe, VtjIconLock as Qt, VtjIconUnlock as Ss, VtjIconInvisible as Xt, VtjIconVisible as Vs, VtjIconHome as xs, VtjIconSearch as Cs, VtjIconLayers as Yt, VtjIconArrowUp as Es, VtjIconArrowDown as js, ArrowRight as As, VtjIconDocument as Ds, VtjIconComponents as Ps, VtjIconBlock as Is, VtjIconOutline as Rs, VtjIconHistory as $s, VtjIconApi as Bs, VtjIconCategory as Ts, VtjIconInfo as Fs, VtjIconVars as zs, VtjIconSwitch as Ms, VtjIconHelp as Ns } from "@vtj/icons";
|
|
9
9
|
import { useClipboard as Os, useElementSize as en } from "@vueuse/core";
|
|
10
10
|
/**!
|
|
11
11
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
12
12
|
* @name @vtj/designer
|
|
13
13
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
14
|
-
* @version 0.7.
|
|
14
|
+
* @version 0.7.6
|
|
15
15
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
16
16
|
*/
|
|
17
|
-
const Ws = "0.7.
|
|
17
|
+
const Ws = "0.7.6", St = {
|
|
18
18
|
width: 390,
|
|
19
19
|
height: 844
|
|
20
20
|
}, Vt = {
|
|
@@ -44,7 +44,7 @@ const Ws = "0.7.4", St = {
|
|
|
44
44
|
"once",
|
|
45
45
|
"passive"
|
|
46
46
|
];
|
|
47
|
-
var
|
|
47
|
+
var ae = /* @__PURE__ */ ((i) => (i.Block = "block", i.Node = "node", i))(ae || {}), qs = /* @__PURE__ */ ((i) => (i.Brand = "Brand", i.Toolbar = "Toolbar", i.Actions = "Actions", i.Apps = "Apps", i.Workspace = "Workspace", i.Settings = "Settings", i.Status = "Status", i.Preview = "Preview", i))(qs || {});
|
|
48
48
|
const tn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgIXA80DHgPKoCowE3gHuCirvIAj5AfAmcEUAaVcHZAJTgHlqjuQr/CREJm/PAH8G2pyWVZ0crlbzl8v8TNQvQrLVGP5en9I7XdBV9S0/9qu8fhDSC1isZI6zEaKjTQYe8aM+vSZwqeq8u5+lZMTiYeA5oLaXRLwQMhSYe5b0F4niR8BUL6S4VXsvAWYCGZ6Kf2bi+8oVcDuQ9KzbTQvpqQS4GjKcIVrdU25+mCwhbZWuk+WhsGcLxgEPJvusyRAi84xpNR14UhD9a1QyP0iGkEeBQcGV/YyE1O+zwPnJ/CARSEc1NrBin9kQtftFoHEiT5kIIeLj/s3ZXqsecSHwUCJJVEZIGjAJaFXVT3QG4D7ga5U9RmWEiHI7/GyvSZ8QUkPhhhUlVxEhLZUcUAP/ILFld7slJK9GFgkEuRXEjjkSIh6/O0+fZzyt0EK5tLVwIiSvMltXA0+4yWluoiOkqwrVqUFwqA/ckygholI2SCUZZhjM4/bflOYrn1IwT4AZSW3eSlLpUP4/yxPSKtWtwyyBnPPgioHQtpX93Zd0TVXZEbviddcJQ59OMHwAZDTxL+8EIWFRN5a/tTwh31UxtymBtIrhF8GiBwwWPmDw2oMGg3t5rxghIi0NLugAbcRJUKoIiEUYbhwCrz9k57sgz6BvZ7u1pBBjlPk6hdjIRSHnXeV8ChzmF3DlJfDyWIP653yZ28ZP4dKHTfYdBCPNHRndsuGpmwwGdYNjJ2DiYpMnFtheI8OwTWPnLCh43KBR3S9/u/0z+N4Ek8KNYKQu9PvbKkDEQmwL6QP0S0UJhIxhA2D6PWXJEHTNhN7t7Tc46XQj0KQRzBhrMLwPNKgDLRvDY9cZfFOeLtrywjC0B2XIELTLgNm5Br072603RRgZm00sIcNSsSRAyBjSF6b/xIirEMHRE7D7gEtfZhiG9YGe2fGXLuwY41A1oOhzfRLtW8LMcQbnd0wZKd9UC40shGL+Xhl0zkLGwJ4w816D5g7juKlvwbqPwEhkvVRs2thPcfWFhvb62h02ERZqw+vL4e//1afVuTXMGW/QpV1KSMmIDaGKEtI+GSeKGwgZ/brZZLR08AzMWgY/e8l03TqyW8PXesRf2roH3t3w5aI46UdKwnDnVJNXC/XJiemcPd4gp03gpMhr8tXol+ijDwly7iFk9Opiv3VtmuvvmZsPtzxnWp2wm85cCBnRB5pr9IXFK2F/sXImKBjpcOQY3DTJ5LWV+iQvaGOTkp0Z+Ojr8mjoUJSQnkHlJG9X9xyYO96wOk0dFq6AHzxncvS4XVFJ52FCWh24+qJ4cxU5Ca8WmpZNK39VzOKhIzDmWZO31+nT7t0OZuUaZGYESkrbaOB2SMVmBeIrlwfo0h7mjTfo6ODikrdzzCSTw8eS7zdOIQzd28JXNCs3pO94f6PzGl6jNhQfhOsnmrz3P/09F+XAy7kGGc0CmzzWV2tQLEJaqD7EVwgZHdvA/DyDLpn6lN9aCzc/a/L5YfdkWJ15BIb1soe55TEv3+SYpF9BvySkFO2D6yeZrNyuv2dQV3hpnEHTRvZcJwB0jRIieko9X8kogQ5ZMC/PoJvDss531sMNE032H7QrxDVOQq168F2NuZIh9PyCsn2HE4xzYMduuPZpk3U79Td9vQdMG2vQqF4gpAgPTUPKi+XWWMRByDivpW13ezosZ/lgC9w4yWRvsUcysGWRAZ3UPKMclm6CDTsSD5gVUrbssEnZskd/jwwc/ibqQl3fSZGl4e1DakWQLxAyWjW3Z7v9HIygmIRRT5vs2mtXgBdE9SmZe6RpTJKYq8gJe5ibKEQyWb8NrnnS5KPP9D/6dn948W6DunV8JUVc5i1Dfi3GFDKaNYaX7zUY2Fl/z4ZdMPoZk493eyfDwklo2Bgu7x1/af8ReH1VYuaqPISUNZvhe0+ZfLJff8/Ir8Cff2xwTm3f3AZS0mYhxYwnCBkNG9id3lCH6aWYgJETTDZ97BMZ2Obqki5o+6klq2H7LveDBaMurNhoi427HWSW0RfDCz8ySE/3hRSplcyQ2lXHNaQg9evB9LEGlzvMZiwV9SmTddv8U1Etc2XYc4+QxiTN+cB0sRigLISU/HU2KZ85bFFz46Uw9Q5FijcnV3qUkBZuUzBPQnoaTLnd4CoHnViavDzQ6s0+S9oRaJkBwzXm6qO98M46f/Y6ElLeXwM3PGty4Kj+nluGwiOjDatMcX6X5HCutz6kFAb1gDEO08pPDyj/woYA/Aul8PULIEsjxSxaAcX73c36dRBS3iyAMZNNDjvsfJI7Avp2scvlAVYfohHBE0QELu+lH8KImbr2GdNq8ob7HLSw3sJaemW3NAxzlml0Eq+oA4veh9ummhQfiU+rTi3VWr2ZrXohT0mY0NbB4P1qnsl7+f6TYSEM7VrDEM0AYvUOyN/i/9Zs1tC5Dsx8A/70tv6erOae34JwyNOWdwbscNjyK3eEQe+eAUnXYfttbKFRdhcWmhw/7FIxrgzH4VuD4Iav6u/bVeytA5Hd7UJqj0J3SIf5+SZhTRvrrqSTCzra8rtfkIGEKLvXDIh/G4+VJC6VJAt5hqF9Ydo9BplN4398vNTuuzzm/VlIbRjpDrVg2Qb45Vz9myHu0Hn3++wOVcruAI2y+98N8OF2/82VkHFJT5hRgafzyYWwcpMnEUoq8dOQ2r3TFSy7mgaPzoDHFuhTyGkF8+4z6OqXOzSCNcQuHxwhmP2BaanMFSm7yULI6NvV1uacPJ3P/xMemWladZGMTFMO4m3ZJUV3EAcSg/XwafDT6SYTF+t/Ij7q+fcbdMn2RoqYqzoN4Dua0dWeg7BkjZ8yqU1Gz072C6UzU4KX3oO7nzeJRDz3WzJg3ivV6SAMJA4piGlA3l9MJr+h/5n4qOfeZ9C5rQdSSuGiTtBHI1z+60PYUeRf/2F5OjvaZc52GEnOWQa3TTEt/7wPcx5pIQdCapNhzxBSIibkvmjygsOw8PwsmDXesHwlrtyhJlzV31nZlf7Fg8n4Mpvj0Dkb5uYZlsnVQYIjbplicsyl21mD9SJshNSOzw6iQHIQUkojcPcfTaY5bLTaKxvm5CUfOCA6UcMmcEXf+Gtbimzvox/mSsjIaav6PQfHxOJVth/+8FEPbud4iMHdGfJ7+20h5UQp3PUHk9nL9Pf0aWcHo2W1SoKUsK3sdtJEHr+yHD53G1wXAylL+yw70uR8h70qpJ+6aaLJwSO+kiEQV1pJdGK41M+UpQlLBMmtk00WOsQ9DciBmbkG52YkGDhgwKiB8cqutMgFBfaw24u5EjKyzrXNVG9N5KPg3xtst3PxId/JKFVbn596p1b4mrwKsREhTpq2NfrR4OLOtkOrRdOKSRGJP7OV6Gbx11Zth8Jt3syV5enMgFnjDKv16rB0M4yaYLLvcx/czvGQAwM+JIaQpZ5lMQ2EFIkokbfqPxv19wzpDjPGGTRpXIE7NGJHJLbWDD1fKTD54rB7cyVkNG1im1AnT6fldp5gsmd/IGQIlkUVk+hjFHiZIFYEeYB9B2w/+vJt+hulsl8aa9CgfjwplrKbbo+uyuPIcZi/3B7qurFWklcD8XT+xGBwN/0963fans5Pinz0dMbj1Lg0SsghdTpAIJAH2b3XJuXDT/Q5fKt3DCmxbTUCHVrDZRplV2z6+iSiSmIhZrBeXTsKf5jGyYUavUkEytZPAl0vIkrfv6JfYhv6PwLLUgUObFNv26bd+nuu7AeTbzVID8V43kTZ7QPNNBrSPHHTliTfmVuhp2nwu9sMK4JEB/HnjJQYra2BL96ReeDa6JdYQpaoIXBgkAfbuN1+67Y5SJo3D4b+nWKWoaVLKKeDVLLWpZBYCiP6w/cH6y+LS0HKuGpTQP6cspgZ23/HElKsdhgNFEKK+NdHTzLZ6aCi1a6ltE/DLuqWong1WUJ8dha5JOSkPUHVQRYLSUhpQRBu53gcjV3OhmZsMt2zVzgByIMWrFeklPPGyIx7xRZ7GGu1i3T4wxLKBELvPwwTF6m5h5sCpMGba+wJbCyk1V03yeS9tSlbYyh9R5nxZ5rR4+ex33eqLYQc3h//IJNHiaV9ax00bWBw0oRFhTDur2UXfIqafPQYvFIIoZBhEZg3zSR/o/shqKS9cw98XAz9OthL6wq22v7yd9ekdMHneGBzmbJpzg8ZpXYdTQmsCWEte3Hm3gO2qdKJddbIy1RtOux9PmD1T6XQvb3tSFu+FfbsC2yeoUOhWvFcRjzSEVJXTVQCW8RTHlblnLQru6IRU3Tk5YeieyrNUpV3ekB+eGfcDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", Gs = ["title", "src"], Ks = { key: 1 }, Zs = /* @__PURE__ */ E({
|
|
49
49
|
name: "LogoWidget",
|
|
50
50
|
inheritAttrs: !1,
|
|
@@ -95,8 +95,8 @@ function sn() {
|
|
|
95
95
|
const i = se();
|
|
96
96
|
return {
|
|
97
97
|
span: S(() => {
|
|
98
|
-
const l = i.skeleton?.skeletonRef.leftWidth || 400,
|
|
99
|
-
return Math.floor(24 /
|
|
98
|
+
const l = i.skeleton?.skeletonRef.leftWidth || 400, o = Math.min(Math.floor((l - 50) / 120), 24);
|
|
99
|
+
return Math.floor(24 / o);
|
|
100
100
|
}),
|
|
101
101
|
engine: i
|
|
102
102
|
};
|
|
@@ -110,7 +110,7 @@ function Ys() {
|
|
|
110
110
|
}
|
|
111
111
|
const el = (i = []) => i.map((e) => e.name);
|
|
112
112
|
function tl() {
|
|
113
|
-
const i = se(), { components: e, groups: t, componentMap: s } = i.assets, l = Re({}),
|
|
113
|
+
const i = se(), { components: e, groups: t, componentMap: s } = i.assets, l = Re({}), o = S(() => {
|
|
114
114
|
const f = {};
|
|
115
115
|
return t.value && t.value.forEach((b) => {
|
|
116
116
|
f[b.name] = b;
|
|
@@ -119,11 +119,11 @@ function tl() {
|
|
|
119
119
|
label: `${f.label} (${f.count})`,
|
|
120
120
|
name: f.name,
|
|
121
121
|
disabled: !f.children?.length
|
|
122
|
-
})) : []),
|
|
122
|
+
})) : []), a = w(r.value[0]?.name), u = w(""), p = S(() => o.value[a.value]);
|
|
123
123
|
jt(() => {
|
|
124
124
|
const f = r.value.reduce(
|
|
125
125
|
(b, h) => (b[h.name] = el(
|
|
126
|
-
|
|
126
|
+
o.value[h.name].children
|
|
127
127
|
), b),
|
|
128
128
|
{}
|
|
129
129
|
);
|
|
@@ -137,10 +137,10 @@ function tl() {
|
|
|
137
137
|
components: e,
|
|
138
138
|
groups: t,
|
|
139
139
|
componentMap: s,
|
|
140
|
-
groupMap:
|
|
140
|
+
groupMap: o,
|
|
141
141
|
tabs: r,
|
|
142
142
|
model: l,
|
|
143
|
-
currentTab:
|
|
143
|
+
currentTab: a,
|
|
144
144
|
currentGroup: p,
|
|
145
145
|
searchKey: u,
|
|
146
146
|
searchResult: m
|
|
@@ -160,52 +160,52 @@ function nl(i, e) {
|
|
|
160
160
|
t.simulator.init(i, e);
|
|
161
161
|
const s = S(() => t.simulator.designer.value), l = S(
|
|
162
162
|
() => Xe("hover", s.value?.hover.value)
|
|
163
|
-
),
|
|
163
|
+
), o = S(
|
|
164
164
|
() => Xe("dropping", s.value?.dropping.value)
|
|
165
165
|
), r = S(
|
|
166
166
|
() => Xe("selected", s.value?.selected.value)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
169
169
|
designer: s,
|
|
170
|
-
dropping:
|
|
170
|
+
dropping: o,
|
|
171
171
|
hover: l,
|
|
172
172
|
selected: r
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
function sl(i, e = !0) {
|
|
176
|
-
const { top: t, height: s, width: l, left:
|
|
176
|
+
const { top: t, height: s, width: l, left: o } = i || {};
|
|
177
177
|
if (s > 100 && l > 200)
|
|
178
178
|
return "inner";
|
|
179
|
-
let r,
|
|
180
|
-
return
|
|
179
|
+
let r, a;
|
|
180
|
+
return a = t > 30 ? "top" : "bottom", r = e || o < 300 && l < 300 ? "left" : "right", [r, a].join("-");
|
|
181
181
|
}
|
|
182
182
|
function ll(i) {
|
|
183
|
-
const { rect: e, type: t } = i, { left: s, width: l, top:
|
|
183
|
+
const { rect: e, type: t } = i, { left: s, width: l, top: o, height: r } = e, a = { left: s, width: l, top: o, height: r };
|
|
184
184
|
switch (t) {
|
|
185
185
|
case "left":
|
|
186
|
-
|
|
186
|
+
a.left = 0, a.width = 0;
|
|
187
187
|
break;
|
|
188
188
|
case "right":
|
|
189
|
-
|
|
189
|
+
a.left = a.left + a.width - 4, a.width = 0;
|
|
190
190
|
break;
|
|
191
191
|
case "bottom":
|
|
192
|
-
|
|
192
|
+
a.top = a.top + a.height - 4, a.height = 0;
|
|
193
193
|
break;
|
|
194
194
|
case "top":
|
|
195
|
-
|
|
195
|
+
a.height = 0;
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
|
-
return
|
|
198
|
+
return a;
|
|
199
199
|
}
|
|
200
200
|
function Xe(i, e) {
|
|
201
201
|
if (!e)
|
|
202
202
|
return null;
|
|
203
|
-
const { left: t, top: s, width: l, height:
|
|
203
|
+
const { left: t, top: s, width: l, height: o } = i === "dropping" ? ll(e) : e.rect, r = {
|
|
204
204
|
left: `${t}px`,
|
|
205
205
|
top: `${s}px`,
|
|
206
206
|
width: `${l}px`,
|
|
207
|
-
height: `${
|
|
208
|
-
visibility: l ||
|
|
207
|
+
height: `${o}px`,
|
|
208
|
+
visibility: l || o ? "visible" : "hidden"
|
|
209
209
|
};
|
|
210
210
|
return {
|
|
211
211
|
...e,
|
|
@@ -224,12 +224,12 @@ function fe() {
|
|
|
224
224
|
isSelectBlock: s
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
const t = w(""), { selected: s, isSelectBlock: l } = fe(),
|
|
227
|
+
function ol(i, e) {
|
|
228
|
+
const t = w(""), { selected: s, isSelectBlock: l } = fe(), o = S(() => s.value?.model.id), r = S(() => {
|
|
229
229
|
const u = et(i), p = et(e), m = [];
|
|
230
230
|
if (!u)
|
|
231
231
|
return m;
|
|
232
|
-
const f = p?.__contextRefs[
|
|
232
|
+
const f = p?.__contextRefs[o.value || ""], h = p === f || l.value ? [] : Object.keys(f?.context || {}).filter((A) => !["context", "ref"].includes(A)).map((A) => `this.context.${A}`);
|
|
233
233
|
h.length && m.push({ title: "上下文", items: h });
|
|
234
234
|
const d = u.inject.map((A) => `this.${A.name}`);
|
|
235
235
|
d.length && m.push({ title: "注入", items: d });
|
|
@@ -253,7 +253,7 @@ function al(i, e) {
|
|
|
253
253
|
(A) => `this.$refs.${A}`
|
|
254
254
|
);
|
|
255
255
|
return F.length && m.push({ title: "refs", items: F }), m;
|
|
256
|
-
}),
|
|
256
|
+
}), a = S(() => {
|
|
257
257
|
if (!t.value)
|
|
258
258
|
return r.value;
|
|
259
259
|
const u = t.value.toLowerCase(), p = [];
|
|
@@ -270,7 +270,7 @@ function al(i, e) {
|
|
|
270
270
|
return {
|
|
271
271
|
keyword: t,
|
|
272
272
|
options: r,
|
|
273
|
-
searchResult:
|
|
273
|
+
searchResult: a
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
const Te = [
|
|
@@ -283,7 +283,7 @@ const Te = [
|
|
|
283
283
|
label: "表达式"
|
|
284
284
|
}
|
|
285
285
|
];
|
|
286
|
-
function
|
|
286
|
+
function al(i) {
|
|
287
287
|
const e = se(), t = S(() => {
|
|
288
288
|
const f = i.value?.model || null;
|
|
289
289
|
return U(f) ? null : f;
|
|
@@ -319,7 +319,7 @@ function ol(i) {
|
|
|
319
319
|
setters: Te,
|
|
320
320
|
value: Array.isArray(t.value.children) ? "" : t.value.children
|
|
321
321
|
}
|
|
322
|
-
] : []),
|
|
322
|
+
] : []), o = S(() => {
|
|
323
323
|
if (!t.value)
|
|
324
324
|
return [];
|
|
325
325
|
const f = s.value || e.assets.componentMap.get(t.value.name);
|
|
@@ -327,15 +327,15 @@ function ol(i) {
|
|
|
327
327
|
...h,
|
|
328
328
|
value: t.value?.getPropValue(h.name) ?? h.defaultValue
|
|
329
329
|
})) : [];
|
|
330
|
-
}), r = (f) => l.value.some((b) => b.name === f) ||
|
|
330
|
+
}), r = (f) => l.value.some((b) => b.name === f) || o.value.some((b) => b.name === f) || f === "style", a = S(() => t.value ? Object.keys(t.value.props).filter((f) => !r(f)).map((f) => ({
|
|
331
331
|
name: f,
|
|
332
332
|
setters: "InputSetter",
|
|
333
333
|
value: t.value?.getPropValue(f)
|
|
334
334
|
})) : []);
|
|
335
335
|
return {
|
|
336
336
|
commonProps: l,
|
|
337
|
-
componentProps:
|
|
338
|
-
customProps:
|
|
337
|
+
componentProps: o,
|
|
338
|
+
customProps: a,
|
|
339
339
|
node: t,
|
|
340
340
|
change: (f, b) => {
|
|
341
341
|
t.value && (f === "children" ? t.value.setChildren(b) : t.value.setProp(f, b));
|
|
@@ -360,7 +360,7 @@ async function Ee(i) {
|
|
|
360
360
|
() => !1
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function oe(i, e = "success") {
|
|
364
364
|
return dt({
|
|
365
365
|
message: i,
|
|
366
366
|
type: e
|
|
@@ -385,19 +385,19 @@ function ln() {
|
|
|
385
385
|
() => i.current.value ? i.history.value : null
|
|
386
386
|
), s = S(() => t.value?.items.length || 0), l = () => {
|
|
387
387
|
e.value?.cleanHelper(), t.value?.forward();
|
|
388
|
-
},
|
|
388
|
+
}, o = () => {
|
|
389
389
|
t.value?.backward(), e.value?.cleanHelper();
|
|
390
390
|
}, r = (p) => {
|
|
391
|
-
e.value?.cleanHelper(), t.value?.load(p),
|
|
392
|
-
},
|
|
391
|
+
e.value?.cleanHelper(), t.value?.load(p), oe("已载入历史记录", "success");
|
|
392
|
+
}, a = S(() => s.value <= 1 ? !0 : (t.value?.index || -1) <= 0), u = S(() => s.value <= 1 ? !0 : (t.value?.index || -1) >= s.value - 1);
|
|
393
393
|
return {
|
|
394
394
|
engine: i,
|
|
395
395
|
history: t,
|
|
396
396
|
total: s,
|
|
397
397
|
forward: l,
|
|
398
|
-
backward:
|
|
398
|
+
backward: o,
|
|
399
399
|
load: r,
|
|
400
|
-
forwardDisabled:
|
|
400
|
+
forwardDisabled: a,
|
|
401
401
|
backwardDisabled: u
|
|
402
402
|
};
|
|
403
403
|
}
|
|
@@ -410,43 +410,43 @@ function Ge() {
|
|
|
410
410
|
}
|
|
411
411
|
function rl(i) {
|
|
412
412
|
const e = se(), t = S(() => {
|
|
413
|
-
const
|
|
414
|
-
return U(
|
|
413
|
+
const a = i.value?.model || null;
|
|
414
|
+
return U(a) ? null : a;
|
|
415
415
|
}), s = w();
|
|
416
|
-
ne(t, async (
|
|
417
|
-
|
|
416
|
+
ne(t, async (a) => {
|
|
417
|
+
a?.from ? s.value = await e.assets.getBlockMaterial(a.from) || void 0 : s.value = void 0;
|
|
418
418
|
});
|
|
419
419
|
const l = S(() => {
|
|
420
420
|
if (U(t.value))
|
|
421
421
|
return [];
|
|
422
|
-
const
|
|
422
|
+
const a = t.value?.events || {};
|
|
423
423
|
return Ls.map((u) => ({
|
|
424
424
|
name: u,
|
|
425
|
-
event:
|
|
425
|
+
event: a[u]
|
|
426
426
|
}));
|
|
427
|
-
}),
|
|
427
|
+
}), o = S(() => {
|
|
428
428
|
if (U(t.value))
|
|
429
429
|
return [];
|
|
430
|
-
const
|
|
430
|
+
const a = t.value?.events || {};
|
|
431
431
|
return Js.map((u) => ({
|
|
432
432
|
name: u,
|
|
433
|
-
event:
|
|
433
|
+
event: a[u]
|
|
434
434
|
}));
|
|
435
435
|
}), r = S(() => {
|
|
436
436
|
if (!t.value || U(t.value))
|
|
437
437
|
return [];
|
|
438
|
-
const
|
|
438
|
+
const a = t.value.events || {};
|
|
439
439
|
return (s.value?.events || e.assets.componentMap.get(t.value.name)?.events || []).map((p) => {
|
|
440
440
|
const m = typeof p == "string" ? p : p.name;
|
|
441
441
|
return {
|
|
442
442
|
name: m,
|
|
443
|
-
event:
|
|
443
|
+
event: a[m]
|
|
444
444
|
};
|
|
445
445
|
});
|
|
446
446
|
});
|
|
447
447
|
return {
|
|
448
448
|
mouseEventList: l,
|
|
449
|
-
keyboardEventList:
|
|
449
|
+
keyboardEventList: o,
|
|
450
450
|
componentEventList: r
|
|
451
451
|
};
|
|
452
452
|
}
|
|
@@ -465,7 +465,7 @@ function ul(i) {
|
|
|
465
465
|
const { props: e = [], events: t = [] } = i;
|
|
466
466
|
if (e.length && t.length) {
|
|
467
467
|
const s = t.filter((l) => (typeof l == "string" ? l : l.name).startsWith("update:")).map((l) => l = typeof l == "string" ? l : l.name);
|
|
468
|
-
return s.length ? e.filter((l) => s.some((
|
|
468
|
+
return s.length ? e.filter((l) => s.some((o) => o.includes(l.name))) : [];
|
|
469
469
|
}
|
|
470
470
|
return [];
|
|
471
471
|
}
|
|
@@ -480,18 +480,18 @@ function cl(i) {
|
|
|
480
480
|
return (d ? ul(d) : []).map((y) => (t.value?.directives || []).find(
|
|
481
481
|
(V) => V.name === "vModel" && V.arg == y.name
|
|
482
482
|
) || il(y.name));
|
|
483
|
-
}),
|
|
484
|
-
vIf:
|
|
483
|
+
}), o = s("vIf"), r = s("vShow"), a = s("vBind"), u = s("vFor"), p = l(), m = {
|
|
484
|
+
vIf: o,
|
|
485
485
|
vShow: r,
|
|
486
|
-
vBind:
|
|
486
|
+
vBind: a,
|
|
487
487
|
vFor: u
|
|
488
488
|
};
|
|
489
489
|
return {
|
|
490
490
|
engine: e,
|
|
491
491
|
node: t,
|
|
492
|
-
vIf:
|
|
492
|
+
vIf: o,
|
|
493
493
|
vShow: r,
|
|
494
|
-
vBind:
|
|
494
|
+
vBind: a,
|
|
495
495
|
vFor: u,
|
|
496
496
|
vModels: p,
|
|
497
497
|
onValueChange: (d, k) => {
|
|
@@ -532,10 +532,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
532
532
|
__name: "index",
|
|
533
533
|
emits: ["click"],
|
|
534
534
|
setup(i, { emit: e }) {
|
|
535
|
-
const t = e, { engine: s } = te(), l = S(() => s.project.value?.name),
|
|
535
|
+
const t = e, { engine: s } = te(), l = S(() => s.project.value?.name), o = S(() => s.project.value?.currentFile?.title), r = () => {
|
|
536
536
|
t("click", s.project.value);
|
|
537
537
|
};
|
|
538
|
-
return (
|
|
538
|
+
return (a, u) => (c(), j("div", pl, [
|
|
539
539
|
v(n(re), {
|
|
540
540
|
size: "small",
|
|
541
541
|
round: "",
|
|
@@ -544,11 +544,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
544
544
|
default: g(() => [
|
|
545
545
|
v(n(us), { class: "v-switcher-widget__back" }),
|
|
546
546
|
z("span", null, N(l.value), 1),
|
|
547
|
-
|
|
547
|
+
o.value ? (c(), _(n(Le), {
|
|
548
548
|
key: 0,
|
|
549
549
|
direction: "vertical"
|
|
550
550
|
})) : C("", !0),
|
|
551
|
-
|
|
551
|
+
o.value ? (c(), j("span", ml, N(o.value), 1)) : C("", !0)
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
})
|
|
@@ -562,14 +562,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
562
562
|
preview: { type: Boolean }
|
|
563
563
|
},
|
|
564
564
|
setup(i, { expose: e }) {
|
|
565
|
-
const t = i, { forward: s, backward: l, forwardDisabled:
|
|
565
|
+
const t = i, { forward: s, backward: l, forwardDisabled: o, backwardDisabled: r } = ln(), a = w("pc");
|
|
566
566
|
return e({
|
|
567
|
-
mode:
|
|
567
|
+
mode: a
|
|
568
568
|
}), (u, p) => (c(), j("div", fl, [
|
|
569
569
|
v(n(fn), {
|
|
570
570
|
size: "small",
|
|
571
|
-
modelValue:
|
|
572
|
-
"onUpdate:modelValue": p[0] || (p[0] = (m) =>
|
|
571
|
+
modelValue: a.value,
|
|
572
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => a.value = m)
|
|
573
573
|
}, {
|
|
574
574
|
default: g(() => [
|
|
575
575
|
v(n(Ze), { label: "pc" }, {
|
|
@@ -611,7 +611,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
611
611
|
type: "default",
|
|
612
612
|
size: "small",
|
|
613
613
|
onClick: n(s),
|
|
614
|
-
disabled: n(
|
|
614
|
+
disabled: n(o) || !!t.preview
|
|
615
615
|
}, {
|
|
616
616
|
default: g(() => [
|
|
617
617
|
v(n(vs))
|
|
@@ -632,9 +632,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
632
632
|
},
|
|
633
633
|
setup(i) {
|
|
634
634
|
const { engine: e, designer: t } = fe(), s = w(!1), l = () => {
|
|
635
|
-
e.current.value ? (s.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()),
|
|
636
|
-
},
|
|
637
|
-
e.current.value ? (s.value && (e.skeleton?.closePreview(), s.value = !1, await Ot(1e3)), t.value?.setSelected(e.current.value)) :
|
|
635
|
+
e.current.value ? (s.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), oe("刷新完成", "success")) : oe("请先打开文件", "warning");
|
|
636
|
+
}, o = async () => {
|
|
637
|
+
e.current.value ? (s.value && (e.skeleton?.closePreview(), s.value = !1, await Ot(1e3)), t.value?.setSelected(e.current.value)) : oe("请先打开文件", "warning");
|
|
638
638
|
}, r = () => {
|
|
639
639
|
if (e.project.value)
|
|
640
640
|
if (e.current.value) {
|
|
@@ -644,13 +644,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
644
644
|
}
|
|
645
645
|
e.skeleton?.openPreview(""), s.value = !0;
|
|
646
646
|
} else
|
|
647
|
-
|
|
648
|
-
},
|
|
647
|
+
oe("请先打开文件", "warning");
|
|
648
|
+
}, a = () => {
|
|
649
649
|
const p = e.project.value;
|
|
650
|
-
p && (p.currentFile ? p.publish(p.currentFile) :
|
|
650
|
+
p && (p.currentFile ? p.publish(p.currentFile) : oe("请先打开文件", "warning"));
|
|
651
651
|
}, u = (p) => {
|
|
652
652
|
const m = e.project.value;
|
|
653
|
-
m && (p === "current" ?
|
|
653
|
+
m && (p === "current" ? a() : m.publish());
|
|
654
654
|
};
|
|
655
655
|
return (p, m) => (c(), j("div", hl, [
|
|
656
656
|
v(n(hn), {
|
|
@@ -694,7 +694,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
694
694
|
type: "default",
|
|
695
695
|
size: "small",
|
|
696
696
|
title: "页面设置",
|
|
697
|
-
onClick:
|
|
697
|
+
onClick: o
|
|
698
698
|
}, {
|
|
699
699
|
default: g(() => [
|
|
700
700
|
v(n(bs))
|
|
@@ -706,7 +706,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
706
706
|
"split-button": "",
|
|
707
707
|
type: "primary",
|
|
708
708
|
size: "small",
|
|
709
|
-
onClick:
|
|
709
|
+
onClick: a,
|
|
710
710
|
onCommand: u
|
|
711
711
|
}, {
|
|
712
712
|
dropdown: g(() => [
|
|
@@ -735,7 +735,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
735
735
|
})
|
|
736
736
|
]));
|
|
737
737
|
}
|
|
738
|
-
}), yl = { class: "v-icon-setter" }, kl = { class: "v-icon-setter__content" }, wl = { class: "v-icon-setter__list" },
|
|
738
|
+
}), yl = { class: "v-icon-setter" }, kl = { class: "v-icon-setter__content" }, wl = { class: "v-icon-setter__list" }, on = /* @__PURE__ */ E({
|
|
739
739
|
name: "IconSetter",
|
|
740
740
|
__name: "icon",
|
|
741
741
|
props: {
|
|
@@ -744,17 +744,17 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
744
744
|
},
|
|
745
745
|
emits: ["change", "update:modelValue"],
|
|
746
746
|
setup(i, { emit: e }) {
|
|
747
|
-
const t = i, s = e, l = w(!1),
|
|
747
|
+
const t = i, s = e, l = w(!1), o = w(t.modelValue), r = w(""), a = S(
|
|
748
748
|
() => it[t.modelValue] || t.modelValue
|
|
749
749
|
), u = S(() => {
|
|
750
750
|
const h = Object.entries(it);
|
|
751
751
|
return r.value ? h.filter((d) => d[0].toLowerCase().includes(r.value)) : h;
|
|
752
752
|
}), p = (h) => {
|
|
753
|
-
|
|
753
|
+
o.value = h;
|
|
754
754
|
}, m = () => {
|
|
755
|
-
s("change",
|
|
755
|
+
s("change", o.value), s("update:modelValue", o.value), l.value = !1;
|
|
756
756
|
}, f = () => {
|
|
757
|
-
|
|
757
|
+
o.value = "", s("change", ""), s("update:modelValue", ""), l.value = !1;
|
|
758
758
|
}, b = () => {
|
|
759
759
|
l.value = !0;
|
|
760
760
|
};
|
|
@@ -768,7 +768,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
768
768
|
onFocus: b
|
|
769
769
|
}, {
|
|
770
770
|
prepend: g(() => [
|
|
771
|
-
v(n(De), { icon:
|
|
771
|
+
v(n(De), { icon: a.value }, null, 8, ["icon"])
|
|
772
772
|
]),
|
|
773
773
|
_: 1
|
|
774
774
|
}, 8, ["size", "model-value", "suffix-icon"]),
|
|
@@ -810,7 +810,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
810
810
|
(c(!0), j($, null, B(u.value, (k) => (c(), _(n(De), {
|
|
811
811
|
icon: k[1],
|
|
812
812
|
onClick: (y) => p(k[0]),
|
|
813
|
-
class: ee({ "is-active":
|
|
813
|
+
class: ee({ "is-active": o.value === k[0] })
|
|
814
814
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
|
815
815
|
u.value.length === 0 ? (c(), _(n(Z), { key: 0 })) : C("", !0)
|
|
816
816
|
])
|
|
@@ -836,18 +836,18 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
836
836
|
mask: !0,
|
|
837
837
|
hidden: !1,
|
|
838
838
|
raw: !1
|
|
839
|
-
}),
|
|
839
|
+
}), o = w(e.item || l()), r = [
|
|
840
840
|
{ label: "页面", value: !1 },
|
|
841
841
|
{ label: "目录", value: !0 }
|
|
842
|
-
],
|
|
843
|
-
|
|
842
|
+
], a = (p) => {
|
|
843
|
+
o.value && (o.value.name = Wt(p));
|
|
844
844
|
}, u = async (p) => t.value?.existPageName(p.name, [p.id]) ? (Q("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(p) : t.value?.createPage(p, e.parentId), !0);
|
|
845
845
|
return (p, m) => (c(), _(n(ce), {
|
|
846
846
|
title: s.value,
|
|
847
847
|
width: "800px",
|
|
848
848
|
height: "500px",
|
|
849
849
|
"form-props": { tooltipMessage: !1 },
|
|
850
|
-
model:
|
|
850
|
+
model: o.value,
|
|
851
851
|
"submit-method": u
|
|
852
852
|
}, {
|
|
853
853
|
default: g(() => [
|
|
@@ -864,7 +864,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
864
864
|
name: "name",
|
|
865
865
|
label: "名称",
|
|
866
866
|
required: "",
|
|
867
|
-
onChange:
|
|
867
|
+
onChange: a,
|
|
868
868
|
rules: { pattern: n(ve), message: "名称格式不正确" }
|
|
869
869
|
}, null, 8, ["rules"]),
|
|
870
870
|
v(n(P), {
|
|
@@ -878,9 +878,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
878
878
|
editor: "none"
|
|
879
879
|
}, {
|
|
880
880
|
editor: g(() => [
|
|
881
|
-
v(
|
|
882
|
-
modelValue:
|
|
883
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) =>
|
|
881
|
+
v(on, {
|
|
882
|
+
modelValue: o.value.icon,
|
|
883
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => o.value.icon = f),
|
|
884
884
|
size: "default"
|
|
885
885
|
}, null, 8, ["modelValue"])
|
|
886
886
|
]),
|
|
@@ -924,10 +924,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
924
924
|
const t = i, s = e, l = S(() => ({
|
|
925
925
|
"is-active": t.active,
|
|
926
926
|
"is-open": t.open
|
|
927
|
-
})),
|
|
927
|
+
})), o = () => {
|
|
928
928
|
s("click");
|
|
929
929
|
};
|
|
930
|
-
return (r,
|
|
930
|
+
return (r, a) => (c(), _(n(zt), {
|
|
931
931
|
effect: "dark",
|
|
932
932
|
placement: "right",
|
|
933
933
|
content: r.label,
|
|
@@ -936,7 +936,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
936
936
|
default: g(() => [
|
|
937
937
|
z("div", {
|
|
938
938
|
class: ee(["v-apps-region__icon", l.value]),
|
|
939
|
-
onClick:
|
|
939
|
+
onClick: o
|
|
940
940
|
}, [
|
|
941
941
|
(c(), _(At(r.icon)))
|
|
942
942
|
], 2)
|
|
@@ -960,17 +960,17 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
960
960
|
setup(i, { emit: e }) {
|
|
961
961
|
const t = i, s = e, l = () => {
|
|
962
962
|
s("plus");
|
|
963
|
-
},
|
|
963
|
+
}, o = () => {
|
|
964
964
|
s("back");
|
|
965
965
|
}, r = () => {
|
|
966
966
|
s("remove");
|
|
967
|
-
},
|
|
967
|
+
}, a = () => {
|
|
968
968
|
s("save");
|
|
969
969
|
}, u = S(() => t.header ? {
|
|
970
970
|
content: t.title,
|
|
971
971
|
subtitle: t.subtitle,
|
|
972
972
|
icon: t.back ? ys : void 0,
|
|
973
|
-
onClickBack: t.back ?
|
|
973
|
+
onClickBack: t.back ? o : void 0
|
|
974
974
|
} : null);
|
|
975
975
|
return (p, m) => (c(), _(n(mt), {
|
|
976
976
|
class: "v-panel",
|
|
@@ -1004,7 +1004,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1004
1004
|
icon: n(ws),
|
|
1005
1005
|
background: "hover",
|
|
1006
1006
|
title: "保存",
|
|
1007
|
-
onClick:
|
|
1007
|
+
onClick: a
|
|
1008
1008
|
}, null, 8, ["size", "icon"])) : C("", !0),
|
|
1009
1009
|
de(p.$slots, "actions")
|
|
1010
1010
|
]),
|
|
@@ -1043,16 +1043,16 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1043
1043
|
s("update:modelValue", l.value);
|
|
1044
1044
|
}), ne(
|
|
1045
1045
|
() => t.modelValue,
|
|
1046
|
-
(
|
|
1047
|
-
l.value =
|
|
1046
|
+
(a) => {
|
|
1047
|
+
l.value = a;
|
|
1048
1048
|
}
|
|
1049
1049
|
);
|
|
1050
|
-
const
|
|
1051
|
-
s("command",
|
|
1052
|
-
}, r = (
|
|
1053
|
-
s("remove",
|
|
1050
|
+
const o = (a) => {
|
|
1051
|
+
s("command", a);
|
|
1052
|
+
}, r = (a) => {
|
|
1053
|
+
s("remove", a);
|
|
1054
1054
|
};
|
|
1055
|
-
return (
|
|
1055
|
+
return (a, u) => (c(), _(n(mt), {
|
|
1056
1056
|
class: "v-tabs",
|
|
1057
1057
|
border: !1,
|
|
1058
1058
|
fit: "",
|
|
@@ -1081,7 +1081,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1081
1081
|
placement: "bottom-end"
|
|
1082
1082
|
},
|
|
1083
1083
|
menus: t.menus,
|
|
1084
|
-
onCommand:
|
|
1084
|
+
onCommand: o
|
|
1085
1085
|
}, {
|
|
1086
1086
|
item: g(({ item: p }) => [
|
|
1087
1087
|
z("span", null, [
|
|
@@ -1101,7 +1101,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1101
1101
|
])
|
|
1102
1102
|
]),
|
|
1103
1103
|
default: g(() => [
|
|
1104
|
-
de(
|
|
1104
|
+
de(a.$slots, "default")
|
|
1105
1105
|
]),
|
|
1106
1106
|
_: 3
|
|
1107
1107
|
}));
|
|
@@ -1170,13 +1170,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1170
1170
|
label: "主页",
|
|
1171
1171
|
icon: xs
|
|
1172
1172
|
}
|
|
1173
|
-
}, s = i, l = e,
|
|
1173
|
+
}, s = i, l = e, o = w(!!s.modelValue), r = S(() => s.actions.map((m) => {
|
|
1174
1174
|
const f = t[m];
|
|
1175
1175
|
return {
|
|
1176
1176
|
name: m,
|
|
1177
1177
|
...f
|
|
1178
1178
|
};
|
|
1179
|
-
})),
|
|
1179
|
+
})), a = S(() => ({
|
|
1180
1180
|
"is-background": s.background,
|
|
1181
1181
|
"is-border": s.border,
|
|
1182
1182
|
"is-active": s.active,
|
|
@@ -1195,15 +1195,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1195
1195
|
modelValue: s.modelValue
|
|
1196
1196
|
});
|
|
1197
1197
|
};
|
|
1198
|
-
return ne(
|
|
1198
|
+
return ne(o, (m) => {
|
|
1199
1199
|
l("update:modelValue", m), l("switch", m);
|
|
1200
1200
|
}), ne(
|
|
1201
1201
|
() => s.modelValue,
|
|
1202
1202
|
(m) => {
|
|
1203
|
-
|
|
1203
|
+
o.value = !!m;
|
|
1204
1204
|
}
|
|
1205
1205
|
), (m, f) => (c(), _(n(O), {
|
|
1206
|
-
class: ee(["v-item",
|
|
1206
|
+
class: ee(["v-item", a.value]),
|
|
1207
1207
|
justify: "space-between",
|
|
1208
1208
|
align: "center",
|
|
1209
1209
|
onClick: u
|
|
@@ -1255,8 +1255,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1255
1255
|
}, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
|
|
1256
1256
|
s.switch ? (c(), _(n(Mt), {
|
|
1257
1257
|
key: 0,
|
|
1258
|
-
modelValue:
|
|
1259
|
-
"onUpdate:modelValue": f[0] || (f[0] = (b) =>
|
|
1258
|
+
modelValue: o.value,
|
|
1259
|
+
"onUpdate:modelValue": f[0] || (f[0] = (b) => o.value = b),
|
|
1260
1260
|
class: "v-item__switch",
|
|
1261
1261
|
size: "small"
|
|
1262
1262
|
}, null, 8, ["modelValue"])) : C("", !0),
|
|
@@ -1282,14 +1282,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1282
1282
|
setup(i, { emit: e }) {
|
|
1283
1283
|
const t = i, s = e, l = () => {
|
|
1284
1284
|
s("edit");
|
|
1285
|
-
},
|
|
1285
|
+
}, o = async () => {
|
|
1286
1286
|
await ct.confirm("确认删除?", "提示", {
|
|
1287
1287
|
type: "warning"
|
|
1288
1288
|
}).catch(() => !1) && s("remove");
|
|
1289
1289
|
}, r = S(() => ({
|
|
1290
1290
|
"is-active": t.active,
|
|
1291
1291
|
"is-draggable": t.draggable
|
|
1292
|
-
})),
|
|
1292
|
+
})), a = () => {
|
|
1293
1293
|
s("dragstart", t);
|
|
1294
1294
|
}, u = () => {
|
|
1295
1295
|
s("dragend", t);
|
|
@@ -1297,7 +1297,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1297
1297
|
return (p, m) => (c(), j("div", {
|
|
1298
1298
|
class: ee(["v-box", r.value]),
|
|
1299
1299
|
draggable: p.draggable,
|
|
1300
|
-
onDragstart:
|
|
1300
|
+
onDragstart: a,
|
|
1301
1301
|
onDragend: u
|
|
1302
1302
|
}, [
|
|
1303
1303
|
v(n(O), {
|
|
@@ -1324,7 +1324,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1324
1324
|
}, null, 8, ["icon"]),
|
|
1325
1325
|
v(n(De), {
|
|
1326
1326
|
icon: n(qe),
|
|
1327
|
-
onClick:
|
|
1327
|
+
onClick: o
|
|
1328
1328
|
}, null, 8, ["icon"])
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 1
|
|
@@ -1338,7 +1338,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1338
1338
|
},
|
|
1339
1339
|
emits: ["pick", "copy"],
|
|
1340
1340
|
setup(i, { emit: e }) {
|
|
1341
|
-
const t = i, s = e, l = ["$provider", "$apis", "$components", "context"],
|
|
1341
|
+
const t = i, s = e, l = ["$provider", "$apis", "$components", "context"], o = (m) => {
|
|
1342
1342
|
const f = m.value, b = Qe(f);
|
|
1343
1343
|
return b === "Object" || b === "Module" ? Object.keys(f || {}).length === 0 : b === "Array" ? f.length === 0 : !0;
|
|
1344
1344
|
}, r = (m, f = "this") => typeof m == "object" ? Array.isArray(m) ? m.map((b, h) => {
|
|
@@ -1356,7 +1356,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1356
1356
|
path: `${f}.${b}`
|
|
1357
1357
|
})).filter(
|
|
1358
1358
|
(b) => !b.label.startsWith("__") && !l.includes(b.label)
|
|
1359
|
-
) : [],
|
|
1359
|
+
) : [], a = (m, f) => {
|
|
1360
1360
|
if (m.level === 0)
|
|
1361
1361
|
f(r(t.context));
|
|
1362
1362
|
else {
|
|
@@ -1372,9 +1372,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1372
1372
|
m.context ? (c(), _(n(pt), {
|
|
1373
1373
|
key: 0,
|
|
1374
1374
|
lazy: "",
|
|
1375
|
-
load:
|
|
1375
|
+
load: a,
|
|
1376
1376
|
"expand-on-click-node": !1,
|
|
1377
|
-
props: { isLeaf:
|
|
1377
|
+
props: { isLeaf: o }
|
|
1378
1378
|
}, {
|
|
1379
1379
|
default: g(({ data: b }) => [
|
|
1380
1380
|
v(X, {
|
|
@@ -1413,7 +1413,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1413
1413
|
"close"
|
|
1414
1414
|
],
|
|
1415
1415
|
setup(i, { emit: e }) {
|
|
1416
|
-
const t = i, s = e, { searchResult: l, keyword:
|
|
1416
|
+
const t = i, s = e, { searchResult: l, keyword: o } = ol(t.block, t.context), { copy: r } = Os({}), a = [
|
|
1417
1417
|
{
|
|
1418
1418
|
name: "normal",
|
|
1419
1419
|
label: "常用"
|
|
@@ -1464,7 +1464,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1464
1464
|
default: g(() => [
|
|
1465
1465
|
v(Ke, {
|
|
1466
1466
|
class: "v-binder__tabs",
|
|
1467
|
-
items:
|
|
1467
|
+
items: a,
|
|
1468
1468
|
modelValue: u.value,
|
|
1469
1469
|
"onUpdate:modelValue": x[1] || (x[1] = (D) => u.value = D)
|
|
1470
1470
|
}, {
|
|
@@ -1478,8 +1478,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1478
1478
|
default: g(() => [
|
|
1479
1479
|
Ae(z("div", null, [
|
|
1480
1480
|
v(n(pe), {
|
|
1481
|
-
modelValue: n(
|
|
1482
|
-
"onUpdate:modelValue": x[0] || (x[0] = (D) => tt(
|
|
1481
|
+
modelValue: n(o),
|
|
1482
|
+
"onUpdate:modelValue": x[0] || (x[0] = (D) => tt(o) ? o.value = D : null),
|
|
1483
1483
|
size: "small",
|
|
1484
1484
|
clearable: "",
|
|
1485
1485
|
"prefix-icon": n(Ht),
|
|
@@ -1608,19 +1608,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["submit", "update:modelValue"],
|
|
1610
1610
|
setup(i, { emit: e }) {
|
|
1611
|
-
const t = i, s = e, l = w(),
|
|
1611
|
+
const t = i, s = e, l = w(), o = S(() => `${50 * Math.ceil(t.slots.length / 4) + 180}px`), r = (u) => {
|
|
1612
1612
|
l.value = u;
|
|
1613
|
-
},
|
|
1613
|
+
}, a = () => {
|
|
1614
1614
|
l.value ? (s("submit", l.value), s("update:modelValue", !1)) : Q("请选择插槽");
|
|
1615
1615
|
};
|
|
1616
1616
|
return (u, p) => (c(), _(n($e), ue({
|
|
1617
1617
|
class: "v-slots-picker",
|
|
1618
1618
|
title: "选择插槽",
|
|
1619
1619
|
width: "600px",
|
|
1620
|
-
height:
|
|
1620
|
+
height: o.value,
|
|
1621
1621
|
submit: "",
|
|
1622
1622
|
cancel: "",
|
|
1623
|
-
onSubmit:
|
|
1623
|
+
onSubmit: a
|
|
1624
1624
|
}, u.$attrs), {
|
|
1625
1625
|
default: g(() => [
|
|
1626
1626
|
v(n(_n), {
|
|
@@ -1655,7 +1655,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
}, 16, ["height"]));
|
|
1657
1657
|
}
|
|
1658
|
-
}),
|
|
1658
|
+
}), an = /* @__PURE__ */ E({
|
|
1659
1659
|
name: "Viewport",
|
|
1660
1660
|
__name: "viewport",
|
|
1661
1661
|
props: {
|
|
@@ -1667,36 +1667,36 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1667
1667
|
const e = i, t = S(() => [`is-${e.mode}`]), s = S(() => {
|
|
1668
1668
|
if (e.mode === "pc")
|
|
1669
1669
|
return 1;
|
|
1670
|
-
const
|
|
1670
|
+
const o = e.mode === "mobile" ? St : Vt, { width: r, height: a } = o, u = r > 0 ? (e.width || 0) / r : 1, p = a > 0 ? (e.height || 0) / a : 1;
|
|
1671
1671
|
return Math.min(u, p);
|
|
1672
1672
|
}), l = S(() => {
|
|
1673
1673
|
if (e.mode === "pc")
|
|
1674
1674
|
return {};
|
|
1675
|
-
const
|
|
1675
|
+
const o = e.mode === "mobile" ? St : Vt, { width: r, height: a } = o;
|
|
1676
1676
|
return {
|
|
1677
1677
|
width: `${r}px`,
|
|
1678
|
-
height: `${
|
|
1678
|
+
height: `${a}px`,
|
|
1679
1679
|
left: "50%",
|
|
1680
1680
|
top: "50%",
|
|
1681
1681
|
transform: `translate(-50%, -50%) scale(${s.value})`
|
|
1682
1682
|
};
|
|
1683
1683
|
});
|
|
1684
|
-
return (
|
|
1684
|
+
return (o, r) => (c(), j("div", {
|
|
1685
1685
|
class: ee(["v-viewport", t.value]),
|
|
1686
1686
|
style: Fe(l.value)
|
|
1687
1687
|
}, [
|
|
1688
|
-
de(
|
|
1688
|
+
de(o.$slots, "default")
|
|
1689
1689
|
], 6));
|
|
1690
1690
|
}
|
|
1691
1691
|
}), Tl = /* @__PURE__ */ E({
|
|
1692
1692
|
name: "PagesWidget",
|
|
1693
1693
|
__name: "index",
|
|
1694
1694
|
setup(i) {
|
|
1695
|
-
const { project: e, engine: t } = Ge(), s = S(() => e.value?.pages || []), { current: l } = te(),
|
|
1696
|
-
|
|
1695
|
+
const { project: e, engine: t } = Ge(), s = S(() => e.value?.pages || []), { current: l } = te(), o = w(!1), r = w(), a = w(), u = () => {
|
|
1696
|
+
a.value = void 0, r.value = void 0, o.value = !0;
|
|
1697
1697
|
}, p = async (h) => {
|
|
1698
1698
|
const { name: d, modelValue: k } = h, { data: y, node: V } = k;
|
|
1699
|
-
if (d === "add" && (r.value = void 0,
|
|
1699
|
+
if (d === "add" && (r.value = void 0, a.value = y.id, o.value = !0), d === "edit" && (r.value = He(y), a.value = void 0, o.value = !0), d === "remove") {
|
|
1700
1700
|
if (y.dir) {
|
|
1701
1701
|
const x = e.value?.getPage(y.id);
|
|
1702
1702
|
if (x && x.children?.length) {
|
|
@@ -1710,9 +1710,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1710
1710
|
const x = V.parent?.data.id;
|
|
1711
1711
|
e.value?.clonePage(y, x);
|
|
1712
1712
|
}
|
|
1713
|
-
d === "home" && (e.value?.setHomepage(y.id),
|
|
1713
|
+
d === "home" && (e.value?.setHomepage(y.id), oe("设置主页成功", "success"));
|
|
1714
1714
|
}, m = async (h) => {
|
|
1715
|
-
h.raw &&
|
|
1715
|
+
h.raw && oe("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? t.project.value?.deactivate() : t.project.value?.active(h);
|
|
1716
1716
|
}, f = (h, d, k) => k === "inner" ? !!d.data.dir : !0, b = () => {
|
|
1717
1717
|
e.value?.update({
|
|
1718
1718
|
pages: et(s)
|
|
@@ -1755,12 +1755,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 1
|
|
1757
1757
|
}, 8, ["data"]),
|
|
1758
|
-
|
|
1758
|
+
o.value ? (c(), _(Sl, {
|
|
1759
1759
|
key: 0,
|
|
1760
|
-
modelValue:
|
|
1761
|
-
"onUpdate:modelValue": d[0] || (d[0] = (k) =>
|
|
1760
|
+
modelValue: o.value,
|
|
1761
|
+
"onUpdate:modelValue": d[0] || (d[0] = (k) => o.value = k),
|
|
1762
1762
|
item: r.value,
|
|
1763
|
-
"parent-id":
|
|
1763
|
+
"parent-id": a.value
|
|
1764
1764
|
}, null, 8, ["modelValue", "item", "parent-id"])) : C("", !0)
|
|
1765
1765
|
]),
|
|
1766
1766
|
_: 1
|
|
@@ -1770,7 +1770,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1770
1770
|
name: "BlocksWidget",
|
|
1771
1771
|
__name: "index",
|
|
1772
1772
|
setup(i) {
|
|
1773
|
-
const { span: e } = sn(), { blocks: t, engine: s } = Ys(), l = w(void 0), { current:
|
|
1773
|
+
const { span: e } = sn(), { blocks: t, engine: s } = Ys(), l = w(void 0), { current: o } = te(), r = w(!1), a = S(() => l.value?.id ? "编辑" : "新增"), u = S(() => `(共 ${t.value.length} 个)`), p = () => ({
|
|
1774
1774
|
name: "",
|
|
1775
1775
|
title: "",
|
|
1776
1776
|
type: "block"
|
|
@@ -1829,12 +1829,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1829
1829
|
v(n(ut), {
|
|
1830
1830
|
name: F.name,
|
|
1831
1831
|
title: F.title,
|
|
1832
|
-
active: n(
|
|
1832
|
+
active: n(o)?.id === F.id,
|
|
1833
1833
|
editable: "",
|
|
1834
1834
|
onEdit: (A) => b(F),
|
|
1835
1835
|
onRemove: (A) => h(F),
|
|
1836
1836
|
onClick: (A) => k(F),
|
|
1837
|
-
draggable: n(
|
|
1837
|
+
draggable: n(o)?.id !== F.id,
|
|
1838
1838
|
onDragstart: (A) => y(F),
|
|
1839
1839
|
onDragend: V
|
|
1840
1840
|
}, null, 8, ["name", "title", "active", "onEdit", "onRemove", "onClick", "draggable", "onDragstart"])
|
|
@@ -1848,7 +1848,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1848
1848
|
v(n(ce), {
|
|
1849
1849
|
modelValue: r.value,
|
|
1850
1850
|
"onUpdate:modelValue": D[0] || (D[0] = (F) => r.value = F),
|
|
1851
|
-
title:
|
|
1851
|
+
title: a.value,
|
|
1852
1852
|
model: l.value,
|
|
1853
1853
|
width: "600px",
|
|
1854
1854
|
height: "250px",
|
|
@@ -1886,7 +1886,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1886
1886
|
name: "ComponentsWidget",
|
|
1887
1887
|
__name: "index",
|
|
1888
1888
|
setup(i) {
|
|
1889
|
-
const { span: e, engine: t } = sn(), { tabs: s, currentTab: l, currentGroup:
|
|
1889
|
+
const { span: e, engine: t } = sn(), { tabs: s, currentTab: l, currentGroup: o, model: r, searchKey: a, searchResult: u } = tl(), p = (f) => {
|
|
1890
1890
|
const b = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
1891
1891
|
b && b.setDragging(f);
|
|
1892
1892
|
}, m = () => {
|
|
@@ -1901,8 +1901,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1901
1901
|
default: g(() => [
|
|
1902
1902
|
z("div", zl, [
|
|
1903
1903
|
v(n(pe), {
|
|
1904
|
-
modelValue: n(
|
|
1905
|
-
"onUpdate:modelValue": b[0] || (b[0] = (h) => tt(
|
|
1904
|
+
modelValue: n(a),
|
|
1905
|
+
"onUpdate:modelValue": b[0] || (b[0] = (h) => tt(a) ? a.value = h : null),
|
|
1906
1906
|
placeholder: "搜索组件",
|
|
1907
1907
|
clearable: "",
|
|
1908
1908
|
size: "small"
|
|
@@ -1913,7 +1913,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1913
1913
|
_: 1
|
|
1914
1914
|
}, 8, ["modelValue"])
|
|
1915
1915
|
]),
|
|
1916
|
-
n(
|
|
1916
|
+
n(a) ? (c(), j("div", Ml, [
|
|
1917
1917
|
v(n(st), {
|
|
1918
1918
|
wrap: "wrap",
|
|
1919
1919
|
gutter: 5
|
|
@@ -1946,13 +1946,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
1946
1946
|
}, {
|
|
1947
1947
|
default: g(() => [
|
|
1948
1948
|
z("div", Nl, [
|
|
1949
|
-
n(
|
|
1949
|
+
n(o) ? (c(), _(n(yn), {
|
|
1950
1950
|
key: 0,
|
|
1951
1951
|
modelValue: n(r)[n(l)],
|
|
1952
1952
|
"onUpdate:modelValue": b[1] || (b[1] = (h) => n(r)[n(l)] = h)
|
|
1953
1953
|
}, {
|
|
1954
1954
|
default: g(() => [
|
|
1955
|
-
(c(!0), j($, null, B(n(
|
|
1955
|
+
(c(!0), j($, null, B(n(o).children, (h) => (c(), _(n(kn), {
|
|
1956
1956
|
key: h.name,
|
|
1957
1957
|
name: h.name,
|
|
1958
1958
|
title: `${h.label} (${h.count})`
|
|
@@ -2000,12 +2000,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2000
2000
|
name: "OutlineWidget",
|
|
2001
2001
|
__name: "index",
|
|
2002
2002
|
setup(i) {
|
|
2003
|
-
const { engine: e, designer: t, selected: s } = fe(), { current: l } = te(),
|
|
2003
|
+
const { engine: e, designer: t, selected: s } = fe(), { current: l } = te(), o = w([]), r = (A) => {
|
|
2004
2004
|
if (U(A))
|
|
2005
2005
|
return A.locked ? ["unlock"] : ["lock"];
|
|
2006
2006
|
const T = A.parent;
|
|
2007
2007
|
return T && (T.locked || T.invisible) ? [] : l.value?.locked ? [] : A.locked ? ["unlock"] : A.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
|
|
2008
|
-
},
|
|
2008
|
+
}, a = (A) => {
|
|
2009
2009
|
const T = [];
|
|
2010
2010
|
return A.forEach((I) => {
|
|
2011
2011
|
const G = {
|
|
@@ -2015,7 +2015,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2015
2015
|
//getNodeType(model),
|
|
2016
2016
|
model: I
|
|
2017
2017
|
};
|
|
2018
|
-
Array.isArray(I.children) && (G.children =
|
|
2018
|
+
Array.isArray(I.children) && (G.children = a(I.children)), T.push(G);
|
|
2019
2019
|
}), T;
|
|
2020
2020
|
}, u = () => {
|
|
2021
2021
|
if (!l.value)
|
|
@@ -2027,11 +2027,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2027
2027
|
label: T,
|
|
2028
2028
|
type: A,
|
|
2029
2029
|
model: l.value,
|
|
2030
|
-
children:
|
|
2030
|
+
children: a(I)
|
|
2031
2031
|
}
|
|
2032
2032
|
];
|
|
2033
2033
|
}, p = () => {
|
|
2034
|
-
|
|
2034
|
+
o.value = u();
|
|
2035
2035
|
}, m = S(() => s.value?.model.id), f = (A) => {
|
|
2036
2036
|
const T = A.data;
|
|
2037
2037
|
if (U(T.model) || T.model.locked || T.model.name === "template")
|
|
@@ -2124,7 +2124,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2124
2124
|
}, {
|
|
2125
2125
|
default: g(() => [
|
|
2126
2126
|
v(n(pt), {
|
|
2127
|
-
data:
|
|
2127
|
+
data: o.value,
|
|
2128
2128
|
"node-key": "id",
|
|
2129
2129
|
"default-expand-all": "",
|
|
2130
2130
|
draggable: "",
|
|
@@ -2171,12 +2171,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2171
2171
|
name: "HistoryWidget",
|
|
2172
2172
|
__name: "index",
|
|
2173
2173
|
setup(i) {
|
|
2174
|
-
const { history: e, load: t, total: s } = ln(), l = S(() => `(共 ${s.value} 条)`),
|
|
2175
|
-
|
|
2174
|
+
const { history: e, load: t, total: s } = ln(), l = S(() => `(共 ${s.value} 条)`), o = (a) => {
|
|
2175
|
+
a.name === "remove" && e.value?.remove(a.modelValue.id);
|
|
2176
2176
|
}, r = async () => {
|
|
2177
2177
|
await Ee("确定要清空历史记录吗?") && e.value?.clear();
|
|
2178
2178
|
};
|
|
2179
|
-
return (
|
|
2179
|
+
return (a, u) => (c(), _(n(W), {
|
|
2180
2180
|
class: "v-history-widget",
|
|
2181
2181
|
title: "历史记录",
|
|
2182
2182
|
subtitle: l.value,
|
|
@@ -2196,7 +2196,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2196
2196
|
small: "",
|
|
2197
2197
|
background: "",
|
|
2198
2198
|
actions: ["remove"],
|
|
2199
|
-
onAction:
|
|
2199
|
+
onAction: o,
|
|
2200
2200
|
onClick: (f) => n(t)(p.id)
|
|
2201
2201
|
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) : C("", !0)
|
|
2202
2202
|
]),
|
|
@@ -2219,7 +2219,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2219
2219
|
name: "ApisWidget",
|
|
2220
2220
|
__name: "index",
|
|
2221
2221
|
setup(i) {
|
|
2222
|
-
const e = w(!1), t = w(null), s = w(!1), l = S(() => s.value ? "编辑API" : "新增API"),
|
|
2222
|
+
const e = w(!1), t = w(null), s = w(!1), l = S(() => s.value ? "编辑API" : "新增API"), o = S(() => r.value?.apis || []), { project: r } = Ge(), a = () => ({
|
|
2223
2223
|
method: "get",
|
|
2224
2224
|
name: "",
|
|
2225
2225
|
label: "",
|
|
@@ -2237,7 +2237,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
}), u = () => {
|
|
2240
|
-
e.value = !0, s.value = !1, t.value =
|
|
2240
|
+
e.value = !0, s.value = !1, t.value = a();
|
|
2241
2241
|
}, p = Us.map((y) => ({
|
|
2242
2242
|
label: y,
|
|
2243
2243
|
value: y.toLowerCase()
|
|
@@ -2284,7 +2284,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2284
2284
|
onPlus: u
|
|
2285
2285
|
}, {
|
|
2286
2286
|
default: g(() => [
|
|
2287
|
-
(c(!0), j($, null, B(
|
|
2287
|
+
(c(!0), j($, null, B(o.value, (x) => (c(), _(n(X), {
|
|
2288
2288
|
key: x.id,
|
|
2289
2289
|
small: "",
|
|
2290
2290
|
title: x.name,
|
|
@@ -2297,7 +2297,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2297
2297
|
onClick: (D) => d(x),
|
|
2298
2298
|
onAction: h
|
|
2299
2299
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
|
|
2300
|
-
|
|
2300
|
+
o.value.length === 0 ? (c(), _(n(Z), {
|
|
2301
2301
|
key: 0,
|
|
2302
2302
|
"image-size": 50
|
|
2303
2303
|
})) : C("", !0),
|
|
@@ -2481,19 +2481,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2481
2481
|
name: "DepsWidget",
|
|
2482
2482
|
__name: "index",
|
|
2483
2483
|
setup(i) {
|
|
2484
|
-
const { dependencies: e, engine: t } = nn(), s = w(!1), l = w(!1),
|
|
2484
|
+
const { dependencies: e, engine: t } = nn(), s = w(!1), l = w(!1), o = w({}), r = S(() => l.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), a = (d) => d.required || d.official ? [] : ["edit", "remove"], u = (d) => d.official && !d.required, p = async (d) => (d.urls = d.urls.split(`
|
|
2485
2485
|
`), t.project.value?.setDeps(d), !0), m = (d) => {
|
|
2486
2486
|
t.project.value?.setDeps(d);
|
|
2487
2487
|
}, f = () => {
|
|
2488
|
-
l.value = !1, s.value = !0,
|
|
2488
|
+
l.value = !1, s.value = !0, o.value = null;
|
|
2489
2489
|
}, b = (d) => {
|
|
2490
|
-
l.value = !0,
|
|
2490
|
+
l.value = !0, o.value = {
|
|
2491
2491
|
...d,
|
|
2492
2492
|
urls: d.urls.join(`
|
|
2493
2493
|
`)
|
|
2494
2494
|
}, s.value = !0;
|
|
2495
2495
|
}, h = (d, k) => {
|
|
2496
|
-
k.name === "edit" && (
|
|
2496
|
+
k.name === "edit" && (o.value = {
|
|
2497
2497
|
...d,
|
|
2498
2498
|
urls: d.urls.join(`
|
|
2499
2499
|
`)
|
|
@@ -2510,7 +2510,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2510
2510
|
key: y.package,
|
|
2511
2511
|
title: y.package,
|
|
2512
2512
|
subtitle: y.version,
|
|
2513
|
-
actions:
|
|
2513
|
+
actions: a(y),
|
|
2514
2514
|
background: "",
|
|
2515
2515
|
switch: u(y),
|
|
2516
2516
|
modelValue: y.enabled,
|
|
@@ -2525,7 +2525,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2525
2525
|
width: "600px",
|
|
2526
2526
|
height: "500px",
|
|
2527
2527
|
title: r.value,
|
|
2528
|
-
model:
|
|
2528
|
+
model: o.value,
|
|
2529
2529
|
submitMethod: p,
|
|
2530
2530
|
formProps: {
|
|
2531
2531
|
disabled: l.value,
|
|
@@ -2537,7 +2537,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2537
2537
|
name: "package",
|
|
2538
2538
|
label: "包名",
|
|
2539
2539
|
required: "",
|
|
2540
|
-
disabled: !!
|
|
2540
|
+
disabled: !!o.value
|
|
2541
2541
|
}, null, 8, ["disabled"]),
|
|
2542
2542
|
v(n(P), {
|
|
2543
2543
|
name: "version",
|
|
@@ -2581,13 +2581,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2581
2581
|
},
|
|
2582
2582
|
emits: ["action"],
|
|
2583
2583
|
setup(i, { emit: e }) {
|
|
2584
|
-
const t = i, s = e, l = S(() => t.model.name),
|
|
2584
|
+
const t = i, s = e, l = S(() => t.model.name), o = S(() => !U(t.model) && !t.model.locked), r = S(() => t.path.map((m) => ({
|
|
2585
2585
|
command: m,
|
|
2586
2586
|
label: m.name,
|
|
2587
2587
|
onMouseenter: () => {
|
|
2588
2588
|
s("action", { type: "hover", model: m });
|
|
2589
2589
|
}
|
|
2590
|
-
}))),
|
|
2590
|
+
}))), a = [
|
|
2591
2591
|
{
|
|
2592
2592
|
name: "prev",
|
|
2593
2593
|
icon: Es,
|
|
@@ -2626,10 +2626,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2626
2626
|
onCommand: u
|
|
2627
2627
|
}, null, 8, ["icon", "label", "menus"]),
|
|
2628
2628
|
v(n(Fn), {
|
|
2629
|
-
disabled: !
|
|
2629
|
+
disabled: !o.value,
|
|
2630
2630
|
mode: "icon",
|
|
2631
2631
|
size: "small",
|
|
2632
|
-
items:
|
|
2632
|
+
items: a,
|
|
2633
2633
|
background: "none",
|
|
2634
2634
|
onClick: p
|
|
2635
2635
|
}, null, 8, ["disabled"])
|
|
@@ -2643,7 +2643,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2643
2643
|
inheritAttrs: !1,
|
|
2644
2644
|
__name: "index",
|
|
2645
2645
|
setup(i, { expose: e }) {
|
|
2646
|
-
const t = w(), s = w(), { width: l, height:
|
|
2646
|
+
const t = w(), s = w(), { width: l, height: o } = en(t), { dependencies: r, engine: a } = nn(), { current: u, isEmpty: p } = te(), m = S(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), { designer: f, hover: b, dropping: h, selected: d } = nl(
|
|
2647
2647
|
s,
|
|
2648
2648
|
r
|
|
2649
2649
|
), k = (y) => {
|
|
@@ -2679,10 +2679,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2679
2679
|
ref: t,
|
|
2680
2680
|
class: "v-designer"
|
|
2681
2681
|
}, [
|
|
2682
|
-
v(n(
|
|
2682
|
+
v(n(an), {
|
|
2683
2683
|
mode: m.value,
|
|
2684
2684
|
width: n(l),
|
|
2685
|
-
height: n(
|
|
2685
|
+
height: n(o)
|
|
2686
2686
|
}, {
|
|
2687
2687
|
default: g(() => [
|
|
2688
2688
|
z("iframe", {
|
|
@@ -2744,10 +2744,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2744
2744
|
itemTitle: { type: Function, default: (i) => i.name }
|
|
2745
2745
|
},
|
|
2746
2746
|
setup(i) {
|
|
2747
|
-
const e = i, t = w(), s = w(), l = w(!1),
|
|
2747
|
+
const e = i, t = w(), s = w(), l = w(!1), o = w(e.createEmpty()), r = w(!1), a = S(
|
|
2748
2748
|
() => r.value ? `编辑${e.title}` : `新增${e.title}`
|
|
2749
2749
|
), u = () => {
|
|
2750
|
-
r.value = !1,
|
|
2750
|
+
r.value = !1, o.value = e.createEmpty(), l.value = !0;
|
|
2751
2751
|
}, p = (d, k) => {
|
|
2752
2752
|
switch (k.name) {
|
|
2753
2753
|
case "edit":
|
|
@@ -2758,9 +2758,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2758
2758
|
break;
|
|
2759
2759
|
}
|
|
2760
2760
|
}, m = (d) => {
|
|
2761
|
-
|
|
2761
|
+
o.value.value = d;
|
|
2762
2762
|
}, f = (d) => {
|
|
2763
|
-
r.value = !0,
|
|
2763
|
+
r.value = !0, o.value = {
|
|
2764
2764
|
...d
|
|
2765
2765
|
}, l.value = !0;
|
|
2766
2766
|
}, b = async (d) => e.submit(d, r.value), h = () => {
|
|
@@ -2789,15 +2789,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2789
2789
|
v(n(ft), {
|
|
2790
2790
|
modelValue: l.value,
|
|
2791
2791
|
"onUpdate:modelValue": k[1] || (k[1] = (y) => l.value = y),
|
|
2792
|
-
title:
|
|
2792
|
+
title: a.value,
|
|
2793
2793
|
"submit-method": b,
|
|
2794
|
-
model:
|
|
2794
|
+
model: o.value,
|
|
2795
2795
|
block: d.current,
|
|
2796
2796
|
context: d.context,
|
|
2797
2797
|
onPick: m
|
|
2798
2798
|
}, {
|
|
2799
2799
|
default: g(() => [
|
|
2800
|
-
de(d.$slots, "fields", Dt(Pt({ model:
|
|
2800
|
+
de(d.$slots, "fields", Dt(Pt({ model: o.value, isEdit: r.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
|
|
2801
2801
|
v(n(P), {
|
|
2802
2802
|
name: "name",
|
|
2803
2803
|
label: d.nameLabel,
|
|
@@ -2817,8 +2817,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2817
2817
|
ref: t,
|
|
2818
2818
|
dark: "",
|
|
2819
2819
|
height: "350px",
|
|
2820
|
-
modelValue:
|
|
2821
|
-
"onUpdate:modelValue": k[0] || (k[0] = (y) =>
|
|
2820
|
+
modelValue: o.value.value,
|
|
2821
|
+
"onUpdate:modelValue": k[0] || (k[0] = (y) => o.value.value = y),
|
|
2822
2822
|
onBlur: h
|
|
2823
2823
|
}, null, 8, ["modelValue"])
|
|
2824
2824
|
]),
|
|
@@ -2839,12 +2839,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2839
2839
|
current: {}
|
|
2840
2840
|
},
|
|
2841
2841
|
setup(i) {
|
|
2842
|
-
const e = i, t = S(() => Object.entries(e.current?.state || {}).map(([
|
|
2842
|
+
const e = i, t = S(() => Object.entries(e.current?.state || {}).map(([a, u]) => ({ name: a, value: Ce(u) }))), s = () => ({
|
|
2843
2843
|
name: "",
|
|
2844
2844
|
value: ""
|
|
2845
|
-
}), l = (r) => e.current?.removeState(r.name),
|
|
2845
|
+
}), l = (r) => e.current?.removeState(r.name), o = async (r, a) => {
|
|
2846
2846
|
const { name: u, value: p } = r;
|
|
2847
|
-
if (!
|
|
2847
|
+
if (!a && e.current?.state[u])
|
|
2848
2848
|
return Q(`名称 ${u} 已存在,请更换!`), !1;
|
|
2849
2849
|
const m = {
|
|
2850
2850
|
type: "JSExpression",
|
|
@@ -2852,7 +2852,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2852
2852
|
};
|
|
2853
2853
|
return Y(m, e.context, !0) ? (e.current?.setState(u, m), !0) : !1;
|
|
2854
2854
|
};
|
|
2855
|
-
return (r,
|
|
2855
|
+
return (r, a) => (c(), _(Be, {
|
|
2856
2856
|
title: "状态数据",
|
|
2857
2857
|
current: e.current,
|
|
2858
2858
|
context: e.context,
|
|
@@ -2861,7 +2861,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2861
2861
|
valueLabel: "状态初始值 [ JSExpression ]",
|
|
2862
2862
|
createEmpty: s,
|
|
2863
2863
|
remove: l,
|
|
2864
|
-
submit:
|
|
2864
|
+
submit: o
|
|
2865
2865
|
}, null, 8, ["current", "context", "list"]));
|
|
2866
2866
|
}
|
|
2867
2867
|
}), Zl = /* @__PURE__ */ E({
|
|
@@ -2871,12 +2871,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2871
2871
|
current: {}
|
|
2872
2872
|
},
|
|
2873
2873
|
setup(i) {
|
|
2874
|
-
const e = i, t = S(() => Object.entries(e.current?.computed || {}).map(([
|
|
2874
|
+
const e = i, t = S(() => Object.entries(e.current?.computed || {}).map(([a, u]) => ({ name: a, value: Ce(u) }))), s = () => ({
|
|
2875
2875
|
name: "",
|
|
2876
2876
|
value: "() => { }"
|
|
2877
|
-
}), l = (r) => e.current?.removeFunction("computed", r.name),
|
|
2877
|
+
}), l = (r) => e.current?.removeFunction("computed", r.name), o = async (r, a) => {
|
|
2878
2878
|
const { name: u, value: p } = r;
|
|
2879
|
-
if (!
|
|
2879
|
+
if (!a && e.current?.computed[u])
|
|
2880
2880
|
return Q(`名称 ${u} 已存在,请更换!`), !1;
|
|
2881
2881
|
const m = {
|
|
2882
2882
|
type: "JSFunction",
|
|
@@ -2884,7 +2884,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2884
2884
|
};
|
|
2885
2885
|
return Y(m, e.context, !0) ? (e.current?.setFunction("computed", u, m), !0) : !1;
|
|
2886
2886
|
};
|
|
2887
|
-
return (r,
|
|
2887
|
+
return (r, a) => (c(), _(Be, {
|
|
2888
2888
|
title: "计算属性",
|
|
2889
2889
|
current: e.current,
|
|
2890
2890
|
context: e.context,
|
|
@@ -2893,7 +2893,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2893
2893
|
valueLabel: "计算函数 [ JSFunction ]",
|
|
2894
2894
|
createEmpty: s,
|
|
2895
2895
|
remove: l,
|
|
2896
|
-
submit:
|
|
2896
|
+
submit: o
|
|
2897
2897
|
}, null, 8, ["current", "context", "list"]));
|
|
2898
2898
|
}
|
|
2899
2899
|
}), Ql = /* @__PURE__ */ E({
|
|
@@ -2903,12 +2903,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2903
2903
|
current: {}
|
|
2904
2904
|
},
|
|
2905
2905
|
setup(i) {
|
|
2906
|
-
const e = i, t = S(() => Object.entries(e.current?.methods || {}).map(([
|
|
2906
|
+
const e = i, t = S(() => Object.entries(e.current?.methods || {}).map(([a, u]) => ({ name: a, value: Ce(u) }))), s = () => ({
|
|
2907
2907
|
name: "",
|
|
2908
2908
|
value: "() => { }"
|
|
2909
|
-
}), l = (r) => e.current?.removeFunction("methods", r.name),
|
|
2909
|
+
}), l = (r) => e.current?.removeFunction("methods", r.name), o = async (r, a) => {
|
|
2910
2910
|
const { name: u, value: p } = r;
|
|
2911
|
-
if (!
|
|
2911
|
+
if (!a && e.current?.methods[u])
|
|
2912
2912
|
return Q(`名称 ${u} 已存在,请更换!`), !1;
|
|
2913
2913
|
const m = {
|
|
2914
2914
|
type: "JSFunction",
|
|
@@ -2916,7 +2916,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2916
2916
|
};
|
|
2917
2917
|
return Y(m, e.context, !0) ? (e.current?.setFunction("methods", u, m), !0) : !1;
|
|
2918
2918
|
};
|
|
2919
|
-
return (r,
|
|
2919
|
+
return (r, a) => (c(), _(Be, {
|
|
2920
2920
|
title: "组件方法",
|
|
2921
2921
|
current: e.current,
|
|
2922
2922
|
context: e.context,
|
|
@@ -2925,7 +2925,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2925
2925
|
valueLabel: "方法函数 [ JSFunction ]",
|
|
2926
2926
|
createEmpty: s,
|
|
2927
2927
|
remove: l,
|
|
2928
|
-
submit:
|
|
2928
|
+
submit: o
|
|
2929
2929
|
}, null, 8, ["current", "context", "list"]));
|
|
2930
2930
|
}
|
|
2931
2931
|
}), Xl = /* @__PURE__ */ E({
|
|
@@ -2935,14 +2935,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2935
2935
|
current: {}
|
|
2936
2936
|
},
|
|
2937
2937
|
setup(i) {
|
|
2938
|
-
const e = i, t = S(() => Ln.map((
|
|
2939
|
-
label:
|
|
2940
|
-
value:
|
|
2938
|
+
const e = i, t = S(() => Ln.map((a) => ({
|
|
2939
|
+
label: a,
|
|
2940
|
+
value: a
|
|
2941
2941
|
}))), s = S(() => Object.entries(e.current?.lifeCycles || {}).map(([u, p]) => ({ name: u, value: Ce(p) }))), l = () => ({
|
|
2942
2942
|
name: "",
|
|
2943
2943
|
value: "() => { }"
|
|
2944
|
-
}),
|
|
2945
|
-
const { name: p, value: m } =
|
|
2944
|
+
}), o = (a) => e.current?.removeFunction("lifeCycles", a.name), r = async (a, u) => {
|
|
2945
|
+
const { name: p, value: m } = a;
|
|
2946
2946
|
if (!u && e.current?.lifeCycles[p])
|
|
2947
2947
|
return Q(`名称 ${p} 已存在,请更换!`), !1;
|
|
2948
2948
|
const f = {
|
|
@@ -2951,7 +2951,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2951
2951
|
};
|
|
2952
2952
|
return Y(f, e.context, !0) ? (e.current?.setFunction("lifeCycles", p, f), !0) : !1;
|
|
2953
2953
|
};
|
|
2954
|
-
return (
|
|
2954
|
+
return (a, u) => (c(), _(Be, {
|
|
2955
2955
|
title: "生命周期",
|
|
2956
2956
|
current: e.current,
|
|
2957
2957
|
context: e.context,
|
|
@@ -2959,7 +2959,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2959
2959
|
nameLabel: "名称",
|
|
2960
2960
|
valueLabel: "函数 [ JSFunction ]",
|
|
2961
2961
|
createEmpty: l,
|
|
2962
|
-
remove:
|
|
2962
|
+
remove: o,
|
|
2963
2963
|
submit: r
|
|
2964
2964
|
}, {
|
|
2965
2965
|
fields: g(({ model: p, nameLabel: m, isEdit: f, valueLabel: b }) => [
|
|
@@ -2998,33 +2998,33 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
2998
2998
|
current: {}
|
|
2999
2999
|
},
|
|
3000
3000
|
setup(i) {
|
|
3001
|
-
const e = i, t = S(() => (e.current?.watch || []).map((
|
|
3002
|
-
...
|
|
3003
|
-
source: Ce(
|
|
3004
|
-
handler: Ce(
|
|
3001
|
+
const e = i, t = S(() => (e.current?.watch || []).map((a) => ({
|
|
3002
|
+
...a,
|
|
3003
|
+
source: Ce(a.source),
|
|
3004
|
+
handler: Ce(a.handler)
|
|
3005
3005
|
}))), s = () => ({
|
|
3006
3006
|
source: "() => { }",
|
|
3007
3007
|
deep: !1,
|
|
3008
3008
|
immediate: !1,
|
|
3009
3009
|
handler: "() => { }"
|
|
3010
|
-
}), l = (
|
|
3010
|
+
}), l = (a) => a.source, o = (a) => e.current?.removeWatch(a), r = async (a, u) => {
|
|
3011
3011
|
const p = {
|
|
3012
3012
|
type: "JSFunction",
|
|
3013
|
-
value:
|
|
3013
|
+
value: a.source
|
|
3014
3014
|
}, m = {
|
|
3015
3015
|
type: "JSFunction",
|
|
3016
|
-
value:
|
|
3016
|
+
value: a.handler
|
|
3017
3017
|
};
|
|
3018
3018
|
if (!Y(p, e.context, !0) || !Y(m, e.context, !0))
|
|
3019
3019
|
return !1;
|
|
3020
3020
|
const f = {
|
|
3021
|
-
...
|
|
3021
|
+
...a,
|
|
3022
3022
|
source: p,
|
|
3023
3023
|
handler: m
|
|
3024
3024
|
};
|
|
3025
3025
|
return e.current?.setWatch(f), !0;
|
|
3026
3026
|
};
|
|
3027
|
-
return (
|
|
3027
|
+
return (a, u) => (c(), _(Be, {
|
|
3028
3028
|
title: "侦听器",
|
|
3029
3029
|
current: e.current,
|
|
3030
3030
|
context: e.context,
|
|
@@ -3032,7 +3032,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3032
3032
|
nameLabel: "侦听源 [ JSFunction ]",
|
|
3033
3033
|
valueLabel: "处理函数 [ JSFunction ]",
|
|
3034
3034
|
createEmpty: s,
|
|
3035
|
-
remove:
|
|
3035
|
+
remove: o,
|
|
3036
3036
|
submit: r,
|
|
3037
3037
|
itemTitle: l,
|
|
3038
3038
|
grow: ""
|
|
@@ -3086,7 +3086,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3086
3086
|
_: 1
|
|
3087
3087
|
}, 8, ["current", "context", "list"]));
|
|
3088
3088
|
}
|
|
3089
|
-
}),
|
|
3089
|
+
}), eo = /* @__PURE__ */ E({
|
|
3090
3090
|
__name: "index",
|
|
3091
3091
|
setup(i) {
|
|
3092
3092
|
const { current: e, context: t } = te();
|
|
@@ -3132,12 +3132,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3132
3132
|
},
|
|
3133
3133
|
emits: ["change", "remove"],
|
|
3134
3134
|
setup(i, { emit: e }) {
|
|
3135
|
-
const t = i, s = e, l = (r,
|
|
3136
|
-
s("change", r,
|
|
3137
|
-
},
|
|
3135
|
+
const t = i, s = e, l = (r, a) => {
|
|
3136
|
+
s("change", r, a);
|
|
3137
|
+
}, o = (r) => {
|
|
3138
3138
|
s("remove", r);
|
|
3139
3139
|
};
|
|
3140
|
-
return (r,
|
|
3140
|
+
return (r, a) => (c(), _(n(W), {
|
|
3141
3141
|
title: t.title,
|
|
3142
3142
|
class: "v-sub-panel",
|
|
3143
3143
|
size: "small",
|
|
@@ -3147,7 +3147,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3147
3147
|
v(n(Ne), {
|
|
3148
3148
|
size: "small",
|
|
3149
3149
|
"label-width": "80px",
|
|
3150
|
-
onKeydown:
|
|
3150
|
+
onKeydown: a[0] || (a[0] = ze(je(() => {
|
|
3151
3151
|
}, ["prevent", "stop"]), ["enter"]))
|
|
3152
3152
|
}, {
|
|
3153
3153
|
default: g(() => [
|
|
@@ -3157,7 +3157,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3157
3157
|
context: t.context,
|
|
3158
3158
|
removable: t.removable,
|
|
3159
3159
|
onChange: l,
|
|
3160
|
-
onRemove:
|
|
3160
|
+
onRemove: o
|
|
3161
3161
|
}), null, 16, ["current", "context", "removable"]))), 128))
|
|
3162
3162
|
]),
|
|
3163
3163
|
_: 1
|
|
@@ -3166,19 +3166,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3166
3166
|
_: 1
|
|
3167
3167
|
}, 8, ["title"]));
|
|
3168
3168
|
}
|
|
3169
|
-
}),
|
|
3169
|
+
}), to = /* @__PURE__ */ E({
|
|
3170
3170
|
__name: "index",
|
|
3171
3171
|
setup(i) {
|
|
3172
3172
|
const { current: e, context: t } = te(), { selected: s } = fe(), {
|
|
3173
3173
|
node: l,
|
|
3174
|
-
commonProps:
|
|
3174
|
+
commonProps: o,
|
|
3175
3175
|
change: r,
|
|
3176
|
-
componentProps:
|
|
3176
|
+
componentProps: a,
|
|
3177
3177
|
customProps: u,
|
|
3178
3178
|
addCustom: p,
|
|
3179
3179
|
removeCustom: m,
|
|
3180
3180
|
isExist: f
|
|
3181
|
-
} =
|
|
3181
|
+
} = al(s), b = w(!1), h = w(), d = () => {
|
|
3182
3182
|
b.value = !0, h.value = {
|
|
3183
3183
|
name: ""
|
|
3184
3184
|
};
|
|
@@ -3201,7 +3201,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3201
3201
|
current: n(e),
|
|
3202
3202
|
context: n(t),
|
|
3203
3203
|
node: n(l),
|
|
3204
|
-
items: n(
|
|
3204
|
+
items: n(o),
|
|
3205
3205
|
onChange: n(r)
|
|
3206
3206
|
}, null, 8, ["current", "context", "node", "items", "onChange"])) : C("", !0),
|
|
3207
3207
|
n(l) ? (c(), _(Ye, {
|
|
@@ -3210,7 +3210,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3210
3210
|
current: n(e),
|
|
3211
3211
|
context: n(t),
|
|
3212
3212
|
node: n(l),
|
|
3213
|
-
items: n(
|
|
3213
|
+
items: n(a),
|
|
3214
3214
|
onChange: n(r)
|
|
3215
3215
|
}, null, 8, ["current", "context", "node", "items", "onChange"])) : C("", !0),
|
|
3216
3216
|
n(l) ? (c(), _(Ye, {
|
|
@@ -3254,7 +3254,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3254
3254
|
_: 1
|
|
3255
3255
|
})) : C("", !0);
|
|
3256
3256
|
}
|
|
3257
|
-
}),
|
|
3257
|
+
}), no = /* @__PURE__ */ E({
|
|
3258
3258
|
name: "VariableBinder",
|
|
3259
3259
|
__name: "variable",
|
|
3260
3260
|
props: {
|
|
@@ -3266,10 +3266,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3266
3266
|
const e = i, t = w(), s = Re({
|
|
3267
3267
|
type: "JSExpression",
|
|
3268
3268
|
value: e.value
|
|
3269
|
-
}), l = (
|
|
3270
|
-
t.value.getEditor().setValue(
|
|
3269
|
+
}), l = (o) => {
|
|
3270
|
+
t.value.getEditor().setValue(o), s.value = o;
|
|
3271
3271
|
};
|
|
3272
|
-
return (
|
|
3272
|
+
return (o, r) => (c(), _(n(ft), {
|
|
3273
3273
|
title: "绑定变量",
|
|
3274
3274
|
"unbind-enabled": "",
|
|
3275
3275
|
block: e.current,
|
|
@@ -3288,7 +3288,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3288
3288
|
ref_key: "editorRef",
|
|
3289
3289
|
ref: t,
|
|
3290
3290
|
modelValue: s.value,
|
|
3291
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3291
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
|
|
3292
3292
|
dark: "",
|
|
3293
3293
|
height: "450px"
|
|
3294
3294
|
}, null, 8, ["modelValue"])
|
|
@@ -3299,7 +3299,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3299
3299
|
_: 1
|
|
3300
3300
|
}, 8, ["block", "context", "model"]));
|
|
3301
3301
|
}
|
|
3302
|
-
}),
|
|
3302
|
+
}), so = /* @__PURE__ */ E({
|
|
3303
3303
|
name: "EventBinder",
|
|
3304
3304
|
__name: "event",
|
|
3305
3305
|
props: {
|
|
@@ -3317,13 +3317,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3317
3317
|
type: "JSFunction",
|
|
3318
3318
|
value: e.event?.handler?.value || "() => {}"
|
|
3319
3319
|
}
|
|
3320
|
-
}),
|
|
3321
|
-
label:
|
|
3322
|
-
value:
|
|
3323
|
-
})), r = (
|
|
3324
|
-
t.value.getEditor().setValue(
|
|
3320
|
+
}), o = Hs.map((a) => ({
|
|
3321
|
+
label: a,
|
|
3322
|
+
value: a
|
|
3323
|
+
})), r = (a) => {
|
|
3324
|
+
t.value.getEditor().setValue(a), l.handler.value = a;
|
|
3325
3325
|
};
|
|
3326
|
-
return (
|
|
3326
|
+
return (a, u) => (c(), _(n(ft), {
|
|
3327
3327
|
title: "绑定事件",
|
|
3328
3328
|
"unbind-enabled": "",
|
|
3329
3329
|
block: e.current,
|
|
@@ -3336,7 +3336,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3336
3336
|
name: "modifiers",
|
|
3337
3337
|
label: "事件修饰符",
|
|
3338
3338
|
editor: "checkbox",
|
|
3339
|
-
options: n(
|
|
3339
|
+
options: n(o)
|
|
3340
3340
|
}, null, 8, ["options"]),
|
|
3341
3341
|
v(n(P), {
|
|
3342
3342
|
name: "handler.value",
|
|
@@ -3359,15 +3359,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3359
3359
|
_: 1
|
|
3360
3360
|
}, 8, ["block", "context", "model"]));
|
|
3361
3361
|
}
|
|
3362
|
-
}),
|
|
3362
|
+
}), lo = /* @__PURE__ */ E({
|
|
3363
3363
|
name: "EventsWidget",
|
|
3364
3364
|
__name: "index",
|
|
3365
3365
|
setup(i) {
|
|
3366
|
-
const { current: e, context: t } = te(), { selected: s } = fe(), { mouseEventList: l, keyboardEventList:
|
|
3366
|
+
const { current: e, context: t } = te(), { selected: s } = fe(), { mouseEventList: l, keyboardEventList: o, componentEventList: r } = rl(s), a = w({
|
|
3367
3367
|
name: "",
|
|
3368
3368
|
event: void 0
|
|
3369
3369
|
}), u = w(!1), p = (d) => {
|
|
3370
|
-
|
|
3370
|
+
a.value = He(d), u.value = !0;
|
|
3371
3371
|
}, m = async (d) => {
|
|
3372
3372
|
const k = {
|
|
3373
3373
|
...d,
|
|
@@ -3378,7 +3378,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3378
3378
|
const k = s.value?.model;
|
|
3379
3379
|
d.name && (k.removeEvent(d.name), u.value = !1);
|
|
3380
3380
|
}, b = async () => {
|
|
3381
|
-
|
|
3381
|
+
a.value.name && await Ee("确定要删除该事件吗?") && f(a.value);
|
|
3382
3382
|
}, h = (d) => {
|
|
3383
3383
|
const { name: k, modelValue: y } = d;
|
|
3384
3384
|
k === "edit" && p(y), k === "remove" && f(y);
|
|
@@ -3442,7 +3442,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3442
3442
|
fit: !1
|
|
3443
3443
|
}, {
|
|
3444
3444
|
default: g(() => [
|
|
3445
|
-
(c(!0), j($, null, B(n(
|
|
3445
|
+
(c(!0), j($, null, B(n(o), (y) => (c(), _(n(X), {
|
|
3446
3446
|
title: y.name,
|
|
3447
3447
|
"model-value": y,
|
|
3448
3448
|
border: "",
|
|
@@ -3455,14 +3455,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3455
3455
|
]),
|
|
3456
3456
|
_: 1
|
|
3457
3457
|
}),
|
|
3458
|
-
u.value ? (c(), _(n(
|
|
3458
|
+
u.value ? (c(), _(n(so), {
|
|
3459
3459
|
key: 0,
|
|
3460
3460
|
modelValue: u.value,
|
|
3461
3461
|
"onUpdate:modelValue": k[0] || (k[0] = (y) => u.value = y),
|
|
3462
3462
|
context: n(t),
|
|
3463
3463
|
current: n(e),
|
|
3464
|
-
name:
|
|
3465
|
-
event:
|
|
3464
|
+
name: a.value.name,
|
|
3465
|
+
event: a.value.event,
|
|
3466
3466
|
submitMethod: m,
|
|
3467
3467
|
onUnbind: b
|
|
3468
3468
|
}, null, 8, ["modelValue", "context", "current", "name", "event"])) : C("", !0)
|
|
@@ -3470,23 +3470,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3470
3470
|
_: 1
|
|
3471
3471
|
}));
|
|
3472
3472
|
}
|
|
3473
|
-
}),
|
|
3473
|
+
}), oo = /* @__PURE__ */ E({
|
|
3474
3474
|
name: "CssWidget",
|
|
3475
3475
|
__name: "index",
|
|
3476
3476
|
setup(i) {
|
|
3477
3477
|
const { current: e } = te(), t = w(), s = S(() => e.value?.css || ""), l = (r) => {
|
|
3478
3478
|
e.value?.setCss(r);
|
|
3479
|
-
},
|
|
3480
|
-
const
|
|
3481
|
-
l(
|
|
3479
|
+
}, o = () => {
|
|
3480
|
+
const a = (t.value?.getEditor()).getValue();
|
|
3481
|
+
l(a), oe("保存成功");
|
|
3482
3482
|
};
|
|
3483
|
-
return (r,
|
|
3483
|
+
return (r, a) => (c(), _(n(W), {
|
|
3484
3484
|
class: "v-css-widget v-sub-panel",
|
|
3485
3485
|
title: "lang:css scoped",
|
|
3486
3486
|
size: "small",
|
|
3487
3487
|
fit: "",
|
|
3488
3488
|
save: "",
|
|
3489
|
-
onSave:
|
|
3489
|
+
onSave: o
|
|
3490
3490
|
}, {
|
|
3491
3491
|
default: g(() => [
|
|
3492
3492
|
v(n(K), {
|
|
@@ -3502,15 +3502,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3502
3502
|
_: 1
|
|
3503
3503
|
}));
|
|
3504
3504
|
}
|
|
3505
|
-
}),
|
|
3505
|
+
}), ao = /* @__PURE__ */ E({
|
|
3506
3506
|
name: "DirectivesWidget",
|
|
3507
3507
|
__name: "index",
|
|
3508
3508
|
setup(i) {
|
|
3509
3509
|
const { current: e, context: t } = te(), { selected: s } = fe(), {
|
|
3510
3510
|
vIf: l,
|
|
3511
|
-
vShow:
|
|
3511
|
+
vShow: o,
|
|
3512
3512
|
vBind: r,
|
|
3513
|
-
vFor:
|
|
3513
|
+
vFor: a,
|
|
3514
3514
|
vModels: u,
|
|
3515
3515
|
onValueChange: p,
|
|
3516
3516
|
onForChange: m,
|
|
@@ -3551,7 +3551,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3551
3551
|
setters: "ExpressionSetter",
|
|
3552
3552
|
current: n(e),
|
|
3553
3553
|
context: n(t),
|
|
3554
|
-
value: n(
|
|
3554
|
+
value: n(o).value,
|
|
3555
3555
|
onChange: n(p)
|
|
3556
3556
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
3557
3557
|
v(n(_e), {
|
|
@@ -3589,7 +3589,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3589
3589
|
setters: "ExpressionSetter",
|
|
3590
3590
|
current: n(e),
|
|
3591
3591
|
context: n(t),
|
|
3592
|
-
value: n(
|
|
3592
|
+
value: n(a).value,
|
|
3593
3593
|
onChange: n(m)
|
|
3594
3594
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
3595
3595
|
v(n(_e), {
|
|
@@ -3601,7 +3601,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3601
3601
|
},
|
|
3602
3602
|
current: n(e),
|
|
3603
3603
|
context: n(t),
|
|
3604
|
-
value: n(
|
|
3604
|
+
value: n(a).iterator?.item,
|
|
3605
3605
|
onChange: n(m)
|
|
3606
3606
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
3607
3607
|
v(n(_e), {
|
|
@@ -3613,7 +3613,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3613
3613
|
},
|
|
3614
3614
|
current: n(e),
|
|
3615
3615
|
context: n(t),
|
|
3616
|
-
value: n(
|
|
3616
|
+
value: n(a).iterator?.index,
|
|
3617
3617
|
onChange: n(m)
|
|
3618
3618
|
}, null, 8, ["current", "context", "value", "onChange"])
|
|
3619
3619
|
]),
|
|
@@ -3674,7 +3674,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3674
3674
|
_: 1
|
|
3675
3675
|
}));
|
|
3676
3676
|
}
|
|
3677
|
-
}),
|
|
3677
|
+
}), ro = /* @__PURE__ */ E({
|
|
3678
3678
|
name: "DefinedPropsDialog",
|
|
3679
3679
|
__name: "props",
|
|
3680
3680
|
props: {
|
|
@@ -3696,17 +3696,17 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3696
3696
|
), l = Object.keys(Jn).map((r) => ({
|
|
3697
3697
|
label: r,
|
|
3698
3698
|
value: r
|
|
3699
|
-
})),
|
|
3700
|
-
const
|
|
3701
|
-
return
|
|
3699
|
+
})), o = async (r) => {
|
|
3700
|
+
const a = r.default;
|
|
3701
|
+
return a && !Y(a, e.context, !0) ? !1 : (e.current.setProp(r), !0);
|
|
3702
3702
|
};
|
|
3703
|
-
return (r,
|
|
3703
|
+
return (r, a) => (c(), _(n(ce), {
|
|
3704
3704
|
title: t.value,
|
|
3705
3705
|
width: "800px",
|
|
3706
3706
|
height: "500px",
|
|
3707
3707
|
model: s.value,
|
|
3708
3708
|
"form-props": { tooltipMessage: !1 },
|
|
3709
|
-
"submit-method":
|
|
3709
|
+
"submit-method": o
|
|
3710
3710
|
}, {
|
|
3711
3711
|
default: g(() => [
|
|
3712
3712
|
v(n(P), {
|
|
@@ -3741,7 +3741,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3741
3741
|
default: g(() => [
|
|
3742
3742
|
v(n(K), {
|
|
3743
3743
|
modelValue: s.value.default.value,
|
|
3744
|
-
"onUpdate:modelValue":
|
|
3744
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => s.value.default.value = u),
|
|
3745
3745
|
height: "200px",
|
|
3746
3746
|
dark: ""
|
|
3747
3747
|
}, null, 8, ["modelValue"])
|
|
@@ -3752,7 +3752,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3752
3752
|
_: 1
|
|
3753
3753
|
}, 8, ["title", "model"]));
|
|
3754
3754
|
}
|
|
3755
|
-
}),
|
|
3755
|
+
}), io = /* @__PURE__ */ E({
|
|
3756
3756
|
name: "DefinedEventsDialog",
|
|
3757
3757
|
__name: "events",
|
|
3758
3758
|
props: {
|
|
@@ -3763,8 +3763,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3763
3763
|
setup(i) {
|
|
3764
3764
|
const e = i, t = S(() => e.item ? "编辑定义事件" : "新增定义事件"), s = w({
|
|
3765
3765
|
name: e.item
|
|
3766
|
-
}), l = async (
|
|
3767
|
-
return (
|
|
3766
|
+
}), l = async (o) => (e.item && e.current.removeEmit(e.item, !0), e.current.setEmit(o.name), !0);
|
|
3767
|
+
return (o, r) => (c(), _(n(ce), {
|
|
3768
3768
|
title: t.value,
|
|
3769
3769
|
width: "600px",
|
|
3770
3770
|
height: "200px",
|
|
@@ -3787,7 +3787,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3787
3787
|
_: 1
|
|
3788
3788
|
}, 8, ["title", "model"]));
|
|
3789
3789
|
}
|
|
3790
|
-
}),
|
|
3790
|
+
}), uo = /* @__PURE__ */ E({
|
|
3791
3791
|
name: "DefinedSlotsDialog",
|
|
3792
3792
|
__name: "slots",
|
|
3793
3793
|
props: {
|
|
@@ -3798,8 +3798,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3798
3798
|
setup(i) {
|
|
3799
3799
|
const e = i, t = S(() => e.item ? "编辑定义插槽" : "新增定义插槽"), s = w({
|
|
3800
3800
|
name: e.item
|
|
3801
|
-
}), l = async (
|
|
3802
|
-
return (
|
|
3801
|
+
}), l = async (o) => (e.item && e.current.removeSlot(e.item, !0), e.current.setSlot(o.name), !0);
|
|
3802
|
+
return (o, r) => (c(), _(n(ce), {
|
|
3803
3803
|
title: t.value,
|
|
3804
3804
|
width: "600px",
|
|
3805
3805
|
height: "200px",
|
|
@@ -3822,7 +3822,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3822
3822
|
_: 1
|
|
3823
3823
|
}, 8, ["title", "model"]));
|
|
3824
3824
|
}
|
|
3825
|
-
}),
|
|
3825
|
+
}), co = /* @__PURE__ */ E({
|
|
3826
3826
|
name: "DefinedInjectsDialog",
|
|
3827
3827
|
__name: "injects",
|
|
3828
3828
|
props: {
|
|
@@ -3841,11 +3841,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3841
3841
|
},
|
|
3842
3842
|
e.item
|
|
3843
3843
|
)
|
|
3844
|
-
), l = async (
|
|
3845
|
-
const r =
|
|
3846
|
-
return r && !Y(r, e.context, !0) ? !1 : (e.current.setInject(
|
|
3844
|
+
), l = async (o) => {
|
|
3845
|
+
const r = o.default;
|
|
3846
|
+
return r && !Y(r, e.context, !0) ? !1 : (e.current.setInject(o), !0);
|
|
3847
3847
|
};
|
|
3848
|
-
return (
|
|
3848
|
+
return (o, r) => (c(), _(n(ce), {
|
|
3849
3849
|
title: t.value,
|
|
3850
3850
|
width: "800px",
|
|
3851
3851
|
height: "500px",
|
|
@@ -3878,7 +3878,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3878
3878
|
default: g(() => [
|
|
3879
3879
|
v(n(K), {
|
|
3880
3880
|
modelValue: s.value.default.value,
|
|
3881
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3881
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => s.value.default.value = a),
|
|
3882
3882
|
height: "200px",
|
|
3883
3883
|
dark: ""
|
|
3884
3884
|
}, null, 8, ["modelValue"])
|
|
@@ -3889,17 +3889,17 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3889
3889
|
_: 1
|
|
3890
3890
|
}, 8, ["title", "model"]));
|
|
3891
3891
|
}
|
|
3892
|
-
}),
|
|
3892
|
+
}), po = /* @__PURE__ */ E({
|
|
3893
3893
|
name: "DefinedWidget",
|
|
3894
3894
|
__name: "index",
|
|
3895
3895
|
setup(i) {
|
|
3896
|
-
const { current: e, context: t } = te(), s = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), l = S(() => e.value?.emits || []),
|
|
3897
|
-
u.value = void 0,
|
|
3896
|
+
const { current: e, context: t } = te(), s = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), l = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), r = S(() => e.value?.inject || []), a = w(!1), u = w(), p = w(!1), m = w(), f = w(!1), b = w(), h = w(!1), d = w(), k = () => {
|
|
3897
|
+
u.value = void 0, a.value = !0;
|
|
3898
3898
|
}, y = (M) => {
|
|
3899
3899
|
const { name: J, modelValue: R } = M;
|
|
3900
3900
|
J === "edit" && V(R), J === "remove" && e.value?.removeProp(R);
|
|
3901
3901
|
}, V = (M) => {
|
|
3902
|
-
u.value = M,
|
|
3902
|
+
u.value = M, a.value = !0;
|
|
3903
3903
|
}, x = () => {
|
|
3904
3904
|
m.value = void 0, p.value = !0;
|
|
3905
3905
|
}, D = (M) => {
|
|
@@ -3950,12 +3950,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3950
3950
|
key: 0,
|
|
3951
3951
|
"image-size": 50
|
|
3952
3952
|
})),
|
|
3953
|
-
|
|
3953
|
+
a.value ? (c(), _(ro, {
|
|
3954
3954
|
key: 1,
|
|
3955
3955
|
current: n(e),
|
|
3956
3956
|
context: n(t),
|
|
3957
|
-
modelValue:
|
|
3958
|
-
"onUpdate:modelValue": J[0] || (J[0] = (R) =>
|
|
3957
|
+
modelValue: a.value,
|
|
3958
|
+
"onUpdate:modelValue": J[0] || (J[0] = (R) => a.value = R),
|
|
3959
3959
|
item: u.value
|
|
3960
3960
|
}, null, 8, ["current", "context", "modelValue", "item"])) : C("", !0)
|
|
3961
3961
|
]),
|
|
@@ -3982,7 +3982,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
3982
3982
|
key: 0,
|
|
3983
3983
|
"image-size": 50
|
|
3984
3984
|
})),
|
|
3985
|
-
p.value ? (c(), _(
|
|
3985
|
+
p.value ? (c(), _(io, {
|
|
3986
3986
|
key: 1,
|
|
3987
3987
|
modelValue: p.value,
|
|
3988
3988
|
"onUpdate:modelValue": J[1] || (J[1] = (R) => p.value = R),
|
|
@@ -4002,7 +4002,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4002
4002
|
onPlus: A
|
|
4003
4003
|
}, {
|
|
4004
4004
|
default: g(() => [
|
|
4005
|
-
(c(!0), j($, null, B(
|
|
4005
|
+
(c(!0), j($, null, B(o.value, (R) => (c(), _(n(X), {
|
|
4006
4006
|
"model-value": R,
|
|
4007
4007
|
title: R,
|
|
4008
4008
|
border: "",
|
|
@@ -4010,11 +4010,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4010
4010
|
onClick: (Ve) => T(R),
|
|
4011
4011
|
onAction: I
|
|
4012
4012
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
|
4013
|
-
|
|
4013
|
+
o.value.length ? C("", !0) : (c(), _(n(Z), {
|
|
4014
4014
|
key: 0,
|
|
4015
4015
|
"image-size": 50
|
|
4016
4016
|
})),
|
|
4017
|
-
f.value ? (c(), _(
|
|
4017
|
+
f.value ? (c(), _(uo, {
|
|
4018
4018
|
key: 1,
|
|
4019
4019
|
modelValue: f.value,
|
|
4020
4020
|
"onUpdate:modelValue": J[2] || (J[2] = (R) => f.value = R),
|
|
@@ -4047,7 +4047,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4047
4047
|
key: 0,
|
|
4048
4048
|
"image-size": 50
|
|
4049
4049
|
})),
|
|
4050
|
-
h.value ? (c(), _(
|
|
4050
|
+
h.value ? (c(), _(co, {
|
|
4051
4051
|
key: 1,
|
|
4052
4052
|
modelValue: h.value,
|
|
4053
4053
|
"onUpdate:modelValue": J[3] || (J[3] = (R) => h.value = R),
|
|
@@ -4062,7 +4062,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4062
4062
|
_: 1
|
|
4063
4063
|
})) : C("", !0);
|
|
4064
4064
|
}
|
|
4065
|
-
}),
|
|
4065
|
+
}), mo = /* @__PURE__ */ E({
|
|
4066
4066
|
name: "DataSourceDialogForm",
|
|
4067
4067
|
__name: "form",
|
|
4068
4068
|
props: {
|
|
@@ -4091,7 +4091,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4091
4091
|
})`
|
|
4092
4092
|
}
|
|
4093
4093
|
}, e.item)
|
|
4094
|
-
),
|
|
4094
|
+
), o = w(!1), r = w(""), a = w(!1), u = S(() => t.value.map((h) => ({
|
|
4095
4095
|
label: h.label || "",
|
|
4096
4096
|
value: h.id,
|
|
4097
4097
|
data: h
|
|
@@ -4136,14 +4136,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4136
4136
|
}, k = Je(l.value.test, {
|
|
4137
4137
|
runApi: d
|
|
4138
4138
|
}), y = l.value.transform?.value ? Je(l.value.transform, {}, !0) : (V) => V;
|
|
4139
|
-
|
|
4139
|
+
o.value = !0;
|
|
4140
4140
|
try {
|
|
4141
4141
|
const V = await k();
|
|
4142
4142
|
r.value = JSON.stringify(await y(V), null, 2);
|
|
4143
4143
|
} catch (V) {
|
|
4144
4144
|
me.error(V);
|
|
4145
4145
|
}
|
|
4146
|
-
|
|
4146
|
+
o.value = !1, a.value = !0;
|
|
4147
4147
|
};
|
|
4148
4148
|
return (h, d) => (c(), _(n(ce), {
|
|
4149
4149
|
width: "1000px",
|
|
@@ -4155,7 +4155,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4155
4155
|
}, {
|
|
4156
4156
|
extra: g(() => [
|
|
4157
4157
|
v(n(re), {
|
|
4158
|
-
loading:
|
|
4158
|
+
loading: o.value,
|
|
4159
4159
|
type: "warning",
|
|
4160
4160
|
onClick: b
|
|
4161
4161
|
}, {
|
|
@@ -4228,11 +4228,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4228
4228
|
]),
|
|
4229
4229
|
_: 1
|
|
4230
4230
|
}),
|
|
4231
|
-
|
|
4231
|
+
a.value ? (c(), _(n(wn), {
|
|
4232
4232
|
key: 0,
|
|
4233
4233
|
class: "v-drawer",
|
|
4234
|
-
modelValue:
|
|
4235
|
-
"onUpdate:modelValue": d[2] || (d[2] = (k) =>
|
|
4234
|
+
modelValue: a.value,
|
|
4235
|
+
"onUpdate:modelValue": d[2] || (d[2] = (k) => a.value = k),
|
|
4236
4236
|
title: "测试用例运行结果",
|
|
4237
4237
|
direction: "btt",
|
|
4238
4238
|
"append-to-body": "",
|
|
@@ -4253,19 +4253,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4253
4253
|
_: 1
|
|
4254
4254
|
}, 8, ["title", "model"]));
|
|
4255
4255
|
}
|
|
4256
|
-
}),
|
|
4256
|
+
}), vo = /* @__PURE__ */ E({
|
|
4257
4257
|
name: "DataSourcesWidget",
|
|
4258
4258
|
__name: "index",
|
|
4259
4259
|
setup(i) {
|
|
4260
|
-
const { current: e, context: t } = te(), s = w(!1), l = w(),
|
|
4260
|
+
const { current: e, context: t } = te(), s = w(!1), l = w(), o = S(() => Object.values(e.value?.dataSources || {}).filter(
|
|
4261
4261
|
(p) => p.type === "api"
|
|
4262
4262
|
)), r = () => {
|
|
4263
4263
|
l.value = void 0, s.value = !0;
|
|
4264
|
-
},
|
|
4264
|
+
}, a = (p) => {
|
|
4265
4265
|
l.value = p, s.value = !0;
|
|
4266
4266
|
}, u = (p) => {
|
|
4267
4267
|
const { name: m, modelValue: f } = p;
|
|
4268
|
-
m === "edit" &&
|
|
4268
|
+
m === "edit" && a(f), m === "remove" && e.value?.removeDataSource(f.name);
|
|
4269
4269
|
};
|
|
4270
4270
|
return (p, m) => (c(), _(n(O), {
|
|
4271
4271
|
class: "v-data-sources-widget",
|
|
@@ -4281,23 +4281,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4281
4281
|
onPlus: r
|
|
4282
4282
|
}, {
|
|
4283
4283
|
default: g(() => [
|
|
4284
|
-
(c(!0), j($, null, B(
|
|
4284
|
+
(c(!0), j($, null, B(o.value, (f) => (c(), _(n(X), {
|
|
4285
4285
|
border: "",
|
|
4286
4286
|
title: f.name,
|
|
4287
4287
|
subtitle: f.label,
|
|
4288
4288
|
"model-value": f,
|
|
4289
4289
|
actions: ["edit", "remove"],
|
|
4290
4290
|
onAction: u,
|
|
4291
|
-
onClick: (b) =>
|
|
4291
|
+
onClick: (b) => a(f)
|
|
4292
4292
|
}, null, 8, ["title", "subtitle", "model-value", "onClick"]))), 256)),
|
|
4293
|
-
|
|
4293
|
+
o.value.length ? C("", !0) : (c(), _(n(Z), {
|
|
4294
4294
|
key: 0,
|
|
4295
4295
|
"image-size": 50
|
|
4296
4296
|
}))
|
|
4297
4297
|
]),
|
|
4298
4298
|
_: 1
|
|
4299
4299
|
}),
|
|
4300
|
-
s.value ? (c(), _(
|
|
4300
|
+
s.value ? (c(), _(mo, {
|
|
4301
4301
|
key: 0,
|
|
4302
4302
|
modelValue: s.value,
|
|
4303
4303
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => s.value = f),
|
|
@@ -4309,27 +4309,27 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4309
4309
|
_: 1
|
|
4310
4310
|
}));
|
|
4311
4311
|
}
|
|
4312
|
-
}),
|
|
4312
|
+
}), fo = /* @__PURE__ */ E({
|
|
4313
4313
|
name: "StyleWidget",
|
|
4314
4314
|
__name: "index",
|
|
4315
4315
|
setup(i) {
|
|
4316
4316
|
const { selected: e } = fe(), t = w(), s = S(() => {
|
|
4317
|
-
const
|
|
4318
|
-
return U(
|
|
4317
|
+
const a = e.value?.model || null;
|
|
4318
|
+
return U(a) ? null : a;
|
|
4319
4319
|
}), l = S(
|
|
4320
4320
|
() => JSON.stringify(s.value?.getPropValue("style") || {}, null, 2)
|
|
4321
|
-
),
|
|
4321
|
+
), o = (a) => {
|
|
4322
4322
|
try {
|
|
4323
|
-
const u = JSON.parse(
|
|
4323
|
+
const u = JSON.parse(a);
|
|
4324
4324
|
s.value?.setProp("style", u);
|
|
4325
4325
|
} catch {
|
|
4326
4326
|
Q("JSON格式错误");
|
|
4327
4327
|
}
|
|
4328
4328
|
}, r = () => {
|
|
4329
4329
|
const u = (t.value?.getEditor()).getValue();
|
|
4330
|
-
|
|
4330
|
+
o(u), oe("保存成功");
|
|
4331
4331
|
};
|
|
4332
|
-
return (
|
|
4332
|
+
return (a, u) => (c(), _(n(W), {
|
|
4333
4333
|
class: "v-css-widget v-sub-panel",
|
|
4334
4334
|
title: "style",
|
|
4335
4335
|
size: "small",
|
|
@@ -4345,20 +4345,20 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4345
4345
|
height: "100%",
|
|
4346
4346
|
lang: "json",
|
|
4347
4347
|
dark: "",
|
|
4348
|
-
onBlur:
|
|
4348
|
+
onBlur: o
|
|
4349
4349
|
}, null, 8, ["model-value"])
|
|
4350
4350
|
]),
|
|
4351
4351
|
_: 1
|
|
4352
4352
|
}));
|
|
4353
4353
|
}
|
|
4354
|
-
}),
|
|
4354
|
+
}), go = ["src"], ho = /* @__PURE__ */ E({
|
|
4355
4355
|
name: "PreviewerWidget",
|
|
4356
4356
|
__name: "index",
|
|
4357
4357
|
props: {
|
|
4358
4358
|
path: { type: Function }
|
|
4359
4359
|
},
|
|
4360
4360
|
setup(i, { expose: e }) {
|
|
4361
|
-
const t = i, s = w(), l = w(Symbol()), { current:
|
|
4361
|
+
const t = i, s = w(), l = w(Symbol()), { current: o, engine: r } = te(), { width: a, height: u } = en(s), p = S(() => o.value && t.path ? t.path(o.value) : null), m = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
|
|
4362
4362
|
return e({
|
|
4363
4363
|
refresh: () => {
|
|
4364
4364
|
l.value = Symbol();
|
|
@@ -4369,9 +4369,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4369
4369
|
class: "v-previewer",
|
|
4370
4370
|
key: l.value
|
|
4371
4371
|
}, [
|
|
4372
|
-
v(n(
|
|
4372
|
+
v(n(an), {
|
|
4373
4373
|
mode: m.value,
|
|
4374
|
-
width: n(
|
|
4374
|
+
width: n(a),
|
|
4375
4375
|
height: n(u)
|
|
4376
4376
|
}, {
|
|
4377
4377
|
default: g(() => [
|
|
@@ -4380,23 +4380,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4380
4380
|
ref: "iframe",
|
|
4381
4381
|
frameborder: "0",
|
|
4382
4382
|
src: p.value
|
|
4383
|
-
}, null, 8,
|
|
4383
|
+
}, null, 8, go)) : C("", !0)
|
|
4384
4384
|
]),
|
|
4385
4385
|
_: 1
|
|
4386
4386
|
}, 8, ["mode", "width", "height"])
|
|
4387
4387
|
]));
|
|
4388
4388
|
}
|
|
4389
|
-
}),
|
|
4389
|
+
}), bo = /* @__PURE__ */ E({
|
|
4390
4390
|
name: "NodePathWidget",
|
|
4391
4391
|
inheritAttrs: !1,
|
|
4392
4392
|
__name: "index",
|
|
4393
4393
|
setup(i) {
|
|
4394
4394
|
const { selected: e, designer: t } = fe(), s = S(() => (e.value?.path || []).slice(0).reverse()), l = (r) => {
|
|
4395
4395
|
t.value?.setSelected(r);
|
|
4396
|
-
},
|
|
4396
|
+
}, o = (r) => {
|
|
4397
4397
|
t.value?.setHover(r);
|
|
4398
4398
|
};
|
|
4399
|
-
return (r,
|
|
4399
|
+
return (r, a) => n(e) ? (c(), _(n(Sn), {
|
|
4400
4400
|
key: 0,
|
|
4401
4401
|
class: "v-nodepath-widget",
|
|
4402
4402
|
"separator-icon": n(As)
|
|
@@ -4404,7 +4404,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4404
4404
|
default: g(() => [
|
|
4405
4405
|
(c(!0), j($, null, B(s.value, (u) => (c(), _(n(Vn), {
|
|
4406
4406
|
onClick: (p) => l(u),
|
|
4407
|
-
onMouseover: (p) =>
|
|
4407
|
+
onMouseover: (p) => o(u)
|
|
4408
4408
|
}, {
|
|
4409
4409
|
default: g(() => [
|
|
4410
4410
|
H(N(u.name), 1)
|
|
@@ -4415,32 +4415,32 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4415
4415
|
_: 1
|
|
4416
4416
|
}, 8, ["separator-icon"])) : C("", !0);
|
|
4417
4417
|
}
|
|
4418
|
-
}),
|
|
4418
|
+
}), _o = /* @__PURE__ */ E({
|
|
4419
4419
|
name: "SchemaWidget",
|
|
4420
4420
|
__name: "index",
|
|
4421
4421
|
setup(i) {
|
|
4422
4422
|
const { current: e } = te(), t = w(), s = S(
|
|
4423
4423
|
() => JSON.stringify(e.value?.toDsl() || {}, null, 2)
|
|
4424
|
-
), l = S(() => e.value ? e.value.name : ""),
|
|
4425
|
-
const
|
|
4426
|
-
if (
|
|
4424
|
+
), l = S(() => e.value ? e.value.name : ""), o = async () => {
|
|
4425
|
+
const a = (t.value?.getEditor()).getValue();
|
|
4426
|
+
if (a && await Ee(
|
|
4427
4427
|
"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"
|
|
4428
4428
|
))
|
|
4429
4429
|
try {
|
|
4430
|
-
const p = JSON.parse(
|
|
4431
|
-
e.value?.update(p),
|
|
4430
|
+
const p = JSON.parse(a);
|
|
4431
|
+
e.value?.update(p), oe("保存成功");
|
|
4432
4432
|
} catch (p) {
|
|
4433
4433
|
Q(p?.message);
|
|
4434
4434
|
}
|
|
4435
4435
|
};
|
|
4436
|
-
return (r,
|
|
4436
|
+
return (r, a) => (c(), _(n(W), {
|
|
4437
4437
|
class: "v-schema-widget",
|
|
4438
4438
|
title: l.value,
|
|
4439
4439
|
subtitle: "手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",
|
|
4440
4440
|
size: "small",
|
|
4441
4441
|
fit: "",
|
|
4442
4442
|
save: "",
|
|
4443
|
-
onSave:
|
|
4443
|
+
onSave: o
|
|
4444
4444
|
}, {
|
|
4445
4445
|
default: g(() => [
|
|
4446
4446
|
v(n(K), {
|
|
@@ -4455,25 +4455,28 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4455
4455
|
_: 1
|
|
4456
4456
|
}, 8, ["title"]));
|
|
4457
4457
|
}
|
|
4458
|
-
}),
|
|
4458
|
+
}), yo = /* @__PURE__ */ E({
|
|
4459
4459
|
name: "SchemaWidget",
|
|
4460
4460
|
__name: "index",
|
|
4461
4461
|
setup(i) {
|
|
4462
|
-
const { current: e, engine: t } = te(), s = w(), l = w(""),
|
|
4462
|
+
const { current: e, engine: t } = te(), s = w(), l = w(""), o = S(() => e.value ? `$vtj/raw/${e.value.id}.vue` : ""), r = S(() => e.value ? e.value.name : "");
|
|
4463
4463
|
return ne(
|
|
4464
4464
|
e,
|
|
4465
|
-
async (
|
|
4465
|
+
async (a) => {
|
|
4466
4466
|
const u = t.project.value;
|
|
4467
|
-
u &&
|
|
4467
|
+
u && a ? l.value = await t.service.genVueContent(
|
|
4468
|
+
u.toDsl(),
|
|
4469
|
+
a.toDsl()
|
|
4470
|
+
) : l.value = "";
|
|
4468
4471
|
},
|
|
4469
4472
|
{
|
|
4470
4473
|
immediate: !0,
|
|
4471
4474
|
deep: !0
|
|
4472
4475
|
}
|
|
4473
|
-
), (
|
|
4476
|
+
), (a, u) => (c(), _(n(W), {
|
|
4474
4477
|
class: "v-raw-widget",
|
|
4475
4478
|
title: r.value,
|
|
4476
|
-
subtitle:
|
|
4479
|
+
subtitle: o.value,
|
|
4477
4480
|
size: "small",
|
|
4478
4481
|
fit: ""
|
|
4479
4482
|
}, {
|
|
@@ -4491,7 +4494,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4491
4494
|
_: 1
|
|
4492
4495
|
}, 8, ["title", "subtitle"]));
|
|
4493
4496
|
}
|
|
4494
|
-
}),
|
|
4497
|
+
}), ko = ["src"], wo = /* @__PURE__ */ E({
|
|
4495
4498
|
name: "DocsWidget",
|
|
4496
4499
|
__name: "index",
|
|
4497
4500
|
props: {
|
|
@@ -4508,7 +4511,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4508
4511
|
const l = () => {
|
|
4509
4512
|
s?.close();
|
|
4510
4513
|
};
|
|
4511
|
-
return (
|
|
4514
|
+
return (o, r) => (c(), _(n(W), {
|
|
4512
4515
|
class: "v-docs-widget",
|
|
4513
4516
|
size: "small",
|
|
4514
4517
|
fit: "",
|
|
@@ -4522,21 +4525,21 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4522
4525
|
ref: "frame",
|
|
4523
4526
|
src: e.url,
|
|
4524
4527
|
onLoad: l
|
|
4525
|
-
}, null, 40,
|
|
4528
|
+
}, null, 40, ko)
|
|
4526
4529
|
]),
|
|
4527
4530
|
_: 1
|
|
4528
4531
|
}, 512));
|
|
4529
4532
|
}
|
|
4530
|
-
}),
|
|
4533
|
+
}), So = { class: "v-about-widget" }, Vo = { class: "v-about-widget__logo" }, xo = ["src"], Co = /* @__PURE__ */ z("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), Eo = { class: "v-about-widget__version" }, jo = /* @__PURE__ */ E({
|
|
4531
4534
|
name: "AboutWidget",
|
|
4532
4535
|
__name: "index",
|
|
4533
4536
|
setup(i) {
|
|
4534
|
-
return (e, t) => (c(), j("div",
|
|
4535
|
-
z("div",
|
|
4536
|
-
z("img", { src: n(tn) }, null, 8,
|
|
4537
|
+
return (e, t) => (c(), j("div", So, [
|
|
4538
|
+
z("div", Vo, [
|
|
4539
|
+
z("img", { src: n(tn) }, null, 8, xo)
|
|
4537
4540
|
]),
|
|
4538
|
-
|
|
4539
|
-
z("div",
|
|
4541
|
+
Co,
|
|
4542
|
+
z("div", Eo, "版本:" + N(n(Ws)), 1)
|
|
4540
4543
|
]));
|
|
4541
4544
|
}
|
|
4542
4545
|
}), L = {
|
|
@@ -4553,21 +4556,21 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4553
4556
|
Apis: Jl,
|
|
4554
4557
|
Deps: Ul,
|
|
4555
4558
|
Designer: Gl,
|
|
4556
|
-
Scripts:
|
|
4557
|
-
Properties:
|
|
4558
|
-
Events:
|
|
4559
|
-
Css:
|
|
4560
|
-
Directives:
|
|
4561
|
-
Defined:
|
|
4562
|
-
DataSources:
|
|
4563
|
-
Style:
|
|
4564
|
-
Previewer:
|
|
4565
|
-
NodePath:
|
|
4566
|
-
Schema:
|
|
4567
|
-
Raw:
|
|
4568
|
-
Docs:
|
|
4569
|
-
About:
|
|
4570
|
-
},
|
|
4559
|
+
Scripts: eo,
|
|
4560
|
+
Properties: to,
|
|
4561
|
+
Events: lo,
|
|
4562
|
+
Css: oo,
|
|
4563
|
+
Directives: ao,
|
|
4564
|
+
Defined: po,
|
|
4565
|
+
DataSources: vo,
|
|
4566
|
+
Style: fo,
|
|
4567
|
+
Previewer: ho,
|
|
4568
|
+
NodePath: bo,
|
|
4569
|
+
Schema: _o,
|
|
4570
|
+
Raw: yo,
|
|
4571
|
+
Docs: wo,
|
|
4572
|
+
About: jo
|
|
4573
|
+
}, Ao = [
|
|
4571
4574
|
{
|
|
4572
4575
|
name: "Logo",
|
|
4573
4576
|
region: "Brand",
|
|
@@ -4709,7 +4712,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4709
4712
|
region: "Settings",
|
|
4710
4713
|
component: L.Scripts,
|
|
4711
4714
|
type: "tab",
|
|
4712
|
-
group:
|
|
4715
|
+
group: ae.Block,
|
|
4713
4716
|
label: "设置"
|
|
4714
4717
|
},
|
|
4715
4718
|
{
|
|
@@ -4717,7 +4720,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4717
4720
|
region: "Settings",
|
|
4718
4721
|
component: L.Css,
|
|
4719
4722
|
type: "tab",
|
|
4720
|
-
group:
|
|
4723
|
+
group: ae.Block,
|
|
4721
4724
|
label: "CSS"
|
|
4722
4725
|
},
|
|
4723
4726
|
{
|
|
@@ -4725,7 +4728,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4725
4728
|
region: "Settings",
|
|
4726
4729
|
component: L.DataSources,
|
|
4727
4730
|
type: "tab",
|
|
4728
|
-
group:
|
|
4731
|
+
group: ae.Block,
|
|
4729
4732
|
label: "数据源"
|
|
4730
4733
|
},
|
|
4731
4734
|
{
|
|
@@ -4733,7 +4736,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4733
4736
|
region: "Settings",
|
|
4734
4737
|
component: L.Defined,
|
|
4735
4738
|
type: "tab",
|
|
4736
|
-
group:
|
|
4739
|
+
group: ae.Block,
|
|
4737
4740
|
label: "定义"
|
|
4738
4741
|
},
|
|
4739
4742
|
{
|
|
@@ -4741,7 +4744,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4741
4744
|
region: "Settings",
|
|
4742
4745
|
component: L.Properties,
|
|
4743
4746
|
type: "tab",
|
|
4744
|
-
group:
|
|
4747
|
+
group: ae.Node,
|
|
4745
4748
|
label: "属性"
|
|
4746
4749
|
},
|
|
4747
4750
|
{
|
|
@@ -4749,7 +4752,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4749
4752
|
region: "Settings",
|
|
4750
4753
|
component: L.Style,
|
|
4751
4754
|
type: "tab",
|
|
4752
|
-
group:
|
|
4755
|
+
group: ae.Node,
|
|
4753
4756
|
label: "样式"
|
|
4754
4757
|
},
|
|
4755
4758
|
{
|
|
@@ -4757,7 +4760,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4757
4760
|
region: "Settings",
|
|
4758
4761
|
component: L.Events,
|
|
4759
4762
|
type: "tab",
|
|
4760
|
-
group:
|
|
4763
|
+
group: ae.Node,
|
|
4761
4764
|
label: "事件"
|
|
4762
4765
|
},
|
|
4763
4766
|
{
|
|
@@ -4765,7 +4768,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4765
4768
|
region: "Settings",
|
|
4766
4769
|
component: L.Directives,
|
|
4767
4770
|
type: "tab",
|
|
4768
|
-
group:
|
|
4771
|
+
group: ae.Node,
|
|
4769
4772
|
label: "指令"
|
|
4770
4773
|
},
|
|
4771
4774
|
{
|
|
@@ -4773,7 +4776,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4773
4776
|
region: "Status",
|
|
4774
4777
|
component: L.NodePath
|
|
4775
4778
|
}
|
|
4776
|
-
],
|
|
4779
|
+
], Do = [
|
|
4777
4780
|
{
|
|
4778
4781
|
package: "vue",
|
|
4779
4782
|
version: "latest",
|
|
@@ -4872,7 +4875,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4872
4875
|
official: !0,
|
|
4873
4876
|
enabled: !1
|
|
4874
4877
|
}
|
|
4875
|
-
],
|
|
4878
|
+
], Po = [
|
|
4876
4879
|
{
|
|
4877
4880
|
id: "elements",
|
|
4878
4881
|
category: "特殊元素"
|
|
@@ -4881,7 +4884,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4881
4884
|
id: "components",
|
|
4882
4885
|
category: "内置组件"
|
|
4883
4886
|
}
|
|
4884
|
-
],
|
|
4887
|
+
], Io = [
|
|
4885
4888
|
{
|
|
4886
4889
|
name: "component",
|
|
4887
4890
|
label: "动态组件",
|
|
@@ -4918,8 +4921,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
4918
4921
|
children: "默认插槽内容"
|
|
4919
4922
|
}
|
|
4920
4923
|
}
|
|
4921
|
-
],
|
|
4922
|
-
...
|
|
4924
|
+
], Ro = [
|
|
4925
|
+
...Io,
|
|
4923
4926
|
{
|
|
4924
4927
|
name: "Transition",
|
|
4925
4928
|
label: "过渡效果",
|
|
@@ -5234,23 +5237,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5234
5237
|
}
|
|
5235
5238
|
]
|
|
5236
5239
|
}
|
|
5237
|
-
],
|
|
5240
|
+
], $o = [
|
|
5238
5241
|
{
|
|
5239
5242
|
name: "vue",
|
|
5240
5243
|
version: "latest",
|
|
5241
5244
|
label: "内置",
|
|
5242
5245
|
library: "Vue",
|
|
5243
5246
|
order: 0,
|
|
5244
|
-
categories:
|
|
5245
|
-
components:
|
|
5247
|
+
categories: Po,
|
|
5248
|
+
components: Ro
|
|
5246
5249
|
}
|
|
5247
|
-
],
|
|
5250
|
+
], Bo = /* @__PURE__ */ E({
|
|
5248
5251
|
name: "StringSetter",
|
|
5249
5252
|
__name: "string",
|
|
5250
5253
|
setup(i) {
|
|
5251
5254
|
return (e, t) => (c(), _(n(pe), ue({ clearable: "" }, e.$attrs), null, 16));
|
|
5252
5255
|
}
|
|
5253
|
-
}),
|
|
5256
|
+
}), To = /* @__PURE__ */ E({
|
|
5254
5257
|
name: "BooleanSetter",
|
|
5255
5258
|
__name: "boolean",
|
|
5256
5259
|
setup(i) {
|
|
@@ -5258,7 +5261,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5258
5261
|
"model-value": !!e.$attrs.modelValue
|
|
5259
5262
|
}), null, 16, ["model-value"]));
|
|
5260
5263
|
}
|
|
5261
|
-
}),
|
|
5264
|
+
}), Fo = "{{", zo = "}}", Mo = /* @__PURE__ */ E({
|
|
5262
5265
|
name: "ExpressionSetter",
|
|
5263
5266
|
__name: "expression",
|
|
5264
5267
|
props: {
|
|
@@ -5270,7 +5273,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5270
5273
|
const t = (u = "") => ({
|
|
5271
5274
|
type: "JSExpression",
|
|
5272
5275
|
value: Pe(u) ? u.value : u
|
|
5273
|
-
}), s = i, l = e,
|
|
5276
|
+
}), s = i, l = e, o = (u) => Y(u, s.context, !0), r = w(t(s.modelValue).value);
|
|
5274
5277
|
ne(
|
|
5275
5278
|
() => s.modelValue,
|
|
5276
5279
|
(u) => {
|
|
@@ -5280,29 +5283,29 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5280
5283
|
immediate: !0
|
|
5281
5284
|
}
|
|
5282
5285
|
);
|
|
5283
|
-
const
|
|
5286
|
+
const a = (u) => {
|
|
5284
5287
|
const p = {
|
|
5285
5288
|
type: "JSExpression",
|
|
5286
5289
|
value: u
|
|
5287
5290
|
};
|
|
5288
|
-
|
|
5291
|
+
o(p) && l("change", p);
|
|
5289
5292
|
};
|
|
5290
5293
|
return (u, p) => (c(), _(n(pe), {
|
|
5291
5294
|
class: "v-expression-setter",
|
|
5292
5295
|
modelValue: r.value,
|
|
5293
5296
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => r.value = m),
|
|
5294
|
-
onChange:
|
|
5297
|
+
onChange: a
|
|
5295
5298
|
}, {
|
|
5296
5299
|
prefix: g(() => [
|
|
5297
|
-
H(N(
|
|
5300
|
+
H(N(Fo))
|
|
5298
5301
|
]),
|
|
5299
5302
|
suffix: g(() => [
|
|
5300
|
-
H(N(
|
|
5303
|
+
H(N(zo))
|
|
5301
5304
|
]),
|
|
5302
5305
|
_: 1
|
|
5303
5306
|
}, 8, ["modelValue"]));
|
|
5304
5307
|
}
|
|
5305
|
-
}),
|
|
5308
|
+
}), No = /* @__PURE__ */ E({
|
|
5306
5309
|
name: "SelectSetter",
|
|
5307
5310
|
__name: "select",
|
|
5308
5311
|
props: {
|
|
@@ -5319,7 +5322,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5319
5322
|
_: 1
|
|
5320
5323
|
}, 16));
|
|
5321
5324
|
}
|
|
5322
|
-
}),
|
|
5325
|
+
}), Oo = /* @__PURE__ */ E({
|
|
5323
5326
|
name: "NumberSetter",
|
|
5324
5327
|
__name: "number",
|
|
5325
5328
|
props: {
|
|
@@ -5327,22 +5330,22 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5327
5330
|
},
|
|
5328
5331
|
emits: ["change"],
|
|
5329
5332
|
setup(i, { emit: e }) {
|
|
5330
|
-
const t = i, s = e, l = S(() => Pe(t.modelValue) ? void 0 : Number(t.modelValue || 0)),
|
|
5333
|
+
const t = i, s = e, l = S(() => Pe(t.modelValue) ? void 0 : Number(t.modelValue || 0)), o = (r) => {
|
|
5331
5334
|
s("change", r);
|
|
5332
5335
|
};
|
|
5333
|
-
return (r,
|
|
5336
|
+
return (r, a) => (c(), _(n(jn), ue({
|
|
5334
5337
|
class: "v-number-setter",
|
|
5335
5338
|
"controls-position": "right",
|
|
5336
5339
|
"model-value": l.value
|
|
5337
|
-
}, r.$attrs, { onChange:
|
|
5340
|
+
}, r.$attrs, { onChange: o }), null, 16, ["model-value"]));
|
|
5338
5341
|
}
|
|
5339
|
-
}),
|
|
5342
|
+
}), Wo = /* @__PURE__ */ E({
|
|
5340
5343
|
name: "ColorSetter",
|
|
5341
5344
|
__name: "color",
|
|
5342
5345
|
setup(i) {
|
|
5343
5346
|
return (e, t) => (c(), _(n(An), Dt(Pt(e.$attrs)), null, 16));
|
|
5344
5347
|
}
|
|
5345
|
-
}),
|
|
5348
|
+
}), Lo = /* @__PURE__ */ E({
|
|
5346
5349
|
name: "JsonSetter",
|
|
5347
5350
|
__name: "json",
|
|
5348
5351
|
props: {
|
|
@@ -5353,7 +5356,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5353
5356
|
setup(i, { emit: e }) {
|
|
5354
5357
|
const t = i, s = w(), l = w(
|
|
5355
5358
|
typeof t.modelValue == "object" ? JSON.stringify(t.modelValue, null, 2) : void 0
|
|
5356
|
-
),
|
|
5359
|
+
), o = S(() => !!l.value), r = w(!1), a = e, u = (b) => {
|
|
5357
5360
|
let h = !0;
|
|
5358
5361
|
try {
|
|
5359
5362
|
const d = JSON.parse(b);
|
|
@@ -5374,15 +5377,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5374
5377
|
const b = s.value?.getEditor();
|
|
5375
5378
|
if (b) {
|
|
5376
5379
|
const h = b.getValue();
|
|
5377
|
-
u(h) && (l.value = h,
|
|
5380
|
+
u(h) && (l.value = h, a("change", JSON.parse(h)), r.value = !1);
|
|
5378
5381
|
}
|
|
5379
5382
|
}, m = () => {
|
|
5380
|
-
l.value = "",
|
|
5383
|
+
l.value = "", a("change", void 0), r.value = !1;
|
|
5381
5384
|
}, f = () => {
|
|
5382
5385
|
r.value = !0;
|
|
5383
5386
|
};
|
|
5384
5387
|
return (b, h) => (c(), j("div", {
|
|
5385
|
-
class: ee(["v-json-setter", { "is-active":
|
|
5388
|
+
class: ee(["v-json-setter", { "is-active": o.value }])
|
|
5386
5389
|
}, [
|
|
5387
5390
|
v(n(pe), ue({
|
|
5388
5391
|
readonly: "",
|
|
@@ -5417,7 +5420,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5417
5420
|
}, 8, ["modelValue", "title"])) : C("", !0)
|
|
5418
5421
|
], 2));
|
|
5419
5422
|
}
|
|
5420
|
-
}),
|
|
5423
|
+
}), Jo = /* @__PURE__ */ E({
|
|
5421
5424
|
name: "FunctionSetter",
|
|
5422
5425
|
__name: "function",
|
|
5423
5426
|
props: {
|
|
@@ -5428,19 +5431,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5428
5431
|
},
|
|
5429
5432
|
emits: ["change"],
|
|
5430
5433
|
setup(i, { emit: e }) {
|
|
5431
|
-
const t = i, s = w(), l = w(t.modelValue.value),
|
|
5434
|
+
const t = i, s = w(), l = w(t.modelValue.value), o = w(!1), r = S(() => !!l.value), a = e, u = () => {
|
|
5432
5435
|
const f = s.value?.getEditor();
|
|
5433
5436
|
if (f) {
|
|
5434
5437
|
const b = f.getValue(), h = {
|
|
5435
5438
|
type: "JSFunction",
|
|
5436
5439
|
value: b
|
|
5437
5440
|
};
|
|
5438
|
-
Y(h, {}) && (l.value = b,
|
|
5441
|
+
Y(h, {}) && (l.value = b, a("change", h), o.value = !1);
|
|
5439
5442
|
}
|
|
5440
5443
|
}, p = () => {
|
|
5441
|
-
l.value = "",
|
|
5444
|
+
l.value = "", a("change", void 0), o.value = !1;
|
|
5442
5445
|
}, m = () => {
|
|
5443
|
-
|
|
5446
|
+
o.value = !0;
|
|
5444
5447
|
};
|
|
5445
5448
|
return (f, b) => (c(), j("div", {
|
|
5446
5449
|
class: ee(["v-function-setter", { "is-active": r.value }])
|
|
@@ -5451,10 +5454,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5451
5454
|
"model-value": "JSFunction",
|
|
5452
5455
|
"suffix-icon": n(vt)
|
|
5453
5456
|
}, f.$attrs), null, 16, ["suffix-icon"]),
|
|
5454
|
-
|
|
5457
|
+
o.value ? (c(), _(n($e), {
|
|
5455
5458
|
key: 0,
|
|
5456
|
-
modelValue:
|
|
5457
|
-
"onUpdate:modelValue": b[0] || (b[0] = (h) =>
|
|
5459
|
+
modelValue: o.value,
|
|
5460
|
+
"onUpdate:modelValue": b[0] || (b[0] = (h) => o.value = h),
|
|
5458
5461
|
title: "JSFunction",
|
|
5459
5462
|
width: "1000px",
|
|
5460
5463
|
height: "600px",
|
|
@@ -5478,20 +5481,20 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5478
5481
|
], 2));
|
|
5479
5482
|
}
|
|
5480
5483
|
}), le = {
|
|
5481
|
-
StringSetter:
|
|
5482
|
-
BooleanSetter:
|
|
5483
|
-
ExpressionSetter:
|
|
5484
|
-
SelectSetter:
|
|
5485
|
-
NumberSetter:
|
|
5486
|
-
ColorSetter:
|
|
5487
|
-
IconSetter:
|
|
5488
|
-
JsonSetter:
|
|
5489
|
-
FunctionSetter:
|
|
5490
|
-
},
|
|
5484
|
+
StringSetter: Bo,
|
|
5485
|
+
BooleanSetter: To,
|
|
5486
|
+
ExpressionSetter: Mo,
|
|
5487
|
+
SelectSetter: No,
|
|
5488
|
+
NumberSetter: Oo,
|
|
5489
|
+
ColorSetter: Wo,
|
|
5490
|
+
IconSetter: on,
|
|
5491
|
+
JsonSetter: Lo,
|
|
5492
|
+
FunctionSetter: Jo
|
|
5493
|
+
}, Uo = {
|
|
5491
5494
|
name: "StringSetter",
|
|
5492
5495
|
component: le.StringSetter,
|
|
5493
5496
|
type: "String"
|
|
5494
|
-
},
|
|
5497
|
+
}, Ho = [
|
|
5495
5498
|
{
|
|
5496
5499
|
name: "InputSetter",
|
|
5497
5500
|
component: le.StringSetter,
|
|
@@ -5570,14 +5573,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
|
|
|
5570
5573
|
type: "Function"
|
|
5571
5574
|
}
|
|
5572
5575
|
];
|
|
5573
|
-
class
|
|
5576
|
+
class qo {
|
|
5574
5577
|
widgets = {};
|
|
5575
5578
|
constructor() {
|
|
5576
5579
|
this.widgets = this.createWidgets();
|
|
5577
5580
|
}
|
|
5578
5581
|
createWidgets() {
|
|
5579
5582
|
const e = {};
|
|
5580
|
-
for (const t of
|
|
5583
|
+
for (const t of Ao)
|
|
5581
5584
|
e[t.name] = t;
|
|
5582
5585
|
return e;
|
|
5583
5586
|
}
|
|
@@ -5623,9 +5626,9 @@ class Ha {
|
|
|
5623
5626
|
) : s;
|
|
5624
5627
|
}
|
|
5625
5628
|
}
|
|
5626
|
-
const rn = new
|
|
5627
|
-
class
|
|
5628
|
-
constructor(e =
|
|
5629
|
+
const rn = new qo();
|
|
5630
|
+
class Go {
|
|
5631
|
+
constructor(e = Do) {
|
|
5629
5632
|
this.deps = e;
|
|
5630
5633
|
}
|
|
5631
5634
|
/**
|
|
@@ -5658,14 +5661,14 @@ class qa {
|
|
|
5658
5661
|
merge(e) {
|
|
5659
5662
|
const t = [];
|
|
5660
5663
|
for (const s of this.deps) {
|
|
5661
|
-
const l = e.find((
|
|
5664
|
+
const l = e.find((o) => o.package === s.package);
|
|
5662
5665
|
t.push({
|
|
5663
5666
|
...s,
|
|
5664
5667
|
...l
|
|
5665
5668
|
});
|
|
5666
5669
|
}
|
|
5667
5670
|
for (const s of e)
|
|
5668
|
-
this.deps.find((
|
|
5671
|
+
this.deps.find((o) => o.package === s.package) || t.push(s);
|
|
5669
5672
|
return t;
|
|
5670
5673
|
}
|
|
5671
5674
|
/**
|
|
@@ -5677,16 +5680,16 @@ class qa {
|
|
|
5677
5680
|
t > -1 && this.deps.splice(t, 1);
|
|
5678
5681
|
}
|
|
5679
5682
|
}
|
|
5680
|
-
const
|
|
5681
|
-
class
|
|
5683
|
+
const Ko = new Go();
|
|
5684
|
+
class Zo {
|
|
5682
5685
|
setters = {};
|
|
5683
|
-
defaultSetter =
|
|
5686
|
+
defaultSetter = Uo;
|
|
5684
5687
|
constructor() {
|
|
5685
5688
|
this.setters = this.createSetters();
|
|
5686
5689
|
}
|
|
5687
5690
|
createSetters() {
|
|
5688
5691
|
const e = {};
|
|
5689
|
-
for (const t of
|
|
5692
|
+
for (const t of Ho)
|
|
5690
5693
|
e[t.name] = t;
|
|
5691
5694
|
return e;
|
|
5692
5695
|
}
|
|
@@ -5723,8 +5726,8 @@ class Ka {
|
|
|
5723
5726
|
return Object.values(this.setters).filter((s) => s.type === e).map((s) => s.name);
|
|
5724
5727
|
}
|
|
5725
5728
|
}
|
|
5726
|
-
const Oe = new
|
|
5727
|
-
function
|
|
5729
|
+
const Oe = new Zo();
|
|
5730
|
+
function Qo(i) {
|
|
5728
5731
|
return new Promise((e, t) => {
|
|
5729
5732
|
const s = $t(Bl, {
|
|
5730
5733
|
slots: i,
|
|
@@ -5738,7 +5741,7 @@ function Za(i) {
|
|
|
5738
5741
|
s.mount(document.createElement("div"));
|
|
5739
5742
|
});
|
|
5740
5743
|
}
|
|
5741
|
-
class
|
|
5744
|
+
class Xo {
|
|
5742
5745
|
constructor(e, t, s) {
|
|
5743
5746
|
this.engine = e, this.contentWindow = t, this.dependencies = s, this.document = this.contentWindow.document, this.bindEvents(t, this.document);
|
|
5744
5747
|
}
|
|
@@ -5760,7 +5763,7 @@ class Qa {
|
|
|
5760
5763
|
"scroll",
|
|
5761
5764
|
this.bind(this.onViewChange, "onViewChange")
|
|
5762
5765
|
), e.addEventListener("resize", this.bind(this.onViewChange, "onViewChange")), t.addEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragover", this.bind(this.onDragOver, "onDragOver")), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener("click", this.bind(this.onSelected, "onSelected")), q.on(
|
|
5763
|
-
|
|
5766
|
+
at,
|
|
5764
5767
|
this.bind(this.onActiveChange, "onActiveChange")
|
|
5765
5768
|
), q.on(Ie, this.bind(this.onViewChange, "onViewChange"));
|
|
5766
5769
|
}
|
|
@@ -5778,7 +5781,7 @@ class Qa {
|
|
|
5778
5781
|
"dragover",
|
|
5779
5782
|
this.bind(this.onDragOver, "onDragOver")
|
|
5780
5783
|
), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), q.off(
|
|
5781
|
-
|
|
5784
|
+
at,
|
|
5782
5785
|
this.bind(this.onActiveChange, "onActiveChange")
|
|
5783
5786
|
), q.off(
|
|
5784
5787
|
Ie,
|
|
@@ -5801,10 +5804,10 @@ class Qa {
|
|
|
5801
5804
|
async getDropSlot(e) {
|
|
5802
5805
|
if (!e)
|
|
5803
5806
|
return;
|
|
5804
|
-
const { engine: t } = this, s = t.assets, l = s.componentMap,
|
|
5805
|
-
if (!
|
|
5807
|
+
const { engine: t } = this, s = t.assets, l = s.componentMap, o = await s.getBlockMaterial(e.from) || l.get(e.name);
|
|
5808
|
+
if (!o?.slots)
|
|
5806
5809
|
return;
|
|
5807
|
-
const r = (
|
|
5810
|
+
const r = (o?.slots || ["default"]).map(
|
|
5808
5811
|
(u) => typeof u == "string" ? {
|
|
5809
5812
|
name: u,
|
|
5810
5813
|
params: []
|
|
@@ -5817,28 +5820,28 @@ class Qa {
|
|
|
5817
5820
|
return;
|
|
5818
5821
|
if (r.length === 1)
|
|
5819
5822
|
return r[0];
|
|
5820
|
-
const
|
|
5821
|
-
if (!(
|
|
5822
|
-
return
|
|
5823
|
+
const a = await Qo(r).catch(() => null);
|
|
5824
|
+
if (!(a && a.name === "default" && (!a.params || a.params?.length === 0)))
|
|
5825
|
+
return a;
|
|
5823
5826
|
}
|
|
5824
5827
|
async onDrop(e) {
|
|
5825
5828
|
e.preventDefault();
|
|
5826
|
-
const { engine: t, dragging: s, dropping: l } = this,
|
|
5827
|
-
if (!
|
|
5829
|
+
const { engine: t, dragging: s, dropping: l } = this, o = t.current.value, r = this.getHelper(e);
|
|
5830
|
+
if (!o || !s || !l.value || !r)
|
|
5828
5831
|
return;
|
|
5829
|
-
const
|
|
5830
|
-
if (!await this.allowDrop(
|
|
5832
|
+
const a = r.model, u = l.value.type;
|
|
5833
|
+
if (!await this.allowDrop(a, u))
|
|
5831
5834
|
return;
|
|
5832
5835
|
const p = this.createNodeDsl(s), m = new kt(p);
|
|
5833
|
-
if (U(
|
|
5834
|
-
|
|
5836
|
+
if (U(a))
|
|
5837
|
+
o.addNode(m, void 0, u);
|
|
5835
5838
|
else {
|
|
5836
|
-
const f = await this.getDropSlot(u === "inner" ?
|
|
5839
|
+
const f = await this.getDropSlot(u === "inner" ? a : a.parent);
|
|
5837
5840
|
if (f === null) {
|
|
5838
5841
|
this.dropping.value = null;
|
|
5839
5842
|
return;
|
|
5840
5843
|
}
|
|
5841
|
-
m.slot = f,
|
|
5844
|
+
m.slot = f, o.addNode(m, a, u);
|
|
5842
5845
|
}
|
|
5843
5846
|
this.dropping.value = null;
|
|
5844
5847
|
}
|
|
@@ -5863,12 +5866,12 @@ class Qa {
|
|
|
5863
5866
|
return kt.nodes[t] || null;
|
|
5864
5867
|
}
|
|
5865
5868
|
getDropType(e, t, s) {
|
|
5866
|
-
const { left: l, top:
|
|
5867
|
-
return t >= l && t <= l + r * 0.2 ? "left" : t >= l + r * 0.8 && t <= l + r ? "right" : s >=
|
|
5869
|
+
const { left: l, top: o, width: r, height: a } = e;
|
|
5870
|
+
return t >= l && t <= l + r * 0.2 ? "left" : t >= l + r * 0.8 && t <= l + r ? "right" : s >= o && s <= o + a * 0.2 ? "top" : s >= o + a * 0.8 && s <= o + a ? "bottom" : "inner";
|
|
5868
5871
|
}
|
|
5869
5872
|
getNodePath(e = []) {
|
|
5870
|
-
const t = e.filter((
|
|
5871
|
-
return [...t.map((
|
|
5873
|
+
const t = e.filter((o) => this.isVtjElement(o)), s = this.engine.current.value;
|
|
5874
|
+
return [...t.map((o) => this.getNodeByElement(o)).filter((o) => !!o), s];
|
|
5872
5875
|
}
|
|
5873
5876
|
setDslFrom(e) {
|
|
5874
5877
|
const t = this.engine.assets.componentMap.get(e.name);
|
|
@@ -5877,12 +5880,12 @@ class Qa {
|
|
|
5877
5880
|
this.setDslFrom(s);
|
|
5878
5881
|
}
|
|
5879
5882
|
createNodeDsl(e) {
|
|
5880
|
-
const { name: t, snippet: s = {}, from: l } = e,
|
|
5883
|
+
const { name: t, snippet: s = {}, from: l } = e, o = {
|
|
5881
5884
|
...s,
|
|
5882
5885
|
name: t,
|
|
5883
5886
|
from: l || e.package
|
|
5884
5887
|
};
|
|
5885
|
-
return this.setDslFrom(
|
|
5888
|
+
return this.setDslFrom(o), o;
|
|
5886
5889
|
}
|
|
5887
5890
|
getElmenetByModel(e) {
|
|
5888
5891
|
return !this.document || !e ? null : U(e) ? this.document.body : Array.from(
|
|
@@ -5906,13 +5909,13 @@ class Qa {
|
|
|
5906
5909
|
const l = this.getNodeByElement(s) || this.engine.current.value;
|
|
5907
5910
|
if (!l)
|
|
5908
5911
|
return null;
|
|
5909
|
-
const
|
|
5912
|
+
const o = s.getBoundingClientRect(), r = this.getDropType(o, e.clientX, e.clientY), a = this.getNodePath(t);
|
|
5910
5913
|
return {
|
|
5911
5914
|
el: s,
|
|
5912
5915
|
model: l,
|
|
5913
|
-
rect:
|
|
5916
|
+
rect: o,
|
|
5914
5917
|
type: r,
|
|
5915
|
-
path:
|
|
5918
|
+
path: a
|
|
5916
5919
|
};
|
|
5917
5920
|
}
|
|
5918
5921
|
cleanHelper() {
|
|
@@ -5976,27 +5979,27 @@ class Qa {
|
|
|
5976
5979
|
const s = this.getElmenetByModel(e);
|
|
5977
5980
|
if (!s)
|
|
5978
5981
|
return;
|
|
5979
|
-
const l = s.getBoundingClientRect(),
|
|
5982
|
+
const l = s.getBoundingClientRect(), o = U(e) ? [] : this.findPathByNode(e);
|
|
5980
5983
|
this.dropping.value = {
|
|
5981
5984
|
el: s,
|
|
5982
5985
|
model: e,
|
|
5983
5986
|
rect: l,
|
|
5984
5987
|
type: t,
|
|
5985
|
-
path:
|
|
5988
|
+
path: o
|
|
5986
5989
|
};
|
|
5987
5990
|
} else
|
|
5988
5991
|
this.dropping.value = null;
|
|
5989
5992
|
}
|
|
5990
5993
|
async allowDrop(e, t = "inner") {
|
|
5991
|
-
const { dragging: s, engine: l } = this,
|
|
5992
|
-
if (!s || !
|
|
5994
|
+
const { dragging: s, engine: l } = this, o = l.current.value;
|
|
5995
|
+
if (!s || !o)
|
|
5993
5996
|
return !1;
|
|
5994
5997
|
if (U(e))
|
|
5995
5998
|
return !0;
|
|
5996
|
-
const r = l.assets.componentMap,
|
|
5999
|
+
const r = l.assets.componentMap, a = t !== "inner" && e.parent || e, u = await l.assets.getBlockMaterial(a.from) || r.get(a.name);
|
|
5997
6000
|
if (!u)
|
|
5998
6001
|
return !1;
|
|
5999
|
-
const { parentIncludes: p = !0, name: m } = s, { childIncludes: f = !0 } = u, b = p === !0 || Array.isArray(p) && p.includes(
|
|
6002
|
+
const { parentIncludes: p = !0, name: m } = s, { childIncludes: f = !0 } = u, b = p === !0 || Array.isArray(p) && p.includes(a.name), h = f === !0 || Array.isArray(f) && f.includes(m);
|
|
6000
6003
|
return b && h;
|
|
6001
6004
|
}
|
|
6002
6005
|
dispose() {
|
|
@@ -6004,7 +6007,7 @@ class Qa {
|
|
|
6004
6007
|
this.setSelected(null), this.setHover(null), this.setDragging(null), e && t && this.unbindEvents(e, t), this.document = null;
|
|
6005
6008
|
}
|
|
6006
6009
|
}
|
|
6007
|
-
class
|
|
6010
|
+
class Yo {
|
|
6008
6011
|
constructor(e, t, s = null) {
|
|
6009
6012
|
this.env = e, this.service = t, this.designer = s, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
|
|
6010
6013
|
}
|
|
@@ -6015,18 +6018,18 @@ class Xa {
|
|
|
6015
6018
|
context = null;
|
|
6016
6019
|
install(e) {
|
|
6017
6020
|
const { library: t, globals: s } = this.env, l = Object.values(t);
|
|
6018
|
-
Object.assign(e.config.globalProperties, s), e.config.errorHandler = (
|
|
6019
|
-
const u = r?.$options.name, p =
|
|
6021
|
+
Object.assign(e.config.globalProperties, s), e.config.errorHandler = (o, r, a) => {
|
|
6022
|
+
const u = r?.$options.name, p = o?.message || o?.msg || "未知错误", m = `[ ${u} ] ${p}`;
|
|
6020
6023
|
console.error({
|
|
6021
|
-
err:
|
|
6024
|
+
err: o,
|
|
6022
6025
|
instance: r,
|
|
6023
|
-
info:
|
|
6026
|
+
info: a
|
|
6024
6027
|
}), Ue.error({
|
|
6025
6028
|
title: "运行错误",
|
|
6026
6029
|
message: m
|
|
6027
6030
|
});
|
|
6028
|
-
}, l.forEach((
|
|
6029
|
-
(typeof
|
|
6031
|
+
}, l.forEach((o) => {
|
|
6032
|
+
(typeof o == "function" || typeof o.install == "function") && e?.use(o);
|
|
6030
6033
|
});
|
|
6031
6034
|
}
|
|
6032
6035
|
render(e) {
|
|
@@ -6034,28 +6037,28 @@ class Xa {
|
|
|
6034
6037
|
window: t,
|
|
6035
6038
|
container: s,
|
|
6036
6039
|
Vue: l,
|
|
6037
|
-
components:
|
|
6040
|
+
components: o,
|
|
6038
6041
|
library: r,
|
|
6039
|
-
apis:
|
|
6042
|
+
apis: a
|
|
6040
6043
|
} = this.env, u = t.document.createElement("div");
|
|
6041
6044
|
u.id = "app", s.appendChild(u), this.dsl = l.reactive(e.toDsl());
|
|
6042
6045
|
const p = Un({
|
|
6043
6046
|
getDsl: async (b) => await this.service.getFile(b) || null,
|
|
6044
6047
|
options: {
|
|
6045
|
-
mode:
|
|
6048
|
+
mode: ot.Design,
|
|
6046
6049
|
Vue: l,
|
|
6047
|
-
components:
|
|
6050
|
+
components: o,
|
|
6048
6051
|
libs: r,
|
|
6049
|
-
apis:
|
|
6052
|
+
apis: a,
|
|
6050
6053
|
window: t
|
|
6051
6054
|
}
|
|
6052
6055
|
}), { renderer: m, context: f } = Hn({
|
|
6053
6056
|
Vue: l,
|
|
6054
|
-
mode:
|
|
6057
|
+
mode: ot.Design,
|
|
6055
6058
|
dsl: this.dsl,
|
|
6056
|
-
components:
|
|
6059
|
+
components: o,
|
|
6057
6060
|
libs: r,
|
|
6058
|
-
apis:
|
|
6061
|
+
apis: a,
|
|
6059
6062
|
loader: p,
|
|
6060
6063
|
window: t
|
|
6061
6064
|
});
|
|
@@ -6079,12 +6082,12 @@ class Xa {
|
|
|
6079
6082
|
const s = t.children || t.nodes || [];
|
|
6080
6083
|
if (Array.isArray(s))
|
|
6081
6084
|
for (let l = 0; l < s.length; l++) {
|
|
6082
|
-
const
|
|
6083
|
-
if (
|
|
6085
|
+
const o = s[l];
|
|
6086
|
+
if (o.id === e.id) {
|
|
6084
6087
|
s.splice(l, 1, e);
|
|
6085
6088
|
return;
|
|
6086
6089
|
} else
|
|
6087
|
-
this.updateChild(e,
|
|
6090
|
+
this.updateChild(e, o);
|
|
6088
6091
|
}
|
|
6089
6092
|
}
|
|
6090
6093
|
__onNodeChange(e) {
|
|
@@ -6094,7 +6097,7 @@ class Xa {
|
|
|
6094
6097
|
this.dispose(), this.render(e), this.designer?.selected.value && this.designer.setSelected(e);
|
|
6095
6098
|
}
|
|
6096
6099
|
}
|
|
6097
|
-
class
|
|
6100
|
+
class ea extends Ut {
|
|
6098
6101
|
contentWindow = null;
|
|
6099
6102
|
renderer = null;
|
|
6100
6103
|
designer = Me(null);
|
|
@@ -6109,7 +6112,7 @@ class Ya extends Ut {
|
|
|
6109
6112
|
}
|
|
6110
6113
|
init(e, t) {
|
|
6111
6114
|
jt(() => {
|
|
6112
|
-
e.value && t.value.length && (this.resetReady(), this.setup(e.value, t.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new
|
|
6115
|
+
e.value && t.value.length && (this.resetReady(), this.setup(e.value, t.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new Xo(
|
|
6113
6116
|
this.engine,
|
|
6114
6117
|
this.contentWindow,
|
|
6115
6118
|
t
|
|
@@ -6126,9 +6129,9 @@ class Ya extends Ut {
|
|
|
6126
6129
|
const l = s.document;
|
|
6127
6130
|
this.contentWindow = s;
|
|
6128
6131
|
const {
|
|
6129
|
-
scripts:
|
|
6132
|
+
scripts: o,
|
|
6130
6133
|
css: r,
|
|
6131
|
-
materials:
|
|
6134
|
+
materials: a,
|
|
6132
6135
|
libraryExports: u,
|
|
6133
6136
|
materialExports: p,
|
|
6134
6137
|
materialMapLibrary: m
|
|
@@ -6151,8 +6154,8 @@ class Ya extends Ut {
|
|
|
6151
6154
|
}
|
|
6152
6155
|
</style>
|
|
6153
6156
|
${Gn(r)}
|
|
6154
|
-
${yt(a)}
|
|
6155
6157
|
${yt(o)}
|
|
6158
|
+
${yt(a)}
|
|
6156
6159
|
</head>
|
|
6157
6160
|
<body>
|
|
6158
6161
|
</body>
|
|
@@ -6166,17 +6169,17 @@ class Ya extends Ut {
|
|
|
6166
6169
|
}
|
|
6167
6170
|
async emitReady(e = [], t = [], s = {}) {
|
|
6168
6171
|
this.renderer?.dispose(), this.renderer = null;
|
|
6169
|
-
const l = this.contentWindow, { assets:
|
|
6172
|
+
const l = this.contentWindow, { assets: o, service: r, current: a, provider: u } = this.engine, p = u.materials || {}, m = [];
|
|
6170
6173
|
for (const b of t) {
|
|
6171
6174
|
const h = p[b] ? (await p[b]()).default : l[b];
|
|
6172
6175
|
m.push(h);
|
|
6173
6176
|
}
|
|
6174
|
-
|
|
6177
|
+
o.load(m);
|
|
6175
6178
|
const f = this.createEnv(e, s, m);
|
|
6176
|
-
this.renderer = new
|
|
6179
|
+
this.renderer = new Yo(f, r, this.designer.value), a.value && this.renderer.render(a.value), this.triggerReady();
|
|
6177
6180
|
}
|
|
6178
6181
|
createEnv(e = [], t = {}, s = []) {
|
|
6179
|
-
const l = this.contentWindow, { engine:
|
|
6182
|
+
const l = this.contentWindow, { engine: o } = this, { project: r, assets: a, provider: u } = o, p = e.reduce((y, V) => (y[V] = l[V], y), {}), m = {}, { groups: f, componentMap: b } = a;
|
|
6180
6183
|
for (const y of f.value) {
|
|
6181
6184
|
const V = y.names || [], x = p[t[y.library || ""]];
|
|
6182
6185
|
x && V.forEach((D) => {
|
|
@@ -6205,7 +6208,7 @@ class Ya extends Ut {
|
|
|
6205
6208
|
this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null;
|
|
6206
6209
|
}
|
|
6207
6210
|
}
|
|
6208
|
-
class
|
|
6211
|
+
class ta {
|
|
6209
6212
|
constructor(e) {
|
|
6210
6213
|
this.service = e;
|
|
6211
6214
|
}
|
|
@@ -6226,14 +6229,14 @@ class eo {
|
|
|
6226
6229
|
parseGroups(e) {
|
|
6227
6230
|
const t = [];
|
|
6228
6231
|
for (let s of e) {
|
|
6229
|
-
const { categories: l, components:
|
|
6230
|
-
if (!l || !
|
|
6232
|
+
const { categories: l, components: o, label: r, name: a, library: u } = s;
|
|
6233
|
+
if (!l || !o)
|
|
6231
6234
|
continue;
|
|
6232
|
-
const p =
|
|
6233
|
-
(h) => this.getCateoryComponents(h,
|
|
6235
|
+
const p = o.map((h) => h.name), m = l.map(
|
|
6236
|
+
(h) => this.getCateoryComponents(h, o)
|
|
6234
6237
|
), f = m.reduce((h, d) => d.count + h, 0), b = {
|
|
6235
6238
|
name: s.name,
|
|
6236
|
-
label: r ||
|
|
6239
|
+
label: r || a,
|
|
6237
6240
|
count: f,
|
|
6238
6241
|
names: p,
|
|
6239
6242
|
library: u,
|
|
@@ -6244,7 +6247,7 @@ class eo {
|
|
|
6244
6247
|
return t;
|
|
6245
6248
|
}
|
|
6246
6249
|
load(e) {
|
|
6247
|
-
const t = [
|
|
6250
|
+
const t = [...$o, ...e].filter((s) => !!s);
|
|
6248
6251
|
t.sort((s, l) => s.order - l.order);
|
|
6249
6252
|
for (let s of t)
|
|
6250
6253
|
s.components && (this.components = this.components.concat(s.components));
|
|
@@ -6259,7 +6262,7 @@ class eo {
|
|
|
6259
6262
|
const s = await this.service.getFile(t);
|
|
6260
6263
|
if (!s)
|
|
6261
6264
|
return null;
|
|
6262
|
-
const { id: l, name:
|
|
6265
|
+
const { id: l, name: o, slots: r, props: a, emits: u } = s, p = (f) => {
|
|
6263
6266
|
const b = Array.isArray(f) ? f : [f];
|
|
6264
6267
|
let h = [];
|
|
6265
6268
|
for (const d of b)
|
|
@@ -6270,10 +6273,10 @@ class eo {
|
|
|
6270
6273
|
};
|
|
6271
6274
|
return {
|
|
6272
6275
|
id: l,
|
|
6273
|
-
name:
|
|
6276
|
+
name: o,
|
|
6274
6277
|
// 如果没有定义插槽,不能放置子组件
|
|
6275
6278
|
childIncludes: r?.length ? void 0 : !1,
|
|
6276
|
-
props: (
|
|
6279
|
+
props: (a || []).map((f) => typeof f == "string" ? {
|
|
6277
6280
|
name: f
|
|
6278
6281
|
} : {
|
|
6279
6282
|
name: f.name,
|
|
@@ -6287,7 +6290,7 @@ class eo {
|
|
|
6287
6290
|
}
|
|
6288
6291
|
}
|
|
6289
6292
|
const un = Symbol("VtjEngine");
|
|
6290
|
-
class
|
|
6293
|
+
class Ma extends Ut {
|
|
6291
6294
|
app;
|
|
6292
6295
|
skeleton;
|
|
6293
6296
|
container;
|
|
@@ -6307,38 +6310,38 @@ class Mo extends Ut {
|
|
|
6307
6310
|
container: t,
|
|
6308
6311
|
service: s,
|
|
6309
6312
|
project: l = {},
|
|
6310
|
-
globals:
|
|
6313
|
+
globals: o = {},
|
|
6311
6314
|
dependencies: r,
|
|
6312
|
-
materials:
|
|
6315
|
+
materials: a,
|
|
6313
6316
|
materialPath: u = "./"
|
|
6314
6317
|
} = e;
|
|
6315
6318
|
this.container = t, this.service = s, this.provider = new Qn({
|
|
6316
|
-
mode:
|
|
6317
|
-
globals:
|
|
6319
|
+
mode: ot.Design,
|
|
6320
|
+
globals: o,
|
|
6318
6321
|
project: l,
|
|
6319
6322
|
service: s,
|
|
6320
6323
|
dependencies: r,
|
|
6321
|
-
materials:
|
|
6324
|
+
materials: a,
|
|
6322
6325
|
materialPath: u
|
|
6323
|
-
}), this.assets = new
|
|
6326
|
+
}), this.assets = new ta(this.service), this.simulator = new ea({
|
|
6324
6327
|
engine: this,
|
|
6325
6328
|
materialPath: u
|
|
6326
6329
|
}), this.bindEvents(), this.init(l), It(this.render.bind(this)), Rt(this.dispose.bind(this));
|
|
6327
6330
|
}
|
|
6328
6331
|
async init(e) {
|
|
6329
6332
|
const t = await this.service.init(e).catch((s) => (me.warn("VTJEngine service init fail.", s), null));
|
|
6330
|
-
t && (t.dependencies =
|
|
6333
|
+
t && (t.dependencies = Ko.merge(t.dependencies || []), this.project.value = new Yn(t), this.saveMaterials(), this.triggerReady());
|
|
6331
6334
|
}
|
|
6332
6335
|
render() {
|
|
6333
6336
|
const e = n(this.container);
|
|
6334
6337
|
if (e) {
|
|
6335
|
-
const t = $t(
|
|
6338
|
+
const t = $t(na);
|
|
6336
6339
|
t.provide(un, mn(this)), t.mount(e), this.app = t;
|
|
6337
6340
|
} else
|
|
6338
6341
|
me.warn("VTJEngine constructor param [ container ] is undefined");
|
|
6339
6342
|
}
|
|
6340
6343
|
bindEvents() {
|
|
6341
|
-
q.on(es, (e) => this.saveProject(e)), q.on(ts, (e) => this.saveBlockFile(e)), q.on(ns, (e) => this.saveBlockFile(e)), q.on(ss, () => this.saveMaterials()), q.on(
|
|
6344
|
+
q.on(es, (e) => this.saveProject(e)), q.on(ts, (e) => this.saveBlockFile(e)), q.on(ns, (e) => this.saveBlockFile(e)), q.on(ss, () => this.saveMaterials()), q.on(at, (e) => this.activeFile(e)), q.on(ls, () => this.publish()), q.on(os, () => this.publishCurrent()), q.on(rt, (e) => this.changeFile(e)), q.on(Ie, () => this.changeCurrentFile()), q.on(as, (e) => this.saveHistory(e)), q.on(rs, (e) => this.loadHistory(e));
|
|
6342
6345
|
}
|
|
6343
6346
|
async activeFile(e) {
|
|
6344
6347
|
await Se();
|
|
@@ -6375,22 +6378,22 @@ class Mo extends Ut {
|
|
|
6375
6378
|
const t = e.type, s = e.model;
|
|
6376
6379
|
if (t === "create") {
|
|
6377
6380
|
const l = e.data;
|
|
6378
|
-
s.isPageFile(l) && l.raw ? (await this.service.createRawPage(l),
|
|
6381
|
+
s.isPageFile(l) && l.raw ? (await this.service.createRawPage(l), oe(`源码文件已经生成:/.vtj/vue/${l.id}.vue`, "success")) : l.dsl && await this.service.saveFile(l.dsl);
|
|
6379
6382
|
}
|
|
6380
6383
|
if (t === "update") {
|
|
6381
6384
|
const l = e.data;
|
|
6382
6385
|
if (s.isPageFile(l) && (l.dir || l.raw))
|
|
6383
6386
|
return;
|
|
6384
|
-
const
|
|
6385
|
-
|
|
6387
|
+
const o = await this.service.getFile(l.id);
|
|
6388
|
+
o && (o.name = l.name, await this.service.saveFile(o));
|
|
6386
6389
|
}
|
|
6387
6390
|
if (t === "delete") {
|
|
6388
6391
|
const l = e.data;
|
|
6389
|
-
l && s.isPageFile(l) && l.raw ? await this.service.removeRawPage(l.id) : (await this.service.removeFile(l.id), await this.service.removeHistory(l.id));
|
|
6392
|
+
l && s.isPageFile(l) && l.raw ? await this.service.removeRawPage(l.id) : l.dir || (await this.service.removeFile(l.id), await this.service.removeHistory(l.id));
|
|
6390
6393
|
}
|
|
6391
6394
|
if (t === "clone") {
|
|
6392
|
-
const { page: l, newPage:
|
|
6393
|
-
r && (r.id =
|
|
6395
|
+
const { page: l, newPage: o } = e.data, r = await this.service.getFile(l.id);
|
|
6396
|
+
r && (r.id = o.id, r.name = o.name, await this.service.saveFile(r));
|
|
6394
6397
|
}
|
|
6395
6398
|
he(this.project);
|
|
6396
6399
|
}
|
|
@@ -6428,8 +6431,8 @@ class Mo extends Ut {
|
|
|
6428
6431
|
async loadHistory(e) {
|
|
6429
6432
|
const t = e.model, s = e.data, l = await this.service.getHistoryItem(t.id, s.id);
|
|
6430
6433
|
if (l && l.dsl) {
|
|
6431
|
-
const
|
|
6432
|
-
await this.updateCurrent(
|
|
6434
|
+
const o = new wt(l.dsl);
|
|
6435
|
+
await this.updateCurrent(o), he(this.history);
|
|
6433
6436
|
}
|
|
6434
6437
|
}
|
|
6435
6438
|
async publish() {
|
|
@@ -6439,7 +6442,7 @@ class Mo extends Ut {
|
|
|
6439
6442
|
...e.toDsl(),
|
|
6440
6443
|
pages: e.getPages()
|
|
6441
6444
|
};
|
|
6442
|
-
await this.service.publish(t) &&
|
|
6445
|
+
await this.service.publish(t) && oe("整站发布成功", "success");
|
|
6443
6446
|
}
|
|
6444
6447
|
}
|
|
6445
6448
|
async publishCurrent() {
|
|
@@ -6449,7 +6452,7 @@ class Mo extends Ut {
|
|
|
6449
6452
|
...e.toDsl(),
|
|
6450
6453
|
pages: e.getPages()
|
|
6451
6454
|
};
|
|
6452
|
-
await this.service.publishFile(s, t) &&
|
|
6455
|
+
await this.service.publishFile(s, t) && oe("发布成功", "success");
|
|
6453
6456
|
}
|
|
6454
6457
|
}
|
|
6455
6458
|
dispose() {
|
|
@@ -6459,9 +6462,9 @@ class Mo extends Ut {
|
|
|
6459
6462
|
const t = this.project.value, s = this.skeleton?.getRegion("Apps"), l = e || t?.homepage;
|
|
6460
6463
|
if (!t || !s || !l)
|
|
6461
6464
|
return;
|
|
6462
|
-
const
|
|
6463
|
-
|
|
6464
|
-
t.active(
|
|
6465
|
+
const o = t.getPage(l);
|
|
6466
|
+
o && !o.raw && (s.regionRef?.setActive("Pages"), this.simulator.ready(() => {
|
|
6467
|
+
t.active(o);
|
|
6465
6468
|
}));
|
|
6466
6469
|
const r = t.getBlock(l);
|
|
6467
6470
|
r && (s.regionRef?.setActive("Blocks"), this.simulator?.ready(() => {
|
|
@@ -6515,7 +6518,7 @@ const be = E({
|
|
|
6515
6518
|
ref: "widgetRef"
|
|
6516
6519
|
});
|
|
6517
6520
|
}
|
|
6518
|
-
}),
|
|
6521
|
+
}), na = E({
|
|
6519
6522
|
name: "SkeletonWrapper",
|
|
6520
6523
|
setup() {
|
|
6521
6524
|
const i = w(), e = se(), t = w({});
|
|
@@ -6529,7 +6532,7 @@ const be = E({
|
|
|
6529
6532
|
this.engine.skeleton = this;
|
|
6530
6533
|
},
|
|
6531
6534
|
render() {
|
|
6532
|
-
return xe(
|
|
6535
|
+
return xe(sa, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
|
|
6533
6536
|
},
|
|
6534
6537
|
methods: {
|
|
6535
6538
|
/**
|
|
@@ -6668,16 +6671,16 @@ const be = E({
|
|
|
6668
6671
|
name: t,
|
|
6669
6672
|
label: s,
|
|
6670
6673
|
title: l,
|
|
6671
|
-
value:
|
|
6674
|
+
value: o,
|
|
6672
6675
|
computedSetters: r,
|
|
6673
|
-
computedOptions:
|
|
6676
|
+
computedOptions: a,
|
|
6674
6677
|
variable: u,
|
|
6675
6678
|
changeValue: p,
|
|
6676
6679
|
defaultSetter: m,
|
|
6677
6680
|
removable: f,
|
|
6678
6681
|
onRemove: b
|
|
6679
6682
|
} = this;
|
|
6680
|
-
return xe(
|
|
6683
|
+
return xe(ca, {
|
|
6681
6684
|
context: i,
|
|
6682
6685
|
current: e,
|
|
6683
6686
|
name: t,
|
|
@@ -6686,9 +6689,9 @@ const be = E({
|
|
|
6686
6689
|
setters: r,
|
|
6687
6690
|
defaultSetter: m,
|
|
6688
6691
|
variable: u,
|
|
6689
|
-
value:
|
|
6692
|
+
value: o,
|
|
6690
6693
|
removable: f,
|
|
6691
|
-
options:
|
|
6694
|
+
options: a,
|
|
6692
6695
|
onChange: p,
|
|
6693
6696
|
onRemove: b
|
|
6694
6697
|
});
|
|
@@ -6705,7 +6708,7 @@ const be = E({
|
|
|
6705
6708
|
this.$emit("remove", i);
|
|
6706
6709
|
}
|
|
6707
6710
|
}
|
|
6708
|
-
}),
|
|
6711
|
+
}), sa = /* @__PURE__ */ E({
|
|
6709
6712
|
name: "Skeletion",
|
|
6710
6713
|
__name: "skeleton",
|
|
6711
6714
|
props: {
|
|
@@ -6715,7 +6718,7 @@ const be = E({
|
|
|
6715
6718
|
footerHeight: { default: "20px" }
|
|
6716
6719
|
},
|
|
6717
6720
|
setup(i, { expose: e }) {
|
|
6718
|
-
const t = i, s = w(!1), l = w(parseInt(t.leftWidth)),
|
|
6721
|
+
const t = i, s = w(!1), l = w(parseInt(t.leftWidth)), o = w(parseInt(t.rightWidth)), r = {
|
|
6719
6722
|
dirs: ["e"],
|
|
6720
6723
|
maxWidth: 600,
|
|
6721
6724
|
minWidth: 49,
|
|
@@ -6725,15 +6728,15 @@ const be = E({
|
|
|
6725
6728
|
onEnd(x, D) {
|
|
6726
6729
|
l.value = D.elementWidth.value;
|
|
6727
6730
|
}
|
|
6728
|
-
},
|
|
6731
|
+
}, a = {
|
|
6729
6732
|
dirs: ["w"],
|
|
6730
6733
|
maxWidth: 600,
|
|
6731
6734
|
minWidth: 2,
|
|
6732
6735
|
onResizing(x, D) {
|
|
6733
|
-
|
|
6736
|
+
o.value = D.elementWidth.value;
|
|
6734
6737
|
},
|
|
6735
6738
|
onEnd(x, D) {
|
|
6736
|
-
|
|
6739
|
+
o.value = D.elementWidth.value;
|
|
6737
6740
|
}
|
|
6738
6741
|
}, u = w(), p = w(), m = w(), f = w(), b = w(), h = w(), d = w(), k = w(), y = w(!1), V = w(!1);
|
|
6739
6742
|
return e({
|
|
@@ -6747,7 +6750,7 @@ const be = E({
|
|
|
6747
6750
|
collapsed: y,
|
|
6748
6751
|
settable: V,
|
|
6749
6752
|
leftWidth: l,
|
|
6750
|
-
rightWidth:
|
|
6753
|
+
rightWidth: o,
|
|
6751
6754
|
preview: k,
|
|
6752
6755
|
isPreview: s
|
|
6753
6756
|
}), (x, D) => (c(), _(n(Dn), { locale: n(Bn) }, {
|
|
@@ -6832,7 +6835,7 @@ const be = E({
|
|
|
6832
6835
|
_: 1
|
|
6833
6836
|
}, 8, ["width"])), [
|
|
6834
6837
|
[We, V.value],
|
|
6835
|
-
[n(_t),
|
|
6838
|
+
[n(_t), a]
|
|
6836
6839
|
])
|
|
6837
6840
|
]),
|
|
6838
6841
|
_: 1
|
|
@@ -6858,10 +6861,10 @@ const be = E({
|
|
|
6858
6861
|
_: 1
|
|
6859
6862
|
}, 8, ["locale"]));
|
|
6860
6863
|
}
|
|
6861
|
-
}),
|
|
6864
|
+
}), la = { key: 1 }, oa = { class: "v-setter__content" }, aa = {
|
|
6862
6865
|
key: 0,
|
|
6863
6866
|
class: "v-setter__input"
|
|
6864
|
-
},
|
|
6867
|
+
}, ra = { class: "v-setter__action" }, ia = "{{", ua = "}}", ca = /* @__PURE__ */ E({
|
|
6865
6868
|
__name: "setter",
|
|
6866
6869
|
props: {
|
|
6867
6870
|
context: {},
|
|
@@ -6878,17 +6881,17 @@ const be = E({
|
|
|
6878
6881
|
},
|
|
6879
6882
|
emits: ["change", "remove"],
|
|
6880
6883
|
setup(i, { emit: e }) {
|
|
6881
|
-
const t = i, s = e, l = w(!1),
|
|
6884
|
+
const t = i, s = e, l = w(!1), o = w(""), r = w(
|
|
6882
6885
|
t.setters.find((V) => V.name === t.defaultSetter) || t.setters[0]
|
|
6883
|
-
),
|
|
6884
|
-
[r.value.name]:
|
|
6886
|
+
), a = w(t.value), u = S(() => !!Pe(a.value)), p = {
|
|
6887
|
+
[r.value.name]: a.value
|
|
6885
6888
|
}, m = (V) => {
|
|
6886
|
-
p[r.value.name] =
|
|
6889
|
+
p[r.value.name] = a.value, r.value = V, a.value = p[V.name] ?? void 0, f(a.value);
|
|
6887
6890
|
};
|
|
6888
6891
|
ne(
|
|
6889
6892
|
() => t.value,
|
|
6890
6893
|
() => {
|
|
6891
|
-
|
|
6894
|
+
a.value = t.value;
|
|
6892
6895
|
}
|
|
6893
6896
|
), ne(
|
|
6894
6897
|
() => t.defaultSetter,
|
|
@@ -6903,11 +6906,11 @@ const be = E({
|
|
|
6903
6906
|
}, b = () => {
|
|
6904
6907
|
s("remove", t.name);
|
|
6905
6908
|
}, h = () => {
|
|
6906
|
-
l.value = !0,
|
|
6909
|
+
l.value = !0, o.value = Pe(a.value) ? a.value.value : "";
|
|
6907
6910
|
}, d = () => {
|
|
6908
|
-
l.value = !1,
|
|
6909
|
-
}, k = async (V) => Y(V, t.context, !0) ? (p[r.value.name] =
|
|
6910
|
-
await Ee("确定要解除绑定吗?") && (d(),
|
|
6911
|
+
l.value = !1, o.value = "";
|
|
6912
|
+
}, k = async (V) => Y(V, t.context, !0) ? (p[r.value.name] = a.value, a.value = V, s("change", V), !0) : !1, y = async () => {
|
|
6913
|
+
await Ee("确定要解除绑定吗?") && (d(), a.value = void 0, s("change", ""));
|
|
6911
6914
|
};
|
|
6912
6915
|
return (V, x) => (c(), _(n($n), {
|
|
6913
6916
|
class: "v-setter",
|
|
@@ -6924,19 +6927,19 @@ const be = E({
|
|
|
6924
6927
|
H(N(t.label || t.name), 1)
|
|
6925
6928
|
]),
|
|
6926
6929
|
_: 1
|
|
6927
|
-
}, 8, ["content"])) : (c(), j("span",
|
|
6930
|
+
}, 8, ["content"])) : (c(), j("span", la, N(t.label || t.name), 1))
|
|
6928
6931
|
]),
|
|
6929
6932
|
default: g(() => [
|
|
6930
|
-
z("div",
|
|
6931
|
-
r.value ? (c(), j("div",
|
|
6933
|
+
z("div", oa, [
|
|
6934
|
+
r.value ? (c(), j("div", aa, [
|
|
6932
6935
|
u.value ? C("", !0) : (c(), _(At(r.value.component), ue({
|
|
6933
6936
|
key: 0,
|
|
6934
6937
|
current: t.current,
|
|
6935
6938
|
context: t.context
|
|
6936
6939
|
}, r.value.props, {
|
|
6937
6940
|
options: t.options,
|
|
6938
|
-
modelValue:
|
|
6939
|
-
"onUpdate:modelValue": x[0] || (x[0] = (D) =>
|
|
6941
|
+
modelValue: a.value,
|
|
6942
|
+
"onUpdate:modelValue": x[0] || (x[0] = (D) => a.value = D),
|
|
6940
6943
|
onChange: f,
|
|
6941
6944
|
disabled: u.value
|
|
6942
6945
|
}), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
|
|
@@ -6947,15 +6950,15 @@ const be = E({
|
|
|
6947
6950
|
"model-value": "JSExpression"
|
|
6948
6951
|
}, {
|
|
6949
6952
|
prefix: g(() => [
|
|
6950
|
-
H(N(
|
|
6953
|
+
H(N(ia))
|
|
6951
6954
|
]),
|
|
6952
6955
|
suffix: g(() => [
|
|
6953
|
-
H(N(
|
|
6956
|
+
H(N(ua))
|
|
6954
6957
|
]),
|
|
6955
6958
|
_: 1
|
|
6956
6959
|
})) : C("", !0)
|
|
6957
6960
|
])) : C("", !0),
|
|
6958
|
-
z("div",
|
|
6961
|
+
z("div", ra, [
|
|
6959
6962
|
t.variable ? (c(), _(n(zs), {
|
|
6960
6963
|
key: 0,
|
|
6961
6964
|
onClick: h,
|
|
@@ -7002,11 +7005,11 @@ const be = E({
|
|
|
7002
7005
|
})) : C("", !0)
|
|
7003
7006
|
])
|
|
7004
7007
|
]),
|
|
7005
|
-
l.value ? (c(), _(n(
|
|
7008
|
+
l.value ? (c(), _(n(no), {
|
|
7006
7009
|
key: 0,
|
|
7007
7010
|
current: t.current,
|
|
7008
7011
|
context: t.context,
|
|
7009
|
-
value:
|
|
7012
|
+
value: o.value,
|
|
7010
7013
|
modelValue: l.value,
|
|
7011
7014
|
"onUpdate:modelValue": x[1] || (x[1] = (D) => l.value = D),
|
|
7012
7015
|
submitMethod: k,
|
|
@@ -7016,16 +7019,16 @@ const be = E({
|
|
|
7016
7019
|
_: 1
|
|
7017
7020
|
}));
|
|
7018
7021
|
}
|
|
7019
|
-
}),
|
|
7022
|
+
}), da = { class: "v-empty-region" }, pa = /* @__PURE__ */ E({
|
|
7020
7023
|
name: "EmptyRegion",
|
|
7021
7024
|
__name: "empty",
|
|
7022
7025
|
props: {
|
|
7023
7026
|
region: {}
|
|
7024
7027
|
},
|
|
7025
7028
|
setup(i) {
|
|
7026
|
-
return (e, t) => (c(), j("div",
|
|
7029
|
+
return (e, t) => (c(), j("div", da, "找不到符合【" + N(e.region) + "】名称的区域组件", 1));
|
|
7027
7030
|
}
|
|
7028
|
-
}),
|
|
7031
|
+
}), ma = { class: "v-brand-region" }, va = /* @__PURE__ */ E({
|
|
7029
7032
|
name: "BrandRegion",
|
|
7030
7033
|
inheritAttrs: !1,
|
|
7031
7034
|
__name: "brand",
|
|
@@ -7037,17 +7040,17 @@ const be = E({
|
|
|
7037
7040
|
return e({
|
|
7038
7041
|
widgets: s,
|
|
7039
7042
|
widgetsRef: l
|
|
7040
|
-
}), (
|
|
7041
|
-
(c(!0), j($, null, B(n(s), (
|
|
7043
|
+
}), (o, r) => (c(), j("div", ma, [
|
|
7044
|
+
(c(!0), j($, null, B(n(s), (a) => (c(), _(n(we), {
|
|
7042
7045
|
ref_for: !0,
|
|
7043
7046
|
ref_key: "widgetsRef",
|
|
7044
7047
|
ref: l,
|
|
7045
|
-
region:
|
|
7046
|
-
widget:
|
|
7048
|
+
region: o.region,
|
|
7049
|
+
widget: a
|
|
7047
7050
|
}, null, 8, ["region", "widget"]))), 256))
|
|
7048
7051
|
]));
|
|
7049
7052
|
}
|
|
7050
|
-
}),
|
|
7053
|
+
}), fa = { class: "v-toolbar-region" }, ga = /* @__PURE__ */ E({
|
|
7051
7054
|
name: "ToolbarRegion",
|
|
7052
7055
|
__name: "toolbar",
|
|
7053
7056
|
props: {
|
|
@@ -7059,18 +7062,18 @@ const be = E({
|
|
|
7059
7062
|
return e({
|
|
7060
7063
|
widgets: s,
|
|
7061
7064
|
widgetsRef: l
|
|
7062
|
-
}), (
|
|
7063
|
-
(c(!0), j($, null, B(n(s), (
|
|
7065
|
+
}), (o, r) => (c(), j("div", fa, [
|
|
7066
|
+
(c(!0), j($, null, B(n(s), (a) => (c(), _(n(we), {
|
|
7064
7067
|
ref_for: !0,
|
|
7065
7068
|
ref_key: "widgetsRef",
|
|
7066
7069
|
ref: l,
|
|
7067
|
-
region:
|
|
7068
|
-
widget:
|
|
7069
|
-
preview:
|
|
7070
|
+
region: o.region,
|
|
7071
|
+
widget: a,
|
|
7072
|
+
preview: o.preview
|
|
7070
7073
|
}, null, 8, ["region", "widget", "preview"]))), 256))
|
|
7071
7074
|
]));
|
|
7072
7075
|
}
|
|
7073
|
-
}),
|
|
7076
|
+
}), ha = { class: "v-actions-region" }, ba = /* @__PURE__ */ E({
|
|
7074
7077
|
name: "ActionsRegion",
|
|
7075
7078
|
inheritAttrs: !1,
|
|
7076
7079
|
__name: "actions",
|
|
@@ -7082,17 +7085,17 @@ const be = E({
|
|
|
7082
7085
|
return e({
|
|
7083
7086
|
widgets: s,
|
|
7084
7087
|
widgetsRef: l
|
|
7085
|
-
}), (
|
|
7086
|
-
(c(!0), j($, null, B(n(s), (
|
|
7088
|
+
}), (o, r) => (c(), j("div", ha, [
|
|
7089
|
+
(c(!0), j($, null, B(n(s), (a) => (c(), _(n(we), {
|
|
7087
7090
|
ref_for: !0,
|
|
7088
7091
|
ref_key: "widgetsRef",
|
|
7089
7092
|
ref: l,
|
|
7090
|
-
region:
|
|
7091
|
-
widget:
|
|
7093
|
+
region: o.region,
|
|
7094
|
+
widget: a
|
|
7092
7095
|
}, null, 8, ["region", "widget"]))), 256))
|
|
7093
7096
|
]));
|
|
7094
7097
|
}
|
|
7095
|
-
}),
|
|
7098
|
+
}), _a = { class: "v-apps-region" }, ya = { class: "v-apps-region__header" }, ka = { class: "v-apps-region__top" }, wa = { class: "v-apps-region__bottom" }, Sa = { class: "v-apps-region__panels" }, Va = /* @__PURE__ */ E({
|
|
7096
7099
|
name: "AppsRegion",
|
|
7097
7100
|
inheritAttrs: !1,
|
|
7098
7101
|
__name: "apps",
|
|
@@ -7101,7 +7104,7 @@ const be = E({
|
|
|
7101
7104
|
index: { default: 0 }
|
|
7102
7105
|
},
|
|
7103
7106
|
setup(i, { expose: e }) {
|
|
7104
|
-
const t = i, s = se(), { widgets: l, widgetsRef:
|
|
7107
|
+
const t = i, s = se(), { widgets: l, widgetsRef: o } = ke(t.region), r = S(() => l.value.filter((d) => d.openType === "panel")), a = S(() => l.value.filter((d) => d.openType !== "panel")), u = r.value[t.index], p = w(u), m = w(u), f = (d) => {
|
|
7105
7108
|
p.value = d, m.value = m.value?.name === d.name ? null : d;
|
|
7106
7109
|
}, b = (d) => {
|
|
7107
7110
|
d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && zn({
|
|
@@ -7115,14 +7118,14 @@ const be = E({
|
|
|
7115
7118
|
s.skeleton?.toggleCollapse(!d);
|
|
7116
7119
|
}), e({
|
|
7117
7120
|
widgets: l,
|
|
7118
|
-
widgetsRef:
|
|
7121
|
+
widgetsRef: o,
|
|
7119
7122
|
setActive: (d) => {
|
|
7120
7123
|
const k = r.value.find((y) => y.name === d);
|
|
7121
7124
|
p.value = k, m.value = k;
|
|
7122
7125
|
}
|
|
7123
|
-
}), (d, k) => (c(), j("div",
|
|
7124
|
-
z("div",
|
|
7125
|
-
z("div",
|
|
7126
|
+
}), (d, k) => (c(), j("div", _a, [
|
|
7127
|
+
z("div", ya, [
|
|
7128
|
+
z("div", ka, [
|
|
7126
7129
|
(c(!0), j($, null, B(r.value, (y) => (c(), _(n(Ct), {
|
|
7127
7130
|
key: `icon-${y.name}`,
|
|
7128
7131
|
icon: y.icon,
|
|
@@ -7132,8 +7135,8 @@ const be = E({
|
|
|
7132
7135
|
onClick: (V) => f(y)
|
|
7133
7136
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
|
7134
7137
|
]),
|
|
7135
|
-
z("div",
|
|
7136
|
-
(c(!0), j($, null, B(
|
|
7138
|
+
z("div", wa, [
|
|
7139
|
+
(c(!0), j($, null, B(a.value, (y) => (c(), _(n(Ct), {
|
|
7137
7140
|
key: `icon-${y.name}`,
|
|
7138
7141
|
icon: y.icon,
|
|
7139
7142
|
label: y.label,
|
|
@@ -7141,7 +7144,7 @@ const be = E({
|
|
|
7141
7144
|
}, null, 8, ["icon", "label", "onClick"]))), 128))
|
|
7142
7145
|
])
|
|
7143
7146
|
]),
|
|
7144
|
-
z("div",
|
|
7147
|
+
z("div", Sa, [
|
|
7145
7148
|
(c(!0), j($, null, B(r.value, (y) => (c(), _(Bt, {
|
|
7146
7149
|
key: y.name
|
|
7147
7150
|
}, [
|
|
@@ -7149,7 +7152,7 @@ const be = E({
|
|
|
7149
7152
|
key: 0,
|
|
7150
7153
|
ref_for: !0,
|
|
7151
7154
|
ref_key: "widgetsRef",
|
|
7152
|
-
ref:
|
|
7155
|
+
ref: o,
|
|
7153
7156
|
region: d.region,
|
|
7154
7157
|
widget: y
|
|
7155
7158
|
}, null, 8, ["region", "widget"])) : C("", !0)
|
|
@@ -7157,14 +7160,14 @@ const be = E({
|
|
|
7157
7160
|
])
|
|
7158
7161
|
]));
|
|
7159
7162
|
}
|
|
7160
|
-
}),
|
|
7163
|
+
}), xa = /* @__PURE__ */ E({
|
|
7161
7164
|
name: "WorkspaceRegion",
|
|
7162
7165
|
__name: "workspace",
|
|
7163
7166
|
props: {
|
|
7164
7167
|
region: {}
|
|
7165
7168
|
},
|
|
7166
7169
|
setup(i, { expose: e }) {
|
|
7167
|
-
const t = i, { widgets: s, widgetsRef: l } = ke(t.region),
|
|
7170
|
+
const t = i, { widgets: s, widgetsRef: l } = ke(t.region), o = Re(
|
|
7168
7171
|
s.value.map((h) => ({
|
|
7169
7172
|
name: h.name,
|
|
7170
7173
|
command: h.name,
|
|
@@ -7173,14 +7176,14 @@ const be = E({
|
|
|
7173
7176
|
props: h.props || {},
|
|
7174
7177
|
checked: !h.closable
|
|
7175
7178
|
}))
|
|
7176
|
-
), r = S(() =>
|
|
7179
|
+
), r = S(() => o.filter((h) => !h.closable || h.checked)), a = S(() => o.map((h) => ({
|
|
7177
7180
|
...h,
|
|
7178
7181
|
disabled: !h.closable
|
|
7179
|
-
}))), u = w(r.value[0]?.name), p = S(() =>
|
|
7180
|
-
const d =
|
|
7182
|
+
}))), u = w(r.value[0]?.name), p = S(() => o.find((d) => d.name === u.value)?.props || {}), m = (h) => {
|
|
7183
|
+
const d = o.find((k) => k.name === h);
|
|
7181
7184
|
d && (d.checked = !1), u.value === h && (u.value = r.value[0]?.name);
|
|
7182
7185
|
}, f = (h) => {
|
|
7183
|
-
const d =
|
|
7186
|
+
const d = o.find((k) => k.name === h.name);
|
|
7184
7187
|
d && d.closable && (d.checked = !d.checked, d.checked && (u.value = d.name), !d.checked && u.value === d.name && (u.value = r.value[0]?.name));
|
|
7185
7188
|
};
|
|
7186
7189
|
return e({
|
|
@@ -7188,13 +7191,13 @@ const be = E({
|
|
|
7188
7191
|
widgets: s,
|
|
7189
7192
|
widgetsRef: l,
|
|
7190
7193
|
openTab: (h, d = {}) => {
|
|
7191
|
-
const k =
|
|
7194
|
+
const k = o.find((y) => y.name === h);
|
|
7192
7195
|
k && (k.props = Object.assign({}, k.props, d), k.checked = !0, u.value = k.name);
|
|
7193
7196
|
}
|
|
7194
7197
|
}), (h, d) => (c(), _(n(Ke), {
|
|
7195
7198
|
class: "v-workspace-region",
|
|
7196
7199
|
items: r.value,
|
|
7197
|
-
menus:
|
|
7200
|
+
menus: a.value,
|
|
7198
7201
|
modelValue: u.value,
|
|
7199
7202
|
"onUpdate:modelValue": d[0] || (d[0] = (k) => u.value = k),
|
|
7200
7203
|
checkable: "",
|
|
@@ -7218,26 +7221,26 @@ const be = E({
|
|
|
7218
7221
|
_: 1
|
|
7219
7222
|
}, 8, ["items", "menus", "modelValue"]));
|
|
7220
7223
|
}
|
|
7221
|
-
}),
|
|
7224
|
+
}), Ca = /* @__PURE__ */ E({
|
|
7222
7225
|
name: "SettingsRegion",
|
|
7223
7226
|
__name: "settings",
|
|
7224
7227
|
props: {
|
|
7225
7228
|
region: {}
|
|
7226
7229
|
},
|
|
7227
7230
|
setup(i, { expose: e }) {
|
|
7228
|
-
const t = i, s = se(), { current: l } = te(), { selected:
|
|
7229
|
-
() => r.value ?
|
|
7230
|
-
), { widgets: u, widgetsRef: p } = ke(t.region,
|
|
7231
|
+
const t = i, s = se(), { current: l } = te(), { selected: o, isSelectBlock: r } = fe(), a = S(
|
|
7232
|
+
() => r.value ? ae.Block : ae.Node
|
|
7233
|
+
), { widgets: u, widgetsRef: p } = ke(t.region, a), m = S(() => u.value.map((d) => ({
|
|
7231
7234
|
name: d.name,
|
|
7232
7235
|
label: d.label
|
|
7233
7236
|
}))), f = w(""), b = S(() => {
|
|
7234
|
-
const d =
|
|
7237
|
+
const d = o.value?.model;
|
|
7235
7238
|
return d ? s.assets.componentMap.get(d.name)?.doc : null;
|
|
7236
7239
|
});
|
|
7237
7240
|
ne(l, (d) => {
|
|
7238
7241
|
s.skeleton?.settable(!!d);
|
|
7239
7242
|
}), ne(
|
|
7240
|
-
|
|
7243
|
+
a,
|
|
7241
7244
|
() => {
|
|
7242
7245
|
f.value = m.value[0]?.name;
|
|
7243
7246
|
},
|
|
@@ -7261,7 +7264,7 @@ const be = E({
|
|
|
7261
7264
|
direction: "column"
|
|
7262
7265
|
}, {
|
|
7263
7266
|
default: g(() => [
|
|
7264
|
-
n(
|
|
7267
|
+
n(o) ? (c(), _(n(O), {
|
|
7265
7268
|
key: 0,
|
|
7266
7269
|
flex: "",
|
|
7267
7270
|
justify: "space-between",
|
|
@@ -7273,8 +7276,8 @@ const be = E({
|
|
|
7273
7276
|
default: g(() => [
|
|
7274
7277
|
v(n(Yt)),
|
|
7275
7278
|
z("span", null, [
|
|
7276
|
-
H(N(n(
|
|
7277
|
-
z("i", null, N(n(
|
|
7279
|
+
H(N(n(o)?.model.name) + ": ", 1),
|
|
7280
|
+
z("i", null, N(n(o)?.model.id), 1)
|
|
7278
7281
|
])
|
|
7279
7282
|
]),
|
|
7280
7283
|
_: 1
|
|
@@ -7293,7 +7296,7 @@ const be = E({
|
|
|
7293
7296
|
]),
|
|
7294
7297
|
_: 1
|
|
7295
7298
|
})) : C("", !0),
|
|
7296
|
-
n(
|
|
7299
|
+
n(o) && !n(o).model.locked ? (c(), _(n(O), {
|
|
7297
7300
|
key: 1,
|
|
7298
7301
|
grow: "",
|
|
7299
7302
|
padding: !1
|
|
@@ -7325,11 +7328,11 @@ const be = E({
|
|
|
7325
7328
|
]),
|
|
7326
7329
|
_: 1
|
|
7327
7330
|
})) : C("", !0),
|
|
7328
|
-
n(
|
|
7331
|
+
n(o) ? C("", !0) : (c(), _(n(Z), {
|
|
7329
7332
|
key: 2,
|
|
7330
7333
|
description: "请在左侧画布选中节点"
|
|
7331
7334
|
})),
|
|
7332
|
-
n(
|
|
7335
|
+
n(o) && n(o).model.locked ? (c(), _(n(Z), {
|
|
7333
7336
|
key: 3,
|
|
7334
7337
|
"image-size": 1,
|
|
7335
7338
|
description: "节点已被锁定, 禁止编辑"
|
|
@@ -7338,7 +7341,7 @@ const be = E({
|
|
|
7338
7341
|
_: 1
|
|
7339
7342
|
})) : C("", !0);
|
|
7340
7343
|
}
|
|
7341
|
-
}),
|
|
7344
|
+
}), Ea = { class: "v-status-region" }, ja = /* @__PURE__ */ E({
|
|
7342
7345
|
name: "StatusRegion",
|
|
7343
7346
|
inheritAttrs: !1,
|
|
7344
7347
|
__name: "status",
|
|
@@ -7350,24 +7353,24 @@ const be = E({
|
|
|
7350
7353
|
return e({
|
|
7351
7354
|
widgets: s,
|
|
7352
7355
|
widgetsRef: l
|
|
7353
|
-
}), (
|
|
7354
|
-
(c(!0), j($, null, B(n(s), (
|
|
7356
|
+
}), (o, r) => (c(), j("div", Ea, [
|
|
7357
|
+
(c(!0), j($, null, B(n(s), (a) => (c(), _(n(we), {
|
|
7355
7358
|
ref_for: !0,
|
|
7356
7359
|
ref_key: "widgetsRef",
|
|
7357
7360
|
ref: l,
|
|
7358
|
-
region:
|
|
7359
|
-
widget:
|
|
7361
|
+
region: o.region,
|
|
7362
|
+
widget: a
|
|
7360
7363
|
}, null, 8, ["region", "widget"]))), 256))
|
|
7361
7364
|
]));
|
|
7362
7365
|
}
|
|
7363
|
-
}),
|
|
7366
|
+
}), Aa = /* @__PURE__ */ E({
|
|
7364
7367
|
name: "PreviewRegion",
|
|
7365
7368
|
__name: "preview",
|
|
7366
7369
|
props: {
|
|
7367
7370
|
region: {}
|
|
7368
7371
|
},
|
|
7369
7372
|
setup(i, { expose: e }) {
|
|
7370
|
-
const t = i, { widgets: s, widgetsRef: l } = ke(t.region),
|
|
7373
|
+
const t = i, { widgets: s, widgetsRef: l } = ke(t.region), o = Re(
|
|
7371
7374
|
s.value.map((u) => ({
|
|
7372
7375
|
name: u.name,
|
|
7373
7376
|
command: u.name,
|
|
@@ -7375,22 +7378,22 @@ const be = E({
|
|
|
7375
7378
|
closable: !!u.closable,
|
|
7376
7379
|
checked: !1
|
|
7377
7380
|
}))
|
|
7378
|
-
), r = S(() =>
|
|
7381
|
+
), r = S(() => o.filter((u) => !u.closable || u.checked)), a = w(r.value[0]?.name);
|
|
7379
7382
|
return e({
|
|
7380
|
-
currentTab:
|
|
7383
|
+
currentTab: a,
|
|
7381
7384
|
widgets: s,
|
|
7382
7385
|
widgetsRef: l
|
|
7383
7386
|
}), (u, p) => (c(), _(n(Ke), {
|
|
7384
7387
|
class: "v-workspace-region",
|
|
7385
7388
|
items: r.value,
|
|
7386
|
-
modelValue:
|
|
7387
|
-
"onUpdate:modelValue": p[0] || (p[0] = (m) =>
|
|
7389
|
+
modelValue: a.value,
|
|
7390
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => a.value = m)
|
|
7388
7391
|
}, {
|
|
7389
7392
|
default: g(() => [
|
|
7390
7393
|
(c(!0), j($, null, B(n(s), (m) => (c(), _(Bt, {
|
|
7391
7394
|
key: m.name
|
|
7392
7395
|
}, [
|
|
7393
|
-
|
|
7396
|
+
a.value === m.name ? (c(), _(n(we), {
|
|
7394
7397
|
key: 0,
|
|
7395
7398
|
ref_for: !0,
|
|
7396
7399
|
ref_key: "widgetsRef",
|
|
@@ -7404,26 +7407,26 @@ const be = E({
|
|
|
7404
7407
|
}, 8, ["items", "modelValue"]));
|
|
7405
7408
|
}
|
|
7406
7409
|
}), Et = {
|
|
7407
|
-
EmptyRegion:
|
|
7408
|
-
Brand:
|
|
7409
|
-
Toolbar:
|
|
7410
|
-
Actions:
|
|
7411
|
-
Apps:
|
|
7412
|
-
Workspace:
|
|
7413
|
-
Settings:
|
|
7414
|
-
Status:
|
|
7415
|
-
Preview:
|
|
7410
|
+
EmptyRegion: pa,
|
|
7411
|
+
Brand: va,
|
|
7412
|
+
Toolbar: ga,
|
|
7413
|
+
Actions: ba,
|
|
7414
|
+
Apps: Va,
|
|
7415
|
+
Workspace: xa,
|
|
7416
|
+
Settings: Ca,
|
|
7417
|
+
Status: ja,
|
|
7418
|
+
Preview: Aa
|
|
7416
7419
|
};
|
|
7417
7420
|
export {
|
|
7418
7421
|
Us as API_METHOD_TYPES,
|
|
7419
|
-
|
|
7422
|
+
ta as Assets,
|
|
7420
7423
|
ft as Binder,
|
|
7421
7424
|
ut as Box,
|
|
7422
|
-
|
|
7425
|
+
Xo as Designer,
|
|
7423
7426
|
Hs as EVENT_MODIFIERS,
|
|
7424
7427
|
K as Editor,
|
|
7425
|
-
|
|
7426
|
-
|
|
7428
|
+
Ma as Engine,
|
|
7429
|
+
so as EventBinder,
|
|
7427
7430
|
Ct as Icon,
|
|
7428
7431
|
X as Item,
|
|
7429
7432
|
Js as KEYBOARD_EVENT_LIST,
|
|
@@ -7434,31 +7437,31 @@ export {
|
|
|
7434
7437
|
W as Panel,
|
|
7435
7438
|
qs as RegionType,
|
|
7436
7439
|
be as RegionWrapper,
|
|
7437
|
-
|
|
7438
|
-
|
|
7440
|
+
Yo as Renderer,
|
|
7441
|
+
ca as SetterView,
|
|
7439
7442
|
_e as SetterWrapper,
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
+
ea as Simulator,
|
|
7444
|
+
sa as Skeleton,
|
|
7445
|
+
na as SkeletonWrapper,
|
|
7443
7446
|
Bl as SlotsPicker,
|
|
7444
7447
|
Ke as Tabs,
|
|
7445
7448
|
Ws as VTJ_DESIGNER_VERSION,
|
|
7446
|
-
|
|
7449
|
+
no as VariableBinder,
|
|
7447
7450
|
Rl as Viewer,
|
|
7448
|
-
|
|
7449
|
-
|
|
7451
|
+
an as Viewport,
|
|
7452
|
+
ae as WidgetGroup,
|
|
7450
7453
|
we as WidgetWrapper,
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7454
|
+
Do as builtInDeps,
|
|
7455
|
+
$o as builtInMaterials,
|
|
7456
|
+
Ho as builtInSetters,
|
|
7457
|
+
Ao as builtInWidgets,
|
|
7455
7458
|
Ee as confirm,
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
+
Qo as createSlotsPicker,
|
|
7460
|
+
Uo as defaultSetter,
|
|
7461
|
+
Ko as depsManager,
|
|
7459
7462
|
un as engineKey,
|
|
7460
7463
|
Y as expressionValidate,
|
|
7461
|
-
|
|
7464
|
+
oe as message,
|
|
7462
7465
|
Q as notify,
|
|
7463
7466
|
Et as regions,
|
|
7464
7467
|
Oe as setterManager,
|