@vtj/designer 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor-BC5UMWRY.js +4 -0
- package/dist/{index-De2f2yWt.js → index-eE76U6YW.js} +885 -885
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/widgets/agent/composables/useDualAgent.d.ts +1 -1
- package/types/components/widgets/agent/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +1 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-aD1U5H8b.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var wp = Object.defineProperty;
|
|
2
2
|
var Ep = (e, t, n) => t in e ? wp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ve = (e, t, n) => Ep(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as P, unref as l, ref as D, watch as ce, reactive as Sn, shallowRef as Nt, shallowReadonly as kp, onMounted as No, nextTick as Bt, toValue as zt, getCurrentScope as vc, onScopeDispose as Sp, getCurrentInstance as Ps, toRef as vs, readonly as bs, customRef as xp, hasInjectionContext as bc, inject as Vs, watchEffect as Cp, toRaw as ni, onUnmounted as Gn, defineComponent as z, openBlock as v, createElementBlock as $, normalizeClass as Oe, toDisplayString as
|
|
4
|
+
import { computed as P, unref as l, ref as D, watch as ce, reactive as Sn, shallowRef as Nt, shallowReadonly as kp, onMounted as No, nextTick as Bt, toValue as zt, getCurrentScope as vc, onScopeDispose as Sp, getCurrentInstance as Ps, toRef as vs, readonly as bs, customRef as xp, hasInjectionContext as bc, inject as Vs, watchEffect as Cp, toRaw as ni, onUnmounted as Gn, defineComponent as z, openBlock as v, createElementBlock as $, normalizeClass as Oe, toDisplayString as te, createVNode as y, withCtx as E, createElementVNode as I, createBlock as A, createCommentVNode as j, createTextVNode as re, withModifiers as rt, mergeProps as St, h as co, Fragment as se, renderList as fe, defineAsyncComponent as Tp, normalizeStyle as to, resolveDynamicComponent as yc, createSlots as _c, renderSlot as Xt, withDirectives as un, vShow as Fn, normalizeProps as oi, guardReactiveProps as ri, isRef as Io, provide as Op, createApp as si, withKeys as Rt, markRaw as Rr, shallowReactive as Ap, triggerRef as Xn, KeepAlive as wc } from "vue";
|
|
5
5
|
import { ElMessage as Ft, ElNotification as ai, ElMessageBox as fn, ElLoading as Ec, ElButton as Ae, ElDivider as ct, ElInput as mt, ElRadioGroup as kc, ElRadioButton as wr, ElButtonGroup as Ip, ElSwitch as Dr, ElImage as $s, ElUpload as Ms, ElTag as ii, ElDropdown as Aa, ElDropdownMenu as Ia, ElDropdownItem as To, ElEmpty as Et, ElAlert as uo, ElTooltip as Sc, ElTree as li, ElCollapse as lr, ElCollapseItem as cr, ElRow as ys, ElCol as _s, ElCheckbox as ws, ElDrawer as ci, ElForm as $t, ElSelect as ui, ElOptionGroup as Ra, ElOption as Cr, ElFormItem as Kt, ElBreadcrumb as Rp, ElBreadcrumbItem as Dp, ElBadge as Np, ElAvatar as xc, vLoading as Pp, ElText as Vp, ElLink as $p, ElDialog as Mp, ElSteps as jp, ElStep as sa, ElInputNumber as Lp, ElColorPicker as Up, ElSlider as Bp, ElTour as zp, ElTourStep as Yn, ElConfigProvider as Fp, ElContainer as Zi, ElHeader as Hp, ElAside as Qi, ElMain as Gp, ElFooter as Jp } from "element-plus";
|
|
6
6
|
import qp from "element-plus/es/locale/lang/zh-cn";
|
|
7
|
-
import { XDialogForm as Zt, XField as ne, XIcon as nn, createDialog as Cc, XDialog as on, XPanel as js, XAction as ze, XTabs as Ls, XContainer as
|
|
7
|
+
import { XDialogForm as Zt, XField as ne, XIcon as nn, createDialog as Cc, XDialog as on, XPanel as js, XAction as ze, XTabs as Ls, XContainer as Me, XForm as di, XAttachment as Kp, XGrid as pi, XActionBar as Wp, XInputUnit as Tc, vResizable as el } from "@vtj/ui";
|
|
8
8
|
import { BUILT_IN_NAME as Es, isNode as Ln, isBlockSchema as Xp, NodeModel as Zo, cloneDsl as tl, isBlock as wt, DirectiveModel as Oc, I18N_LOCALES as Yp, createNodeFrom as Zp, BUILT_IN_VUE as nl, BUILT_IN_VUE_ROUTER as Qp, emitter as Tt, EVENT_PROJECT_ACTIVED as Da, EVENT_NODE_CHANGE as Nr, EVENT_BLOCK_CHANGE as Na, Base as Ac, BUILT_IN_LIBRARAY_MAP as ef, ProjectModel as tf, EVENT_PROJECT_CHANGE as nf, EVENT_PROJECT_BLOCKS_CHANGE as of, EVENT_PROJECT_PAGES_CHANGE as rf, EVENT_PROJECT_DEPS_CHANGE as sf, EVENT_PROJECT_PUBLISH as af, EVENT_PROJECT_FILE_PUBLISH as lf, EVENT_HISTORY_CHANGE as cf, EVENT_HISTORY_LOAD as uf, EVENT_PROJECT_GEN_SOURCE as df, BlockModel as aa, HistoryModel as pf } from "@vtj/core";
|
|
9
9
|
import { parseExpression as nr, parseFunction as fi, BUILT_IN_DIRECTIVES as ff, createSchemaApi as gf, isJSFunction as Ic, JSCodeToString as po, COMPOSITION_HOOKS_LIST as mf, LIFE_CYCLES_LIST as hf, DATA_TYPES as vf, createMock as bf, isJSExpression as Ro, REMOTE as Rc, NodeEnv as Zn, HTML_TAGS as yf, ContextMode as Pa, clearLoaderCache as ol, parseDeps as _f, parseUrls as wf, createAssetsCss as Ef, createAssetScripts as rl, getRawComponent as sl, createSchemaApis as kf, mockCleanup as Sf, mockApis as xf, adoptStylesToInline as Cf, Provider as Tf, Access as Of, ACCESS as Af } from "@vtj/renderer";
|
|
10
|
-
import { delay as
|
|
10
|
+
import { delay as je, storage as bn, uid as Us, kebabCase as If, jsonp as eo, groupBy as Pr, isUrl as Rf, camelCase as Df, dataURLtoBlob as Dc, fileToBase64 as gi, upperFirstCamelCase as Nc, toRawType as ia, cloneDeep as Po, merge as Bs, logger as Hn, isPlainObject as Nf, throttle as Pf, toArray as mi, debounce as Vf, uuid as $f, getClientInfo as Mf, base64 as jf, arrayToMap as Lf, isBoolean as Uf } from "@vtj/utils";
|
|
11
11
|
import * as Bf from "@vtj/icons";
|
|
12
12
|
import { VtjIconDocument as Pc, VtjIconComponents as hi, VtjIconBack as zf, VtjIconPc as Ff, VtjIconPhone as Hf, VtjIconPad as Gf, VtjIconEdit as vi, VtjIconUndo as Jf, VtjIconRedo as qf, VtjIconTemplate as Tr, Upload as Vc, Share as Kf, Lock as Wf, VtjIconPreview as Xf, VtjIconRefresh as $c, VtjIconPageSetting as Yf, Download as Qo, VtjIconPublish as al, VtjIconProject as Zf, icons as Va, ArrowDown as zs, Search as _n, CopyDocument as Mc, Back as Qf, VtjIconPlus as jc, EditPen as Lc, Delete as bi, VtjIconSave as yi, ArrowUp as Uc, MoreFilled as Vo, VtjIconCheck as _i, VtjIconShare as eg, VtjIconHome as tg, VtjIconVisible as ng, VtjIconInvisible as Bc, VtjIconUnlock as og, VtjIconLock as zc, VtjIconRemove as Fs, VtjIconCopy as wi, Files as rg, VtjIconSearch as sg, Flag as ag, VtjIconDiff as ig, VtjIconHelp as Fc, VtjIconOpenapi as lg, VtjIconLayers as Hc, Edit as cg, Rank as ug, VtjIconArrowUp as dg, VtjIconArrowDown as pg, IconDisplayBlock as fg, IconDisplayFlex as gg, IconDisplayInlineBlock as mg, IconDisplayInline as hg, IconEyeInvisible as vg, IconFlexDirectionrow as bg, IconFlexDirectionrowReverse as yg, IconFlexDirectioncolumn as _g, IconFlexDirectioncolumnReverse as wg, IconFlexJustifyflexStartrow as Eg, IconFlexJustifyflexEndrow as kg, IconFlexJustifycenterrow as Sg, IconFlexJustifyspaceBetweenrow as xg, IconFlexJustifyspaceAroundrow as Cg, IconFlexAlignflexStartrow as Tg, IconFlexAlignflexEndrow as Og, IconFlexAligncenterrow as Ag, IconFlexAlignbaselinerow as Ig, IconFlexAlignstretchrow as Rg, IconPositionTopLeft as Dg, IconPositionTopRight as Ng, IconPositionBottomLeft as Pg, IconPositionBottomRight as Vg, IconPositionLeft as $g, IconPositionRight as Mg, IconPositionTop as jg, IconPositionBottom as Lg, IconPositionAll as Ug, IconTextAlignLeft as Bg, IconTextAlignCenter as zg, IconTextAlignRight as Fg, IconTextAlignJustify as Hg, IconFontStyleNone as Gg, IconFontStyleItalic as Jg, IconCross as Gc, IconTextDecorationUnderline as qg, IconTextDecorationStrike as Kg, IconTextDecorationOverline as Wg, IconTileXy as Xg, IconTileX as Yg, IconTileY as Zg, IconClose as Qg, IconBorderAll as em, IconBorderLeft as tm, IconBorderTop as nm, IconBorderBottom as om, IconBorderRight as rm, IconBorderStyleSolid as sm, IconBorderStyleDashed as am, IconBorderStyleDotted as im, IconCursorAuto as lm, IconCursorPointer as cm, IconCursorNotAllowed as um, IconCursorNone as dm, ArrowRight as pm, UserFilled as Jc, VtjIconInfo as fm, ShoppingCart as gm, Finished as mm, VtjIconNewChat as qc, Plus as $a, CircleClose as hm, Promotion as vm, View as Kc, Hide as bm, Top as ym, Bottom as _m, VtjIconChatRecord as wm, VtjIconClose as Em, Setting as km, VtjIconDevTools as Sm, VtjIconLeftPanel as xm, VtjIconBottomPanel as Cm, VtjIconRightPanel as Tm, Sunny as Om, Moon as Am, VtjIconBlock as Im, VtjIconOutline as Rm, VtjIconHistory as Dm, VtjIconApi as Nm, VtjIconCategory as Pm, VtjIconUniapp as Vm, VtjIconMaster as $m, VtjIconGlobal as Mm, VtjIconLang as jm, VtjIconEnv as Lm, VtjIconAi as Um, HomeFilled as Bm, Close as zm, VtjIconVars as Fm, VtjIconSwitch as Hm, Switch as Gm } from "@vtj/icons";
|
|
13
13
|
import { UNI_PAGE_HOOKS_LIST as Jm, PAGE_LIFE_CYCLES_LIST as qm, UNI_COMPOSITION_HOOKS_LIST as Km, COMPONENT_LIFE_CYCLES_LIST as Wm, APP_LIFE_CYCLE as Ei, createUniAppComponent as Xm, setupUniApp as Ym } from "@vtj/uni";
|
|
@@ -19,10 +19,10 @@ import { editor as Qm } from "monaco-editor";
|
|
|
19
19
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
20
20
|
* @name @vtj/designer
|
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
22
|
-
* @version 0.19.
|
|
22
|
+
* @version 0.19.1
|
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
24
24
|
*/
|
|
25
|
-
const Vr = "0.19.
|
|
25
|
+
const Vr = "0.19.1", eh = {
|
|
26
26
|
width: 390,
|
|
27
27
|
height: 844
|
|
28
28
|
}, th = {
|
|
@@ -1217,7 +1217,7 @@ if (typeof window < "u") {
|
|
|
1217
1217
|
const iu = "ctrl+s, command+s", lu = "ctrl+p, command+p", cu = "f5, ctrl+r, command+r", uu = "ctrl+z, command+z", du = "shift+ctrl+z, shift+command+z", pu = "backspace", fu = "ctrl+c, command+c", gu = "ctrl+v, command+v", mu = "ctrl+x, command+x", hu = "up", vu = "down", bu = "left", yu = "right", _u = "shift+up, shift+left", wu = "shift+down, shift+right", Eu = "escape", ku = "ctrl+a, command+a", pa = "Designer_Clipboard__";
|
|
1218
1218
|
function ov() {
|
|
1219
1219
|
const e = tt(), { copy: t, text: n } = Gs({}), o = {}, s = Nt(null), r = async () => {
|
|
1220
|
-
await
|
|
1220
|
+
await je(100), s.value = e.simulator.contentWindow?.hotkeys;
|
|
1221
1221
|
}, a = (u, p) => {
|
|
1222
1222
|
o[u] = p, s.value && (s.value(u, p), tn(u, p));
|
|
1223
1223
|
}, i = (u) => {
|
|
@@ -1254,7 +1254,7 @@ function ov() {
|
|
|
1254
1254
|
u?.preventDefault();
|
|
1255
1255
|
const p = e.skeleton?.getRegion("Apps").regionRef;
|
|
1256
1256
|
if (p) {
|
|
1257
|
-
p.setActive("History"), await
|
|
1257
|
+
p.setActive("History"), await je(100);
|
|
1258
1258
|
const g = e.skeleton?.getWidget("History")?.widgetRef;
|
|
1259
1259
|
g && g.openAdd();
|
|
1260
1260
|
}
|
|
@@ -2160,50 +2160,50 @@ function vo() {
|
|
|
2160
2160
|
chatCompletions: async (L, q, Y, H) => {
|
|
2161
2161
|
if (o?.chatCompletions)
|
|
2162
2162
|
return await o?.chatCompletions(L, q, Y, H);
|
|
2163
|
-
const ye = t?.getData()?.token, W = `${n}/api/open/completions/${ye}?tid=${L}&id=${q}`, ae = new AbortController(),
|
|
2164
|
-
if (!
|
|
2165
|
-
const
|
|
2166
|
-
if (
|
|
2163
|
+
const ye = t?.getData()?.token, W = `${n}/api/open/completions/${ye}?tid=${L}&id=${q}`, ae = new AbortController(), De = ae.signal, Ue = (xe) => {
|
|
2164
|
+
if (!xe.startsWith("data: ")) return;
|
|
2165
|
+
const qe = xe.slice(6).trim();
|
|
2166
|
+
if (qe)
|
|
2167
2167
|
try {
|
|
2168
|
-
const
|
|
2169
|
-
if (
|
|
2170
|
-
H?.(new Error(
|
|
2168
|
+
const we = JSON.parse(qe);
|
|
2169
|
+
if (we?.error) {
|
|
2170
|
+
H?.(new Error(we.message));
|
|
2171
2171
|
return;
|
|
2172
2172
|
}
|
|
2173
|
-
Y?.(
|
|
2173
|
+
Y?.(we, !1);
|
|
2174
2174
|
} catch {
|
|
2175
|
-
H?.(new Error(
|
|
2175
|
+
H?.(new Error(qe)), ae.abort();
|
|
2176
2176
|
}
|
|
2177
|
-
},
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2177
|
+
}, Ke = (xe) => {
|
|
2178
|
+
const qe = xe instanceof Error && xe.name === "AbortError", we = xe instanceof Error ? xe : new Error(String(xe));
|
|
2179
|
+
qe || (H?.(we, qe), ae.abort());
|
|
2180
2180
|
};
|
|
2181
|
-
let
|
|
2181
|
+
let _e = "";
|
|
2182
2182
|
const vt = new TextDecoder();
|
|
2183
2183
|
return fetch(W, {
|
|
2184
2184
|
method: "get",
|
|
2185
|
-
signal:
|
|
2186
|
-
}).then(async (
|
|
2187
|
-
const
|
|
2188
|
-
if (
|
|
2185
|
+
signal: De
|
|
2186
|
+
}).then(async (xe) => {
|
|
2187
|
+
const qe = xe.body?.getReader();
|
|
2188
|
+
if (qe)
|
|
2189
2189
|
try {
|
|
2190
2190
|
for (; ; ) {
|
|
2191
|
-
const { done:
|
|
2192
|
-
if (
|
|
2193
|
-
|
|
2191
|
+
const { done: we, value: He } = await qe.read();
|
|
2192
|
+
if (we) {
|
|
2193
|
+
_e && Ue(_e), Y?.(null, !0);
|
|
2194
2194
|
break;
|
|
2195
2195
|
}
|
|
2196
|
-
|
|
2197
|
-
const
|
|
2196
|
+
_e += vt.decode(He, { stream: !0 });
|
|
2197
|
+
const Le = _e.split(`
|
|
2198
2198
|
`);
|
|
2199
|
-
|
|
2200
|
-
for (const
|
|
2201
|
-
|
|
2199
|
+
_e = Le.pop() || "";
|
|
2200
|
+
for (const We of Le)
|
|
2201
|
+
Ue(We);
|
|
2202
2202
|
}
|
|
2203
|
-
} catch (
|
|
2204
|
-
|
|
2203
|
+
} catch (we) {
|
|
2204
|
+
Ke(we);
|
|
2205
2205
|
}
|
|
2206
|
-
}).catch(
|
|
2206
|
+
}).catch(Ke), () => ae.abort();
|
|
2207
2207
|
},
|
|
2208
2208
|
saveChat: async (L) => {
|
|
2209
2209
|
if (o?.saveChat)
|
|
@@ -3798,39 +3798,39 @@ function ty(e, t, n) {
|
|
|
3798
3798
|
}));
|
|
3799
3799
|
}, Lt.SET_PLUGIN_SETTINGS);
|
|
3800
3800
|
}
|
|
3801
|
-
let
|
|
3801
|
+
let Ye = /* @__PURE__ */ (function(e) {
|
|
3802
3802
|
return e.APP_INIT = "app:init", e.APP_UNMOUNT = "app:unmount", e.COMPONENT_UPDATED = "component:updated", e.COMPONENT_ADDED = "component:added", e.COMPONENT_REMOVED = "component:removed", e.COMPONENT_EMIT = "component:emit", e.PERFORMANCE_START = "perf:start", e.PERFORMANCE_END = "perf:end", e.ADD_ROUTE = "router:add-route", e.REMOVE_ROUTE = "router:remove-route", e.RENDER_TRACKED = "render:tracked", e.RENDER_TRIGGERED = "render:triggered", e.APP_CONNECTED = "app:connected", e.SETUP_DEVTOOLS_PLUGIN = "devtools-plugin:setup", e;
|
|
3803
3803
|
})({});
|
|
3804
3804
|
const Ct = B.__VUE_DEVTOOLS_HOOK ?? (B.__VUE_DEVTOOLS_HOOK = Du()), ny = {
|
|
3805
3805
|
vueAppInit(e) {
|
|
3806
|
-
Ct.hook(
|
|
3806
|
+
Ct.hook(Ye.APP_INIT, e);
|
|
3807
3807
|
},
|
|
3808
3808
|
vueAppUnmount(e) {
|
|
3809
|
-
Ct.hook(
|
|
3809
|
+
Ct.hook(Ye.APP_UNMOUNT, e);
|
|
3810
3810
|
},
|
|
3811
3811
|
vueAppConnected(e) {
|
|
3812
|
-
Ct.hook(
|
|
3812
|
+
Ct.hook(Ye.APP_CONNECTED, e);
|
|
3813
3813
|
},
|
|
3814
3814
|
componentAdded(e) {
|
|
3815
|
-
return Ct.hook(
|
|
3815
|
+
return Ct.hook(Ye.COMPONENT_ADDED, e);
|
|
3816
3816
|
},
|
|
3817
3817
|
componentEmit(e) {
|
|
3818
|
-
return Ct.hook(
|
|
3818
|
+
return Ct.hook(Ye.COMPONENT_EMIT, e);
|
|
3819
3819
|
},
|
|
3820
3820
|
componentUpdated(e) {
|
|
3821
|
-
return Ct.hook(
|
|
3821
|
+
return Ct.hook(Ye.COMPONENT_UPDATED, e);
|
|
3822
3822
|
},
|
|
3823
3823
|
componentRemoved(e) {
|
|
3824
|
-
return Ct.hook(
|
|
3824
|
+
return Ct.hook(Ye.COMPONENT_REMOVED, e);
|
|
3825
3825
|
},
|
|
3826
3826
|
setupDevtoolsPlugin(e) {
|
|
3827
|
-
Ct.hook(
|
|
3827
|
+
Ct.hook(Ye.SETUP_DEVTOOLS_PLUGIN, e);
|
|
3828
3828
|
},
|
|
3829
3829
|
perfStart(e) {
|
|
3830
|
-
return Ct.hook(
|
|
3830
|
+
return Ct.hook(Ye.PERFORMANCE_START, e);
|
|
3831
3831
|
},
|
|
3832
3832
|
perfEnd(e) {
|
|
3833
|
-
return Ct.hook(
|
|
3833
|
+
return Ct.hook(Ye.PERFORMANCE_END, e);
|
|
3834
3834
|
}
|
|
3835
3835
|
};
|
|
3836
3836
|
function oy() {
|
|
@@ -3862,30 +3862,30 @@ function oy() {
|
|
|
3862
3862
|
};
|
|
3863
3863
|
}
|
|
3864
3864
|
function ry(e) {
|
|
3865
|
-
e.on(
|
|
3866
|
-
t?._instance?.type?.devtools?.hide || Ct.callHook(
|
|
3867
|
-
}), e.on(
|
|
3868
|
-
Ct.callHook(
|
|
3869
|
-
}), e.on(
|
|
3870
|
-
t?._instance?.type?.devtools?.hide || Be.highPerfModeEnabled || !t || typeof n != "number" && !n || !s || Ct.callHook(
|
|
3871
|
-
}), e.on(
|
|
3872
|
-
!t || typeof n != "number" && !n || !s || Be.highPerfModeEnabled || Ct.callHook(
|
|
3873
|
-
}), e.on(
|
|
3874
|
-
!t || typeof n != "number" && !n || !s || Be.highPerfModeEnabled || Ct.callHook(
|
|
3875
|
-
}), e.on(
|
|
3876
|
-
!t || !n || Be.highPerfModeEnabled || Ct.callHook(
|
|
3877
|
-
}), e.on(
|
|
3878
|
-
!t || Be.highPerfModeEnabled || Ct.callHook(
|
|
3879
|
-
}), e.on(
|
|
3880
|
-
!t || Be.highPerfModeEnabled || Ct.callHook(
|
|
3881
|
-
}), e.on(
|
|
3882
|
-
o?.target !== "legacy" && Ct.callHook(
|
|
3865
|
+
e.on(Ye.APP_INIT, (t, n, o) => {
|
|
3866
|
+
t?._instance?.type?.devtools?.hide || Ct.callHook(Ye.APP_INIT, t, n, o);
|
|
3867
|
+
}), e.on(Ye.APP_UNMOUNT, (t) => {
|
|
3868
|
+
Ct.callHook(Ye.APP_UNMOUNT, t);
|
|
3869
|
+
}), e.on(Ye.COMPONENT_ADDED, async (t, n, o, s) => {
|
|
3870
|
+
t?._instance?.type?.devtools?.hide || Be.highPerfModeEnabled || !t || typeof n != "number" && !n || !s || Ct.callHook(Ye.COMPONENT_ADDED, t, n, o, s);
|
|
3871
|
+
}), e.on(Ye.COMPONENT_UPDATED, (t, n, o, s) => {
|
|
3872
|
+
!t || typeof n != "number" && !n || !s || Be.highPerfModeEnabled || Ct.callHook(Ye.COMPONENT_UPDATED, t, n, o, s);
|
|
3873
|
+
}), e.on(Ye.COMPONENT_REMOVED, async (t, n, o, s) => {
|
|
3874
|
+
!t || typeof n != "number" && !n || !s || Be.highPerfModeEnabled || Ct.callHook(Ye.COMPONENT_REMOVED, t, n, o, s);
|
|
3875
|
+
}), e.on(Ye.COMPONENT_EMIT, async (t, n, o, s) => {
|
|
3876
|
+
!t || !n || Be.highPerfModeEnabled || Ct.callHook(Ye.COMPONENT_EMIT, t, n, o, s);
|
|
3877
|
+
}), e.on(Ye.PERFORMANCE_START, (t, n, o, s, r) => {
|
|
3878
|
+
!t || Be.highPerfModeEnabled || Ct.callHook(Ye.PERFORMANCE_START, t, n, o, s, r);
|
|
3879
|
+
}), e.on(Ye.PERFORMANCE_END, (t, n, o, s, r) => {
|
|
3880
|
+
!t || Be.highPerfModeEnabled || Ct.callHook(Ye.PERFORMANCE_END, t, n, o, s, r);
|
|
3881
|
+
}), e.on(Ye.SETUP_DEVTOOLS_PLUGIN, (t, n, o) => {
|
|
3882
|
+
o?.target !== "legacy" && Ct.callHook(Ye.SETUP_DEVTOOLS_PLUGIN, t, n);
|
|
3883
3883
|
});
|
|
3884
3884
|
}
|
|
3885
3885
|
const kn = {
|
|
3886
3886
|
on: ny,
|
|
3887
3887
|
setupDevToolsPlugin(e, t) {
|
|
3888
|
-
return Ct.callHook(
|
|
3888
|
+
return Ct.callHook(Ye.SETUP_DEVTOOLS_PLUGIN, e, t);
|
|
3889
3889
|
}
|
|
3890
3890
|
};
|
|
3891
3891
|
var sy = class {
|
|
@@ -3934,8 +3934,8 @@ var sy = class {
|
|
|
3934
3934
|
e.parent?.uid,
|
|
3935
3935
|
e
|
|
3936
3936
|
];
|
|
3937
|
-
Ct.callHook(
|
|
3938
|
-
} else Ct.callHook(
|
|
3937
|
+
Ct.callHook(Ye.COMPONENT_UPDATED, ...n);
|
|
3938
|
+
} else Ct.callHook(Ye.COMPONENT_UPDATED);
|
|
3939
3939
|
this.hooks.callHook(at.SEND_INSPECTOR_STATE, {
|
|
3940
3940
|
inspectorId: t.id,
|
|
3941
3941
|
plugin: this.plugin
|
|
@@ -6320,7 +6320,7 @@ function Zy() {
|
|
|
6320
6320
|
n.settings && Xu(n.id, n.settings), s && cd([n, o], s);
|
|
6321
6321
|
}), fb(() => {
|
|
6322
6322
|
qr.filter(([n]) => n.id !== "components").forEach(([n, o]) => {
|
|
6323
|
-
t.emit(
|
|
6323
|
+
t.emit(Ye.SETUP_DEVTOOLS_PLUGIN, n, o, { target: "legacy" });
|
|
6324
6324
|
});
|
|
6325
6325
|
}), kn.on.vueAppInit(async (n, o, s) => {
|
|
6326
6326
|
const r = {
|
|
@@ -6754,7 +6754,7 @@ function Ja(e, t = {}) {
|
|
|
6754
6754
|
return O_(s, r, Ja(a, t), e, t.nonenumerable), s;
|
|
6755
6755
|
}, {});
|
|
6756
6756
|
}
|
|
6757
|
-
var
|
|
6757
|
+
var Se = class {
|
|
6758
6758
|
/**
|
|
6759
6759
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
6760
6760
|
*/
|
|
@@ -6800,36 +6800,36 @@ var xe = class {
|
|
|
6800
6800
|
this.allowedErrorProps.push(...e);
|
|
6801
6801
|
}
|
|
6802
6802
|
};
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6803
|
+
Se.defaultInstance = new Se();
|
|
6804
|
+
Se.serialize = Se.defaultInstance.serialize.bind(Se.defaultInstance);
|
|
6805
|
+
Se.deserialize = Se.defaultInstance.deserialize.bind(Se.defaultInstance);
|
|
6806
|
+
Se.stringify = Se.defaultInstance.stringify.bind(Se.defaultInstance);
|
|
6807
|
+
Se.parse = Se.defaultInstance.parse.bind(Se.defaultInstance);
|
|
6808
|
+
Se.registerClass = Se.defaultInstance.registerClass.bind(Se.defaultInstance);
|
|
6809
|
+
Se.registerSymbol = Se.defaultInstance.registerSymbol.bind(Se.defaultInstance);
|
|
6810
|
+
Se.registerCustom = Se.defaultInstance.registerCustom.bind(Se.defaultInstance);
|
|
6811
|
+
Se.allowErrorProps = Se.defaultInstance.allowErrorProps.bind(Se.defaultInstance);
|
|
6812
|
+
Se.serialize;
|
|
6813
|
+
Se.deserialize;
|
|
6814
|
+
Se.stringify;
|
|
6815
|
+
Se.parse;
|
|
6816
|
+
Se.registerClass;
|
|
6817
|
+
Se.registerCustom;
|
|
6818
|
+
Se.registerSymbol;
|
|
6819
|
+
Se.allowErrorProps;
|
|
6820
6820
|
const Pl = "__devtools-kit-broadcast-messaging-event-key__", A_ = "__devtools-kit:broadcast-channel__";
|
|
6821
6821
|
function Vl() {
|
|
6822
6822
|
const e = new BroadcastChannel(A_);
|
|
6823
6823
|
return {
|
|
6824
6824
|
post: (t) => {
|
|
6825
|
-
e.postMessage(
|
|
6825
|
+
e.postMessage(Se.stringify({
|
|
6826
6826
|
event: Pl,
|
|
6827
6827
|
data: t
|
|
6828
6828
|
}));
|
|
6829
6829
|
},
|
|
6830
6830
|
on: (t) => {
|
|
6831
6831
|
e.onmessage = (n) => {
|
|
6832
|
-
const o =
|
|
6832
|
+
const o = Se.parse(n.data);
|
|
6833
6833
|
o.event === Pl && t(o.data);
|
|
6834
6834
|
};
|
|
6835
6835
|
}
|
|
@@ -6854,11 +6854,11 @@ function $_() {
|
|
|
6854
6854
|
const e = N_();
|
|
6855
6855
|
return {
|
|
6856
6856
|
post: (t) => {
|
|
6857
|
-
e.emit(oo.CLIENT_TO_PROXY,
|
|
6857
|
+
e.emit(oo.CLIENT_TO_PROXY, Se.stringify(t));
|
|
6858
6858
|
},
|
|
6859
6859
|
on: (t) => {
|
|
6860
6860
|
e.on(oo.PROXY_TO_CLIENT, (n) => {
|
|
6861
|
-
t(
|
|
6861
|
+
t(Se.parse(n));
|
|
6862
6862
|
});
|
|
6863
6863
|
}
|
|
6864
6864
|
};
|
|
@@ -6881,11 +6881,11 @@ function j_() {
|
|
|
6881
6881
|
const e = V_();
|
|
6882
6882
|
return {
|
|
6883
6883
|
post: (t) => {
|
|
6884
|
-
e.emit(oo.SERVER_TO_PROXY,
|
|
6884
|
+
e.emit(oo.SERVER_TO_PROXY, Se.stringify(t));
|
|
6885
6885
|
},
|
|
6886
6886
|
on: (t) => {
|
|
6887
6887
|
e.on(oo.PROXY_TO_SERVER, (n) => {
|
|
6888
|
-
t(
|
|
6888
|
+
t(Se.parse(n));
|
|
6889
6889
|
});
|
|
6890
6890
|
}
|
|
6891
6891
|
};
|
|
@@ -6910,11 +6910,11 @@ function B_() {
|
|
|
6910
6910
|
}
|
|
6911
6911
|
return s(), {
|
|
6912
6912
|
post: (r) => {
|
|
6913
|
-
e || t?.postMessage(
|
|
6913
|
+
e || t?.postMessage(Se.stringify(r));
|
|
6914
6914
|
},
|
|
6915
6915
|
on: (r) => {
|
|
6916
6916
|
o = (a) => {
|
|
6917
|
-
e || r(
|
|
6917
|
+
e || r(Se.parse(a));
|
|
6918
6918
|
}, t?.onMessage.addListener(o);
|
|
6919
6919
|
}
|
|
6920
6920
|
};
|
|
@@ -6934,8 +6934,8 @@ function z_() {
|
|
|
6934
6934
|
}
|
|
6935
6935
|
}
|
|
6936
6936
|
return e.onMessage.addListener(t), window.addEventListener("message", n), e.onDisconnect.addListener(() => {
|
|
6937
|
-
window.removeEventListener("message", n), t(
|
|
6938
|
-
}), t(
|
|
6937
|
+
window.removeEventListener("message", n), t(Se.stringify({ event: "shutdown" }));
|
|
6938
|
+
}), t(Se.stringify({ event: "init" })), {
|
|
6939
6939
|
post: (o) => {
|
|
6940
6940
|
},
|
|
6941
6941
|
on: (o) => {
|
|
@@ -6947,12 +6947,12 @@ function F_() {
|
|
|
6947
6947
|
post: (e) => {
|
|
6948
6948
|
window.postMessage({
|
|
6949
6949
|
source: Ts.SERVER_TO_PROXY,
|
|
6950
|
-
payload:
|
|
6950
|
+
payload: Se.stringify(e)
|
|
6951
6951
|
}, "*");
|
|
6952
6952
|
},
|
|
6953
6953
|
on: (e) => {
|
|
6954
6954
|
const t = (n) => {
|
|
6955
|
-
n.data.source === Ts.PROXY_TO_SERVER && n.data.payload && e(
|
|
6955
|
+
n.data.source === Ts.PROXY_TO_SERVER && n.data.payload && e(Se.parse(n.data.payload));
|
|
6956
6956
|
};
|
|
6957
6957
|
return window.addEventListener("message", t), () => {
|
|
6958
6958
|
window.removeEventListener("message", t);
|
|
@@ -6969,13 +6969,13 @@ function H_(e) {
|
|
|
6969
6969
|
}
|
|
6970
6970
|
function G_() {
|
|
6971
6971
|
return $o ? {
|
|
6972
|
-
post: (e) => window.parent.postMessage(
|
|
6972
|
+
post: (e) => window.parent.postMessage(Se.stringify({
|
|
6973
6973
|
event: Os,
|
|
6974
6974
|
data: e
|
|
6975
6975
|
}), "*"),
|
|
6976
6976
|
on: (e) => window.addEventListener("message", (t) => {
|
|
6977
6977
|
try {
|
|
6978
|
-
const n =
|
|
6978
|
+
const n = Se.parse(t.data);
|
|
6979
6979
|
t.source === window.parent && n.event === Os && e(n.data);
|
|
6980
6980
|
} catch {
|
|
6981
6981
|
}
|
|
@@ -6990,7 +6990,7 @@ function G_() {
|
|
|
6990
6990
|
function J_() {
|
|
6991
6991
|
return $o ? {
|
|
6992
6992
|
post: (e) => {
|
|
6993
|
-
$l()?.contentWindow?.postMessage(
|
|
6993
|
+
$l()?.contentWindow?.postMessage(Se.stringify({
|
|
6994
6994
|
event: Os,
|
|
6995
6995
|
data: e
|
|
6996
6996
|
}), "*");
|
|
@@ -6999,7 +6999,7 @@ function J_() {
|
|
|
6999
6999
|
window.addEventListener("message", (t) => {
|
|
7000
7000
|
const n = $l();
|
|
7001
7001
|
try {
|
|
7002
|
-
const o =
|
|
7002
|
+
const o = Se.parse(t.data);
|
|
7003
7003
|
t.source === n?.contentWindow && o.event === Os && e(o.data);
|
|
7004
7004
|
} catch {
|
|
7005
7005
|
}
|
|
@@ -7023,11 +7023,11 @@ function Y_() {
|
|
|
7023
7023
|
const e = W_();
|
|
7024
7024
|
return {
|
|
7025
7025
|
post: (t) => {
|
|
7026
|
-
e?.send(As,
|
|
7026
|
+
e?.send(As, Se.stringify(t));
|
|
7027
7027
|
},
|
|
7028
7028
|
on: (t) => {
|
|
7029
7029
|
e?.on(As, (n) => {
|
|
7030
|
-
t(
|
|
7030
|
+
t(Se.parse(n));
|
|
7031
7031
|
});
|
|
7032
7032
|
}
|
|
7033
7033
|
};
|
|
@@ -7035,9 +7035,9 @@ function Y_() {
|
|
|
7035
7035
|
function Z_() {
|
|
7036
7036
|
const e = X_(), t = e.hot ?? e.ws;
|
|
7037
7037
|
return {
|
|
7038
|
-
post: (n) => t?.send(As,
|
|
7038
|
+
post: (n) => t?.send(As, Se.stringify(n)),
|
|
7039
7039
|
on: (n) => t?.on(As, (o) => {
|
|
7040
|
-
n(
|
|
7040
|
+
n(Se.parse(o));
|
|
7041
7041
|
})
|
|
7042
7042
|
};
|
|
7043
7043
|
}
|
|
@@ -7813,7 +7813,7 @@ function jw() {
|
|
|
7813
7813
|
);
|
|
7814
7814
|
Lr.splice(m, 1);
|
|
7815
7815
|
const b = g.find((_) => _.id === p), h = g.find((_) => _.id !== p);
|
|
7816
|
-
h && o.value && (await xo.toggleApp(h.id), xs(h)), b && (Ba(b.app), s.value.callHook("app:unmount", b.app)), await
|
|
7816
|
+
h && o.value && (await xo.toggleApp(h.id), xs(h)), b && (Ba(b.app), s.value.callHook("app:unmount", b.app)), await je(500), t.value.$vtjEl.click();
|
|
7817
7817
|
};
|
|
7818
7818
|
return {
|
|
7819
7819
|
dialogRef: t,
|
|
@@ -7911,7 +7911,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
7911
7911
|
title: n.text,
|
|
7912
7912
|
class: "v-logo-widget__icon",
|
|
7913
7913
|
src: o.value
|
|
7914
|
-
}, null, 8, Bw)) : (v(), $("span", zw,
|
|
7914
|
+
}, null, 8, Bw)) : (v(), $("span", zw, te(n.text), 1))
|
|
7915
7915
|
], 2));
|
|
7916
7916
|
}
|
|
7917
7917
|
}), Hw = { class: "v-empty-widget" }, Gw = /* @__PURE__ */ z({
|
|
@@ -7937,12 +7937,12 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
7937
7937
|
}, {
|
|
7938
7938
|
default: E(() => [
|
|
7939
7939
|
y(l(zf), { class: "v-switcher-widget__back" }),
|
|
7940
|
-
I("span", null,
|
|
7940
|
+
I("span", null, te(s.value), 1),
|
|
7941
7941
|
r.value ? (v(), A(l(ct), {
|
|
7942
7942
|
key: 0,
|
|
7943
7943
|
direction: "vertical"
|
|
7944
7944
|
})) : j("", !0),
|
|
7945
|
-
r.value ? (v(), $("span", qw,
|
|
7945
|
+
r.value ? (v(), $("span", qw, te(r.value), 1)) : j("", !0)
|
|
7946
7946
|
]),
|
|
7947
7947
|
_: 1
|
|
7948
7948
|
})
|
|
@@ -8304,7 +8304,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8304
8304
|
I("a", {
|
|
8305
8305
|
href: e.link,
|
|
8306
8306
|
target: "_blank"
|
|
8307
|
-
},
|
|
8307
|
+
}, te(e.link), 9, r1)
|
|
8308
8308
|
])
|
|
8309
8309
|
]));
|
|
8310
8310
|
}
|
|
@@ -8452,7 +8452,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8452
8452
|
editor: "none"
|
|
8453
8453
|
}, {
|
|
8454
8454
|
editor: E(() => [
|
|
8455
|
-
I("span", null,
|
|
8455
|
+
I("span", null, te(c.value.prodVersion), 1),
|
|
8456
8456
|
c.value.status === "unpublished" ? (v(), A(l(ii), {
|
|
8457
8457
|
key: 0,
|
|
8458
8458
|
size: "small",
|
|
@@ -8509,7 +8509,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8509
8509
|
const n = e, { engine: o, designer: s } = Cn(), { isLogined: r, toRemoteAuth: a } = vo(), i = D(!1), c = D(!1), d = D(), f = D(), u = D(), p = () => {
|
|
8510
8510
|
o.current.value ? (i.value ? o.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (s.value?.setSelected(null), o.simulator.refresh()), ot("刷新完成", "success")) : ot("请先打开文件", "warning");
|
|
8511
8511
|
}, g = async () => {
|
|
8512
|
-
o.current.value ? (i.value && (o.skeleton?.closePreview(), i.value = !1, await
|
|
8512
|
+
o.current.value ? (i.value && (o.skeleton?.closePreview(), i.value = !1, await je(1e3)), s.value?.setSelected(o.current.value)) : ot("请先打开文件", "warning");
|
|
8513
8513
|
}, m = () => {
|
|
8514
8514
|
if (o.project.value)
|
|
8515
8515
|
if (o.current.value) {
|
|
@@ -8568,7 +8568,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8568
8568
|
return;
|
|
8569
8569
|
}
|
|
8570
8570
|
const x = o.skeleton?.getRegion("Workspace").regionRef;
|
|
8571
|
-
x && await x.activeDesigner(), w.active(C), await
|
|
8571
|
+
x && await x.activeDesigner(), w.active(C), await je(300);
|
|
8572
8572
|
try {
|
|
8573
8573
|
u.value = await o.simulator.capture();
|
|
8574
8574
|
} catch (R) {
|
|
@@ -8872,7 +8872,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8872
8872
|
placeholder: "请输入查询关键字"
|
|
8873
8873
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
|
8874
8874
|
I("div", f1, [
|
|
8875
|
-
(v(!0), $(se, null,
|
|
8875
|
+
(v(!0), $(se, null, fe(c.value, (b) => (v(), A(l(nn), {
|
|
8876
8876
|
icon: b[1],
|
|
8877
8877
|
onClick: (h) => d(b[0]),
|
|
8878
8878
|
class: Oe({ "is-active": r.value === b[0] })
|
|
@@ -8886,7 +8886,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8886
8886
|
]));
|
|
8887
8887
|
}
|
|
8888
8888
|
}), ut = Tp({
|
|
8889
|
-
loader: () => import("./Editor-
|
|
8889
|
+
loader: () => import("./Editor-BC5UMWRY.js"),
|
|
8890
8890
|
loadingComponent: z({
|
|
8891
8891
|
render() {
|
|
8892
8892
|
return co("div", "正在拼命加载...");
|
|
@@ -9013,7 +9013,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9013
9013
|
editor: E(() => [
|
|
9014
9014
|
y(l(uo), { closable: !1 }, {
|
|
9015
9015
|
default: E(() => [
|
|
9016
|
-
re(
|
|
9016
|
+
re(te(`${l(o).options.pageBasePath || ""}/${c.value}/${m.value.id}`) + " ", 1),
|
|
9017
9017
|
y(l(nn), {
|
|
9018
9018
|
icon: l(Mc),
|
|
9019
9019
|
onClick: C[0] || (C[0] = (x) => O(
|
|
@@ -9180,7 +9180,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9180
9180
|
_: 1
|
|
9181
9181
|
}, 8, ["content"]));
|
|
9182
9182
|
}
|
|
9183
|
-
}),
|
|
9183
|
+
}), Pe = /* @__PURE__ */ z({
|
|
9184
9184
|
name: "VPanel",
|
|
9185
9185
|
__name: "panel",
|
|
9186
9186
|
props: {
|
|
@@ -9435,7 +9435,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9435
9435
|
"is-checked": f.checked
|
|
9436
9436
|
})
|
|
9437
9437
|
}, null, 8, ["class"])) : j("", !0),
|
|
9438
|
-
re(" " +
|
|
9438
|
+
re(" " + te(f.label), 1)
|
|
9439
9439
|
])
|
|
9440
9440
|
]),
|
|
9441
9441
|
_: 1
|
|
@@ -9569,7 +9569,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9569
9569
|
(p) => {
|
|
9570
9570
|
r.value = !!p;
|
|
9571
9571
|
}
|
|
9572
|
-
), (p, g) => (v(), A(l(
|
|
9572
|
+
), (p, g) => (v(), A(l(Me), {
|
|
9573
9573
|
class: Oe(["v-item", c.value]),
|
|
9574
9574
|
justify: "space-between",
|
|
9575
9575
|
align: "center",
|
|
@@ -9577,7 +9577,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9577
9577
|
onClick: d
|
|
9578
9578
|
}, {
|
|
9579
9579
|
default: E(() => [
|
|
9580
|
-
y(l(
|
|
9580
|
+
y(l(Me), {
|
|
9581
9581
|
class: "v-item__title",
|
|
9582
9582
|
align: "center"
|
|
9583
9583
|
}, {
|
|
@@ -9594,38 +9594,38 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9594
9594
|
type: o.tagType
|
|
9595
9595
|
}, {
|
|
9596
9596
|
default: E(() => [
|
|
9597
|
-
re(
|
|
9597
|
+
re(te(o.tag), 1)
|
|
9598
9598
|
]),
|
|
9599
9599
|
_: 1
|
|
9600
9600
|
}, 8, ["type"])) : j("", !0),
|
|
9601
|
-
e.index !== void 0 ? (v(), $("span", v1, " # " +
|
|
9601
|
+
e.index !== void 0 ? (v(), $("span", v1, " # " + te(e.index), 1)) : j("", !0),
|
|
9602
9602
|
I("div", b1, [
|
|
9603
|
-
I("span", y1,
|
|
9603
|
+
I("span", y1, te(e.title), 1),
|
|
9604
9604
|
e.subtitle ? (v(), $("span", {
|
|
9605
9605
|
key: 0,
|
|
9606
9606
|
class: Oe(["v-item__subtitle", o.subtitleCls])
|
|
9607
|
-
},
|
|
9607
|
+
}, te(e.subtitle), 3)) : j("", !0)
|
|
9608
9608
|
]),
|
|
9609
9609
|
o.textTags ? (v(), $("div", _1, [
|
|
9610
|
-
(v(!0), $(se, null,
|
|
9610
|
+
(v(!0), $(se, null, fe(o.textTags, (m) => (v(), $("span", null, te(m), 1))), 256))
|
|
9611
9611
|
])) : j("", !0)
|
|
9612
9612
|
])
|
|
9613
9613
|
]),
|
|
9614
9614
|
_: 3
|
|
9615
9615
|
}),
|
|
9616
|
-
y(l(
|
|
9616
|
+
y(l(Me), {
|
|
9617
9617
|
class: "v-item__wrapper",
|
|
9618
9618
|
onClick: g[2] || (g[2] = rt(() => {
|
|
9619
9619
|
}, ["stop"]))
|
|
9620
9620
|
}, {
|
|
9621
9621
|
default: E(() => [
|
|
9622
|
-
y(l(
|
|
9622
|
+
y(l(Me), {
|
|
9623
9623
|
class: "v-item__actions",
|
|
9624
9624
|
onClick: g[1] || (g[1] = rt(() => {
|
|
9625
9625
|
}, ["stop"]))
|
|
9626
9626
|
}, {
|
|
9627
9627
|
default: E(() => [
|
|
9628
|
-
(v(!0), $(se, null,
|
|
9628
|
+
(v(!0), $(se, null, fe(a.value, (m) => (v(), A(l(ze), {
|
|
9629
9629
|
name: m.name,
|
|
9630
9630
|
title: m.label,
|
|
9631
9631
|
mode: "icon",
|
|
@@ -9722,7 +9722,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9722
9722
|
onDragstart: u,
|
|
9723
9723
|
onDragend: p
|
|
9724
9724
|
}, [
|
|
9725
|
-
y(l(
|
|
9725
|
+
y(l(Me), {
|
|
9726
9726
|
direction: "column",
|
|
9727
9727
|
justify: "center",
|
|
9728
9728
|
align: "center"
|
|
@@ -9734,13 +9734,13 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9734
9734
|
class: "v-box__icon",
|
|
9735
9735
|
icon: s(n.icon),
|
|
9736
9736
|
size: 24
|
|
9737
|
-
}, null, 8, ["icon"])) : (v(), $("span", E1,
|
|
9738
|
-
I("span", k1,
|
|
9737
|
+
}, null, 8, ["icon"])) : (v(), $("span", E1, te(n.name), 1)),
|
|
9738
|
+
I("span", k1, te(n.title), 1)
|
|
9739
9739
|
])
|
|
9740
9740
|
]),
|
|
9741
9741
|
_: 3
|
|
9742
9742
|
}),
|
|
9743
|
-
n.editable ? (v(), A(l(
|
|
9743
|
+
n.editable ? (v(), A(l(Me), {
|
|
9744
9744
|
key: 0,
|
|
9745
9745
|
class: "v-box__footer",
|
|
9746
9746
|
justify: "flex-end",
|
|
@@ -9763,7 +9763,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9763
9763
|
n.tag ? (v(), $("span", {
|
|
9764
9764
|
key: 1,
|
|
9765
9765
|
class: Oe(["v-box__tag", { [`is-${n.tagType}`]: !!n.tagType }])
|
|
9766
|
-
},
|
|
9766
|
+
}, te(n.tag), 3)) : j("", !0)
|
|
9767
9767
|
], 42, w1));
|
|
9768
9768
|
}
|
|
9769
9769
|
}), S1 = { class: "v-context-viewer" }, x1 = { class: "v-context-viewer__body" }, C1 = { class: "v-context-viewer__tree" }, T1 = /* @__PURE__ */ z({
|
|
@@ -9953,13 +9953,13 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9953
9953
|
onClose: k
|
|
9954
9954
|
}, {
|
|
9955
9955
|
default: E(() => [
|
|
9956
|
-
y(l(
|
|
9956
|
+
y(l(Me), {
|
|
9957
9957
|
fit: "",
|
|
9958
9958
|
direction: "row",
|
|
9959
9959
|
overflow: "hidden"
|
|
9960
9960
|
}, {
|
|
9961
9961
|
default: E(() => [
|
|
9962
|
-
y(l(
|
|
9962
|
+
y(l(Me), {
|
|
9963
9963
|
width: "36%",
|
|
9964
9964
|
height: "100%"
|
|
9965
9965
|
}, {
|
|
@@ -9971,7 +9971,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9971
9971
|
"onUpdate:modelValue": R[3] || (R[3] = (V) => d.value = V)
|
|
9972
9972
|
}, {
|
|
9973
9973
|
default: E(() => [
|
|
9974
|
-
y(l(
|
|
9974
|
+
y(l(Me), {
|
|
9975
9975
|
class: "v-binder__tab-content",
|
|
9976
9976
|
fit: "",
|
|
9977
9977
|
padding: "",
|
|
@@ -9987,14 +9987,14 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9987
9987
|
"prefix-icon": l(_n),
|
|
9988
9988
|
placeholder: "筛选可用项"
|
|
9989
9989
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
9990
|
-
(v(!0), $(se, null,
|
|
9990
|
+
(v(!0), $(se, null, fe(l(s), (V) => (v(), $("div", null, [
|
|
9991
9991
|
y(l(ct), { "border-style": "dotted" }, {
|
|
9992
9992
|
default: E(() => [
|
|
9993
|
-
re(
|
|
9993
|
+
re(te(V.title), 1)
|
|
9994
9994
|
]),
|
|
9995
9995
|
_: 2
|
|
9996
9996
|
}, 1024),
|
|
9997
|
-
(v(!0), $(se, null,
|
|
9997
|
+
(v(!0), $(se, null, fe(V.items, (U) => (v(), A(Dt, {
|
|
9998
9998
|
title: U,
|
|
9999
9999
|
background: "",
|
|
10000
10000
|
actions: ["copy"],
|
|
@@ -10024,7 +10024,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10024
10024
|
_: 1
|
|
10025
10025
|
}),
|
|
10026
10026
|
I("div", null, [
|
|
10027
|
-
(v(!0), $(se, null,
|
|
10027
|
+
(v(!0), $(se, null, fe(b.value, (V) => (v(), A(Dt, {
|
|
10028
10028
|
title: V.title,
|
|
10029
10029
|
subtitle: V.path,
|
|
10030
10030
|
background: "",
|
|
@@ -10055,7 +10055,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10055
10055
|
_: 1
|
|
10056
10056
|
}),
|
|
10057
10057
|
I("div", null, [
|
|
10058
|
-
(v(!0), $(se, null,
|
|
10058
|
+
(v(!0), $(se, null, fe(h.value, (V) => (v(), A(Dt, {
|
|
10059
10059
|
title: V["zh-CN"],
|
|
10060
10060
|
subtitle: V.key,
|
|
10061
10061
|
background: "",
|
|
@@ -10092,9 +10092,9 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10092
10092
|
border: !1
|
|
10093
10093
|
}, {
|
|
10094
10094
|
footer: E(() => [
|
|
10095
|
-
y(l(
|
|
10095
|
+
y(l(Me), { justify: "space-between" }, {
|
|
10096
10096
|
default: E(() => [
|
|
10097
|
-
y(l(
|
|
10097
|
+
y(l(Me), null, {
|
|
10098
10098
|
default: E(() => [
|
|
10099
10099
|
e.unbindEnabled ? (v(), A(l(Ae), {
|
|
10100
10100
|
key: 0,
|
|
@@ -10111,7 +10111,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10111
10111
|
]),
|
|
10112
10112
|
_: 1
|
|
10113
10113
|
}),
|
|
10114
|
-
y(l(
|
|
10114
|
+
y(l(Me), null, {
|
|
10115
10115
|
default: E(() => [
|
|
10116
10116
|
y(l(Ae), {
|
|
10117
10117
|
type: "default",
|
|
@@ -10196,7 +10196,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10196
10196
|
type: "warning",
|
|
10197
10197
|
closable: !1
|
|
10198
10198
|
}, null, 8, ["title"]),
|
|
10199
|
-
y(l(
|
|
10199
|
+
y(l(Me), {
|
|
10200
10200
|
class: "v-slots-picker__content",
|
|
10201
10201
|
justify: "space-around",
|
|
10202
10202
|
alignContent: "flex-start",
|
|
@@ -10204,15 +10204,15 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10204
10204
|
wrap: "wrap"
|
|
10205
10205
|
}, {
|
|
10206
10206
|
default: E(() => [
|
|
10207
|
-
(v(!0), $(se, null,
|
|
10207
|
+
(v(!0), $(se, null, fe(n.slots, (f, u) => (v(), A(l(Me), {
|
|
10208
10208
|
class: Oe(["v-slots-picker__item", { "is-active": f.name === s.value?.name }]),
|
|
10209
10209
|
grow: "",
|
|
10210
10210
|
flex: !1,
|
|
10211
10211
|
onClick: (p) => a(f)
|
|
10212
10212
|
}, {
|
|
10213
10213
|
default: E(() => [
|
|
10214
|
-
I("span", A1, "#" +
|
|
10215
|
-
re(" " +
|
|
10214
|
+
I("span", A1, "#" + te(u + 1), 1),
|
|
10215
|
+
re(" " + te(f.name), 1)
|
|
10216
10216
|
]),
|
|
10217
10217
|
_: 2
|
|
10218
10218
|
}, 1032, ["class", "onClick"]))), 256))
|
|
@@ -10303,7 +10303,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10303
10303
|
"is-checked": c.checked
|
|
10304
10304
|
})
|
|
10305
10305
|
}, null, 8, ["class"])) : j("", !0),
|
|
10306
|
-
re(" " +
|
|
10306
|
+
re(" " + te(c.label), 1)
|
|
10307
10307
|
])
|
|
10308
10308
|
]),
|
|
10309
10309
|
_: 1
|
|
@@ -10354,7 +10354,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10354
10354
|
pages: zt(c)
|
|
10355
10355
|
}), u();
|
|
10356
10356
|
};
|
|
10357
|
-
return (O, w) => (v(), A(l(
|
|
10357
|
+
return (O, w) => (v(), A(l(Pe), {
|
|
10358
10358
|
class: "v-pages-widget",
|
|
10359
10359
|
title: "页面管理",
|
|
10360
10360
|
plus: "",
|
|
@@ -10397,7 +10397,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10397
10397
|
key: 0,
|
|
10398
10398
|
ref: "sentinelRef",
|
|
10399
10399
|
class: "v-pages-widget__loading"
|
|
10400
|
-
}, " 加载中... (" +
|
|
10400
|
+
}, " 加载中... (" + te(l(f)) + "/" + te(o.value.length) + ") ", 513))
|
|
10401
10401
|
]),
|
|
10402
10402
|
r.value ? (v(), A(g1, {
|
|
10403
10403
|
key: 0,
|
|
@@ -10436,7 +10436,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10436
10436
|
}, u = async (S) => {
|
|
10437
10437
|
if (s && r.value) {
|
|
10438
10438
|
const O = await s.service.uploadStaticFile(S, r.value.id);
|
|
10439
|
-
return await
|
|
10439
|
+
return await je(150), d(O);
|
|
10440
10440
|
}
|
|
10441
10441
|
return null;
|
|
10442
10442
|
}, p = (S) => S ? (S || "").split(",").map((w) => ({ url: w })) : [], g = D(
|
|
@@ -10617,7 +10617,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10617
10617
|
const Z = o.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
10618
10618
|
Z && Z.setDragging(null);
|
|
10619
10619
|
};
|
|
10620
|
-
return (Z, X) => (v(), A(l(
|
|
10620
|
+
return (Z, X) => (v(), A(l(Pe), {
|
|
10621
10621
|
class: "v-blocks-widget",
|
|
10622
10622
|
title: "区块管理",
|
|
10623
10623
|
subtitle: h.value,
|
|
@@ -10640,7 +10640,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10640
10640
|
"model-value": i.value
|
|
10641
10641
|
}, {
|
|
10642
10642
|
default: E(() => [
|
|
10643
|
-
(v(!0), $(se, null,
|
|
10643
|
+
(v(!0), $(se, null, fe(a.value, (K, J) => (v(), A(l(cr), {
|
|
10644
10644
|
name: J,
|
|
10645
10645
|
title: `${J} (${K.length})`
|
|
10646
10646
|
}, {
|
|
@@ -10650,7 +10650,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10650
10650
|
gutter: 5
|
|
10651
10651
|
}, {
|
|
10652
10652
|
default: E(() => [
|
|
10653
|
-
(v(!0), $(se, null,
|
|
10653
|
+
(v(!0), $(se, null, fe(K, (N) => (v(), A(l(_s), {
|
|
10654
10654
|
key: N.id,
|
|
10655
10655
|
span: l(t)
|
|
10656
10656
|
}, {
|
|
@@ -10762,7 +10762,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10762
10762
|
const u = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
10763
10763
|
u && u.setDragging(null);
|
|
10764
10764
|
};
|
|
10765
|
-
return (u, p) => (v(), A(l(
|
|
10765
|
+
return (u, p) => (v(), A(l(Pe), {
|
|
10766
10766
|
class: "v-components-widget",
|
|
10767
10767
|
title: "组件库",
|
|
10768
10768
|
body: { flex: !0, direction: "column" }
|
|
@@ -10788,7 +10788,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10788
10788
|
gutter: 5
|
|
10789
10789
|
}, {
|
|
10790
10790
|
default: E(() => [
|
|
10791
|
-
(v(!0), $(se, null,
|
|
10791
|
+
(v(!0), $(se, null, fe(l(c), (g, m) => (v(), A(l(_s), {
|
|
10792
10792
|
span: l(t),
|
|
10793
10793
|
key: `${g.name}_${m}`
|
|
10794
10794
|
}, {
|
|
@@ -10822,7 +10822,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10822
10822
|
"onUpdate:modelValue": p[1] || (p[1] = (g) => l(a)[l(s)] = g)
|
|
10823
10823
|
}, {
|
|
10824
10824
|
default: E(() => [
|
|
10825
|
-
(v(!0), $(se, null,
|
|
10825
|
+
(v(!0), $(se, null, fe(l(r).children, (g) => (v(), A(l(cr), {
|
|
10826
10826
|
key: g.name,
|
|
10827
10827
|
name: g.name,
|
|
10828
10828
|
title: `${g.label} (${g.count})`
|
|
@@ -10834,7 +10834,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10834
10834
|
gutter: 5
|
|
10835
10835
|
}, {
|
|
10836
10836
|
default: E(() => [
|
|
10837
|
-
(v(!0), $(se, null,
|
|
10837
|
+
(v(!0), $(se, null, fe(g.components, (m) => (v(), A(l(_s), {
|
|
10838
10838
|
span: l(t),
|
|
10839
10839
|
key: m.name
|
|
10840
10840
|
}, {
|
|
@@ -11019,7 +11019,7 @@ const Uw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
11019
11019
|
break;
|
|
11020
11020
|
}
|
|
11021
11021
|
};
|
|
11022
|
-
return ce(t.changed, f, { immediate: !0 }), (w, C) => (v(), A(l(
|
|
11022
|
+
return ce(t.changed, f, { immediate: !0 }), (w, C) => (v(), A(l(Pe), {
|
|
11023
11023
|
class: "v-outline-widget",
|
|
11024
11024
|
title: "大纲树"
|
|
11025
11025
|
}, {
|
|
@@ -12654,14 +12654,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = N, q = G), L ===
|
|
|
12654
12654
|
let be = Te.keywordPatternRe.exec(Ze), Ve = "";
|
|
12655
12655
|
for (; be; ) {
|
|
12656
12656
|
Ve += Ze.substring(ie, be.index);
|
|
12657
|
-
const
|
|
12657
|
+
const Xe = We.case_insensitive ? be[0].toLowerCase() : be[0], Ot = H(Te, Xe);
|
|
12658
12658
|
if (Ot) {
|
|
12659
12659
|
const [Qt, pr] = Ot;
|
|
12660
|
-
if (dt.addText(Ve), Ve = "", Y[
|
|
12660
|
+
if (dt.addText(Ve), Ve = "", Y[Xe] = (Y[Xe] || 0) + 1, Y[Xe] <= F0 && (qt += pr), Qt.startsWith("_"))
|
|
12661
12661
|
Ve += be[0];
|
|
12662
12662
|
else {
|
|
12663
|
-
const Lo =
|
|
12664
|
-
|
|
12663
|
+
const Lo = We.classNameAliases[Qt] || Qt;
|
|
12664
|
+
De(be[0], Lo);
|
|
12665
12665
|
}
|
|
12666
12666
|
} else
|
|
12667
12667
|
Ve += be[0];
|
|
@@ -12686,88 +12686,88 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = N, q = G), L ===
|
|
|
12686
12686
|
function ae() {
|
|
12687
12687
|
Te.subLanguage != null ? W() : ye(), Ze = "";
|
|
12688
12688
|
}
|
|
12689
|
-
function
|
|
12689
|
+
function De(ie, be) {
|
|
12690
12690
|
ie !== "" && (dt.startScope(be), dt.addText(ie), dt.endScope());
|
|
12691
12691
|
}
|
|
12692
|
-
function
|
|
12692
|
+
function Ue(ie, be) {
|
|
12693
12693
|
let Ve = 1;
|
|
12694
|
-
const
|
|
12695
|
-
for (; Ve <=
|
|
12694
|
+
const Xe = be.length - 1;
|
|
12695
|
+
for (; Ve <= Xe; ) {
|
|
12696
12696
|
if (!ie._emit[Ve]) {
|
|
12697
12697
|
Ve++;
|
|
12698
12698
|
continue;
|
|
12699
12699
|
}
|
|
12700
|
-
const Ot =
|
|
12701
|
-
Ot ?
|
|
12700
|
+
const Ot = We.classNameAliases[ie[Ve]] || ie[Ve], Qt = be[Ve];
|
|
12701
|
+
Ot ? De(Qt, Ot) : (Ze = Qt, ye(), Ze = ""), Ve++;
|
|
12702
12702
|
}
|
|
12703
12703
|
}
|
|
12704
|
-
function
|
|
12705
|
-
return ie.scope && typeof ie.scope == "string" && dt.openNode(
|
|
12704
|
+
function Ke(ie, be) {
|
|
12705
|
+
return ie.scope && typeof ie.scope == "string" && dt.openNode(We.classNameAliases[ie.scope] || ie.scope), ie.beginScope && (ie.beginScope._wrap ? (De(Ze, We.classNameAliases[ie.beginScope._wrap] || ie.beginScope._wrap), Ze = "") : ie.beginScope._multi && (Ue(ie.beginScope, be), Ze = "")), Te = Object.create(ie, { parent: { value: Te } }), Te;
|
|
12706
12706
|
}
|
|
12707
|
-
function
|
|
12708
|
-
let
|
|
12709
|
-
if (
|
|
12707
|
+
function _e(ie, be, Ve) {
|
|
12708
|
+
let Xe = s0(ie.endRe, Ve);
|
|
12709
|
+
if (Xe) {
|
|
12710
12710
|
if (ie["on:end"]) {
|
|
12711
12711
|
const Ot = new zl(ie);
|
|
12712
|
-
ie["on:end"](be, Ot), Ot.isMatchIgnored && (
|
|
12712
|
+
ie["on:end"](be, Ot), Ot.isMatchIgnored && (Xe = !1);
|
|
12713
12713
|
}
|
|
12714
|
-
if (
|
|
12714
|
+
if (Xe) {
|
|
12715
12715
|
for (; ie.endsParent && ie.parent; )
|
|
12716
12716
|
ie = ie.parent;
|
|
12717
12717
|
return ie;
|
|
12718
12718
|
}
|
|
12719
12719
|
}
|
|
12720
12720
|
if (ie.endsWithParent)
|
|
12721
|
-
return
|
|
12721
|
+
return _e(ie.parent, be, Ve);
|
|
12722
12722
|
}
|
|
12723
12723
|
function vt(ie) {
|
|
12724
12724
|
return Te.matcher.regexIndex === 0 ? (Ze += ie[0], 1) : (rn = !0, 0);
|
|
12725
12725
|
}
|
|
12726
|
-
function
|
|
12727
|
-
const be = ie[0], Ve = ie.rule,
|
|
12726
|
+
function xe(ie) {
|
|
12727
|
+
const be = ie[0], Ve = ie.rule, Xe = new zl(Ve), Ot = [Ve.__beforeBegin, Ve["on:begin"]];
|
|
12728
12728
|
for (const Qt of Ot)
|
|
12729
|
-
if (Qt && (Qt(ie,
|
|
12729
|
+
if (Qt && (Qt(ie, Xe), Xe.isMatchIgnored))
|
|
12730
12730
|
return vt(be);
|
|
12731
|
-
return Ve.skip ? Ze += be : (Ve.excludeBegin && (Ze += be), ae(), !Ve.returnBegin && !Ve.excludeBegin && (Ze = be)),
|
|
12731
|
+
return Ve.skip ? Ze += be : (Ve.excludeBegin && (Ze += be), ae(), !Ve.returnBegin && !Ve.excludeBegin && (Ze = be)), Ke(Ve, ie), Ve.returnBegin ? 0 : be.length;
|
|
12732
12732
|
}
|
|
12733
|
-
function
|
|
12734
|
-
const be = ie[0], Ve = G.substring(ie.index),
|
|
12735
|
-
if (!
|
|
12733
|
+
function qe(ie) {
|
|
12734
|
+
const be = ie[0], Ve = G.substring(ie.index), Xe = _e(Te, ie, Ve);
|
|
12735
|
+
if (!Xe)
|
|
12736
12736
|
return Kl;
|
|
12737
12737
|
const Ot = Te;
|
|
12738
|
-
Te.endScope && Te.endScope._wrap ? (ae(),
|
|
12738
|
+
Te.endScope && Te.endScope._wrap ? (ae(), De(be, Te.endScope._wrap)) : Te.endScope && Te.endScope._multi ? (ae(), Ue(Te.endScope, ie)) : Ot.skip ? Ze += be : (Ot.returnEnd || Ot.excludeEnd || (Ze += be), ae(), Ot.excludeEnd && (Ze = be));
|
|
12739
12739
|
do
|
|
12740
12740
|
Te.scope && dt.closeNode(), !Te.skip && !Te.subLanguage && (qt += Te.relevance), Te = Te.parent;
|
|
12741
|
-
while (Te !==
|
|
12742
|
-
return
|
|
12741
|
+
while (Te !== Xe.parent);
|
|
12742
|
+
return Xe.starts && Ke(Xe.starts, ie), Ot.returnEnd ? 0 : be.length;
|
|
12743
12743
|
}
|
|
12744
|
-
function
|
|
12744
|
+
function we() {
|
|
12745
12745
|
const ie = [];
|
|
12746
|
-
for (let be = Te; be !==
|
|
12746
|
+
for (let be = Te; be !== We; be = be.parent)
|
|
12747
12747
|
be.scope && ie.unshift(be.scope);
|
|
12748
12748
|
ie.forEach((be) => dt.openNode(be));
|
|
12749
12749
|
}
|
|
12750
|
-
let
|
|
12751
|
-
function
|
|
12750
|
+
let He = {};
|
|
12751
|
+
function Le(ie, be) {
|
|
12752
12752
|
const Ve = be && be[0];
|
|
12753
12753
|
if (Ze += ie, Ve == null)
|
|
12754
12754
|
return ae(), 0;
|
|
12755
|
-
if (
|
|
12755
|
+
if (He.type === "begin" && be.type === "end" && He.index === be.index && Ve === "") {
|
|
12756
12756
|
if (Ze += G.slice(be.index, be.index + 1), !s) {
|
|
12757
|
-
const
|
|
12758
|
-
throw
|
|
12757
|
+
const Xe = new Error(`0 width match regex (${N})`);
|
|
12758
|
+
throw Xe.languageName = N, Xe.badRule = He.rule, Xe;
|
|
12759
12759
|
}
|
|
12760
12760
|
return 1;
|
|
12761
12761
|
}
|
|
12762
|
-
if (
|
|
12763
|
-
return
|
|
12762
|
+
if (He = be, be.type === "begin")
|
|
12763
|
+
return xe(be);
|
|
12764
12764
|
if (be.type === "illegal" && !L) {
|
|
12765
|
-
const
|
|
12766
|
-
throw
|
|
12765
|
+
const Xe = new Error('Illegal lexeme "' + Ve + '" for mode "' + (Te.scope || "<unnamed>") + '"');
|
|
12766
|
+
throw Xe.mode = Te, Xe;
|
|
12767
12767
|
} else if (be.type === "end") {
|
|
12768
|
-
const
|
|
12769
|
-
if (
|
|
12770
|
-
return
|
|
12768
|
+
const Xe = qe(be);
|
|
12769
|
+
if (Xe !== Kl)
|
|
12770
|
+
return Xe;
|
|
12771
12771
|
}
|
|
12772
12772
|
if (be.type === "illegal" && Ve === "")
|
|
12773
12773
|
return 1;
|
|
@@ -12775,26 +12775,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = N, q = G), L ===
|
|
|
12775
12775
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
12776
12776
|
return Ze += Ve, Ve.length;
|
|
12777
12777
|
}
|
|
12778
|
-
const
|
|
12779
|
-
if (!
|
|
12778
|
+
const We = R(N);
|
|
12779
|
+
if (!We)
|
|
12780
12780
|
throw Ao(r.replace("{}", N)), new Error('Unknown language: "' + N + '"');
|
|
12781
|
-
const Yt = L0(
|
|
12781
|
+
const Yt = L0(We);
|
|
12782
12782
|
let gn = "", Te = q || Yt;
|
|
12783
12783
|
const mn = {}, dt = new i.__emitter(i);
|
|
12784
|
-
|
|
12784
|
+
we();
|
|
12785
12785
|
let Ze = "", qt = 0, Vt = 0, qn = 0, rn = !1;
|
|
12786
12786
|
try {
|
|
12787
|
-
if (
|
|
12788
|
-
|
|
12787
|
+
if (We.__emitTokens)
|
|
12788
|
+
We.__emitTokens(G, dt);
|
|
12789
12789
|
else {
|
|
12790
12790
|
for (Te.matcher.considerAll(); ; ) {
|
|
12791
12791
|
qn++, rn ? rn = !1 : Te.matcher.considerAll(), Te.matcher.lastIndex = Vt;
|
|
12792
12792
|
const ie = Te.matcher.exec(G);
|
|
12793
12793
|
if (!ie) break;
|
|
12794
|
-
const be = G.substring(Vt, ie.index), Ve =
|
|
12794
|
+
const be = G.substring(Vt, ie.index), Ve = Le(be, ie);
|
|
12795
12795
|
Vt = ie.index + Ve;
|
|
12796
12796
|
}
|
|
12797
|
-
|
|
12797
|
+
Le(G.substring(Vt));
|
|
12798
12798
|
}
|
|
12799
12799
|
return dt.finalize(), gn = dt.toHTML(), {
|
|
12800
12800
|
language: N,
|
|
@@ -12849,12 +12849,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = N, q = G), L ===
|
|
|
12849
12849
|
(ae) => u(ae, N, !1)
|
|
12850
12850
|
);
|
|
12851
12851
|
q.unshift(L);
|
|
12852
|
-
const Y = q.sort((ae,
|
|
12853
|
-
if (ae.relevance !==
|
|
12854
|
-
if (ae.language &&
|
|
12855
|
-
if (R(ae.language).supersetOf ===
|
|
12852
|
+
const Y = q.sort((ae, De) => {
|
|
12853
|
+
if (ae.relevance !== De.relevance) return De.relevance - ae.relevance;
|
|
12854
|
+
if (ae.language && De.language) {
|
|
12855
|
+
if (R(ae.language).supersetOf === De.language)
|
|
12856
12856
|
return 1;
|
|
12857
|
-
if (R(
|
|
12857
|
+
if (R(De.language).supersetOf === ae.language)
|
|
12858
12858
|
return -1;
|
|
12859
12859
|
}
|
|
12860
12860
|
return 0;
|
|
@@ -16017,7 +16017,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16017
16017
|
"blob-num-context": s.line.type === l(ge).EQUAL,
|
|
16018
16018
|
"blob-num-hunk": s.line.hide !== void 0
|
|
16019
16019
|
}])
|
|
16020
|
-
},
|
|
16020
|
+
}, te(s.line.delNum), 3),
|
|
16021
16021
|
I("td", {
|
|
16022
16022
|
class: Oe(["blob-num", {
|
|
16023
16023
|
"blob-num-deletion": s.line.type === l(ge).DELETE,
|
|
@@ -16025,7 +16025,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16025
16025
|
"blob-num-context": s.line.type === l(ge).EQUAL,
|
|
16026
16026
|
"blob-num-hunk": s.line.hide !== void 0
|
|
16027
16027
|
}])
|
|
16028
|
-
},
|
|
16028
|
+
}, te(s.line.addNum), 3),
|
|
16029
16029
|
I("td", {
|
|
16030
16030
|
class: Oe(["blob-code", {
|
|
16031
16031
|
"blob-code-deletion": s.line.type === l(ge).DELETE,
|
|
@@ -16058,7 +16058,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16058
16058
|
var r;
|
|
16059
16059
|
return v(), $("table", fE, [
|
|
16060
16060
|
I("tbody", null, [
|
|
16061
|
-
(v(!0), $(se, null,
|
|
16061
|
+
(v(!0), $(se, null, fe((r = o.diffChange) == null ? void 0 : r.changes, (a, i) => (v(), A(pE, {
|
|
16062
16062
|
key: i,
|
|
16063
16063
|
line: a,
|
|
16064
16064
|
onExpand: n
|
|
@@ -16097,7 +16097,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16097
16097
|
}, " > "),
|
|
16098
16098
|
hE
|
|
16099
16099
|
])) : r.splitLine.hide ? j("", !0) : (v(), $("tr", vE, [
|
|
16100
|
-
(v(!0), $(se, null,
|
|
16100
|
+
(v(!0), $(se, null, fe([r.splitLine.left, r.splitLine.right], (i, c) => (v(), $(se, null, [
|
|
16101
16101
|
i.type === l(ge).EMPTY ? (v(), $(se, { key: 0 }, [
|
|
16102
16102
|
bE,
|
|
16103
16103
|
yE
|
|
@@ -16109,7 +16109,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16109
16109
|
"blob-num-context": i.type === l(ge).EQUAL,
|
|
16110
16110
|
"blob-num-hunk": r.splitLine.hide !== void 0
|
|
16111
16111
|
}])
|
|
16112
|
-
},
|
|
16112
|
+
}, te(i.num), 3),
|
|
16113
16113
|
I("td", {
|
|
16114
16114
|
class: Oe(["blob-code", {
|
|
16115
16115
|
"blob-code-deletion": i.type === l(ge).DELETE,
|
|
@@ -16153,7 +16153,7 @@ const lE = { key: 0 }, cE = /* @__PURE__ */ I("td", {
|
|
|
16153
16153
|
return v(), $("table", kE, [
|
|
16154
16154
|
SE,
|
|
16155
16155
|
I("tbody", null, [
|
|
16156
|
-
(v(!0), $(se, null,
|
|
16156
|
+
(v(!0), $(se, null, fe((r = o.diffChange) == null ? void 0 : r.changes, (a, i) => (v(), A(EE, {
|
|
16157
16157
|
key: i,
|
|
16158
16158
|
"split-line": a,
|
|
16159
16159
|
onExpand: n
|
|
@@ -16268,8 +16268,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16268
16268
|
m.hideHeader ? j("", !0) : (v(), $("div", ME, [
|
|
16269
16269
|
l(s) ? (v(), $("div", jE, [
|
|
16270
16270
|
I("span", null, [
|
|
16271
|
-
I("div", LE,
|
|
16272
|
-
I("div", UE,
|
|
16271
|
+
I("div", LE, te(m.filename), 1),
|
|
16272
|
+
I("div", UE, te(m.newFilename), 1)
|
|
16273
16273
|
]),
|
|
16274
16274
|
I("span", BE, [
|
|
16275
16275
|
I("button", {
|
|
@@ -16291,14 +16291,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16291
16291
|
Xt(m.$slots, "stat", {
|
|
16292
16292
|
stat: l(c).stat
|
|
16293
16293
|
}, () => [
|
|
16294
|
-
I("span", FE, "+" +
|
|
16295
|
-
I("span", HE, "-" +
|
|
16294
|
+
I("span", FE, "+" + te(l(c).stat.additionsNum) + " additions", 1),
|
|
16295
|
+
I("span", HE, "-" + te(l(c).stat.deletionsNum) + " deletions", 1)
|
|
16296
16296
|
])
|
|
16297
16297
|
]))
|
|
16298
16298
|
])) : (v(), $("div", GE, [
|
|
16299
|
-
I("span", JE,
|
|
16299
|
+
I("span", JE, te(m.filename), 1),
|
|
16300
16300
|
I("span", qE, [
|
|
16301
|
-
I("span", KE,
|
|
16301
|
+
I("span", KE, te(m.newFilename), 1),
|
|
16302
16302
|
I("span", WE, [
|
|
16303
16303
|
I("button", {
|
|
16304
16304
|
class: "command-item-button",
|
|
@@ -16319,8 +16319,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16319
16319
|
Xt(m.$slots, "stat", {
|
|
16320
16320
|
stat: l(c).stat
|
|
16321
16321
|
}, () => [
|
|
16322
|
-
I("span", YE, "+" +
|
|
16323
|
-
I("span", ZE, "-" +
|
|
16322
|
+
I("span", YE, "+" + te(l(c).stat.additionsNum) + " additions", 1),
|
|
16323
|
+
I("span", ZE, "-" + te(l(c).stat.deletionsNum) + " deletions", 1)
|
|
16324
16324
|
])
|
|
16325
16325
|
]))
|
|
16326
16326
|
])
|
|
@@ -16425,7 +16425,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16425
16425
|
w.checked = S;
|
|
16426
16426
|
}), t({
|
|
16427
16427
|
openAdd: h
|
|
16428
|
-
}), (S, O) => (v(), A(l(
|
|
16428
|
+
}), (S, O) => (v(), A(l(Pe), {
|
|
16429
16429
|
class: "v-history-widget",
|
|
16430
16430
|
title: "历史记录",
|
|
16431
16431
|
plus: "",
|
|
@@ -16465,7 +16465,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16465
16465
|
key: 0,
|
|
16466
16466
|
"image-size": 50
|
|
16467
16467
|
})) : j("", !0),
|
|
16468
|
-
l(n) ? (v(!0), $(se, { key: 1 },
|
|
16468
|
+
l(n) ? (v(!0), $(se, { key: 1 }, fe(l(n).items, (w, C) => (v(), A(l(Dt), {
|
|
16469
16469
|
index: C + 1,
|
|
16470
16470
|
title: w.label,
|
|
16471
16471
|
"model-value": w,
|
|
@@ -16613,7 +16613,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16613
16613
|
}
|
|
16614
16614
|
], n = Vs("currentModel", null);
|
|
16615
16615
|
return (o, s) => (v(), $(se, null, [
|
|
16616
|
-
y(l(
|
|
16616
|
+
y(l(Me), { justify: "space-between" }, {
|
|
16617
16617
|
default: E(() => [
|
|
16618
16618
|
y(l(ne), {
|
|
16619
16619
|
name: "settings.loading",
|
|
@@ -16722,7 +16722,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16722
16722
|
label: "开启模拟数据",
|
|
16723
16723
|
editor: "switch"
|
|
16724
16724
|
}),
|
|
16725
|
-
y(l(
|
|
16725
|
+
y(l(Me), { justify: "space-between" }, {
|
|
16726
16726
|
default: E(() => [
|
|
16727
16727
|
s[1] || (s[1] = I("span", null, "模拟数据模板", -1)),
|
|
16728
16728
|
y(l(ze), {
|
|
@@ -16873,9 +16873,9 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16873
16873
|
maximizable: ""
|
|
16874
16874
|
}, {
|
|
16875
16875
|
default: E(() => [
|
|
16876
|
-
y(l(
|
|
16876
|
+
y(l(Me), { fit: "" }, {
|
|
16877
16877
|
default: E(() => [
|
|
16878
|
-
y(l(
|
|
16878
|
+
y(l(Me), {
|
|
16879
16879
|
width: "100px",
|
|
16880
16880
|
shrink: !1
|
|
16881
16881
|
}, {
|
|
@@ -16900,7 +16900,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16900
16900
|
fit: ""
|
|
16901
16901
|
}, {
|
|
16902
16902
|
footer: E(() => [
|
|
16903
|
-
s.value === "test" ? (v(), A(l(
|
|
16903
|
+
s.value === "test" ? (v(), A(l(Me), {
|
|
16904
16904
|
key: 0,
|
|
16905
16905
|
justify: "flex-end"
|
|
16906
16906
|
}, {
|
|
@@ -16917,7 +16917,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
16917
16917
|
}, 8, ["loading"])
|
|
16918
16918
|
]),
|
|
16919
16919
|
_: 1
|
|
16920
|
-
})) : (v(), A(l(
|
|
16920
|
+
})) : (v(), A(l(Me), {
|
|
16921
16921
|
key: 1,
|
|
16922
16922
|
justify: "space-between"
|
|
16923
16923
|
}, {
|
|
@@ -17215,7 +17215,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17215
17215
|
}, O = (w) => {
|
|
17216
17216
|
f.value = !0, c.value = Bs(_(), Po(w)), i.value = !0;
|
|
17217
17217
|
};
|
|
17218
|
-
return (w, C) => (v(), A(l(
|
|
17218
|
+
return (w, C) => (v(), A(l(Pe), {
|
|
17219
17219
|
class: "v-apis-widget",
|
|
17220
17220
|
title: "API管理",
|
|
17221
17221
|
plus: "",
|
|
@@ -17261,12 +17261,12 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17261
17261
|
"onUpdate:modelValue": C[1] || (C[1] = (x) => b.value = x)
|
|
17262
17262
|
}, {
|
|
17263
17263
|
default: E(() => [
|
|
17264
|
-
(v(!0), $(se, null,
|
|
17264
|
+
(v(!0), $(se, null, fe(p.value, (x, R) => (v(), A(l(cr), {
|
|
17265
17265
|
name: R,
|
|
17266
17266
|
title: `${R} (${x.length})`
|
|
17267
17267
|
}, {
|
|
17268
17268
|
default: E(() => [
|
|
17269
|
-
(v(!0), $(se, null,
|
|
17269
|
+
(v(!0), $(se, null, fe(x, (V) => (v(), A(l(Dt), {
|
|
17270
17270
|
key: V.id,
|
|
17271
17271
|
small: "",
|
|
17272
17272
|
title: V.name,
|
|
@@ -17334,14 +17334,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17334
17334
|
`)
|
|
17335
17335
|
}, s.value = !1, o.value = !0, a.value = !0), k.name === "remove" && n.project.value?.removeDeps(_);
|
|
17336
17336
|
};
|
|
17337
|
-
return (_, k) => (v(), A(l(
|
|
17337
|
+
return (_, k) => (v(), A(l(Pe), {
|
|
17338
17338
|
class: "v-deps-widget",
|
|
17339
17339
|
title: "依赖管理",
|
|
17340
17340
|
plus: "",
|
|
17341
17341
|
onPlus: m
|
|
17342
17342
|
}, {
|
|
17343
17343
|
default: E(() => [
|
|
17344
|
-
(v(!0), $(se, null,
|
|
17344
|
+
(v(!0), $(se, null, fe(l(t), (T) => (v(), A(l(Dt), {
|
|
17345
17345
|
key: T.package,
|
|
17346
17346
|
title: T.package,
|
|
17347
17347
|
subtitle: T.version,
|
|
@@ -17609,8 +17609,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17609
17609
|
I("span", {
|
|
17610
17610
|
class: Oe(`is-${l(S).position}`)
|
|
17611
17611
|
}, [
|
|
17612
|
-
re(
|
|
17613
|
-
I("i", null,
|
|
17612
|
+
re(te(l(S).model.name) + ": ", 1),
|
|
17613
|
+
I("i", null, te(l(S).model.id), 1)
|
|
17614
17614
|
], 2)
|
|
17615
17615
|
], 4)) : j("", !0),
|
|
17616
17616
|
l(w) ? (v(), $("div", {
|
|
@@ -17632,7 +17632,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17632
17632
|
description: "请新建或打开文件"
|
|
17633
17633
|
})),
|
|
17634
17634
|
l(c).state.outlineEnabled && l(C).length ? (v(), $("div", vk, [
|
|
17635
|
-
(v(!0), $(se, null,
|
|
17635
|
+
(v(!0), $(se, null, fe(l(C), (Z) => (v(), $("div", {
|
|
17636
17636
|
style: to(Z)
|
|
17637
17637
|
}, null, 4))), 256))
|
|
17638
17638
|
])) : j("", !0),
|
|
@@ -17684,7 +17684,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17684
17684
|
}, p = async (m) => t.submit(m, a.value), g = () => {
|
|
17685
17685
|
o.value?.itemRef.validate();
|
|
17686
17686
|
};
|
|
17687
|
-
return (m, b) => (v(), A(l(
|
|
17687
|
+
return (m, b) => (v(), A(l(Pe), {
|
|
17688
17688
|
title: t.title,
|
|
17689
17689
|
class: "v-sub-panel",
|
|
17690
17690
|
size: "small",
|
|
@@ -17693,7 +17693,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
17693
17693
|
onPlus: c
|
|
17694
17694
|
}, {
|
|
17695
17695
|
default: E(() => [
|
|
17696
|
-
(v(!0), $(se, null,
|
|
17696
|
+
(v(!0), $(se, null, fe(e.list, (h) => (v(), A(l(Dt), {
|
|
17697
17697
|
title: t.itemTitle(h),
|
|
17698
17698
|
border: "",
|
|
17699
17699
|
actions: h.actions ?? ["edit", "remove"],
|
|
@@ -18103,7 +18103,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18103
18103
|
const { current: t, context: n } = Ht(), o = P(
|
|
18104
18104
|
() => t.value?.apiMode === "composition"
|
|
18105
18105
|
);
|
|
18106
|
-
return (s, r) => (v(), A(l(
|
|
18106
|
+
return (s, r) => (v(), A(l(Me), {
|
|
18107
18107
|
class: "v-scripts-widget",
|
|
18108
18108
|
direction: "column",
|
|
18109
18109
|
fit: ""
|
|
@@ -18163,7 +18163,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18163
18163
|
const d = (n.items || []).map((f) => a(f.label || f.name)).sort((f, u) => u - f)[0];
|
|
18164
18164
|
return d ? d * 6 + 24 : 100;
|
|
18165
18165
|
});
|
|
18166
|
-
return (c, d) => (v(), A(l(
|
|
18166
|
+
return (c, d) => (v(), A(l(Pe), {
|
|
18167
18167
|
title: n.title,
|
|
18168
18168
|
class: "v-sub-panel",
|
|
18169
18169
|
size: "small",
|
|
@@ -18179,7 +18179,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18179
18179
|
}, ["prevent", "stop"]), ["enter"]))
|
|
18180
18180
|
}, {
|
|
18181
18181
|
default: E(() => [
|
|
18182
|
-
(v(!0), $(se, null,
|
|
18182
|
+
(v(!0), $(se, null, fe(n.items, (f) => (v(), A(l(Ne), St({ ref_for: !0 }, f, {
|
|
18183
18183
|
key: `${f.name}_${n.node.id}`,
|
|
18184
18184
|
current: n.current,
|
|
18185
18185
|
context: n.context,
|
|
@@ -18217,7 +18217,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18217
18217
|
}, h = async (_) => {
|
|
18218
18218
|
await Mn("确定删除?") && f(_);
|
|
18219
18219
|
};
|
|
18220
|
-
return (_, k) => l(t) ? (v(), A(l(
|
|
18220
|
+
return (_, k) => l(t) ? (v(), A(l(Me), {
|
|
18221
18221
|
key: 0,
|
|
18222
18222
|
class: "v-properties-widget",
|
|
18223
18223
|
direction: "column",
|
|
@@ -18416,13 +18416,13 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18416
18416
|
const { name: b, modelValue: h } = m;
|
|
18417
18417
|
b === "edit" && d(h), b === "remove" && u(h);
|
|
18418
18418
|
};
|
|
18419
|
-
return (m, b) => (v(), A(l(
|
|
18419
|
+
return (m, b) => (v(), A(l(Me), {
|
|
18420
18420
|
class: "v-events-widget",
|
|
18421
18421
|
direction: "column",
|
|
18422
18422
|
fit: ""
|
|
18423
18423
|
}, {
|
|
18424
18424
|
default: E(() => [
|
|
18425
|
-
y(l(
|
|
18425
|
+
y(l(Pe), {
|
|
18426
18426
|
title: "组件事件",
|
|
18427
18427
|
class: "v-sub-panel",
|
|
18428
18428
|
size: "small",
|
|
@@ -18434,7 +18434,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18434
18434
|
"image-size": 50,
|
|
18435
18435
|
description: "该组件无自带事件"
|
|
18436
18436
|
})),
|
|
18437
|
-
(v(!0), $(se, null,
|
|
18437
|
+
(v(!0), $(se, null, fe(l(a), (h) => (v(), A(l(Dt), {
|
|
18438
18438
|
key: `component_${h.name}`,
|
|
18439
18439
|
title: h.name,
|
|
18440
18440
|
"model-value": h,
|
|
@@ -18448,14 +18448,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18448
18448
|
]),
|
|
18449
18449
|
_: 1
|
|
18450
18450
|
}),
|
|
18451
|
-
y(l(
|
|
18451
|
+
y(l(Pe), {
|
|
18452
18452
|
title: "鼠标事件",
|
|
18453
18453
|
class: "v-sub-panel",
|
|
18454
18454
|
size: "small",
|
|
18455
18455
|
fit: !1
|
|
18456
18456
|
}, {
|
|
18457
18457
|
default: E(() => [
|
|
18458
|
-
(v(!0), $(se, null,
|
|
18458
|
+
(v(!0), $(se, null, fe(l(s), (h) => (v(), A(l(Dt), {
|
|
18459
18459
|
key: `mouse_${h.name}`,
|
|
18460
18460
|
title: h.name,
|
|
18461
18461
|
"model-value": h,
|
|
@@ -18469,7 +18469,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18469
18469
|
]),
|
|
18470
18470
|
_: 1
|
|
18471
18471
|
}),
|
|
18472
|
-
y(l(
|
|
18472
|
+
y(l(Pe), {
|
|
18473
18473
|
title: "键盘事件",
|
|
18474
18474
|
class: "v-sub-panel",
|
|
18475
18475
|
size: "small",
|
|
@@ -18477,7 +18477,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18477
18477
|
fit: !1
|
|
18478
18478
|
}, {
|
|
18479
18479
|
default: E(() => [
|
|
18480
|
-
(v(!0), $(se, null,
|
|
18480
|
+
(v(!0), $(se, null, fe(l(r), (h) => (v(), A(l(Dt), {
|
|
18481
18481
|
key: `keyboard_${h.name}`,
|
|
18482
18482
|
title: h.name,
|
|
18483
18483
|
"model-value": h,
|
|
@@ -18516,7 +18516,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18516
18516
|
const i = (n.value?.getEditor()).getValue();
|
|
18517
18517
|
s(i), ot("保存成功");
|
|
18518
18518
|
};
|
|
18519
|
-
return (a, i) => (v(), A(l(
|
|
18519
|
+
return (a, i) => (v(), A(l(Pe), {
|
|
18520
18520
|
class: "v-css-widget v-sub-panel",
|
|
18521
18521
|
title: "lang:css scoped",
|
|
18522
18522
|
size: "small",
|
|
@@ -18561,13 +18561,13 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18561
18561
|
branchVisiable: T,
|
|
18562
18562
|
hasNextBranch: S
|
|
18563
18563
|
} = vv(o), O = (w) => w.arg ? typeof w.arg == "string" ? w.arg : nr(w.arg, {}) : "modelValue";
|
|
18564
|
-
return (w, C) => (v(), A(l(
|
|
18564
|
+
return (w, C) => (v(), A(l(Me), {
|
|
18565
18565
|
class: "v-directives-widget",
|
|
18566
18566
|
direction: "column",
|
|
18567
18567
|
fit: ""
|
|
18568
18568
|
}, {
|
|
18569
18569
|
default: E(() => [
|
|
18570
|
-
y(l(
|
|
18570
|
+
y(l(Pe), {
|
|
18571
18571
|
class: "v-sub-panel",
|
|
18572
18572
|
title: "内置指令",
|
|
18573
18573
|
size: "small",
|
|
@@ -18581,7 +18581,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18581
18581
|
}, ["prevent", "stop"]), ["enter"]))
|
|
18582
18582
|
}, {
|
|
18583
18583
|
default: E(() => [
|
|
18584
|
-
y(l(
|
|
18584
|
+
y(l(Ne), {
|
|
18585
18585
|
name: "vIf",
|
|
18586
18586
|
label: "v-if",
|
|
18587
18587
|
setters: "ExpressionSetter",
|
|
@@ -18591,7 +18591,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18591
18591
|
disabled: l(S),
|
|
18592
18592
|
onChange: l(g)
|
|
18593
18593
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"]),
|
|
18594
|
-
l(T) ? (v(), A(l(
|
|
18594
|
+
l(T) ? (v(), A(l(Ne), {
|
|
18595
18595
|
key: 0,
|
|
18596
18596
|
name: "vElseIf",
|
|
18597
18597
|
label: "v-else-if",
|
|
@@ -18602,7 +18602,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18602
18602
|
disabled: l(S),
|
|
18603
18603
|
onChange: l(g)
|
|
18604
18604
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"])) : j("", !0),
|
|
18605
|
-
l(T) ? (v(), A(l(
|
|
18605
|
+
l(T) ? (v(), A(l(Ne), {
|
|
18606
18606
|
key: 1,
|
|
18607
18607
|
name: "vElse",
|
|
18608
18608
|
label: "v-else",
|
|
@@ -18613,7 +18613,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18613
18613
|
disabled: l(S),
|
|
18614
18614
|
onChange: l(g)
|
|
18615
18615
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"])) : j("", !0),
|
|
18616
|
-
y(l(
|
|
18616
|
+
y(l(Ne), {
|
|
18617
18617
|
name: "vShow",
|
|
18618
18618
|
label: "v-show",
|
|
18619
18619
|
setters: "ExpressionSetter",
|
|
@@ -18622,7 +18622,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18622
18622
|
value: l(i).value,
|
|
18623
18623
|
onChange: l(g)
|
|
18624
18624
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
18625
|
-
y(l(
|
|
18625
|
+
y(l(Ne), {
|
|
18626
18626
|
name: "vBind",
|
|
18627
18627
|
label: "v-bind",
|
|
18628
18628
|
setters: "ExpressionSetter",
|
|
@@ -18631,7 +18631,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18631
18631
|
value: l(c).value,
|
|
18632
18632
|
onChange: l(g)
|
|
18633
18633
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
18634
|
-
y(l(
|
|
18634
|
+
y(l(Ne), {
|
|
18635
18635
|
name: "vHtml",
|
|
18636
18636
|
label: "v-html",
|
|
18637
18637
|
setters: "ExpressionSetter",
|
|
@@ -18646,7 +18646,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18646
18646
|
]),
|
|
18647
18647
|
_: 1
|
|
18648
18648
|
}),
|
|
18649
|
-
y(l(
|
|
18649
|
+
y(l(Pe), {
|
|
18650
18650
|
class: "v-sub-panel",
|
|
18651
18651
|
title: "循环",
|
|
18652
18652
|
size: "small",
|
|
@@ -18660,7 +18660,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18660
18660
|
}, ["prevent", "stop"]), ["enter"]))
|
|
18661
18661
|
}, {
|
|
18662
18662
|
default: E(() => [
|
|
18663
|
-
y(l(
|
|
18663
|
+
y(l(Ne), {
|
|
18664
18664
|
name: "value",
|
|
18665
18665
|
label: "循环数据",
|
|
18666
18666
|
setters: "ExpressionSetter",
|
|
@@ -18669,7 +18669,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18669
18669
|
value: l(d).value,
|
|
18670
18670
|
onChange: l(m)
|
|
18671
18671
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
18672
|
-
y(l(
|
|
18672
|
+
y(l(Ne), {
|
|
18673
18673
|
name: "item",
|
|
18674
18674
|
label: "迭代变量名",
|
|
18675
18675
|
setters: {
|
|
@@ -18682,7 +18682,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18682
18682
|
disabled: !l(d).value,
|
|
18683
18683
|
onChange: l(m)
|
|
18684
18684
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"]),
|
|
18685
|
-
y(l(
|
|
18685
|
+
y(l(Ne), {
|
|
18686
18686
|
name: "index",
|
|
18687
18687
|
label: "索引变量名",
|
|
18688
18688
|
setters: {
|
|
@@ -18701,14 +18701,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18701
18701
|
]),
|
|
18702
18702
|
_: 1
|
|
18703
18703
|
}),
|
|
18704
|
-
y(l(
|
|
18704
|
+
y(l(Pe), {
|
|
18705
18705
|
class: "v-sub-panel",
|
|
18706
18706
|
title: "双向绑定",
|
|
18707
18707
|
size: "small",
|
|
18708
18708
|
fit: !1
|
|
18709
18709
|
}, {
|
|
18710
18710
|
default: E(() => [
|
|
18711
|
-
(v(!0), $(se, null,
|
|
18711
|
+
(v(!0), $(se, null, fe(l(u), (x, R) => (v(), A(l(Pe), {
|
|
18712
18712
|
card: "",
|
|
18713
18713
|
border: "",
|
|
18714
18714
|
class: "v-sub-panel",
|
|
@@ -18725,7 +18725,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18725
18725
|
}, ["prevent", "stop"]), ["enter"]))
|
|
18726
18726
|
}, {
|
|
18727
18727
|
default: E(() => [
|
|
18728
|
-
y(l(
|
|
18728
|
+
y(l(Ne), {
|
|
18729
18729
|
name: R.toString(),
|
|
18730
18730
|
label: "绑定变量",
|
|
18731
18731
|
setters: "ExpressionSetter",
|
|
@@ -18748,7 +18748,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18748
18748
|
]),
|
|
18749
18749
|
_: 1
|
|
18750
18750
|
}),
|
|
18751
|
-
y(l(
|
|
18751
|
+
y(l(Pe), {
|
|
18752
18752
|
class: "v-sub-panel",
|
|
18753
18753
|
title: "自定义指令",
|
|
18754
18754
|
size: "small",
|
|
@@ -18758,7 +18758,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18758
18758
|
onPlus: l(h)
|
|
18759
18759
|
}, {
|
|
18760
18760
|
default: E(() => [
|
|
18761
|
-
(v(!0), $(se, null,
|
|
18761
|
+
(v(!0), $(se, null, fe(l(p), (x, R) => (v(), A(l(Pe), {
|
|
18762
18762
|
key: x.id,
|
|
18763
18763
|
card: "",
|
|
18764
18764
|
border: "",
|
|
@@ -18778,7 +18778,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18778
18778
|
}, ["prevent", "stop"]), ["enter"]))
|
|
18779
18779
|
}, {
|
|
18780
18780
|
default: E(() => [
|
|
18781
|
-
y(l(
|
|
18781
|
+
y(l(Ne), {
|
|
18782
18782
|
name: "name",
|
|
18783
18783
|
label: "指令",
|
|
18784
18784
|
setters: "StringSetter",
|
|
@@ -18787,7 +18787,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18787
18787
|
value: x.name,
|
|
18788
18788
|
onChange: l(k)(x)
|
|
18789
18789
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
18790
|
-
y(l(
|
|
18790
|
+
y(l(Ne), {
|
|
18791
18791
|
name: "value",
|
|
18792
18792
|
label: "值",
|
|
18793
18793
|
setters: "ExpressionSetter",
|
|
@@ -18797,7 +18797,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18797
18797
|
disabled: !x.name,
|
|
18798
18798
|
onChange: l(k)(x)
|
|
18799
18799
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"]),
|
|
18800
|
-
y(l(
|
|
18800
|
+
y(l(Ne), {
|
|
18801
18801
|
name: "arg",
|
|
18802
18802
|
label: "参数",
|
|
18803
18803
|
setters: "StringSetter",
|
|
@@ -18807,7 +18807,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
18807
18807
|
disabled: !x.name,
|
|
18808
18808
|
onChange: l(k)(x)
|
|
18809
18809
|
}, null, 8, ["current", "context", "value", "disabled", "onChange"]),
|
|
18810
|
-
y(l(
|
|
18810
|
+
y(l(Ne), {
|
|
18811
18811
|
name: "modifiers",
|
|
18812
18812
|
label: "修饰符",
|
|
18813
18813
|
setters: "ObjectSetter",
|
|
@@ -19116,12 +19116,12 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19116
19116
|
}, 8, ["modelValue", "indeterminate"])
|
|
19117
19117
|
]),
|
|
19118
19118
|
default: E(() => [
|
|
19119
|
-
(v(!0), $(se, null,
|
|
19119
|
+
(v(!0), $(se, null, fe(i.value, ([p, g]) => (v(), A(l(Ra), {
|
|
19120
19120
|
key: p,
|
|
19121
19121
|
label: p
|
|
19122
19122
|
}, {
|
|
19123
19123
|
default: E(() => [
|
|
19124
|
-
(v(!0), $(se, null,
|
|
19124
|
+
(v(!0), $(se, null, fe(g, (m) => (v(), A(l(Cr), {
|
|
19125
19125
|
key: m,
|
|
19126
19126
|
label: m,
|
|
19127
19127
|
value: m
|
|
@@ -19182,14 +19182,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19182
19182
|
}, X = (K) => {
|
|
19183
19183
|
t.value?.setExpose(K);
|
|
19184
19184
|
};
|
|
19185
|
-
return (K, J) => l(t) && l(n) ? (v(), A(l(
|
|
19185
|
+
return (K, J) => l(t) && l(n) ? (v(), A(l(Me), {
|
|
19186
19186
|
key: 0,
|
|
19187
19187
|
class: "v-defined-widget",
|
|
19188
19188
|
direction: "column",
|
|
19189
19189
|
fit: ""
|
|
19190
19190
|
}, {
|
|
19191
19191
|
default: E(() => [
|
|
19192
|
-
y(l(
|
|
19192
|
+
y(l(Pe), {
|
|
19193
19193
|
class: "v-sub-panel",
|
|
19194
19194
|
title: "定义属性",
|
|
19195
19195
|
size: "small",
|
|
@@ -19198,7 +19198,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19198
19198
|
onPlus: k
|
|
19199
19199
|
}, {
|
|
19200
19200
|
default: E(() => [
|
|
19201
|
-
(v(!0), $(se, null,
|
|
19201
|
+
(v(!0), $(se, null, fe(o.value, (N) => (v(), A(l(Dt), {
|
|
19202
19202
|
"model-value": N,
|
|
19203
19203
|
title: N.name,
|
|
19204
19204
|
border: "",
|
|
@@ -19221,7 +19221,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19221
19221
|
]),
|
|
19222
19222
|
_: 1
|
|
19223
19223
|
}),
|
|
19224
|
-
y(l(
|
|
19224
|
+
y(l(Pe), {
|
|
19225
19225
|
class: "v-sub-panel",
|
|
19226
19226
|
title: "定义事件",
|
|
19227
19227
|
size: "small",
|
|
@@ -19230,7 +19230,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19230
19230
|
onPlus: O
|
|
19231
19231
|
}, {
|
|
19232
19232
|
default: E(() => [
|
|
19233
|
-
(v(!0), $(se, null,
|
|
19233
|
+
(v(!0), $(se, null, fe(s.value, (N) => (v(), A(l(Dt), {
|
|
19234
19234
|
"model-value": N,
|
|
19235
19235
|
title: N.name,
|
|
19236
19236
|
border: "",
|
|
@@ -19253,7 +19253,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19253
19253
|
]),
|
|
19254
19254
|
_: 1
|
|
19255
19255
|
}),
|
|
19256
|
-
y(l(
|
|
19256
|
+
y(l(Pe), {
|
|
19257
19257
|
class: "v-sub-panel",
|
|
19258
19258
|
title: "定义插槽",
|
|
19259
19259
|
size: "small",
|
|
@@ -19262,7 +19262,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19262
19262
|
onPlus: x
|
|
19263
19263
|
}, {
|
|
19264
19264
|
default: E(() => [
|
|
19265
|
-
(v(!0), $(se, null,
|
|
19265
|
+
(v(!0), $(se, null, fe(r.value, (N) => (v(), A(l(Dt), {
|
|
19266
19266
|
"model-value": N,
|
|
19267
19267
|
title: N.name,
|
|
19268
19268
|
border: "",
|
|
@@ -19285,7 +19285,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19285
19285
|
]),
|
|
19286
19286
|
_: 1
|
|
19287
19287
|
}),
|
|
19288
|
-
y(l(
|
|
19288
|
+
y(l(Pe), {
|
|
19289
19289
|
class: "v-sub-panel",
|
|
19290
19290
|
title: "注入",
|
|
19291
19291
|
size: "small",
|
|
@@ -19294,7 +19294,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19294
19294
|
onPlus: U
|
|
19295
19295
|
}, {
|
|
19296
19296
|
default: E(() => [
|
|
19297
|
-
(v(!0), $(se, null,
|
|
19297
|
+
(v(!0), $(se, null, fe(a.value, (N) => (v(), A(l(Dt), {
|
|
19298
19298
|
"model-value": N,
|
|
19299
19299
|
title: N.name,
|
|
19300
19300
|
border: "",
|
|
@@ -19317,7 +19317,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19317
19317
|
]),
|
|
19318
19318
|
_: 1
|
|
19319
19319
|
}),
|
|
19320
|
-
y(l(
|
|
19320
|
+
y(l(Pe), {
|
|
19321
19321
|
class: "v-sub-panel",
|
|
19322
19322
|
title: "暴露",
|
|
19323
19323
|
size: "small",
|
|
@@ -19507,8 +19507,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19507
19507
|
onChange: _
|
|
19508
19508
|
}, {
|
|
19509
19509
|
option: E(({ option: w }) => [
|
|
19510
|
-
re(
|
|
19511
|
-
I("i", null, "[ " +
|
|
19510
|
+
re(te(w.label) + " ", 1),
|
|
19511
|
+
I("i", null, "[ " + te(w.data.name || w.data.code) + " ]", 1)
|
|
19512
19512
|
]),
|
|
19513
19513
|
_: 1
|
|
19514
19514
|
}, 8, ["disabled", "options"])),
|
|
@@ -19620,13 +19620,13 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19620
19620
|
const { name: u, modelValue: p } = f;
|
|
19621
19621
|
u === "edit" && c(p), u === "remove" && t.value?.removeDataSource(p.name);
|
|
19622
19622
|
};
|
|
19623
|
-
return (f, u) => (v(), A(l(
|
|
19623
|
+
return (f, u) => (v(), A(l(Me), {
|
|
19624
19624
|
class: "v-data-sources-widget",
|
|
19625
19625
|
direction: "column",
|
|
19626
19626
|
fit: ""
|
|
19627
19627
|
}, {
|
|
19628
19628
|
default: E(() => [
|
|
19629
|
-
y(l(
|
|
19629
|
+
y(l(Pe), {
|
|
19630
19630
|
title: "请求方法",
|
|
19631
19631
|
class: "v-sub-panel",
|
|
19632
19632
|
size: "small",
|
|
@@ -19634,7 +19634,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19634
19634
|
onPlus: i
|
|
19635
19635
|
}, {
|
|
19636
19636
|
default: E(() => [
|
|
19637
|
-
(v(!0), $(se, null,
|
|
19637
|
+
(v(!0), $(se, null, fe(r.value, (p) => (v(), A(l(Dt), {
|
|
19638
19638
|
border: "",
|
|
19639
19639
|
title: p.name,
|
|
19640
19640
|
subtitle: p.label,
|
|
@@ -19807,7 +19807,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19807
19807
|
], d = (f, u) => {
|
|
19808
19808
|
n.value = u === "flex", t.setStyle("display", u), n.value || (t.setStyle("flex-direction", void 0), t.setStyle("justify-content", void 0), t.setStyle("align-items", void 0), t.setStyle("flex-wrap", void 0));
|
|
19809
19809
|
};
|
|
19810
|
-
return (f, u) => (v(), A(l(
|
|
19810
|
+
return (f, u) => (v(), A(l(Pe), {
|
|
19811
19811
|
title: "布局",
|
|
19812
19812
|
class: "v-sub-panel",
|
|
19813
19813
|
size: "small",
|
|
@@ -19820,7 +19820,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19820
19820
|
"label-width": "80px"
|
|
19821
19821
|
}, {
|
|
19822
19822
|
default: E(() => [
|
|
19823
|
-
y(l(
|
|
19823
|
+
y(l(Ne), {
|
|
19824
19824
|
name: "display",
|
|
19825
19825
|
label: "排布",
|
|
19826
19826
|
setters: { name: "TagSetter" },
|
|
@@ -19830,7 +19830,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19830
19830
|
onChange: d
|
|
19831
19831
|
}, null, 8, ["value"]),
|
|
19832
19832
|
n.value ? (v(), $(se, { key: 0 }, [
|
|
19833
|
-
y(l(
|
|
19833
|
+
y(l(Ne), {
|
|
19834
19834
|
name: "flex-direction",
|
|
19835
19835
|
label: "主轴方向",
|
|
19836
19836
|
setters: { name: "TagSetter" },
|
|
@@ -19839,7 +19839,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19839
19839
|
value: t.styleJson["flex-direction"],
|
|
19840
19840
|
onChange: t.setStyle
|
|
19841
19841
|
}, null, 8, ["value", "onChange"]),
|
|
19842
|
-
y(l(
|
|
19842
|
+
y(l(Ne), {
|
|
19843
19843
|
name: "justify-content",
|
|
19844
19844
|
label: "主轴对齐",
|
|
19845
19845
|
setters: { name: "TagSetter" },
|
|
@@ -19848,7 +19848,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19848
19848
|
value: t.styleJson["justify-content"],
|
|
19849
19849
|
onChange: t.setStyle
|
|
19850
19850
|
}, null, 8, ["value", "onChange"]),
|
|
19851
|
-
y(l(
|
|
19851
|
+
y(l(Ne), {
|
|
19852
19852
|
name: "align-items",
|
|
19853
19853
|
label: "辅轴对齐",
|
|
19854
19854
|
setters: { name: "TagSetter" },
|
|
@@ -19857,7 +19857,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19857
19857
|
value: t.styleJson["align-items"],
|
|
19858
19858
|
onChange: t.setStyle
|
|
19859
19859
|
}, null, 8, ["value", "onChange"]),
|
|
19860
|
-
y(l(
|
|
19860
|
+
y(l(Ne), {
|
|
19861
19861
|
name: "flex-wrap",
|
|
19862
19862
|
label: "换行模式",
|
|
19863
19863
|
setters: { name: "TagSetter" },
|
|
@@ -19867,7 +19867,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19867
19867
|
onChange: t.setStyle
|
|
19868
19868
|
}, null, 8, ["value", "onChange"])
|
|
19869
19869
|
], 64)) : j("", !0),
|
|
19870
|
-
y(l(
|
|
19870
|
+
y(l(Ne), {
|
|
19871
19871
|
name: "flex",
|
|
19872
19872
|
label: "flex",
|
|
19873
19873
|
setters: { name: "TagSetter" },
|
|
@@ -19876,7 +19876,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19876
19876
|
value: t.styleJson.flex,
|
|
19877
19877
|
onChange: t.setStyle
|
|
19878
19878
|
}, null, 8, ["value", "onChange"]),
|
|
19879
|
-
y(l(
|
|
19879
|
+
y(l(Ne), {
|
|
19880
19880
|
name: "align-self",
|
|
19881
19881
|
label: "align-self",
|
|
19882
19882
|
setters: { name: "TagSetter" },
|
|
@@ -19910,12 +19910,12 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19910
19910
|
const d = (n.value?.getEditor()).getValue();
|
|
19911
19911
|
a(d), ot("保存成功");
|
|
19912
19912
|
};
|
|
19913
|
-
return (c, d) => (v(), A(l(
|
|
19913
|
+
return (c, d) => (v(), A(l(Me), {
|
|
19914
19914
|
direction: "column",
|
|
19915
19915
|
fit: ""
|
|
19916
19916
|
}, {
|
|
19917
19917
|
default: E(() => [
|
|
19918
|
-
y(l(
|
|
19918
|
+
y(l(Pe), {
|
|
19919
19919
|
class: "v-css-widget v-sub-panel",
|
|
19920
19920
|
title: "JSON",
|
|
19921
19921
|
size: "small",
|
|
@@ -19966,14 +19966,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19966
19966
|
return (g, m) => (v(), $("div", Gk, [
|
|
19967
19967
|
m[4] || (m[4] = I("div", { class: "v-spacing-input__modal" }, null, -1)),
|
|
19968
19968
|
I("div", Jk, [
|
|
19969
|
-
y(l(
|
|
19969
|
+
y(l(Me), {
|
|
19970
19970
|
class: "v-spacing-input__body",
|
|
19971
19971
|
ref_key: "bodyRef",
|
|
19972
19972
|
ref: a,
|
|
19973
19973
|
direction: "column"
|
|
19974
19974
|
}, {
|
|
19975
19975
|
default: E(() => [
|
|
19976
|
-
y(l(
|
|
19976
|
+
y(l(Me), null, {
|
|
19977
19977
|
default: E(() => [
|
|
19978
19978
|
y(l(Tc), {
|
|
19979
19979
|
modelValue: i.value,
|
|
@@ -19987,9 +19987,9 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
19987
19987
|
]),
|
|
19988
19988
|
_: 1
|
|
19989
19989
|
}),
|
|
19990
|
-
y(l(
|
|
19990
|
+
y(l(Me), null, {
|
|
19991
19991
|
default: E(() => [
|
|
19992
|
-
r.value ? (v(), A(l(
|
|
19992
|
+
r.value ? (v(), A(l(Me), {
|
|
19993
19993
|
key: 0,
|
|
19994
19994
|
class: "v-spacing-input__auto",
|
|
19995
19995
|
width: "20%"
|
|
@@ -20001,23 +20001,23 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20001
20001
|
]),
|
|
20002
20002
|
_: 1
|
|
20003
20003
|
})) : j("", !0),
|
|
20004
|
-
y(l(
|
|
20004
|
+
y(l(Me), {
|
|
20005
20005
|
grow: "",
|
|
20006
20006
|
class: "v-spacing-input__values",
|
|
20007
20007
|
align: "center",
|
|
20008
20008
|
wrap: "wrap"
|
|
20009
20009
|
}, {
|
|
20010
20010
|
default: E(() => [
|
|
20011
|
-
(v(), $(se, null,
|
|
20011
|
+
(v(), $(se, null, fe(n, (b) => I("span", {
|
|
20012
20012
|
onClick: (h) => d(b)
|
|
20013
|
-
},
|
|
20013
|
+
}, te(b), 9, qk)), 64))
|
|
20014
20014
|
]),
|
|
20015
20015
|
_: 1
|
|
20016
20016
|
})
|
|
20017
20017
|
]),
|
|
20018
20018
|
_: 1
|
|
20019
20019
|
}),
|
|
20020
|
-
y(l(
|
|
20020
|
+
y(l(Me), null, {
|
|
20021
20021
|
default: E(() => [
|
|
20022
20022
|
y(l(Ae), {
|
|
20023
20023
|
size: "small",
|
|
@@ -20073,7 +20073,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20073
20073
|
}, p = (g) => {
|
|
20074
20074
|
d.value = g, f.value = t.styleJson[g], c.value = !0;
|
|
20075
20075
|
};
|
|
20076
|
-
return (g, m) => (v(), A(l(
|
|
20076
|
+
return (g, m) => (v(), A(l(Pe), {
|
|
20077
20077
|
title: "间距",
|
|
20078
20078
|
class: "v-sub-panel",
|
|
20079
20079
|
size: "small",
|
|
@@ -20219,19 +20219,19 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20219
20219
|
I("div", {
|
|
20220
20220
|
class: Oe(["spacing-edit margin-top", { "is-setting": t.styleJson["margin-top"] }]),
|
|
20221
20221
|
onClick: m[4] || (m[4] = (b) => p("margin-top"))
|
|
20222
|
-
},
|
|
20222
|
+
}, te(t.styleJson["margin-top"] || "-"), 3),
|
|
20223
20223
|
I("div", {
|
|
20224
20224
|
class: Oe(["spacing-edit margin-right", { "is-setting": t.styleJson["margin-right"] }]),
|
|
20225
20225
|
onClick: m[5] || (m[5] = (b) => p("margin-right"))
|
|
20226
|
-
},
|
|
20226
|
+
}, te(t.styleJson["margin-right"] || "-"), 3),
|
|
20227
20227
|
I("div", {
|
|
20228
20228
|
class: Oe(["spacing-edit margin-bottom", { "is-setting": t.styleJson["margin-bottom"] }]),
|
|
20229
20229
|
onClick: m[6] || (m[6] = (b) => p("margin-bottom"))
|
|
20230
|
-
},
|
|
20230
|
+
}, te(t.styleJson["margin-bottom"] || "-"), 3),
|
|
20231
20231
|
I("div", {
|
|
20232
20232
|
class: Oe(["spacing-edit margin-left", { "is-setting": t.styleJson["margin-left"] }]),
|
|
20233
20233
|
onClick: m[7] || (m[7] = (b) => p("margin-left"))
|
|
20234
|
-
},
|
|
20234
|
+
}, te(t.styleJson["margin-left"] || "-"), 3)
|
|
20235
20235
|
]),
|
|
20236
20236
|
I("div", {
|
|
20237
20237
|
ref_key: "inner",
|
|
@@ -20369,19 +20369,19 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20369
20369
|
I("div", {
|
|
20370
20370
|
class: Oe(["spacing-edit padding-top", { "is-setting": t.styleJson["padding-top"] }]),
|
|
20371
20371
|
onClick: m[12] || (m[12] = (b) => p("padding-top"))
|
|
20372
|
-
},
|
|
20372
|
+
}, te(t.styleJson["padding-top"] || "-"), 3),
|
|
20373
20373
|
I("div", {
|
|
20374
20374
|
class: Oe(["spacing-edit padding-right", { "is-setting": t.styleJson["padding-right"] }]),
|
|
20375
20375
|
onClick: m[13] || (m[13] = (b) => p("padding-right"))
|
|
20376
|
-
},
|
|
20376
|
+
}, te(t.styleJson["padding-right"] || "-"), 3),
|
|
20377
20377
|
I("div", {
|
|
20378
20378
|
class: Oe(["spacing-edit padding-bottom", { "is-setting": t.styleJson["padding-bottom"] }]),
|
|
20379
20379
|
onClick: m[14] || (m[14] = (b) => p("padding-bottom"))
|
|
20380
|
-
},
|
|
20380
|
+
}, te(t.styleJson["padding-bottom"] || "-"), 3),
|
|
20381
20381
|
I("div", {
|
|
20382
20382
|
class: Oe(["spacing-edit padding-left", { "is-setting": t.styleJson["padding-left"] }]),
|
|
20383
20383
|
onClick: m[15] || (m[15] = (b) => p("padding-left"))
|
|
20384
|
-
},
|
|
20384
|
+
}, te(t.styleJson["padding-left"] || "-"), 3)
|
|
20385
20385
|
], 512),
|
|
20386
20386
|
(v(), $("svg", bS, [...m[17] || (m[17] = [
|
|
20387
20387
|
I("text", {
|
|
@@ -20481,7 +20481,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20481
20481
|
]
|
|
20482
20482
|
}
|
|
20483
20483
|
];
|
|
20484
|
-
return (r, a) => (v(), A(l(
|
|
20484
|
+
return (r, a) => (v(), A(l(Pe), {
|
|
20485
20485
|
title: "尺寸",
|
|
20486
20486
|
class: "v-sub-panel v-",
|
|
20487
20487
|
size: "small",
|
|
@@ -20496,7 +20496,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20496
20496
|
inline: ""
|
|
20497
20497
|
}, {
|
|
20498
20498
|
default: E(() => [
|
|
20499
|
-
(v(), $(se, null,
|
|
20499
|
+
(v(), $(se, null, fe(s, (i) => y(l(Ne), {
|
|
20500
20500
|
name: i.name,
|
|
20501
20501
|
label: i.label,
|
|
20502
20502
|
setters: { name: i.setter },
|
|
@@ -20540,7 +20540,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20540
20540
|
}, p = () => {
|
|
20541
20541
|
r.value = !1, a.value = void 0, i.value = void 0;
|
|
20542
20542
|
};
|
|
20543
|
-
return (g, m) => (v(), A(l(
|
|
20543
|
+
return (g, m) => (v(), A(l(Pe), {
|
|
20544
20544
|
title: "定位",
|
|
20545
20545
|
class: "v-sub-panel",
|
|
20546
20546
|
size: "small",
|
|
@@ -20554,7 +20554,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20554
20554
|
size: "small"
|
|
20555
20555
|
}, {
|
|
20556
20556
|
default: E(() => [
|
|
20557
|
-
y(l(
|
|
20557
|
+
y(l(Ne), {
|
|
20558
20558
|
name: "position",
|
|
20559
20559
|
label: "定位",
|
|
20560
20560
|
setters: { name: "SelectSetter" },
|
|
@@ -20563,7 +20563,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20563
20563
|
value: t.styleJson.position,
|
|
20564
20564
|
onChange: t.setStyle
|
|
20565
20565
|
}, null, 8, ["value", "onChange"]),
|
|
20566
|
-
y(l(
|
|
20566
|
+
y(l(Ne), {
|
|
20567
20567
|
name: "inset",
|
|
20568
20568
|
label: " ",
|
|
20569
20569
|
setters: { name: "TagSetter" },
|
|
@@ -20711,19 +20711,19 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20711
20711
|
I("div", {
|
|
20712
20712
|
class: Oe(["spacing-edit padding-top", { "is-setting": t.styleJson.top }]),
|
|
20713
20713
|
onClick: m[4] || (m[4] = (b) => u("top"))
|
|
20714
|
-
},
|
|
20714
|
+
}, te(t.styleJson.top || f.value[0] || "-"), 3),
|
|
20715
20715
|
I("div", {
|
|
20716
20716
|
class: Oe(["spacing-edit padding-right", { "is-setting": t.styleJson.right }]),
|
|
20717
20717
|
onClick: m[5] || (m[5] = (b) => u("right"))
|
|
20718
|
-
},
|
|
20718
|
+
}, te(t.styleJson.right || f.value[1] || "-"), 3),
|
|
20719
20719
|
I("div", {
|
|
20720
20720
|
class: Oe(["spacing-edit padding-bottom", { "is-setting": t.styleJson.bottom }]),
|
|
20721
20721
|
onClick: m[6] || (m[6] = (b) => u("bottom"))
|
|
20722
|
-
},
|
|
20722
|
+
}, te(t.styleJson.bottom || f.value[2] || "-"), 3),
|
|
20723
20723
|
I("div", {
|
|
20724
20724
|
class: Oe(["spacing-edit padding-left", { "is-setting": t.styleJson.left }]),
|
|
20725
20725
|
onClick: m[7] || (m[7] = (b) => u("left"))
|
|
20726
|
-
},
|
|
20726
|
+
}, te(t.styleJson.left || f.value[3] || "-"), 3)
|
|
20727
20727
|
], 512),
|
|
20728
20728
|
r.value ? (v(), A(np, {
|
|
20729
20729
|
key: 0,
|
|
@@ -20738,7 +20738,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20738
20738
|
]),
|
|
20739
20739
|
_: 1
|
|
20740
20740
|
}),
|
|
20741
|
-
y(l(
|
|
20741
|
+
y(l(Ne), {
|
|
20742
20742
|
name: "z-index",
|
|
20743
20743
|
label: "层级",
|
|
20744
20744
|
setters: { name: "NumberSetter" },
|
|
@@ -20823,7 +20823,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20823
20823
|
{ label: "删除线", value: "line-through", svg: Kg },
|
|
20824
20824
|
{ label: "上划线", value: "overline", svg: Wg }
|
|
20825
20825
|
];
|
|
20826
|
-
return (a, i) => (v(), A(l(
|
|
20826
|
+
return (a, i) => (v(), A(l(Pe), {
|
|
20827
20827
|
title: "文本",
|
|
20828
20828
|
class: "v-sub-panel",
|
|
20829
20829
|
size: "small",
|
|
@@ -20838,7 +20838,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20838
20838
|
inline: ""
|
|
20839
20839
|
}, {
|
|
20840
20840
|
default: E(() => [
|
|
20841
|
-
(v(), $(se, null,
|
|
20841
|
+
(v(), $(se, null, fe(n, (c) => y(l(Ne), {
|
|
20842
20842
|
name: c.name,
|
|
20843
20843
|
label: c.label,
|
|
20844
20844
|
setters: { name: c.setter },
|
|
@@ -20855,7 +20855,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20855
20855
|
"label-width": "60px"
|
|
20856
20856
|
}, {
|
|
20857
20857
|
default: E(() => [
|
|
20858
|
-
y(l(
|
|
20858
|
+
y(l(Ne), {
|
|
20859
20859
|
name: "color",
|
|
20860
20860
|
label: "颜色",
|
|
20861
20861
|
setters: { name: "ColorSetter" },
|
|
@@ -20863,7 +20863,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20863
20863
|
value: t.styleJson.color,
|
|
20864
20864
|
onChange: e.setStyle
|
|
20865
20865
|
}, null, 8, ["value", "onChange"]),
|
|
20866
|
-
y(l(
|
|
20866
|
+
y(l(Ne), {
|
|
20867
20867
|
name: "text-align",
|
|
20868
20868
|
label: "对齐",
|
|
20869
20869
|
setters: { name: "TagSetter" },
|
|
@@ -20872,7 +20872,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20872
20872
|
value: t.styleJson["text-align"],
|
|
20873
20873
|
onChange: e.setStyle
|
|
20874
20874
|
}, null, 8, ["value", "onChange"]),
|
|
20875
|
-
y(l(
|
|
20875
|
+
y(l(Ne), {
|
|
20876
20876
|
name: "font-style",
|
|
20877
20877
|
label: "风格",
|
|
20878
20878
|
setters: { name: "TagSetter" },
|
|
@@ -20881,7 +20881,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20881
20881
|
value: t.styleJson["font-style"],
|
|
20882
20882
|
onChange: e.setStyle
|
|
20883
20883
|
}, null, 8, ["value", "onChange"]),
|
|
20884
|
-
y(l(
|
|
20884
|
+
y(l(Ne), {
|
|
20885
20885
|
name: "text-decoration",
|
|
20886
20886
|
label: "修饰",
|
|
20887
20887
|
setters: { name: "TagSetter" },
|
|
@@ -20928,7 +20928,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20928
20928
|
{ label: "覆盖", value: "cover" },
|
|
20929
20929
|
{ label: "填充", value: "contain" }
|
|
20930
20930
|
];
|
|
20931
|
-
return (c, d) => (v(), A(l(
|
|
20931
|
+
return (c, d) => (v(), A(l(Pe), {
|
|
20932
20932
|
title: "背景",
|
|
20933
20933
|
class: "v-sub-panel",
|
|
20934
20934
|
size: "small",
|
|
@@ -20941,7 +20941,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20941
20941
|
size: "small"
|
|
20942
20942
|
}, {
|
|
20943
20943
|
default: E(() => [
|
|
20944
|
-
y(l(
|
|
20944
|
+
y(l(Ne), {
|
|
20945
20945
|
name: "background-image",
|
|
20946
20946
|
label: "图片",
|
|
20947
20947
|
setters: { name: "ImageSetter" },
|
|
@@ -20949,7 +20949,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20949
20949
|
value: o(t.styleJson["background-image"]),
|
|
20950
20950
|
onChange: n
|
|
20951
20951
|
}, null, 8, ["value"]),
|
|
20952
|
-
y(l(
|
|
20952
|
+
y(l(Ne), {
|
|
20953
20953
|
name: "background-color",
|
|
20954
20954
|
label: "颜色",
|
|
20955
20955
|
setters: { name: "ColorSetter" },
|
|
@@ -20957,7 +20957,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20957
20957
|
value: t.styleJson["background-color"],
|
|
20958
20958
|
onChange: t.setStyle
|
|
20959
20959
|
}, null, 8, ["value", "onChange"]),
|
|
20960
|
-
y(l(
|
|
20960
|
+
y(l(Ne), {
|
|
20961
20961
|
name: "background-repeat",
|
|
20962
20962
|
label: "重复",
|
|
20963
20963
|
setters: { name: "TagSetter" },
|
|
@@ -20966,7 +20966,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20966
20966
|
options: s,
|
|
20967
20967
|
onChange: t.setStyle
|
|
20968
20968
|
}, null, 8, ["value", "onChange"]),
|
|
20969
|
-
y(l(
|
|
20969
|
+
y(l(Ne), {
|
|
20970
20970
|
name: "background-attachment",
|
|
20971
20971
|
label: "固定",
|
|
20972
20972
|
setters: { name: "RadioSetter" },
|
|
@@ -20975,7 +20975,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20975
20975
|
options: r,
|
|
20976
20976
|
onChange: t.setStyle
|
|
20977
20977
|
}, null, 8, ["value", "onChange"]),
|
|
20978
|
-
y(l(
|
|
20978
|
+
y(l(Ne), {
|
|
20979
20979
|
name: "background-position",
|
|
20980
20980
|
label: "位置",
|
|
20981
20981
|
setters: { name: "SectionSetter", props: { sections: 2 } },
|
|
@@ -20983,7 +20983,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20983
20983
|
value: t.styleJson["background-position"],
|
|
20984
20984
|
onChange: t.setStyle
|
|
20985
20985
|
}, null, 8, ["value", "onChange"]),
|
|
20986
|
-
y(l(
|
|
20986
|
+
y(l(Ne), {
|
|
20987
20987
|
name: "background-size",
|
|
20988
20988
|
label: "大小",
|
|
20989
20989
|
setters: { name: "SelectSetter" },
|
|
@@ -20992,7 +20992,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
20992
20992
|
options: i,
|
|
20993
20993
|
onChange: t.setStyle
|
|
20994
20994
|
}, null, 8, ["value", "onChange"]),
|
|
20995
|
-
y(l(
|
|
20995
|
+
y(l(Ne), {
|
|
20996
20996
|
name: "background-clip",
|
|
20997
20997
|
label: "裁剪",
|
|
20998
20998
|
setters: { name: "SelectSetter" },
|
|
@@ -21040,7 +21040,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21040
21040
|
{
|
|
21041
21041
|
immediate: !0
|
|
21042
21042
|
}
|
|
21043
|
-
), (i, c) => (v(), A(l(
|
|
21043
|
+
), (i, c) => (v(), A(l(Pe), {
|
|
21044
21044
|
title: "边框",
|
|
21045
21045
|
class: "v-sub-panel",
|
|
21046
21046
|
size: "small",
|
|
@@ -21053,7 +21053,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21053
21053
|
size: "small"
|
|
21054
21054
|
}, {
|
|
21055
21055
|
default: E(() => [
|
|
21056
|
-
y(l(
|
|
21056
|
+
y(l(Ne), {
|
|
21057
21057
|
name: "border-radius",
|
|
21058
21058
|
label: "圆角",
|
|
21059
21059
|
setters: { name: "SectionSetter", props: { sections: 4 } },
|
|
@@ -21061,7 +21061,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21061
21061
|
value: t.styleJson["border-radius"],
|
|
21062
21062
|
onChange: t.setStyle
|
|
21063
21063
|
}, null, 8, ["value", "onChange"]),
|
|
21064
|
-
y(l(
|
|
21064
|
+
y(l(Ne), {
|
|
21065
21065
|
name: "borders",
|
|
21066
21066
|
label: "边框",
|
|
21067
21067
|
setters: { name: "TagSetter" },
|
|
@@ -21071,7 +21071,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21071
21071
|
onChange: a
|
|
21072
21072
|
}, null, 8, ["value"]),
|
|
21073
21073
|
o.value ? (v(), $(se, { key: 0 }, [
|
|
21074
|
-
(v(), A(l(
|
|
21074
|
+
(v(), A(l(Ne), {
|
|
21075
21075
|
name: `${o.value}-width`,
|
|
21076
21076
|
key: `${o.value}-width`,
|
|
21077
21077
|
label: "宽度",
|
|
@@ -21080,7 +21080,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21080
21080
|
value: t.styleJson[`${o.value}-width`],
|
|
21081
21081
|
onChange: t.setStyle
|
|
21082
21082
|
}, null, 8, ["name", "value", "onChange"])),
|
|
21083
|
-
(v(), A(l(
|
|
21083
|
+
(v(), A(l(Ne), {
|
|
21084
21084
|
name: `${o.value}-style`,
|
|
21085
21085
|
key: `${o.value}-style`,
|
|
21086
21086
|
label: "样式",
|
|
@@ -21090,7 +21090,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21090
21090
|
value: t.styleJson[`${o.value}-style`],
|
|
21091
21091
|
onChange: t.setStyle
|
|
21092
21092
|
}, null, 8, ["name", "value", "onChange"])),
|
|
21093
|
-
(v(), A(l(
|
|
21093
|
+
(v(), A(l(Ne), {
|
|
21094
21094
|
name: `${o.value}-color`,
|
|
21095
21095
|
key: `${o.value}-color`,
|
|
21096
21096
|
label: "颜色",
|
|
@@ -21158,7 +21158,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21158
21158
|
i !== void 0 ? (Number(i) || 0) / 100 : void 0
|
|
21159
21159
|
);
|
|
21160
21160
|
}, r = () => Number(t.styleJson.opacity ?? 1) * 100;
|
|
21161
|
-
return (a, i) => (v(), A(l(
|
|
21161
|
+
return (a, i) => (v(), A(l(Pe), {
|
|
21162
21162
|
title: "效果",
|
|
21163
21163
|
class: "v-sub-panel",
|
|
21164
21164
|
size: "small",
|
|
@@ -21171,7 +21171,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21171
21171
|
size: "small"
|
|
21172
21172
|
}, {
|
|
21173
21173
|
default: E(() => [
|
|
21174
|
-
y(l(
|
|
21174
|
+
y(l(Ne), {
|
|
21175
21175
|
name: "opacity",
|
|
21176
21176
|
label: "透明度",
|
|
21177
21177
|
setters: {
|
|
@@ -21181,7 +21181,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21181
21181
|
value: r(),
|
|
21182
21182
|
onChange: s
|
|
21183
21183
|
}, null, 8, ["value"]),
|
|
21184
|
-
y(l(
|
|
21184
|
+
y(l(Ne), {
|
|
21185
21185
|
name: "box-shadow",
|
|
21186
21186
|
label: "阴影",
|
|
21187
21187
|
setters: { name: "SelectSetter" },
|
|
@@ -21190,7 +21190,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21190
21190
|
value: t.styleJson["box-shadow"],
|
|
21191
21191
|
onChange: t.setStyle
|
|
21192
21192
|
}, null, 8, ["value", "onChange"]),
|
|
21193
|
-
y(l(
|
|
21193
|
+
y(l(Ne), {
|
|
21194
21194
|
name: "cursor",
|
|
21195
21195
|
label: "光标",
|
|
21196
21196
|
setters: { name: "TagSetter" },
|
|
@@ -21223,14 +21223,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21223
21223
|
const f = o.value?.getPropValue("style") || {};
|
|
21224
21224
|
d !== void 0 && d !== "" && d !== null ? f[c] = d : delete f[c], o.value?.setProp("style", f);
|
|
21225
21225
|
};
|
|
21226
|
-
return (c, d) => (v(), A(l(
|
|
21226
|
+
return (c, d) => (v(), A(l(Me), {
|
|
21227
21227
|
class: "v-style-widget__wrapper",
|
|
21228
21228
|
direction: "column",
|
|
21229
21229
|
fit: "",
|
|
21230
21230
|
overflow: "auto"
|
|
21231
21231
|
}, {
|
|
21232
21232
|
default: E(() => [
|
|
21233
|
-
t.isStyleCodeMode ? (v(), A(Hk, { key: 0 })) : (v(), A(l(
|
|
21233
|
+
t.isStyleCodeMode ? (v(), A(Hk, { key: 0 })) : (v(), A(l(Me), {
|
|
21234
21234
|
key: `widget-style-${o.value?.id}`,
|
|
21235
21235
|
class: "v-style-widget",
|
|
21236
21236
|
overflow: a.value ? "hidden" : "auto",
|
|
@@ -21345,12 +21345,12 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21345
21345
|
"separator-icon": l(pm)
|
|
21346
21346
|
}, {
|
|
21347
21347
|
default: E(() => [
|
|
21348
|
-
(v(!0), $(se, null,
|
|
21348
|
+
(v(!0), $(se, null, fe(o.value, (c) => (v(), A(l(Dp), {
|
|
21349
21349
|
onClick: (d) => s(c),
|
|
21350
21350
|
onMouseover: (d) => r(c)
|
|
21351
21351
|
}, {
|
|
21352
21352
|
default: E(() => [
|
|
21353
|
-
re(
|
|
21353
|
+
re(te(c.name), 1)
|
|
21354
21354
|
]),
|
|
21355
21355
|
_: 2
|
|
21356
21356
|
}, 1032, ["onClick", "onMouseover"]))), 256))
|
|
@@ -21376,7 +21376,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21376
21376
|
et(d?.message);
|
|
21377
21377
|
}
|
|
21378
21378
|
};
|
|
21379
|
-
return (a, i) => (v(), A(l(
|
|
21379
|
+
return (a, i) => (v(), A(l(Pe), {
|
|
21380
21380
|
class: "v-schema-widget",
|
|
21381
21381
|
title: s.value,
|
|
21382
21382
|
subtitle: "手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",
|
|
@@ -21439,7 +21439,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21439
21439
|
immediate: !0,
|
|
21440
21440
|
deep: !0
|
|
21441
21441
|
}
|
|
21442
|
-
), (c, d) => (v(), A(l(
|
|
21442
|
+
), (c, d) => (v(), A(l(Pe), {
|
|
21443
21443
|
class: "v-raw-widget",
|
|
21444
21444
|
title: a.value,
|
|
21445
21445
|
subtitle: r.value,
|
|
@@ -21498,7 +21498,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21498
21498
|
const d = () => {
|
|
21499
21499
|
r?.close();
|
|
21500
21500
|
};
|
|
21501
|
-
return t({ refresh: i, reload: c }), (f, u) => (v(), A(l(
|
|
21501
|
+
return t({ refresh: i, reload: c }), (f, u) => (v(), A(l(Pe), {
|
|
21502
21502
|
class: "v-docs-widget",
|
|
21503
21503
|
size: "small",
|
|
21504
21504
|
fit: "",
|
|
@@ -21556,10 +21556,10 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21556
21556
|
_: 1
|
|
21557
21557
|
}, 8, ["value", "hidden"])
|
|
21558
21558
|
]),
|
|
21559
|
-
I("div", QS,
|
|
21559
|
+
I("div", QS, te(t.title), 1),
|
|
21560
21560
|
I("div", ex, [
|
|
21561
21561
|
g[0] || (g[0] = re(" 内核版本: ", -1)),
|
|
21562
|
-
I("span", null,
|
|
21562
|
+
I("span", null, te(l(Vr)), 1)
|
|
21563
21563
|
]),
|
|
21564
21564
|
I("div", tx, [
|
|
21565
21565
|
y(l(Ae), {
|
|
@@ -21586,8 +21586,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21586
21586
|
class: "v-about-widget__avatar"
|
|
21587
21587
|
}, null, 8, ["icon", "src"])
|
|
21588
21588
|
]),
|
|
21589
|
-
I("div", rx,
|
|
21590
|
-
I("div", sx, "ID: " +
|
|
21589
|
+
I("div", rx, te(i.value), 1),
|
|
21590
|
+
I("div", sx, "ID: " + te(c.value), 1),
|
|
21591
21591
|
I("div", ax, [
|
|
21592
21592
|
d.value ? (v(), A(l(Ae), {
|
|
21593
21593
|
key: 0,
|
|
@@ -21619,7 +21619,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21619
21619
|
const { project: t } = Tn(), n = (o) => {
|
|
21620
21620
|
t.value?.setConfig(o);
|
|
21621
21621
|
};
|
|
21622
|
-
return (o, s) => (v(), A(l(
|
|
21622
|
+
return (o, s) => (v(), A(l(Pe), {
|
|
21623
21623
|
class: "v-project-config-widget",
|
|
21624
21624
|
title: "母版设置"
|
|
21625
21625
|
}, {
|
|
@@ -21899,7 +21899,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21899
21899
|
const t = Ei, { project: n } = Tn(), o = (r) => (n.value?.uniConfig || {})[r], s = (r, a) => {
|
|
21900
21900
|
n.value?.setUniConfig(r, a);
|
|
21901
21901
|
};
|
|
21902
|
-
return (r, a) => (v(), A(l(
|
|
21902
|
+
return (r, a) => (v(), A(l(Pe), {
|
|
21903
21903
|
class: "v-uni-config-widget",
|
|
21904
21904
|
title: "UniApp 配置"
|
|
21905
21905
|
}, {
|
|
@@ -21974,7 +21974,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
21974
21974
|
"label-position": "top"
|
|
21975
21975
|
}, {
|
|
21976
21976
|
default: E(() => [
|
|
21977
|
-
(v(!0), $(se, null,
|
|
21977
|
+
(v(!0), $(se, null, fe(l(t), (i) => (v(), A(l(Kt), {
|
|
21978
21978
|
onKeydown: a[6] || (a[6] = Rt(rt(() => {
|
|
21979
21979
|
}, ["prevent"]), ["enter", "native"])),
|
|
21980
21980
|
label: i,
|
|
@@ -22009,7 +22009,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22009
22009
|
const s = n.skeleton?.getRegion("Workspace");
|
|
22010
22010
|
s && s.regionRef.openTab("Designer");
|
|
22011
22011
|
}
|
|
22012
|
-
}), (s, r) => (v(), A(l(
|
|
22012
|
+
}), (s, r) => (v(), A(l(Pe), {
|
|
22013
22013
|
class: "v-market-widget",
|
|
22014
22014
|
size: "small",
|
|
22015
22015
|
fit: "",
|
|
@@ -22073,7 +22073,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22073
22073
|
};
|
|
22074
22074
|
return t({
|
|
22075
22075
|
refreshTemplates: c
|
|
22076
|
-
}), (w, C) => un((v(), A(l(
|
|
22076
|
+
}), (w, C) => un((v(), A(l(Pe), {
|
|
22077
22077
|
class: "v-blocks-widget v-templates-widgets",
|
|
22078
22078
|
title: "模板",
|
|
22079
22079
|
subtitle: k.value,
|
|
@@ -22105,7 +22105,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22105
22105
|
"onUpdate:modelValue": C[1] || (C[1] = (x) => b.value = x)
|
|
22106
22106
|
}, {
|
|
22107
22107
|
default: E(() => [
|
|
22108
|
-
(v(!0), $(se, null,
|
|
22108
|
+
(v(!0), $(se, null, fe(_.value, (x, R) => (v(), A(l(cr), {
|
|
22109
22109
|
name: R,
|
|
22110
22110
|
title: `${R} (${x.length})`
|
|
22111
22111
|
}, {
|
|
@@ -22115,7 +22115,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22115
22115
|
gutter: 5
|
|
22116
22116
|
}, {
|
|
22117
22117
|
default: E(() => [
|
|
22118
|
-
(v(!0), $(se, null,
|
|
22118
|
+
(v(!0), $(se, null, fe(x, (V) => (v(), A(l(_s), {
|
|
22119
22119
|
key: V.id,
|
|
22120
22120
|
span: l(n)
|
|
22121
22121
|
}, {
|
|
@@ -22153,8 +22153,8 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22153
22153
|
fit: "contain"
|
|
22154
22154
|
}, null, 8, ["src"]),
|
|
22155
22155
|
I("div", gx, [
|
|
22156
|
-
I("span", mx,
|
|
22157
|
-
I("span", hx,
|
|
22156
|
+
I("span", mx, te(V.name), 1),
|
|
22157
|
+
I("span", hx, te(V.label), 1)
|
|
22158
22158
|
]),
|
|
22159
22159
|
I("div", vx, [
|
|
22160
22160
|
y(l(Ae), {
|
|
@@ -22362,7 +22362,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22362
22362
|
}, {
|
|
22363
22363
|
default: E(() => [
|
|
22364
22364
|
h[2] || (h[2] = re(" 立即开通 ", -1)),
|
|
22365
|
-
I("span", Vx,
|
|
22365
|
+
I("span", Vx, te(Number.parseInt(n.settings?.price)) + "元/月 ", 1)
|
|
22366
22366
|
]),
|
|
22367
22367
|
_: 1
|
|
22368
22368
|
}, 8, ["icon"]),
|
|
@@ -22491,7 +22491,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22491
22491
|
description: E(() => [
|
|
22492
22492
|
h[10] || (h[10] = I("div", null, "复制以下订单信息发送给客服", -1)),
|
|
22493
22493
|
I("div", Ux, [
|
|
22494
|
-
I("div", Bx,
|
|
22494
|
+
I("div", Bx, te(a.value), 1),
|
|
22495
22495
|
y(l(Ae), {
|
|
22496
22496
|
size: "small",
|
|
22497
22497
|
icon: l(Mc),
|
|
@@ -22511,7 +22511,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22511
22511
|
}),
|
|
22512
22512
|
I("div", zx, [
|
|
22513
22513
|
h[11] || (h[11] = I("strong", null, "提示:", -1)),
|
|
22514
|
-
re(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方" +
|
|
22514
|
+
re(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方" + te(parseInt(String(n.settings?.max || 0), 10)) + "百万tokens使用量。 ", 1)
|
|
22515
22515
|
])
|
|
22516
22516
|
]),
|
|
22517
22517
|
_: 1
|
|
@@ -22556,7 +22556,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22556
22556
|
_: 1
|
|
22557
22557
|
}),
|
|
22558
22558
|
e.topics.length ? (v(), $("div", Jx, [
|
|
22559
|
-
(v(!0), $(se, null,
|
|
22559
|
+
(v(!0), $(se, null, fe(e.topics, (a, i) => (v(), A(l(Dt), {
|
|
22560
22560
|
key: a.id,
|
|
22561
22561
|
index: i + 1,
|
|
22562
22562
|
title: a.title,
|
|
@@ -22709,7 +22709,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22709
22709
|
onChange: m
|
|
22710
22710
|
}, null, 544),
|
|
22711
22711
|
e.files.length ? (v(), $("div", Zx, [
|
|
22712
|
-
(v(!0), $(se, null,
|
|
22712
|
+
(v(!0), $(se, null, fe(e.files, (T) => (v(), $("div", {
|
|
22713
22713
|
key: T.id,
|
|
22714
22714
|
class: "file-item"
|
|
22715
22715
|
}, [
|
|
@@ -22718,7 +22718,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22718
22718
|
src: T.previewUrl,
|
|
22719
22719
|
class: "file-thumb"
|
|
22720
22720
|
}, null, 8, Qx)) : (v(), $("span", eC, "{ }")),
|
|
22721
|
-
I("span", tC,
|
|
22721
|
+
I("span", tC, te(T.name), 1),
|
|
22722
22722
|
T.recognizing ? (v(), $("span", nC, "识别中")) : T.error ? (v(), $("span", oC, "失败")) : j("", !0),
|
|
22723
22723
|
I("button", {
|
|
22724
22724
|
type: "button",
|
|
@@ -22784,7 +22784,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22784
22784
|
label: "自动",
|
|
22785
22785
|
value: "auto"
|
|
22786
22786
|
}),
|
|
22787
|
-
(v(!0), $(se, null,
|
|
22787
|
+
(v(!0), $(se, null, fe(e.models, (T) => (v(), A(l(Cr), {
|
|
22788
22788
|
key: T.value,
|
|
22789
22789
|
label: T.label,
|
|
22790
22790
|
value: T.value
|
|
@@ -22794,14 +22794,14 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22794
22794
|
}),
|
|
22795
22795
|
y(l(Ra), { label: "自定义模型" }, {
|
|
22796
22796
|
default: E(() => [
|
|
22797
|
-
(v(!0), $(se, null,
|
|
22797
|
+
(v(!0), $(se, null, fe(l(i).state.LLMs, (T) => (v(), A(l(Cr), {
|
|
22798
22798
|
key: T.id || T.model,
|
|
22799
22799
|
label: T.label,
|
|
22800
22800
|
value: T.id || T.model
|
|
22801
22801
|
}, {
|
|
22802
22802
|
default: E(() => [
|
|
22803
22803
|
I("div", aC, [
|
|
22804
|
-
I("span", null,
|
|
22804
|
+
I("span", null, te(T.label), 1),
|
|
22805
22805
|
I("span", iC, [
|
|
22806
22806
|
y(l(nn), {
|
|
22807
22807
|
size: "small",
|
|
@@ -22847,7 +22847,7 @@ const Zl = /* @__PURE__ */ tp(RE, [["render", VE]]), $E = ["theme"], ME = {
|
|
|
22847
22847
|
onClick: b
|
|
22848
22848
|
}, {
|
|
22849
22849
|
default: E(() => [
|
|
22850
|
-
re(
|
|
22850
|
+
re(te(e.hasTopic ? "发送" : "开始"), 1)
|
|
22851
22851
|
]),
|
|
22852
22852
|
_: 1
|
|
22853
22853
|
}, 8, ["icon", "disabled"]))
|
|
@@ -23229,15 +23229,15 @@ function dC() {
|
|
|
23229
23229
|
contains: [X]
|
|
23230
23230
|
}
|
|
23231
23231
|
]
|
|
23232
|
-
},
|
|
23232
|
+
}, De = {
|
|
23233
23233
|
scope: "title",
|
|
23234
23234
|
begin: C,
|
|
23235
23235
|
relevance: 0
|
|
23236
|
-
},
|
|
23236
|
+
}, Ue = {
|
|
23237
23237
|
scope: "title",
|
|
23238
23238
|
begin: x,
|
|
23239
23239
|
relevance: 0
|
|
23240
|
-
},
|
|
23240
|
+
}, Ke = {
|
|
23241
23241
|
// excludes method names from keyword processing
|
|
23242
23242
|
begin: "\\.\\s*" + x,
|
|
23243
23243
|
relevance: 0
|
|
@@ -23271,7 +23271,7 @@ function dC() {
|
|
|
23271
23271
|
HASH_COMMENT_MODE: Y,
|
|
23272
23272
|
IDENT_RE: C,
|
|
23273
23273
|
MATCH_NOTHING_RE: w,
|
|
23274
|
-
METHOD_GUARD:
|
|
23274
|
+
METHOD_GUARD: Ke,
|
|
23275
23275
|
NUMBER_MODE: H,
|
|
23276
23276
|
NUMBER_RE: R,
|
|
23277
23277
|
PHRASAL_WORDS_MODE: N,
|
|
@@ -23279,29 +23279,29 @@ function dC() {
|
|
|
23279
23279
|
REGEXP_MODE: ae,
|
|
23280
23280
|
RE_STARTERS_RE: F,
|
|
23281
23281
|
SHEBANG: Z,
|
|
23282
|
-
TITLE_MODE:
|
|
23282
|
+
TITLE_MODE: De,
|
|
23283
23283
|
UNDERSCORE_IDENT_RE: x,
|
|
23284
|
-
UNDERSCORE_TITLE_MODE:
|
|
23284
|
+
UNDERSCORE_TITLE_MODE: Ue
|
|
23285
23285
|
});
|
|
23286
|
-
function
|
|
23286
|
+
function xe(M, Q) {
|
|
23287
23287
|
M.input[M.index - 1] === "." && Q.ignoreMatch();
|
|
23288
23288
|
}
|
|
23289
|
-
function
|
|
23289
|
+
function qe(M, Q) {
|
|
23290
23290
|
M.className !== void 0 && (M.scope = M.className, delete M.className);
|
|
23291
23291
|
}
|
|
23292
|
-
function
|
|
23293
|
-
Q && M.beginKeywords && (M.begin = "\\b(" + M.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", M.__beforeBegin =
|
|
23292
|
+
function we(M, Q) {
|
|
23293
|
+
Q && M.beginKeywords && (M.begin = "\\b(" + M.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", M.__beforeBegin = xe, M.keywords = M.keywords || M.beginKeywords, delete M.beginKeywords, M.relevance === void 0 && (M.relevance = 0));
|
|
23294
23294
|
}
|
|
23295
|
-
function
|
|
23295
|
+
function He(M, Q) {
|
|
23296
23296
|
Array.isArray(M.illegal) && (M.illegal = _(...M.illegal));
|
|
23297
23297
|
}
|
|
23298
|
-
function
|
|
23298
|
+
function Le(M, Q) {
|
|
23299
23299
|
if (M.match) {
|
|
23300
23300
|
if (M.begin || M.end) throw new Error("begin & end are not supported with match");
|
|
23301
23301
|
M.begin = M.match, delete M.match;
|
|
23302
23302
|
}
|
|
23303
23303
|
}
|
|
23304
|
-
function
|
|
23304
|
+
function We(M, Q) {
|
|
23305
23305
|
M.relevance === void 0 && (M.relevance = 1);
|
|
23306
23306
|
}
|
|
23307
23307
|
const Yt = (M, Q) => {
|
|
@@ -23376,7 +23376,7 @@ function dC() {
|
|
|
23376
23376
|
be(M, M.begin, { key: "beginScope" }), M.begin = O(M.begin, { joinWith: "" });
|
|
23377
23377
|
}
|
|
23378
23378
|
}
|
|
23379
|
-
function
|
|
23379
|
+
function Xe(M) {
|
|
23380
23380
|
if (Array.isArray(M.end)) {
|
|
23381
23381
|
if (M.skip || M.excludeEnd || M.returnEnd)
|
|
23382
23382
|
throw Vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ie;
|
|
@@ -23389,7 +23389,7 @@ function dC() {
|
|
|
23389
23389
|
M.scope && typeof M.scope == "object" && M.scope !== null && (M.beginScope = M.scope, delete M.scope);
|
|
23390
23390
|
}
|
|
23391
23391
|
function Qt(M) {
|
|
23392
|
-
Ot(M), typeof M.beginScope == "string" && (M.beginScope = { _wrap: M.beginScope }), typeof M.endScope == "string" && (M.endScope = { _wrap: M.endScope }), Ve(M),
|
|
23392
|
+
Ot(M), typeof M.beginScope == "string" && (M.beginScope = { _wrap: M.beginScope }), typeof M.endScope == "string" && (M.endScope = { _wrap: M.endScope }), Ve(M), Xe(M);
|
|
23393
23393
|
}
|
|
23394
23394
|
function pr(M) {
|
|
23395
23395
|
function Q(he, me) {
|
|
@@ -23464,19 +23464,19 @@ function dC() {
|
|
|
23464
23464
|
);
|
|
23465
23465
|
if (he.isCompiled) return Ie;
|
|
23466
23466
|
[
|
|
23467
|
-
|
|
23467
|
+
qe,
|
|
23468
23468
|
// do this early so compiler extensions generally don't have to worry about
|
|
23469
23469
|
// the distinction between match/begin
|
|
23470
|
-
|
|
23470
|
+
Le,
|
|
23471
23471
|
Qt,
|
|
23472
23472
|
Yt
|
|
23473
23473
|
].forEach((xt) => xt(he, me)), M.compilerExtensions.forEach((xt) => xt(he, me)), he.__beforeBegin = null, [
|
|
23474
|
-
|
|
23474
|
+
we,
|
|
23475
23475
|
// do this later so compiler extensions that come earlier have access to the
|
|
23476
23476
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
23477
|
-
|
|
23477
|
+
He,
|
|
23478
23478
|
// default to 1 relevance if not specified
|
|
23479
|
-
|
|
23479
|
+
We
|
|
23480
23480
|
].forEach((xt) => xt(he, me)), he.isCompiled = !0;
|
|
23481
23481
|
let At = null;
|
|
23482
23482
|
return typeof he.keywords == "object" && he.keywords.$pattern && (he.keywords = Object.assign({}, he.keywords), At = he.keywords.$pattern, delete he.keywords.$pattern), At = At || /\w+/, he.keywords && (he.keywords = mn(he.keywords, M.case_insensitive)), Ie.keywordPatternRe = Q(At, !0), me && (he.begin || (he.begin = /\B|\b/), Ie.beginRe = Q(Ie.begin), !he.end && !he.endsWithParent && (he.end = /\B|\b/), he.end && (Ie.endRe = Q(Ie.end)), Ie.terminatorEnd = u(Ie.end) || "", he.endsWithParent && me.terminatorEnd && (Ie.terminatorEnd += (he.end ? "|" : "") + me.terminatorEnd)), he.illegal && (Ie.illegalRe = Q(
|
|
@@ -23535,27 +23535,27 @@ function dC() {
|
|
|
23535
23535
|
function At(oe) {
|
|
23536
23536
|
let Ee = oe.className + " ";
|
|
23537
23537
|
Ee += oe.parentNode ? oe.parentNode.className : "";
|
|
23538
|
-
const
|
|
23539
|
-
if (
|
|
23540
|
-
const
|
|
23541
|
-
return
|
|
23538
|
+
const Ge = me.languageDetectRe.exec(Ee);
|
|
23539
|
+
if (Ge) {
|
|
23540
|
+
const ee = sn(Ge[1]);
|
|
23541
|
+
return ee || (qn(yt.replace("{}", Ge[1])), qn("Falling back to no-highlight mode for this block.", oe)), ee ? Ge[1] : "no-highlight";
|
|
23542
23542
|
}
|
|
23543
|
-
return Ee.split(/\s+/).find((
|
|
23543
|
+
return Ee.split(/\s+/).find((ee) => Ie(ee) || sn(ee));
|
|
23544
23544
|
}
|
|
23545
|
-
function xt(oe, Ee,
|
|
23546
|
-
let
|
|
23547
|
-
typeof Ee == "object" ? (
|
|
23548
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
|
23545
|
+
function xt(oe, Ee, Ge) {
|
|
23546
|
+
let ee = "", pe = "";
|
|
23547
|
+
typeof Ee == "object" ? (ee = oe, Ge = Ee.ignoreIllegals, pe = Ee.language) : (rn("10.7.0", "highlight(lang, code, ...args) has been deprecated."), rn("10.7.0", `Please use highlight(code, options) instead.
|
|
23548
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), pe = oe, ee = Ee), Ge === void 0 && (Ge = !0);
|
|
23549
23549
|
const Re = {
|
|
23550
|
-
code:
|
|
23551
|
-
language:
|
|
23550
|
+
code: ee,
|
|
23551
|
+
language: pe
|
|
23552
23552
|
};
|
|
23553
23553
|
Go("before:highlight", Re);
|
|
23554
|
-
const _t = Re.result ? Re.result : Wn(Re.language, Re.code,
|
|
23554
|
+
const _t = Re.result ? Re.result : Wn(Re.language, Re.code, Ge);
|
|
23555
23555
|
return _t.code = Re.code, Go("after:highlight", _t), _t;
|
|
23556
23556
|
}
|
|
23557
|
-
function Wn(oe, Ee,
|
|
23558
|
-
const
|
|
23557
|
+
function Wn(oe, Ee, Ge, ee) {
|
|
23558
|
+
const pe = /* @__PURE__ */ Object.create(null);
|
|
23559
23559
|
function Re(ue, ke) {
|
|
23560
23560
|
return ue.keywords[ke];
|
|
23561
23561
|
}
|
|
@@ -23572,7 +23572,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23572
23572
|
const nt = In.case_insensitive ? ke[0].toLowerCase() : ke[0], Jt = Re($e, nt);
|
|
23573
23573
|
if (Jt) {
|
|
23574
23574
|
const [jn, yp] = Jt;
|
|
23575
|
-
if (Mt.addText(Fe), Fe = "",
|
|
23575
|
+
if (Mt.addText(Fe), Fe = "", pe[nt] = (pe[nt] || 0) + 1, pe[nt] <= Xs && (ts += yp), jn.startsWith("_"))
|
|
23576
23576
|
Fe += ke[0];
|
|
23577
23577
|
else {
|
|
23578
23578
|
const _p = In.classNameAliases[jn] || jn;
|
|
@@ -23676,7 +23676,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23676
23676
|
}
|
|
23677
23677
|
if (es = ke, ke.type === "begin")
|
|
23678
23678
|
return mp(ke);
|
|
23679
|
-
if (ke.type === "illegal" && !
|
|
23679
|
+
if (ke.type === "illegal" && !Ge) {
|
|
23680
23680
|
const nt = new Error('Illegal lexeme "' + Fe + '" for mode "' + ($e.scope || "<unnamed>") + '"');
|
|
23681
23681
|
throw nt.mode = $e, nt;
|
|
23682
23682
|
} else if (ke.type === "end") {
|
|
@@ -23695,7 +23695,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23695
23695
|
if (!In)
|
|
23696
23696
|
throw Vt(yt.replace("{}", oe)), new Error('Unknown language: "' + oe + '"');
|
|
23697
23697
|
const bp = pr(In);
|
|
23698
|
-
let na = "", $e =
|
|
23698
|
+
let na = "", $e = ee || bp;
|
|
23699
23699
|
const Yi = {}, Mt = new me.__emitter(me);
|
|
23700
23700
|
vp();
|
|
23701
23701
|
let st = "", ts = 0, wo = 0, oa = 0, ra = !1;
|
|
@@ -23761,11 +23761,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23761
23761
|
}
|
|
23762
23762
|
function zo(oe, Ee) {
|
|
23763
23763
|
Ee = Ee || me.languages || Object.keys(Q);
|
|
23764
|
-
const
|
|
23764
|
+
const Ge = gr(oe), ee = Ee.filter(sn).filter(vr).map(
|
|
23765
23765
|
(Gt) => Wn(Gt, oe, !1)
|
|
23766
23766
|
);
|
|
23767
|
-
|
|
23768
|
-
const
|
|
23767
|
+
ee.unshift(Ge);
|
|
23768
|
+
const pe = ee.sort((Gt, An) => {
|
|
23769
23769
|
if (Gt.relevance !== An.relevance) return An.relevance - Gt.relevance;
|
|
23770
23770
|
if (Gt.language && An.language) {
|
|
23771
23771
|
if (sn(Gt.language).supersetOf === An.language)
|
|
@@ -23774,20 +23774,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23774
23774
|
return -1;
|
|
23775
23775
|
}
|
|
23776
23776
|
return 0;
|
|
23777
|
-
}), [Re, _t] =
|
|
23777
|
+
}), [Re, _t] = pe, It = Re;
|
|
23778
23778
|
return It.secondBest = _t, It;
|
|
23779
23779
|
}
|
|
23780
|
-
function Ys(oe, Ee,
|
|
23781
|
-
const
|
|
23782
|
-
oe.classList.add("hljs"), oe.classList.add(`language-${
|
|
23780
|
+
function Ys(oe, Ee, Ge) {
|
|
23781
|
+
const ee = Ee && le[Ee] || Ge;
|
|
23782
|
+
oe.classList.add("hljs"), oe.classList.add(`language-${ee}`);
|
|
23783
23783
|
}
|
|
23784
23784
|
function mr(oe) {
|
|
23785
23785
|
let Ee = null;
|
|
23786
|
-
const
|
|
23787
|
-
if (Ie(
|
|
23786
|
+
const Ge = At(oe);
|
|
23787
|
+
if (Ie(Ge)) return;
|
|
23788
23788
|
if (Go(
|
|
23789
23789
|
"before:highlightElement",
|
|
23790
|
-
{ el: oe, language:
|
|
23790
|
+
{ el: oe, language: Ge }
|
|
23791
23791
|
), oe.dataset.highlighted) {
|
|
23792
23792
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", oe);
|
|
23793
23793
|
return;
|
|
@@ -23798,16 +23798,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23798
23798
|
oe.innerHTML
|
|
23799
23799
|
);
|
|
23800
23800
|
Ee = oe;
|
|
23801
|
-
const
|
|
23802
|
-
oe.innerHTML =
|
|
23803
|
-
language:
|
|
23801
|
+
const ee = Ee.textContent, pe = Ge ? xt(ee, { language: Ge, ignoreIllegals: !0 }) : zo(ee);
|
|
23802
|
+
oe.innerHTML = pe.value, oe.dataset.highlighted = "yes", Ys(oe, Ge, pe.language), oe.result = {
|
|
23803
|
+
language: pe.language,
|
|
23804
23804
|
// TODO: remove with version 11.0
|
|
23805
|
-
re:
|
|
23806
|
-
relevance:
|
|
23807
|
-
},
|
|
23808
|
-
language:
|
|
23809
|
-
relevance:
|
|
23810
|
-
}), Go("after:highlightElement", { el: oe, result:
|
|
23805
|
+
re: pe.relevance,
|
|
23806
|
+
relevance: pe.relevance
|
|
23807
|
+
}, pe.secondBest && (oe.secondBest = {
|
|
23808
|
+
language: pe.secondBest.language,
|
|
23809
|
+
relevance: pe.secondBest.relevance
|
|
23810
|
+
}), Go("after:highlightElement", { el: oe, result: pe, text: ee });
|
|
23811
23811
|
}
|
|
23812
23812
|
function Fo(oe) {
|
|
23813
23813
|
me = Kr(me, oe);
|
|
@@ -23830,17 +23830,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23830
23830
|
document.querySelectorAll(me.cssSelector).forEach(mr);
|
|
23831
23831
|
}
|
|
23832
23832
|
function ea(oe, Ee) {
|
|
23833
|
-
let
|
|
23833
|
+
let Ge = null;
|
|
23834
23834
|
try {
|
|
23835
|
-
|
|
23836
|
-
} catch (
|
|
23835
|
+
Ge = Ee(M);
|
|
23836
|
+
} catch (ee) {
|
|
23837
23837
|
if (Vt("Language definition for '{}' could not be registered.".replace("{}", oe)), bt)
|
|
23838
|
-
Vt(
|
|
23838
|
+
Vt(ee);
|
|
23839
23839
|
else
|
|
23840
|
-
throw
|
|
23841
|
-
|
|
23840
|
+
throw ee;
|
|
23841
|
+
Ge = he;
|
|
23842
23842
|
}
|
|
23843
|
-
|
|
23843
|
+
Ge.name || (Ge.name = oe), Q[oe] = Ge, Ge.rawDefinition = Ee.bind(null, M), Ge.aliases && hr(Ge.aliases, { languageName: oe });
|
|
23844
23844
|
}
|
|
23845
23845
|
function yo(oe) {
|
|
23846
23846
|
delete Q[oe];
|
|
@@ -23854,8 +23854,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23854
23854
|
return oe = (oe || "").toLowerCase(), Q[oe] || Q[le[oe]];
|
|
23855
23855
|
}
|
|
23856
23856
|
function hr(oe, { languageName: Ee }) {
|
|
23857
|
-
typeof oe == "string" && (oe = [oe]), oe.forEach((
|
|
23858
|
-
le[
|
|
23857
|
+
typeof oe == "string" && (oe = [oe]), oe.forEach((Ge) => {
|
|
23858
|
+
le[Ge.toLowerCase()] = Ee;
|
|
23859
23859
|
});
|
|
23860
23860
|
}
|
|
23861
23861
|
function vr(oe) {
|
|
@@ -23881,9 +23881,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = oe, te = Ee), He
|
|
|
23881
23881
|
Ee !== -1 && Ce.splice(Ee, 1);
|
|
23882
23882
|
}
|
|
23883
23883
|
function Go(oe, Ee) {
|
|
23884
|
-
const
|
|
23885
|
-
Ce.forEach(function(
|
|
23886
|
-
|
|
23884
|
+
const Ge = oe;
|
|
23885
|
+
Ce.forEach(function(ee) {
|
|
23886
|
+
ee[Ge] && ee[Ge](Ee);
|
|
23887
23887
|
});
|
|
23888
23888
|
}
|
|
23889
23889
|
function br(oe) {
|
|
@@ -25910,15 +25910,15 @@ const RC = {
|
|
|
25910
25910
|
}), (c, d) => e.plan || e.streamText || e.reasoningText || e.answer || e.error ? (v(), $("section", RC, [
|
|
25911
25911
|
I("div", DC, [
|
|
25912
25912
|
d[6] || (d[6] = I("span", { class: "assistant-avatar" }, "AI", -1)),
|
|
25913
|
-
I("strong", null,
|
|
25913
|
+
I("strong", null, te(e.answer ? "Architect 回复" : e.plan ? "执行计划" : e.error ? "规划失败" : "正在分析"), 1),
|
|
25914
25914
|
e.plan ? (v(), $("span", {
|
|
25915
25915
|
key: 0,
|
|
25916
25916
|
class: Oe(["safety", e.plan.safety])
|
|
25917
|
-
},
|
|
25917
|
+
}, te(o.value), 3)) : j("", !0)
|
|
25918
25918
|
]),
|
|
25919
25919
|
I("div", NC, [
|
|
25920
25920
|
e.error ? (v(), $("div", PC, [
|
|
25921
|
-
I("span", null, "规划失败:" +
|
|
25921
|
+
I("span", null, "规划失败:" + te(e.error), 1),
|
|
25922
25922
|
e.retryable ? (v(), A(l(Ae), {
|
|
25923
25923
|
key: 0,
|
|
25924
25924
|
link: "",
|
|
@@ -25947,7 +25947,7 @@ const RC = {
|
|
|
25947
25947
|
onClick: d[2] || (d[2] = (...f) => c.$emit("view", ...f))
|
|
25948
25948
|
}, null, 8, ["content", "code"])) : j("", !0),
|
|
25949
25949
|
e.plan?.steps?.length ? (v(), $("ol", VC, [
|
|
25950
|
-
(v(!0), $(se, null,
|
|
25950
|
+
(v(!0), $(se, null, fe(e.plan.steps, (f) => (v(), $("li", {
|
|
25951
25951
|
key: f.id
|
|
25952
25952
|
}, [
|
|
25953
25953
|
y(Yo, {
|
|
@@ -25974,7 +25974,7 @@ const RC = {
|
|
|
25974
25974
|
ref_key: "reasoningContentRef",
|
|
25975
25975
|
ref: s,
|
|
25976
25976
|
class: "reasoning-content"
|
|
25977
|
-
},
|
|
25977
|
+
}, te(e.reasoningText), 513)) : j("", !0),
|
|
25978
25978
|
e.streamText ? (v(), $("div", {
|
|
25979
25979
|
key: 1,
|
|
25980
25980
|
ref_key: "streamContentRef",
|
|
@@ -26070,12 +26070,12 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26070
26070
|
}, [
|
|
26071
26071
|
I("header", LC, [
|
|
26072
26072
|
p[4] || (p[4] = I("span", { class: "step-chevron" }, "›", -1)),
|
|
26073
|
-
I("span", UC,
|
|
26074
|
-
I("span", BC,
|
|
26075
|
-
I("span", zC,
|
|
26073
|
+
I("span", UC, te(e.step.stepIdx + 1), 1),
|
|
26074
|
+
I("span", BC, te(e.step.step?.description), 1),
|
|
26075
|
+
I("span", zC, te(o.value), 1)
|
|
26076
26076
|
]),
|
|
26077
26077
|
e.step.error ? (v(), $("div", FC, [
|
|
26078
|
-
I("span", null,
|
|
26078
|
+
I("span", null, te(e.step.error), 1),
|
|
26079
26079
|
e.retryable ? (v(), A(l(Ae), {
|
|
26080
26080
|
key: 0,
|
|
26081
26081
|
link: "",
|
|
@@ -26096,14 +26096,14 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26096
26096
|
class: "turn-list"
|
|
26097
26097
|
}, {
|
|
26098
26098
|
default: E(() => [
|
|
26099
|
-
(v(!0), $(se, null,
|
|
26099
|
+
(v(!0), $(se, null, fe(e.step.turns, (g, m) => (v(), A(l(cr), {
|
|
26100
26100
|
key: g.turn,
|
|
26101
26101
|
name: m
|
|
26102
26102
|
}, {
|
|
26103
26103
|
title: E(() => [
|
|
26104
26104
|
I("div", HC, [
|
|
26105
|
-
I("span", GC,
|
|
26106
|
-
g.toolAction ? (v(), $("code", JC,
|
|
26105
|
+
I("span", GC, te(r(g.type)), 1),
|
|
26106
|
+
g.toolAction ? (v(), $("code", JC, te(g.toolAction), 1)) : (v(), $("span", qC, "第 " + te(g.turn + 1) + " 次响应", 1)),
|
|
26107
26107
|
p[6] || (p[6] = I("span", { class: "turn-spacer" }, null, -1)),
|
|
26108
26108
|
g.approval?.status === "pending" ? (v(), $("span", KC, " 待批准 ")) : j("", !0),
|
|
26109
26109
|
i(g) ? (v(), $("span", {
|
|
@@ -26144,7 +26144,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26144
26144
|
ref_for: !0,
|
|
26145
26145
|
ref_key: "turnContentRefs",
|
|
26146
26146
|
ref: d
|
|
26147
|
-
},
|
|
26147
|
+
}, te(g.reasoning), 513)
|
|
26148
26148
|
], 8, XC)) : j("", !0),
|
|
26149
26149
|
g.content ? (v(), $("details", {
|
|
26150
26150
|
key: `output-${e.detailsCommand}`,
|
|
@@ -26165,11 +26165,11 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26165
26165
|
], 8, YC)) : j("", !0),
|
|
26166
26166
|
g.toolParams ? (v(), $("div", ZC, [
|
|
26167
26167
|
p[9] || (p[9] = I("span", null, "工具参数", -1)),
|
|
26168
|
-
I("pre", null,
|
|
26168
|
+
I("pre", null, te(JSON.stringify(g.toolParams, null, 2)), 1)
|
|
26169
26169
|
])) : j("", !0),
|
|
26170
26170
|
g.toolResult ? (v(), $("div", QC, [
|
|
26171
26171
|
p[10] || (p[10] = I("span", null, "执行结果", -1)),
|
|
26172
|
-
I("pre", null,
|
|
26172
|
+
I("pre", null, te(l(jC)(
|
|
26173
26173
|
g.toolResult.result ?? g.toolResult.error
|
|
26174
26174
|
)), 1)
|
|
26175
26175
|
])) : j("", !0),
|
|
@@ -26177,10 +26177,10 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26177
26177
|
key: 4,
|
|
26178
26178
|
class: Oe(["approval-box", g.approval.risk])
|
|
26179
26179
|
}, [
|
|
26180
|
-
I("strong", null,
|
|
26180
|
+
I("strong", null, te(g.approval.risk === "destructive" ? "确认高风险操作" : "允许更新当前设计?"), 1),
|
|
26181
26181
|
I("p", null, [
|
|
26182
26182
|
p[11] || (p[11] = re(" Agent 请求执行 ", -1)),
|
|
26183
|
-
I("code", null,
|
|
26183
|
+
I("code", null, te(g.approval.action), 1)
|
|
26184
26184
|
]),
|
|
26185
26185
|
I("div", eT, [
|
|
26186
26186
|
y(l(Ae), {
|
|
@@ -26203,7 +26203,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26203
26203
|
_: 1
|
|
26204
26204
|
}, 8, ["onClick"])
|
|
26205
26205
|
])
|
|
26206
|
-
], 2)) : g.approval ? (v(), $("div", tT,
|
|
26206
|
+
], 2)) : g.approval ? (v(), $("div", tT, te(a(g)), 1)) : j("", !0)
|
|
26207
26207
|
])
|
|
26208
26208
|
]),
|
|
26209
26209
|
_: 2
|
|
@@ -26249,7 +26249,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26249
26249
|
]),
|
|
26250
26250
|
I("div", lT, [
|
|
26251
26251
|
e.error ? (v(), $("div", cT, [
|
|
26252
|
-
I("span", null, "总结生成失败:" +
|
|
26252
|
+
I("span", null, "总结生成失败:" + te(e.error), 1),
|
|
26253
26253
|
e.retryable ? (v(), A(l(Ae), {
|
|
26254
26254
|
key: 0,
|
|
26255
26255
|
link: "",
|
|
@@ -26272,7 +26272,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26272
26272
|
I("pre", {
|
|
26273
26273
|
ref_key: "reasoningPreRef",
|
|
26274
26274
|
ref: n
|
|
26275
|
-
},
|
|
26275
|
+
}, te(e.reasoning), 513)
|
|
26276
26276
|
], 8, uT)) : j("", !0),
|
|
26277
26277
|
e.text ? (v(), A(Yo, {
|
|
26278
26278
|
key: 2,
|
|
@@ -26316,11 +26316,11 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26316
26316
|
return (r, a) => (v(), $("article", {
|
|
26317
26317
|
class: Oe(["round-section", { latest: e.isLatest }])
|
|
26318
26318
|
}, [
|
|
26319
|
-
I("div", fT,
|
|
26319
|
+
I("div", fT, te(s.value), 1),
|
|
26320
26320
|
e.round.userMessage || e.round.attachments?.length ? (v(), $("div", gT, [
|
|
26321
|
-
re(
|
|
26321
|
+
re(te(e.round.userMessage) + " ", 1),
|
|
26322
26322
|
e.round.attachments?.length ? (v(), $("div", mT, [
|
|
26323
|
-
(v(!0), $(se, null,
|
|
26323
|
+
(v(!0), $(se, null, fe(e.round.attachments, (i) => (v(), $("div", {
|
|
26324
26324
|
key: i.id,
|
|
26325
26325
|
class: "attachment-item"
|
|
26326
26326
|
}, [
|
|
@@ -26333,7 +26333,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26333
26333
|
class: "attachment-thumb",
|
|
26334
26334
|
alt: i.name
|
|
26335
26335
|
}, null, 8, ["src", "preview-src-list", "alt"])) : (v(), $("span", hT, "{ }")),
|
|
26336
|
-
I("span", vT,
|
|
26336
|
+
I("span", vT, te(i.name), 1)
|
|
26337
26337
|
]))), 128))
|
|
26338
26338
|
])) : j("", !0)
|
|
26339
26339
|
])) : j("", !0),
|
|
@@ -26350,7 +26350,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26350
26350
|
onRetry: a[1] || (a[1] = (i) => r.$emit("retryArchitect"))
|
|
26351
26351
|
}, null, 8, ["plan", "answer", "stream-text", "reasoning-text", "error", "retryable", "code", "details-command"]),
|
|
26352
26352
|
e.round.editorResults.length ? (v(), $("div", bT, [
|
|
26353
|
-
(v(!0), $(se, null,
|
|
26353
|
+
(v(!0), $(se, null, fe(e.round.editorResults, (i) => (v(), A(oT, {
|
|
26354
26354
|
key: i.stepIdx,
|
|
26355
26355
|
step: i,
|
|
26356
26356
|
retryable: e.retryable,
|
|
@@ -26476,7 +26476,7 @@ const LC = { class: "step-header" }, UC = { class: "step-index" }, BC = { class:
|
|
|
26476
26476
|
})
|
|
26477
26477
|
]),
|
|
26478
26478
|
default: E(() => [
|
|
26479
|
-
y(l(
|
|
26479
|
+
y(l(Me), { fit: "" }, {
|
|
26480
26480
|
default: E(() => [
|
|
26481
26481
|
y(tc, {
|
|
26482
26482
|
ref_key: "editorRef",
|
|
@@ -27162,9 +27162,9 @@ ${ye}
|
|
|
27162
27162
|
N(W);
|
|
27163
27163
|
let ae;
|
|
27164
27164
|
H === 0 ? ae = Z : G.nextPrompt ? (ae = G.nextPrompt, G.nextPrompt = void 0) : ae = "继续", W.prompt = ae;
|
|
27165
|
-
let
|
|
27165
|
+
let De;
|
|
27166
27166
|
try {
|
|
27167
|
-
|
|
27167
|
+
De = await n({
|
|
27168
27168
|
topicId: h,
|
|
27169
27169
|
prompt: ae,
|
|
27170
27170
|
agent: "editor",
|
|
@@ -27173,143 +27173,143 @@ ${ye}
|
|
|
27173
27173
|
userId: _ || "",
|
|
27174
27174
|
userName: ""
|
|
27175
27175
|
});
|
|
27176
|
-
} catch (
|
|
27177
|
-
return J.error = de.chatCreateFailed(
|
|
27176
|
+
} catch (_e) {
|
|
27177
|
+
return J.error = de.chatCreateFailed(_e.message).text, J.done = !0, Co(J.error, R, O);
|
|
27178
27178
|
}
|
|
27179
|
-
const
|
|
27179
|
+
const Ue = Ws(De).chatId;
|
|
27180
27180
|
if (V()) return U(J);
|
|
27181
|
-
let
|
|
27181
|
+
let Ke;
|
|
27182
27182
|
try {
|
|
27183
|
-
if (
|
|
27183
|
+
if (Ke = await t(
|
|
27184
27184
|
h,
|
|
27185
|
-
|
|
27186
|
-
(
|
|
27187
|
-
(
|
|
27188
|
-
W.reasoning +=
|
|
27185
|
+
Ue,
|
|
27186
|
+
(we) => f(H, J, W, we),
|
|
27187
|
+
(we) => {
|
|
27188
|
+
W.reasoning += we, J.reasoning += we;
|
|
27189
27189
|
}
|
|
27190
27190
|
), V()) return U(J);
|
|
27191
|
-
const
|
|
27191
|
+
const _e = (H === 0 ? J.content : W.content) || "(空输出)", vt = Ke.usage?.total_tokens || 0;
|
|
27192
27192
|
R += vt;
|
|
27193
|
-
const
|
|
27194
|
-
if (
|
|
27195
|
-
W.type = "tool_call", W.content =
|
|
27196
|
-
|
|
27193
|
+
const xe = ip(_e);
|
|
27194
|
+
if (xe.type === "tool_call" && xe.tool) {
|
|
27195
|
+
W.type = "tool_call", W.content = _e, W.toolAction = xe.tool.action, W.toolParams = xe.tool.parameters, await p(
|
|
27196
|
+
Ue,
|
|
27197
27197
|
h,
|
|
27198
27198
|
_,
|
|
27199
|
-
|
|
27200
|
-
|
|
27199
|
+
_e,
|
|
27200
|
+
Ke,
|
|
27201
27201
|
vt
|
|
27202
27202
|
);
|
|
27203
|
-
const
|
|
27204
|
-
if (
|
|
27203
|
+
const we = Po(xe.tool.parameters), He = c(xe.tool.action);
|
|
27204
|
+
if (He && N(W), He && !await d(W, xe.tool.action, He)) {
|
|
27205
27205
|
W.toolResult = {
|
|
27206
27206
|
success: !1,
|
|
27207
27207
|
error: "用户拒绝执行",
|
|
27208
27208
|
duration: 0
|
|
27209
27209
|
}, await g(
|
|
27210
|
-
|
|
27210
|
+
Ue,
|
|
27211
27211
|
h,
|
|
27212
27212
|
_,
|
|
27213
|
-
|
|
27214
|
-
|
|
27213
|
+
xe.tool.action,
|
|
27214
|
+
xe.tool.parameters,
|
|
27215
27215
|
W.toolResult,
|
|
27216
27216
|
W.approval,
|
|
27217
27217
|
k.id
|
|
27218
27218
|
), N(W);
|
|
27219
|
-
const
|
|
27219
|
+
const We = F(
|
|
27220
27220
|
J,
|
|
27221
27221
|
de.userRejectedTool.text,
|
|
27222
|
-
|
|
27222
|
+
_e
|
|
27223
27223
|
);
|
|
27224
|
-
if (
|
|
27224
|
+
if (We) return We;
|
|
27225
27225
|
}
|
|
27226
27226
|
if (V()) return U(J);
|
|
27227
|
-
const
|
|
27227
|
+
const Le = await oc(
|
|
27228
27228
|
r(),
|
|
27229
|
-
|
|
27230
|
-
|
|
27229
|
+
xe.tool.action,
|
|
27230
|
+
we,
|
|
27231
27231
|
ac,
|
|
27232
27232
|
C
|
|
27233
27233
|
);
|
|
27234
27234
|
if (V()) return U(J);
|
|
27235
27235
|
if (W.toolResult = {
|
|
27236
|
-
success:
|
|
27237
|
-
result:
|
|
27238
|
-
error:
|
|
27239
|
-
duration:
|
|
27236
|
+
success: Le.success,
|
|
27237
|
+
result: Le.result,
|
|
27238
|
+
error: Le.error,
|
|
27239
|
+
duration: Le.duration
|
|
27240
27240
|
}, await g(
|
|
27241
|
-
|
|
27241
|
+
Ue,
|
|
27242
27242
|
h,
|
|
27243
27243
|
_,
|
|
27244
|
-
|
|
27245
|
-
|
|
27246
|
-
|
|
27244
|
+
xe.tool.action,
|
|
27245
|
+
xe.tool.parameters,
|
|
27246
|
+
Le,
|
|
27247
27247
|
W.approval,
|
|
27248
27248
|
k.id
|
|
27249
|
-
), N(W), k.type === "tool_call" &&
|
|
27250
|
-
if (
|
|
27251
|
-
const
|
|
27252
|
-
G.needsRefreshVerify = !0, G.nextPrompt = `O: refresh 检测到运行时错误${
|
|
27249
|
+
), N(W), k.type === "tool_call" && Le.success) {
|
|
27250
|
+
if (xe.tool.action === "refresh" && typeof Le.result == "string") {
|
|
27251
|
+
const We = await Ca(r());
|
|
27252
|
+
G.needsRefreshVerify = !0, G.nextPrompt = `O: refresh 检测到运行时错误${We}
|
|
27253
27253
|
|
|
27254
27254
|
错误信息:
|
|
27255
|
-
${
|
|
27255
|
+
${Le.result}
|
|
27256
27256
|
|
|
27257
27257
|
请根据上述错误信息和源码,分析错误原因并修复代码。`;
|
|
27258
27258
|
continue;
|
|
27259
27259
|
}
|
|
27260
|
-
if (k.toolName &&
|
|
27261
|
-
G.nextPrompt = rc(
|
|
27260
|
+
if (k.toolName && xe.tool.action !== k.toolName) {
|
|
27261
|
+
G.nextPrompt = rc(Le);
|
|
27262
27262
|
continue;
|
|
27263
27263
|
}
|
|
27264
|
-
return J.content =
|
|
27265
|
-
action:
|
|
27266
|
-
result:
|
|
27264
|
+
return J.content = _e, J.done = !0, Ta(_e, R, O, {
|
|
27265
|
+
action: xe.tool.action,
|
|
27266
|
+
result: Le.result
|
|
27267
27267
|
});
|
|
27268
27268
|
}
|
|
27269
|
-
G.nextPrompt = rc(
|
|
27269
|
+
G.nextPrompt = rc(Le);
|
|
27270
27270
|
continue;
|
|
27271
27271
|
}
|
|
27272
|
-
if (
|
|
27273
|
-
W.type = "vue_code", W.content =
|
|
27274
|
-
|
|
27272
|
+
if (xe.type === "vue_code" && xe.code) {
|
|
27273
|
+
W.type = "vue_code", W.content = _e, W.resultSummary = "Vue → DSL 已应用", await p(
|
|
27274
|
+
Ue,
|
|
27275
27275
|
h,
|
|
27276
27276
|
_,
|
|
27277
|
-
|
|
27278
|
-
|
|
27277
|
+
_e,
|
|
27278
|
+
Ke,
|
|
27279
27279
|
vt
|
|
27280
27280
|
);
|
|
27281
27281
|
try {
|
|
27282
|
-
const
|
|
27283
|
-
if (!
|
|
27284
|
-
const
|
|
27285
|
-
id:
|
|
27286
|
-
name:
|
|
27287
|
-
source:
|
|
27282
|
+
const we = r(), He = we.project.value?.toDsl();
|
|
27283
|
+
if (!He) throw new Error(de.projectNotReady.text);
|
|
27284
|
+
const Le = we.current.value?.toDsl(), We = await we.service.parseVue(He, {
|
|
27285
|
+
id: Le?.id || "ai_gen",
|
|
27286
|
+
name: Le?.name || "AiGenFile",
|
|
27287
|
+
source: xe.code
|
|
27288
27288
|
});
|
|
27289
|
-
if (Array.isArray(
|
|
27290
|
-
const gn =
|
|
27289
|
+
if (Array.isArray(We)) {
|
|
27290
|
+
const gn = We.map((Te) => `- ${String(Te)}`).join(`
|
|
27291
27291
|
`);
|
|
27292
27292
|
G.nextPrompt = `O: Vue 代码解析失败
|
|
27293
27293
|
错误信息:
|
|
27294
27294
|
${gn}
|
|
27295
27295
|
|
|
27296
|
-
请根据上述错误修改代码。常见限制:不支持顶层 const x = null、不支持 NullLiteral 等。请改用 ref()、reactive()、computed() 或函数声明。`, W.resultSummary = `解析错误 (${
|
|
27296
|
+
请根据上述错误修改代码。常见限制:不支持顶层 const x = null、不支持 NullLiteral 等。请改用 ref()、reactive()、computed() 或函数声明。`, W.resultSummary = `解析错误 (${We.length} 项),等待重试`;
|
|
27297
27297
|
continue;
|
|
27298
27298
|
}
|
|
27299
27299
|
const Yt = await q({
|
|
27300
27300
|
ti: W,
|
|
27301
|
-
content:
|
|
27302
|
-
edChatId:
|
|
27301
|
+
content: _e,
|
|
27302
|
+
edChatId: Ue,
|
|
27303
27303
|
action: "applyVue",
|
|
27304
27304
|
rejectMessage: de.userRejectedVue.text,
|
|
27305
|
-
engine:
|
|
27306
|
-
vueCode:
|
|
27307
|
-
dsl:
|
|
27305
|
+
engine: we,
|
|
27306
|
+
vueCode: xe.code,
|
|
27307
|
+
dsl: We,
|
|
27308
27308
|
getOriginalSource: async () => {
|
|
27309
27309
|
try {
|
|
27310
|
-
return await
|
|
27311
|
-
|
|
27312
|
-
|
|
27310
|
+
return await we.service.genVueContent(
|
|
27311
|
+
He,
|
|
27312
|
+
Le
|
|
27313
27313
|
) || "";
|
|
27314
27314
|
} catch {
|
|
27315
27315
|
return "";
|
|
@@ -27318,32 +27318,32 @@ ${gn}
|
|
|
27318
27318
|
});
|
|
27319
27319
|
if (Yt === "retry") continue;
|
|
27320
27320
|
return Yt;
|
|
27321
|
-
} catch (
|
|
27322
|
-
const
|
|
27323
|
-
return J.error =
|
|
27321
|
+
} catch (we) {
|
|
27322
|
+
const He = de.vueToDslFailed(we.message).text;
|
|
27323
|
+
return J.error = He, J.done = !0, Co(He, R, O, _e);
|
|
27324
27324
|
}
|
|
27325
27325
|
}
|
|
27326
|
-
if (
|
|
27327
|
-
W.type = "diff", W.content =
|
|
27328
|
-
|
|
27326
|
+
if (xe.type === "diff" && xe.patches && xe.patches.length > 0) {
|
|
27327
|
+
W.type = "diff", W.content = _e, W.resultSummary = `Diff 已应用: ${xe.patches.length} 处修改`, await p(
|
|
27328
|
+
Ue,
|
|
27329
27329
|
h,
|
|
27330
27330
|
_,
|
|
27331
|
-
|
|
27332
|
-
|
|
27331
|
+
_e,
|
|
27332
|
+
Ke,
|
|
27333
27333
|
vt
|
|
27334
27334
|
);
|
|
27335
27335
|
try {
|
|
27336
|
-
const
|
|
27337
|
-
if (!
|
|
27336
|
+
const we = r(), He = we.project.value?.toDsl(), Le = we.current.value?.toDsl();
|
|
27337
|
+
if (!He || !Le)
|
|
27338
27338
|
throw new Error(de.fileNotReady.text);
|
|
27339
|
-
const
|
|
27340
|
-
|
|
27341
|
-
|
|
27339
|
+
const We = await we.service.genVueContent(
|
|
27340
|
+
He,
|
|
27341
|
+
Le
|
|
27342
27342
|
);
|
|
27343
|
-
if (!
|
|
27344
|
-
let Yt =
|
|
27343
|
+
if (!We) throw new Error(de.sourceUnavailable.text);
|
|
27344
|
+
let Yt = We.replace(/\r\n/g, `
|
|
27345
27345
|
`);
|
|
27346
|
-
for (const mn of
|
|
27346
|
+
for (const mn of xe.patches) {
|
|
27347
27347
|
const dt = mn.search.replace(/\r\n/g, `
|
|
27348
27348
|
`), Ze = mn.replace.replace(/\r\n/g, `
|
|
27349
27349
|
`), qt = (Yt.match(new RegExp($T(dt), "g")) || []).length;
|
|
@@ -27353,7 +27353,7 @@ ${gn}
|
|
|
27353
27353
|
|
|
27354
27354
|
当前文件源码:
|
|
27355
27355
|
\`\`\`vue
|
|
27356
|
-
${
|
|
27356
|
+
${We}
|
|
27357
27357
|
\`\`\`
|
|
27358
27358
|
|
|
27359
27359
|
找不到以下代码:
|
|
@@ -27368,53 +27368,53 @@ ${mn.search}
|
|
|
27368
27368
|
|
|
27369
27369
|
当前文件源码:
|
|
27370
27370
|
\`\`\`vue
|
|
27371
|
-
${
|
|
27371
|
+
${We}
|
|
27372
27372
|
\`\`\`
|
|
27373
27373
|
|
|
27374
27374
|
请提供更具体的上下文,确保 SEARCH 块在当前文件中是唯一的。`, new Error("SEARCH_DUPLICATE");
|
|
27375
27375
|
Yt = Yt.replace(dt, Ze);
|
|
27376
27376
|
}
|
|
27377
|
-
const gn = await
|
|
27378
|
-
id:
|
|
27379
|
-
name:
|
|
27377
|
+
const gn = await we.service.parseVue(He, {
|
|
27378
|
+
id: Le?.id || "ai_gen",
|
|
27379
|
+
name: Le?.name || "AiGenFile",
|
|
27380
27380
|
source: Yt
|
|
27381
27381
|
}), Te = await q({
|
|
27382
27382
|
ti: W,
|
|
27383
|
-
content:
|
|
27384
|
-
edChatId:
|
|
27383
|
+
content: _e,
|
|
27384
|
+
edChatId: Ue,
|
|
27385
27385
|
action: "applyDiff",
|
|
27386
27386
|
rejectMessage: de.userRejectedDiff.text,
|
|
27387
|
-
engine:
|
|
27387
|
+
engine: we,
|
|
27388
27388
|
vueCode: Yt,
|
|
27389
27389
|
dsl: gn,
|
|
27390
|
-
getOriginalSource: async () =>
|
|
27390
|
+
getOriginalSource: async () => We
|
|
27391
27391
|
});
|
|
27392
27392
|
if (Te === "retry") continue;
|
|
27393
27393
|
return Te;
|
|
27394
|
-
} catch (
|
|
27395
|
-
if (
|
|
27394
|
+
} catch (we) {
|
|
27395
|
+
if (we.message === "SEARCH_NOT_FOUND" || we.message === "SEARCH_DUPLICATE")
|
|
27396
27396
|
continue;
|
|
27397
|
-
const
|
|
27398
|
-
return J.error =
|
|
27397
|
+
const He = de.diffApplyFailed(we.message).text;
|
|
27398
|
+
return J.error = He, J.done = !0, Co(He, R, O, _e);
|
|
27399
27399
|
}
|
|
27400
27400
|
}
|
|
27401
|
-
const
|
|
27402
|
-
return W.type =
|
|
27403
|
-
|
|
27401
|
+
const qe = xe.error === "未找到代码块" && _e.length > 0;
|
|
27402
|
+
return W.type = qe ? "text" : "unknown", W.content = _e, N(W), J.content = _e, J.done = !0, await p(
|
|
27403
|
+
Ue,
|
|
27404
27404
|
h,
|
|
27405
27405
|
_,
|
|
27406
|
-
|
|
27407
|
-
|
|
27406
|
+
_e,
|
|
27407
|
+
Ke,
|
|
27408
27408
|
vt,
|
|
27409
|
-
|
|
27409
|
+
qe ? "Success" : "Error"
|
|
27410
27410
|
), {
|
|
27411
|
-
content:
|
|
27412
|
-
error:
|
|
27411
|
+
content: _e,
|
|
27412
|
+
error: qe ? null : xe.error || "无法识别输出格式",
|
|
27413
27413
|
tokens: R,
|
|
27414
27414
|
duration: Date.now() - O
|
|
27415
27415
|
};
|
|
27416
|
-
} catch (
|
|
27417
|
-
return J.error =
|
|
27416
|
+
} catch (_e) {
|
|
27417
|
+
return J.error = _e.message, J.done = !0, Co(_e.message, R, O);
|
|
27418
27418
|
}
|
|
27419
27419
|
}
|
|
27420
27420
|
const Y = de.maxTurnsReached(sc).text;
|
|
@@ -27895,48 +27895,48 @@ function zT(e, t, n, o, s, r) {
|
|
|
27895
27895
|
return d.value ? W.trim() ? !0 : (h(de.promptEmpty), !1) : (h(de.tokenMissing), !1);
|
|
27896
27896
|
}
|
|
27897
27897
|
async function F(W, ae) {
|
|
27898
|
-
const
|
|
27899
|
-
if (!U(
|
|
27900
|
-
const
|
|
27898
|
+
const De = ae ?? V();
|
|
27899
|
+
if (!U(De)) return;
|
|
27900
|
+
const Ue = ae ? Qa(De) : i.value.trim(), Ke = s ? s() : [];
|
|
27901
27901
|
a.value = !0, c.value = !1, x = new AbortController();
|
|
27902
|
-
const
|
|
27903
|
-
|
|
27902
|
+
const _e = g();
|
|
27903
|
+
_e && (_e.state.streaming = !0);
|
|
27904
27904
|
let vt = !1;
|
|
27905
27905
|
try {
|
|
27906
27906
|
m();
|
|
27907
|
-
const { topicId:
|
|
27908
|
-
|
|
27909
|
-
|
|
27910
|
-
|
|
27907
|
+
const { topicId: xe, userId: qe, chatId: we, round: He } = await W(
|
|
27908
|
+
De,
|
|
27909
|
+
Ue,
|
|
27910
|
+
Ke
|
|
27911
27911
|
);
|
|
27912
27912
|
vt = !0, r?.(), i.value = "";
|
|
27913
|
-
const
|
|
27913
|
+
const Le = so("trace");
|
|
27914
27914
|
await T(
|
|
27915
|
-
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
|
|
27919
|
-
|
|
27920
|
-
|
|
27915
|
+
xe,
|
|
27916
|
+
we,
|
|
27917
|
+
qe,
|
|
27918
|
+
Le,
|
|
27919
|
+
De,
|
|
27920
|
+
He,
|
|
27921
27921
|
x.signal
|
|
27922
27922
|
), R = null;
|
|
27923
|
-
} catch (
|
|
27924
|
-
|
|
27923
|
+
} catch (xe) {
|
|
27924
|
+
xe?.name !== "AbortError" && !vt && (R = () => F(W, De)), h(de.error(xe.message));
|
|
27925
27925
|
} finally {
|
|
27926
|
-
|
|
27926
|
+
_e && (_e.state.streaming = !1), a.value = !1, c.value = !!x?.signal.aborted, x = null;
|
|
27927
27927
|
}
|
|
27928
27928
|
}
|
|
27929
|
-
async function Z() {
|
|
27929
|
+
async function Z(W) {
|
|
27930
27930
|
R = null;
|
|
27931
|
-
const
|
|
27932
|
-
await F(async (
|
|
27931
|
+
const ae = so("trace");
|
|
27932
|
+
await F(async (De, Ue, Ke) => {
|
|
27933
27933
|
C.value = [], h(de.creatingTopic);
|
|
27934
|
-
const
|
|
27934
|
+
const _e = e.access?.getData(), vt = {
|
|
27935
27935
|
model: f.value,
|
|
27936
27936
|
llm: JSON.stringify(
|
|
27937
27937
|
g()?.state.getLLMById(f.value) || void 0
|
|
27938
27938
|
),
|
|
27939
|
-
prompt:
|
|
27939
|
+
prompt: De,
|
|
27940
27940
|
project: JSON.stringify(g()?.project.value?.toDsl() || {}),
|
|
27941
27941
|
dsl: JSON.stringify(g()?.current.value?.toDsl() || {}),
|
|
27942
27942
|
source: "",
|
|
@@ -27945,15 +27945,15 @@ function zT(e, t, n, o, s, r) {
|
|
|
27945
27945
|
),
|
|
27946
27946
|
options: JSON.stringify({}),
|
|
27947
27947
|
agent: "architect",
|
|
27948
|
-
userId:
|
|
27949
|
-
userName:
|
|
27950
|
-
files:
|
|
27951
|
-
requestId:
|
|
27952
|
-
},
|
|
27953
|
-
p(
|
|
27954
|
-
const
|
|
27955
|
-
return
|
|
27956
|
-
});
|
|
27948
|
+
userId: _e?.id || "",
|
|
27949
|
+
userName: _e?.name || "",
|
|
27950
|
+
files: Ke.length ? JSON.stringify(Ke) : void 0,
|
|
27951
|
+
requestId: ae
|
|
27952
|
+
}, xe = await _(vt), { topicId: qe, userId: we, chatId: He } = ST(xe);
|
|
27953
|
+
p(qe), h(de.topicCreated(qe));
|
|
27954
|
+
const Le = Sn(dc(Ue));
|
|
27955
|
+
return Le.attachments = Ke, Le.promptSent = De, C.value.push(Le), Le.architectChatId = He, { topicId: qe, userId: we, chatId: He, round: Le };
|
|
27956
|
+
}, W);
|
|
27957
27957
|
}
|
|
27958
27958
|
async function X() {
|
|
27959
27959
|
R = null;
|
|
@@ -27964,26 +27964,26 @@ function zT(e, t, n, o, s, r) {
|
|
|
27964
27964
|
}
|
|
27965
27965
|
const ae = C.value[C.value.length - 1];
|
|
27966
27966
|
if (ae && BT(V())) {
|
|
27967
|
-
const
|
|
27968
|
-
if (
|
|
27969
|
-
h(de.resumingFromPrompt), await (
|
|
27967
|
+
const Ue = lp(C.value), Ke = ae.editorResults.some((_e) => _e.error) || !!ae.summaryError || !!ae.architectError;
|
|
27968
|
+
if (Ue || Ke) {
|
|
27969
|
+
h(de.resumingFromPrompt), await (Ke ? H("续跑") : ye());
|
|
27970
27970
|
return;
|
|
27971
27971
|
}
|
|
27972
27972
|
}
|
|
27973
|
-
const
|
|
27974
|
-
await F(async (
|
|
27973
|
+
const De = so("trace");
|
|
27974
|
+
await F(async (Ue, Ke, _e) => {
|
|
27975
27975
|
h(de.creatingArchitectChat);
|
|
27976
27976
|
const vt = {
|
|
27977
27977
|
topicId: W,
|
|
27978
|
-
prompt:
|
|
27978
|
+
prompt: Ue,
|
|
27979
27979
|
agent: "architect",
|
|
27980
27980
|
source: "",
|
|
27981
|
-
files:
|
|
27982
|
-
requestId:
|
|
27983
|
-
},
|
|
27984
|
-
|
|
27985
|
-
const
|
|
27986
|
-
return { topicId: W, userId:
|
|
27981
|
+
files: _e.length ? JSON.stringify(_e) : void 0,
|
|
27982
|
+
requestId: De
|
|
27983
|
+
}, xe = await k(vt), { chatId: qe } = Ws(xe), we = Sn(dc(Ke));
|
|
27984
|
+
we.attachments = _e, we.promptSent = Ue, C.value.push(we), we.architectChatId = qe;
|
|
27985
|
+
const Le = e.access?.getData()?.id || "";
|
|
27986
|
+
return { topicId: W, userId: Le, chatId: qe, round: we };
|
|
27987
27987
|
});
|
|
27988
27988
|
}
|
|
27989
27989
|
function K() {
|
|
@@ -27996,8 +27996,8 @@ function zT(e, t, n, o, s, r) {
|
|
|
27996
27996
|
ae && (ae.state.streaming = !0);
|
|
27997
27997
|
try {
|
|
27998
27998
|
m(), await W(x.signal);
|
|
27999
|
-
} catch (
|
|
28000
|
-
h(de.retryFailed(
|
|
27999
|
+
} catch (De) {
|
|
28000
|
+
h(de.retryFailed(De.message));
|
|
28001
28001
|
} finally {
|
|
28002
28002
|
ae && (ae.state.streaming = !1), a.value = !1, c.value = !!x?.signal.aborted, x = null;
|
|
28003
28003
|
}
|
|
@@ -28012,28 +28012,28 @@ function zT(e, t, n, o, s, r) {
|
|
|
28012
28012
|
};
|
|
28013
28013
|
}
|
|
28014
28014
|
async function G(W, ae) {
|
|
28015
|
-
await J(async (
|
|
28016
|
-
const { topicId:
|
|
28015
|
+
await J(async (De) => {
|
|
28016
|
+
const { topicId: Ue, userId: Ke, traceId: _e } = N();
|
|
28017
28017
|
if (!W.editorResults[ae]?.error)
|
|
28018
28018
|
throw new Error(de.stepNotFailed.text);
|
|
28019
28019
|
h(de.retryingStep(ae + 1)), await S(
|
|
28020
|
-
|
|
28021
|
-
|
|
28022
|
-
|
|
28020
|
+
Ue,
|
|
28021
|
+
Ke,
|
|
28022
|
+
_e,
|
|
28023
28023
|
W.promptSent || W.userMessage,
|
|
28024
28024
|
W,
|
|
28025
28025
|
ae,
|
|
28026
|
-
|
|
28026
|
+
De
|
|
28027
28027
|
);
|
|
28028
28028
|
});
|
|
28029
28029
|
}
|
|
28030
28030
|
async function L(W) {
|
|
28031
28031
|
await J(async (ae) => {
|
|
28032
|
-
const { topicId:
|
|
28032
|
+
const { topicId: De, userId: Ue, traceId: Ke } = N();
|
|
28033
28033
|
h(de.retryingSummary), await w(
|
|
28034
|
-
|
|
28035
|
-
|
|
28036
|
-
|
|
28034
|
+
De,
|
|
28035
|
+
Ue,
|
|
28036
|
+
Ke,
|
|
28037
28037
|
W.promptSent || W.userMessage,
|
|
28038
28038
|
W,
|
|
28039
28039
|
ae
|
|
@@ -28041,23 +28041,23 @@ function zT(e, t, n, o, s, r) {
|
|
|
28041
28041
|
});
|
|
28042
28042
|
}
|
|
28043
28043
|
async function q(W, ae = "重试") {
|
|
28044
|
-
let
|
|
28044
|
+
let De;
|
|
28045
28045
|
try {
|
|
28046
|
-
if (
|
|
28046
|
+
if (De = N(), !W.architectChatId)
|
|
28047
28047
|
throw new Error(de.architectChatIdMissing.text);
|
|
28048
|
-
} catch (
|
|
28049
|
-
h(de.error(
|
|
28048
|
+
} catch (Ue) {
|
|
28049
|
+
h(de.error(Ue.message));
|
|
28050
28050
|
return;
|
|
28051
28051
|
}
|
|
28052
|
-
await J(async (
|
|
28052
|
+
await J(async (Ue) => {
|
|
28053
28053
|
W.architectPlan = null, W.architectAnswer = "", W.architectStreamText = "", W.reasoningText = "", W.architectError = "", W.architectRetryCount = 0, W.editorResults = [], W.summaryText = "", W.summaryReasoning = "", W.summaryError = "", h(de.retryArchitect(ae)), await T(
|
|
28054
|
-
|
|
28054
|
+
De.topicId,
|
|
28055
28055
|
W.architectChatId,
|
|
28056
|
-
|
|
28057
|
-
|
|
28056
|
+
De.userId,
|
|
28057
|
+
De.traceId,
|
|
28058
28058
|
W.promptSent || W.userMessage,
|
|
28059
28059
|
W,
|
|
28060
|
-
|
|
28060
|
+
Ue
|
|
28061
28061
|
);
|
|
28062
28062
|
});
|
|
28063
28063
|
}
|
|
@@ -28076,8 +28076,8 @@ function zT(e, t, n, o, s, r) {
|
|
|
28076
28076
|
h(de.retryTopicIdMissing);
|
|
28077
28077
|
return;
|
|
28078
28078
|
}
|
|
28079
|
-
const
|
|
28080
|
-
return
|
|
28079
|
+
const De = ae.editorResults.findIndex((Ue) => Ue.error);
|
|
28080
|
+
return De >= 0 ? G(ae, De) : ae.summaryError ? L(ae) : q(ae, W);
|
|
28081
28081
|
}
|
|
28082
28082
|
async function ye() {
|
|
28083
28083
|
const W = C.value[C.value.length - 1];
|
|
@@ -28092,11 +28092,11 @@ function zT(e, t, n, o, s, r) {
|
|
|
28092
28092
|
if (!W.architectPlan)
|
|
28093
28093
|
return q(W, "恢复");
|
|
28094
28094
|
await J(async (ae) => {
|
|
28095
|
-
const { topicId:
|
|
28095
|
+
const { topicId: De, userId: Ue, traceId: Ke } = N();
|
|
28096
28096
|
await O(
|
|
28097
|
-
|
|
28098
|
-
|
|
28099
|
-
|
|
28097
|
+
De,
|
|
28098
|
+
Ue,
|
|
28099
|
+
Ke,
|
|
28100
28100
|
W.promptSent || W.userMessage,
|
|
28101
28101
|
W,
|
|
28102
28102
|
ae
|
|
@@ -28449,8 +28449,8 @@ const rO = {
|
|
|
28449
28449
|
name: "AgentWidget",
|
|
28450
28450
|
__name: "index",
|
|
28451
28451
|
setup(e, { expose: t }) {
|
|
28452
|
-
const n = tt(), o = D(""), s = D("info"), r = D(), a = (
|
|
28453
|
-
NT(o, s,
|
|
28452
|
+
const n = tt(), o = D(""), s = D("info"), r = D(), a = (ee) => {
|
|
28453
|
+
NT(o, s, ee), lc(ee.text) && r.value?.show();
|
|
28454
28454
|
}, i = P(() => {
|
|
28455
28455
|
switch (s.value) {
|
|
28456
28456
|
case "danger":
|
|
@@ -28464,18 +28464,18 @@ const rO = {
|
|
|
28464
28464
|
}
|
|
28465
28465
|
}), c = D([]), d = D();
|
|
28466
28466
|
ce(
|
|
28467
|
-
() => c.value.flatMap((
|
|
28467
|
+
() => c.value.flatMap((ee) => ee.editorResults.map((pe) => pe.error || "")).join(`
|
|
28468
28468
|
`),
|
|
28469
|
-
(
|
|
28470
|
-
lc(
|
|
28469
|
+
(ee) => {
|
|
28470
|
+
lc(ee) && r.value?.show();
|
|
28471
28471
|
}
|
|
28472
28472
|
);
|
|
28473
28473
|
const f = D(!1), u = D(!1), p = D(!0), g = D([]), m = D([]), b = D([]), h = D(), _ = D(
|
|
28474
28474
|
!!bn.get(ic, { type: "local" })
|
|
28475
28475
|
), k = D(0), T = D(!1), S = D(""), O = D("vue"), w = D(null), C = P({
|
|
28476
28476
|
get: () => n.state.autoApply,
|
|
28477
|
-
set: (
|
|
28478
|
-
n.state.autoApply =
|
|
28477
|
+
set: (ee) => {
|
|
28478
|
+
n.state.autoApply = ee;
|
|
28479
28479
|
}
|
|
28480
28480
|
}), x = /* @__PURE__ */ new Map(), R = vo(), {
|
|
28481
28481
|
isLogined: V,
|
|
@@ -28495,14 +28495,14 @@ const rO = {
|
|
|
28495
28495
|
getChats: ye,
|
|
28496
28496
|
getTopics: W,
|
|
28497
28497
|
removeTopic: ae,
|
|
28498
|
-
getSkills:
|
|
28499
|
-
getHotTopics:
|
|
28500
|
-
recognitionFile:
|
|
28501
|
-
clearActiveChat:
|
|
28498
|
+
getSkills: De,
|
|
28499
|
+
getHotTopics: Ue,
|
|
28500
|
+
recognitionFile: Ke,
|
|
28501
|
+
clearActiveChat: _e,
|
|
28502
28502
|
cancelActiveChat: vt
|
|
28503
|
-
} = xT(R), { token:
|
|
28503
|
+
} = xT(R), { token: xe, model: qe, existingTopicId: we, initToken: He } = kT(
|
|
28504
28504
|
() => n.access?.getData()?.token
|
|
28505
|
-
), { streamCompletion:
|
|
28505
|
+
), { streamCompletion: Le, abortAll: We } = CT(N), {
|
|
28506
28506
|
files: Yt,
|
|
28507
28507
|
recognizing: gn,
|
|
28508
28508
|
uploadFile: Te,
|
|
@@ -28510,17 +28510,17 @@ const rO = {
|
|
|
28510
28510
|
buildFilePrompt: dt,
|
|
28511
28511
|
buildAttachments: Ze,
|
|
28512
28512
|
clearFiles: qt
|
|
28513
|
-
} = JT(
|
|
28514
|
-
const { project:
|
|
28515
|
-
if (!
|
|
28513
|
+
} = JT(Ke), Vt = () => n, qn = () => {
|
|
28514
|
+
const { project: ee, service: pe, toolRegistry: Re } = n;
|
|
28515
|
+
if (!ee.value) return;
|
|
28516
28516
|
const _t = {
|
|
28517
28517
|
engine: n,
|
|
28518
|
-
project:
|
|
28519
|
-
service:
|
|
28518
|
+
project: ee.value,
|
|
28519
|
+
service: pe,
|
|
28520
28520
|
toolRegistry: Re,
|
|
28521
28521
|
config: {
|
|
28522
28522
|
activeDelayMs: 1500,
|
|
28523
|
-
getSkills:
|
|
28523
|
+
getSkills: De
|
|
28524
28524
|
}
|
|
28525
28525
|
};
|
|
28526
28526
|
QA.forEach((It) => {
|
|
@@ -28534,20 +28534,20 @@ const rO = {
|
|
|
28534
28534
|
});
|
|
28535
28535
|
});
|
|
28536
28536
|
}, { executeEditorStep: rn } = jT({
|
|
28537
|
-
streamCompletion:
|
|
28537
|
+
streamCompletion: Le,
|
|
28538
28538
|
postChat: L,
|
|
28539
28539
|
saveChat: q,
|
|
28540
28540
|
updateTopic: Y,
|
|
28541
28541
|
getEngine: Vt,
|
|
28542
28542
|
setStatus: a,
|
|
28543
|
-
requestApproval: (
|
|
28543
|
+
requestApproval: (ee) => C.value ? Promise.resolve(!0) : new Promise((pe) => x.set(ee, pe))
|
|
28544
28544
|
}), {
|
|
28545
28545
|
executeArchitectPlan: ie,
|
|
28546
28546
|
retryEditorPlan: be,
|
|
28547
28547
|
retrySummary: Ve,
|
|
28548
|
-
resumeEditorPlan:
|
|
28548
|
+
resumeEditorPlan: Xe
|
|
28549
28549
|
} = UT({
|
|
28550
|
-
streamCompletion:
|
|
28550
|
+
streamCompletion: Le,
|
|
28551
28551
|
postChat: L,
|
|
28552
28552
|
saveChat: q,
|
|
28553
28553
|
updateTopic: Y,
|
|
@@ -28555,13 +28555,13 @@ const rO = {
|
|
|
28555
28555
|
setStatus: a,
|
|
28556
28556
|
executeEditorStep: rn
|
|
28557
28557
|
}), Ot = {
|
|
28558
|
-
token:
|
|
28559
|
-
model:
|
|
28560
|
-
existingTopicId:
|
|
28561
|
-
setTopicId: (
|
|
28558
|
+
token: xe,
|
|
28559
|
+
model: qe,
|
|
28560
|
+
existingTopicId: we,
|
|
28561
|
+
setTopicId: (ee) => we.value = ee,
|
|
28562
28562
|
getEngine: Vt,
|
|
28563
28563
|
registerTools: qn,
|
|
28564
|
-
abortSse:
|
|
28564
|
+
abortSse: We,
|
|
28565
28565
|
access: n.access ?? void 0,
|
|
28566
28566
|
setStatus: a
|
|
28567
28567
|
}, Qt = {
|
|
@@ -28569,11 +28569,11 @@ const rO = {
|
|
|
28569
28569
|
postChat: L,
|
|
28570
28570
|
executeArchitectPlan: ie,
|
|
28571
28571
|
retryEditorPlan: be,
|
|
28572
|
-
resumeEditorPlan:
|
|
28572
|
+
resumeEditorPlan: Xe,
|
|
28573
28573
|
retrySummary: Ve
|
|
28574
28574
|
}, pr = { conversationRounds: c }, Lo = () => {
|
|
28575
|
-
const
|
|
28576
|
-
return [
|
|
28575
|
+
const ee = Uo.value.trim(), pe = dt();
|
|
28576
|
+
return [ee, pe].filter(Boolean).join(`
|
|
28577
28577
|
|
|
28578
28578
|
`);
|
|
28579
28579
|
}, {
|
|
@@ -28599,7 +28599,7 @@ const rO = {
|
|
|
28599
28599
|
{ getChats: ye, setStatus: a },
|
|
28600
28600
|
c
|
|
28601
28601
|
), Ce = P(() => c.value.length > 0), bt = P(
|
|
28602
|
-
() => g.value.find((
|
|
28602
|
+
() => g.value.find((ee) => ee.id === we.value) || null
|
|
28603
28603
|
), yt = P(
|
|
28604
28604
|
() => _.value ? { icon: bm, title: "显示代码块", type: "warning" } : { icon: Kc, title: "隐藏代码块", type: "default" }
|
|
28605
28605
|
), he = P(() => k.value > 0), me = () => {
|
|
@@ -28607,64 +28607,64 @@ const rO = {
|
|
|
28607
28607
|
}, Ie = () => d.value?.scrollTo({ top: 0 }), At = () => d.value?.scrollTo({
|
|
28608
28608
|
top: d.value.scrollHeight
|
|
28609
28609
|
}), xt = () => {
|
|
28610
|
-
const
|
|
28611
|
-
k.value = he.value ? -
|
|
28612
|
-
}, Wn = async (
|
|
28613
|
-
const
|
|
28614
|
-
if (!
|
|
28615
|
-
const _t = await n.service.parseVue(
|
|
28610
|
+
const ee = Math.abs(k.value) + 1;
|
|
28611
|
+
k.value = he.value ? -ee : ee;
|
|
28612
|
+
}, Wn = async (ee) => {
|
|
28613
|
+
const pe = n.project.value?.toDsl(), Re = n.current.value?.toDsl();
|
|
28614
|
+
if (!pe) return null;
|
|
28615
|
+
const _t = await n.service.parseVue(pe, {
|
|
28616
28616
|
id: Re?.id || "ai_gen",
|
|
28617
28617
|
name: Re?.name || "AiGenFile",
|
|
28618
|
-
source:
|
|
28618
|
+
source: ee
|
|
28619
28619
|
});
|
|
28620
28620
|
return Array.isArray(_t) ? Promise.reject(_t) : _t;
|
|
28621
|
-
}, gr = async (
|
|
28622
|
-
if (
|
|
28621
|
+
}, gr = async (ee, pe, Re) => {
|
|
28622
|
+
if (pe === "diff") {
|
|
28623
28623
|
const _t = n.project.value?.toDsl(), It = n.current.value?.toDsl();
|
|
28624
|
-
_t && It && (
|
|
28624
|
+
_t && It && (ee = await n.service.genVueContent(
|
|
28625
28625
|
_t,
|
|
28626
28626
|
It
|
|
28627
|
-
) ||
|
|
28627
|
+
) || ee, pe = "vue");
|
|
28628
28628
|
}
|
|
28629
|
-
S.value =
|
|
28630
|
-
}, zo = async (
|
|
28631
|
-
if (!
|
|
28632
|
-
const
|
|
28633
|
-
if (Re && (
|
|
28629
|
+
S.value = ee, O.value = pe, w.value = Re || await Wn(ee).catch(() => null), T.value = !0;
|
|
28630
|
+
}, zo = async (ee) => {
|
|
28631
|
+
if (!ee) return;
|
|
28632
|
+
const pe = Po(ee), Re = n.current.value?.id;
|
|
28633
|
+
if (Re && (pe.id = Re), !await n.applyAI(pe)) {
|
|
28634
28634
|
a(de.lockedProject);
|
|
28635
28635
|
return;
|
|
28636
28636
|
}
|
|
28637
28637
|
T.value = !1;
|
|
28638
28638
|
}, Ys = () => oO(
|
|
28639
|
-
|
|
28640
|
-
|
|
28639
|
+
we.value,
|
|
28640
|
+
qe.value,
|
|
28641
28641
|
c.value
|
|
28642
|
-
), mr = (
|
|
28643
|
-
x.get(
|
|
28642
|
+
), mr = (ee, pe) => {
|
|
28643
|
+
x.get(ee)?.(pe), x.delete(ee);
|
|
28644
28644
|
};
|
|
28645
|
-
ce(C, (
|
|
28646
|
-
|
|
28645
|
+
ce(C, (ee) => {
|
|
28646
|
+
ee && (x.forEach((pe) => pe(!0)), x.clear());
|
|
28647
28647
|
});
|
|
28648
28648
|
const Fo = () => {
|
|
28649
|
-
x.forEach((
|
|
28649
|
+
x.forEach((ee) => ee(!1)), x.clear(), Q(), vt();
|
|
28650
28650
|
}, Zs = async () => {
|
|
28651
|
-
await Wr(),
|
|
28651
|
+
await Wr(), _e();
|
|
28652
28652
|
}, Qs = async () => {
|
|
28653
|
-
await M(),
|
|
28654
|
-
}, Yr = async (
|
|
28655
|
-
await Xs(
|
|
28656
|
-
}, Ho = async (
|
|
28657
|
-
await Xr(
|
|
28658
|
-
}, ea = async (
|
|
28659
|
-
await Kn(
|
|
28653
|
+
await M(), _e();
|
|
28654
|
+
}, Yr = async (ee, pe) => {
|
|
28655
|
+
await Xs(ee, pe), _e();
|
|
28656
|
+
}, Ho = async (ee) => {
|
|
28657
|
+
await Xr(ee), _e();
|
|
28658
|
+
}, ea = async (ee) => {
|
|
28659
|
+
await Kn(ee), _e();
|
|
28660
28660
|
}, yo = () => {
|
|
28661
|
-
en.value || (
|
|
28661
|
+
en.value || (we.value = "", c.value = [], o.value = "", Bo.value = !1, k.value = 0, qt(), f.value = !1);
|
|
28662
28662
|
}, _o = async () => {
|
|
28663
|
-
|
|
28664
|
-
const
|
|
28665
|
-
if (!
|
|
28666
|
-
const
|
|
28667
|
-
n.project.value?.__UID__ ===
|
|
28663
|
+
He();
|
|
28664
|
+
const ee = n.project.value?.__UID__;
|
|
28665
|
+
if (!xe.value || !ee) return;
|
|
28666
|
+
const pe = await W(ee).catch(() => []);
|
|
28667
|
+
n.project.value?.__UID__ === ee && (g.value = pe);
|
|
28668
28668
|
};
|
|
28669
28669
|
let sn = !1;
|
|
28670
28670
|
const hr = async () => {
|
|
@@ -28676,35 +28676,35 @@ const rO = {
|
|
|
28676
28676
|
sn = !1;
|
|
28677
28677
|
}
|
|
28678
28678
|
}
|
|
28679
|
-
}, vr = async () => {
|
|
28680
|
-
|
|
28679
|
+
}, vr = async (ee, pe) => {
|
|
28680
|
+
He(), pe && (qe.value = pe), await fr(ee), _e(), await _o();
|
|
28681
28681
|
}, ta = async () => {
|
|
28682
|
-
|
|
28682
|
+
He(), await Kr(), _e(), await _o();
|
|
28683
28683
|
}, Zr = async () => {
|
|
28684
28684
|
if (!p.value) {
|
|
28685
28685
|
a(de.tokenMissing);
|
|
28686
28686
|
return;
|
|
28687
28687
|
}
|
|
28688
28688
|
f.value = !f.value, f.value && await _o();
|
|
28689
|
-
}, Qr = async (
|
|
28690
|
-
en.value && Fo(),
|
|
28691
|
-
}, Go = async (
|
|
28692
|
-
await ae(
|
|
28689
|
+
}, Qr = async (ee) => {
|
|
28690
|
+
en.value && Fo(), He(), we.value = ee.id, qe.value = ee.model || qe.value, Bo.value = !1, f.value = !1, await le(ee.id), Bo.value = lp(c.value);
|
|
28691
|
+
}, Go = async (ee) => {
|
|
28692
|
+
await ae(ee.id).catch(() => !1) && (g.value = g.value.filter((Re) => Re.id !== ee.id), we.value === ee.id && yo());
|
|
28693
28693
|
};
|
|
28694
28694
|
let br = 0, oe = !0;
|
|
28695
28695
|
const Ee = () => {
|
|
28696
|
-
const
|
|
28697
|
-
|
|
28698
|
-
},
|
|
28696
|
+
const ee = d.value;
|
|
28697
|
+
ee && (oe = ee.scrollHeight - ee.scrollTop - ee.clientHeight < PT);
|
|
28698
|
+
}, Ge = P(
|
|
28699
28699
|
() => c.value.map(
|
|
28700
|
-
(
|
|
28700
|
+
(ee) => `${ee.architectStreamText.length}|${ee.summaryText.length}|${ee.editorResults.map((pe) => `${pe.content.length}:${pe.turns.length}`).join(",")}`
|
|
28701
28701
|
).join(";")
|
|
28702
28702
|
);
|
|
28703
|
-
return ce(
|
|
28703
|
+
return ce(Ge, () => {
|
|
28704
28704
|
cancelAnimationFrame(br), Bt(() => {
|
|
28705
28705
|
br = requestAnimationFrame(() => {
|
|
28706
|
-
const
|
|
28707
|
-
|
|
28706
|
+
const ee = d.value;
|
|
28707
|
+
ee && oe && (ee.scrollTop = ee.scrollHeight);
|
|
28708
28708
|
});
|
|
28709
28709
|
});
|
|
28710
28710
|
}), ce(
|
|
@@ -28713,21 +28713,21 @@ const rO = {
|
|
|
28713
28713
|
p.value && (en.value && Fo(), await _o(), await hr());
|
|
28714
28714
|
}
|
|
28715
28715
|
), No(async () => {
|
|
28716
|
-
|
|
28717
|
-
}), m.value = await
|
|
28716
|
+
He(), p.value = await V(), u.value = !0, p.value && (b.value = await U("LLM").catch(() => []), h.value = await F().catch(() => {
|
|
28717
|
+
}), m.value = await Ue(n.project.value?.platform).catch(
|
|
28718
28718
|
() => []
|
|
28719
28719
|
), await _o(), await hr(), d.value?.addEventListener("scroll", Ee, {
|
|
28720
28720
|
passive: !0
|
|
28721
28721
|
}));
|
|
28722
28722
|
}), Gn(() => {
|
|
28723
28723
|
cancelAnimationFrame(br), d.value?.removeEventListener("scroll", Ee), en.value && Fo(), qt();
|
|
28724
|
-
}), t({ newTask: yo, start: vr }), (
|
|
28724
|
+
}), t({ newTask: yo, start: vr }), (ee, pe) => (v(), A(l(Me), {
|
|
28725
28725
|
class: "v-agent-widget__wrapper",
|
|
28726
28726
|
direction: "column",
|
|
28727
28727
|
fit: ""
|
|
28728
28728
|
}, {
|
|
28729
28729
|
default: E(() => [
|
|
28730
|
-
y(l(
|
|
28730
|
+
y(l(Pe), {
|
|
28731
28731
|
class: "v-agent-widget",
|
|
28732
28732
|
title: "智能体"
|
|
28733
28733
|
}, {
|
|
@@ -28823,19 +28823,19 @@ const rO = {
|
|
|
28823
28823
|
class: "v-agent-widget__conversation"
|
|
28824
28824
|
}, [
|
|
28825
28825
|
Ce.value ? j("", !0) : (v(), $("div", rO, [
|
|
28826
|
-
|
|
28826
|
+
pe[6] || (pe[6] = I("div", { class: "v-agent-widget-new-chat__welcome" }, [
|
|
28827
28827
|
I("h3", null, "嗨!我是您的智能助手"),
|
|
28828
28828
|
I("div", null, "我可以帮你开发应用,请把你的任务交给我吧~")
|
|
28829
28829
|
], -1)),
|
|
28830
28830
|
m.value.length ? (v(), $(se, { key: 0 }, [
|
|
28831
28831
|
y(l(ct), { "content-position": "left" }, {
|
|
28832
|
-
default: E(() => [...
|
|
28832
|
+
default: E(() => [...pe[5] || (pe[5] = [
|
|
28833
28833
|
re("热门需求", -1)
|
|
28834
28834
|
])]),
|
|
28835
28835
|
_: 1
|
|
28836
28836
|
}),
|
|
28837
28837
|
I("div", sO, [
|
|
28838
|
-
(v(!0), $(se, null,
|
|
28838
|
+
(v(!0), $(se, null, fe(m.value, (Re, _t) => (v(), A(l(Dt), {
|
|
28839
28839
|
key: Re.id,
|
|
28840
28840
|
index: _t + 1,
|
|
28841
28841
|
title: Re.title,
|
|
@@ -28847,7 +28847,7 @@ const rO = {
|
|
|
28847
28847
|
])
|
|
28848
28848
|
], 64)) : j("", !0)
|
|
28849
28849
|
])),
|
|
28850
|
-
(v(!0), $(se, null,
|
|
28850
|
+
(v(!0), $(se, null, fe(c.value, (Re, _t) => (v(), A(_T, {
|
|
28851
28851
|
key: Re.id,
|
|
28852
28852
|
round: Re,
|
|
28853
28853
|
"round-number": _t + 1,
|
|
@@ -28866,15 +28866,15 @@ const rO = {
|
|
|
28866
28866
|
key: 1,
|
|
28867
28867
|
class: Oe(["v-agent-widget__status", s.value])
|
|
28868
28868
|
}, [
|
|
28869
|
-
l(en) ? (v(), $("span", aO)) : (v(), $("span", iO,
|
|
28870
|
-
I("span", null,
|
|
28869
|
+
l(en) ? (v(), $("span", aO)) : (v(), $("span", iO, te(i.value), 1)),
|
|
28870
|
+
I("span", null, te(o.value), 1),
|
|
28871
28871
|
s.value === "danger" && !l(en) ? (v(), A(l(Ae), {
|
|
28872
28872
|
key: 2,
|
|
28873
28873
|
text: "",
|
|
28874
28874
|
type: "primary",
|
|
28875
28875
|
onClick: Zs
|
|
28876
28876
|
}, {
|
|
28877
|
-
default: E(() => [...
|
|
28877
|
+
default: E(() => [...pe[7] || (pe[7] = [
|
|
28878
28878
|
re(" 重试 ", -1)
|
|
28879
28879
|
])]),
|
|
28880
28880
|
_: 1
|
|
@@ -28885,7 +28885,7 @@ const rO = {
|
|
|
28885
28885
|
type: "primary",
|
|
28886
28886
|
onClick: Qs
|
|
28887
28887
|
}, {
|
|
28888
|
-
default: E(() => [...
|
|
28888
|
+
default: E(() => [...pe[8] || (pe[8] = [
|
|
28889
28889
|
re(" 恢复 ", -1)
|
|
28890
28890
|
])]),
|
|
28891
28891
|
_: 1
|
|
@@ -28895,15 +28895,15 @@ const rO = {
|
|
|
28895
28895
|
y(cC, {
|
|
28896
28896
|
message: l(Uo),
|
|
28897
28897
|
running: l(en),
|
|
28898
|
-
"has-topic": !!l(
|
|
28898
|
+
"has-topic": !!l(we),
|
|
28899
28899
|
files: l(Yt),
|
|
28900
28900
|
recognizing: l(gn),
|
|
28901
28901
|
"auto-approve": C.value,
|
|
28902
|
-
model: l(
|
|
28902
|
+
model: l(qe),
|
|
28903
28903
|
models: b.value,
|
|
28904
|
-
"onUpdate:message":
|
|
28905
|
-
"onUpdate:autoApprove":
|
|
28906
|
-
"onUpdate:model":
|
|
28904
|
+
"onUpdate:message": pe[0] || (pe[0] = (Re) => Uo.value = Re),
|
|
28905
|
+
"onUpdate:autoApprove": pe[1] || (pe[1] = (Re) => C.value = Re),
|
|
28906
|
+
"onUpdate:model": pe[2] || (pe[2] = (Re) => qe.value = Re),
|
|
28907
28907
|
onStart: vr,
|
|
28908
28908
|
onContinue: ta,
|
|
28909
28909
|
onAbort: Fo,
|
|
@@ -28913,7 +28913,7 @@ const rO = {
|
|
|
28913
28913
|
T.value ? (v(), A(ET, {
|
|
28914
28914
|
key: 3,
|
|
28915
28915
|
modelValue: T.value,
|
|
28916
|
-
"onUpdate:modelValue":
|
|
28916
|
+
"onUpdate:modelValue": pe[3] || (pe[3] = (Re) => T.value = Re),
|
|
28917
28917
|
source: S.value,
|
|
28918
28918
|
language: O.value,
|
|
28919
28919
|
dsl: w.value,
|
|
@@ -28925,7 +28925,7 @@ const rO = {
|
|
|
28925
28925
|
}),
|
|
28926
28926
|
y(l(ci), {
|
|
28927
28927
|
modelValue: f.value,
|
|
28928
|
-
"onUpdate:modelValue":
|
|
28928
|
+
"onUpdate:modelValue": pe[4] || (pe[4] = (Re) => f.value = Re),
|
|
28929
28929
|
class: "v-agent-widget__drawer",
|
|
28930
28930
|
size: "100%",
|
|
28931
28931
|
direction: "ltr",
|
|
@@ -28934,7 +28934,7 @@ const rO = {
|
|
|
28934
28934
|
"modal-class": "v-agent-widget__drawer-modal"
|
|
28935
28935
|
}, {
|
|
28936
28936
|
default: E(() => [
|
|
28937
|
-
y(l(
|
|
28937
|
+
y(l(Pe), {
|
|
28938
28938
|
class: "v-agent-widget",
|
|
28939
28939
|
title: "历史对话"
|
|
28940
28940
|
}, {
|
|
@@ -28966,7 +28966,7 @@ const rO = {
|
|
|
28966
28966
|
_: 1
|
|
28967
28967
|
}));
|
|
28968
28968
|
}
|
|
28969
|
-
}), cO = /* @__PURE__ */ ht(lO, [["__scopeId", "data-v-
|
|
28969
|
+
}), cO = /* @__PURE__ */ ht(lO, [["__scopeId", "data-v-13c962b7"]]), uO = `(app) => {
|
|
28970
28970
|
return {
|
|
28971
28971
|
state: () => {
|
|
28972
28972
|
return {
|
|
@@ -29025,7 +29025,7 @@ const rO = {
|
|
|
29025
29025
|
const { project: t } = Tn(), n = (s) => (t.value?.globals || {})[s], o = (s, r) => {
|
|
29026
29026
|
t.value?.setGloblas(s, r);
|
|
29027
29027
|
};
|
|
29028
|
-
return (s, r) => (v(), A(l(
|
|
29028
|
+
return (s, r) => (v(), A(l(Pe), {
|
|
29029
29029
|
class: "v-uni-config-widget v-globals-widget",
|
|
29030
29030
|
title: "应用设置"
|
|
29031
29031
|
}, {
|
|
@@ -29286,7 +29286,7 @@ const rO = {
|
|
|
29286
29286
|
};
|
|
29287
29287
|
return ce(i, () => {
|
|
29288
29288
|
a.value?.search();
|
|
29289
|
-
}), (b, h) => (v(), A(l(
|
|
29289
|
+
}), (b, h) => (v(), A(l(Pe), {
|
|
29290
29290
|
class: "v-i18n-widget",
|
|
29291
29291
|
title: "国际化资源",
|
|
29292
29292
|
plus: "",
|
|
@@ -29389,8 +29389,8 @@ const rO = {
|
|
|
29389
29389
|
}, {
|
|
29390
29390
|
item: E(({ item: i }) => [
|
|
29391
29391
|
I("div", _O, [
|
|
29392
|
-
I("span", null,
|
|
29393
|
-
I("span", wO,
|
|
29392
|
+
I("span", null, te(i.label), 1),
|
|
29393
|
+
I("span", wO, te(i.value), 1)
|
|
29394
29394
|
])
|
|
29395
29395
|
]),
|
|
29396
29396
|
_: 1
|
|
@@ -29557,7 +29557,7 @@ const rO = {
|
|
|
29557
29557
|
};
|
|
29558
29558
|
return ce(o, () => {
|
|
29559
29559
|
n.value?.search();
|
|
29560
|
-
}), (f, u) => (v(), A(l(
|
|
29560
|
+
}), (f, u) => (v(), A(l(Pe), {
|
|
29561
29561
|
class: "v-env-widget",
|
|
29562
29562
|
title: "环境变量",
|
|
29563
29563
|
plus: "",
|
|
@@ -29598,7 +29598,7 @@ const rO = {
|
|
|
29598
29598
|
_: 1
|
|
29599
29599
|
}));
|
|
29600
29600
|
}
|
|
29601
|
-
}),
|
|
29601
|
+
}), Je = {
|
|
29602
29602
|
Logo: Fw,
|
|
29603
29603
|
EmptyWidget: Gw,
|
|
29604
29604
|
Switcher: Kw,
|
|
@@ -29643,27 +29643,27 @@ const rO = {
|
|
|
29643
29643
|
{
|
|
29644
29644
|
name: "Logo",
|
|
29645
29645
|
region: "Brand",
|
|
29646
|
-
component:
|
|
29646
|
+
component: Je.Logo
|
|
29647
29647
|
},
|
|
29648
29648
|
{
|
|
29649
29649
|
name: "Switcher",
|
|
29650
29650
|
region: "Brand",
|
|
29651
|
-
component:
|
|
29651
|
+
component: Je.Switcher
|
|
29652
29652
|
},
|
|
29653
29653
|
{
|
|
29654
29654
|
name: "Toolbar",
|
|
29655
29655
|
region: "Toolbar",
|
|
29656
|
-
component:
|
|
29656
|
+
component: Je.Toolbar
|
|
29657
29657
|
},
|
|
29658
29658
|
{
|
|
29659
29659
|
name: "Actions",
|
|
29660
29660
|
region: "Actions",
|
|
29661
|
-
component:
|
|
29661
|
+
component: Je.Actions
|
|
29662
29662
|
},
|
|
29663
29663
|
{
|
|
29664
29664
|
name: "Pages",
|
|
29665
29665
|
region: "Apps",
|
|
29666
|
-
component:
|
|
29666
|
+
component: Je.Pages,
|
|
29667
29667
|
type: "app",
|
|
29668
29668
|
openType: "panel",
|
|
29669
29669
|
icon: Pc,
|
|
@@ -29672,7 +29672,7 @@ const rO = {
|
|
|
29672
29672
|
{
|
|
29673
29673
|
name: "Blocks",
|
|
29674
29674
|
region: "Apps",
|
|
29675
|
-
component:
|
|
29675
|
+
component: Je.Blocks,
|
|
29676
29676
|
type: "app",
|
|
29677
29677
|
openType: "panel",
|
|
29678
29678
|
icon: hi,
|
|
@@ -29681,7 +29681,7 @@ const rO = {
|
|
|
29681
29681
|
{
|
|
29682
29682
|
name: "Components",
|
|
29683
29683
|
region: "Apps",
|
|
29684
|
-
component:
|
|
29684
|
+
component: Je.Components,
|
|
29685
29685
|
type: "app",
|
|
29686
29686
|
openType: "panel",
|
|
29687
29687
|
icon: Im,
|
|
@@ -29690,7 +29690,7 @@ const rO = {
|
|
|
29690
29690
|
{
|
|
29691
29691
|
name: "Templates",
|
|
29692
29692
|
region: "Apps",
|
|
29693
|
-
component:
|
|
29693
|
+
component: Je.Templates,
|
|
29694
29694
|
type: "app",
|
|
29695
29695
|
openType: "panel",
|
|
29696
29696
|
icon: Tr,
|
|
@@ -29700,7 +29700,7 @@ const rO = {
|
|
|
29700
29700
|
{
|
|
29701
29701
|
name: "Outline",
|
|
29702
29702
|
region: "Apps",
|
|
29703
|
-
component:
|
|
29703
|
+
component: Je.Outline,
|
|
29704
29704
|
type: "app",
|
|
29705
29705
|
openType: "panel",
|
|
29706
29706
|
icon: Rm,
|
|
@@ -29709,7 +29709,7 @@ const rO = {
|
|
|
29709
29709
|
{
|
|
29710
29710
|
name: "History",
|
|
29711
29711
|
region: "Apps",
|
|
29712
|
-
component:
|
|
29712
|
+
component: Je.History,
|
|
29713
29713
|
type: "app",
|
|
29714
29714
|
openType: "panel",
|
|
29715
29715
|
icon: Dm,
|
|
@@ -29718,7 +29718,7 @@ const rO = {
|
|
|
29718
29718
|
{
|
|
29719
29719
|
name: "Apis",
|
|
29720
29720
|
region: "Apps",
|
|
29721
|
-
component:
|
|
29721
|
+
component: Je.Apis,
|
|
29722
29722
|
type: "app",
|
|
29723
29723
|
openType: "panel",
|
|
29724
29724
|
icon: Nm,
|
|
@@ -29727,7 +29727,7 @@ const rO = {
|
|
|
29727
29727
|
{
|
|
29728
29728
|
name: "Deps",
|
|
29729
29729
|
region: "Apps",
|
|
29730
|
-
component:
|
|
29730
|
+
component: Je.Deps,
|
|
29731
29731
|
type: "app",
|
|
29732
29732
|
openType: "panel",
|
|
29733
29733
|
icon: Pm,
|
|
@@ -29736,7 +29736,7 @@ const rO = {
|
|
|
29736
29736
|
{
|
|
29737
29737
|
name: "UniConfig",
|
|
29738
29738
|
region: "Apps",
|
|
29739
|
-
component:
|
|
29739
|
+
component: Je.UniConfig,
|
|
29740
29740
|
type: "app",
|
|
29741
29741
|
openType: "panel",
|
|
29742
29742
|
icon: Vm,
|
|
@@ -29746,7 +29746,7 @@ const rO = {
|
|
|
29746
29746
|
{
|
|
29747
29747
|
name: "ProjectConfig",
|
|
29748
29748
|
region: "Apps",
|
|
29749
|
-
component:
|
|
29749
|
+
component: Je.ProjectConfig,
|
|
29750
29750
|
type: "app",
|
|
29751
29751
|
openType: "panel",
|
|
29752
29752
|
icon: $m,
|
|
@@ -29755,7 +29755,7 @@ const rO = {
|
|
|
29755
29755
|
{
|
|
29756
29756
|
name: "Globals",
|
|
29757
29757
|
region: "Apps",
|
|
29758
|
-
component:
|
|
29758
|
+
component: Je.Globals,
|
|
29759
29759
|
type: "app",
|
|
29760
29760
|
openType: "panel",
|
|
29761
29761
|
icon: Mm,
|
|
@@ -29764,7 +29764,7 @@ const rO = {
|
|
|
29764
29764
|
{
|
|
29765
29765
|
name: "I18n",
|
|
29766
29766
|
region: "Apps",
|
|
29767
|
-
component:
|
|
29767
|
+
component: Je.I18n,
|
|
29768
29768
|
type: "app",
|
|
29769
29769
|
openType: "panel",
|
|
29770
29770
|
icon: jm,
|
|
@@ -29773,7 +29773,7 @@ const rO = {
|
|
|
29773
29773
|
{
|
|
29774
29774
|
name: "env",
|
|
29775
29775
|
region: "Apps",
|
|
29776
|
-
component:
|
|
29776
|
+
component: Je.Env,
|
|
29777
29777
|
type: "app",
|
|
29778
29778
|
openType: "panel",
|
|
29779
29779
|
icon: Lm,
|
|
@@ -29793,7 +29793,7 @@ const rO = {
|
|
|
29793
29793
|
{
|
|
29794
29794
|
name: "Agent",
|
|
29795
29795
|
region: "Apps",
|
|
29796
|
-
component:
|
|
29796
|
+
component: Je.Agent,
|
|
29797
29797
|
type: "app",
|
|
29798
29798
|
openType: "panel",
|
|
29799
29799
|
icon: Um,
|
|
@@ -29804,10 +29804,10 @@ const rO = {
|
|
|
29804
29804
|
{
|
|
29805
29805
|
name: "About",
|
|
29806
29806
|
region: "Apps",
|
|
29807
|
-
component:
|
|
29807
|
+
component: Je.About,
|
|
29808
29808
|
type: "app",
|
|
29809
29809
|
openType: "dialog",
|
|
29810
|
-
icon:
|
|
29810
|
+
icon: Je.UserAvatar,
|
|
29811
29811
|
label: "关于",
|
|
29812
29812
|
props: {
|
|
29813
29813
|
width: 560,
|
|
@@ -29817,7 +29817,7 @@ const rO = {
|
|
|
29817
29817
|
{
|
|
29818
29818
|
name: "Designer",
|
|
29819
29819
|
region: "Workspace",
|
|
29820
|
-
component:
|
|
29820
|
+
component: Je.Designer,
|
|
29821
29821
|
type: "tab",
|
|
29822
29822
|
closable: !1,
|
|
29823
29823
|
label: "设计视图"
|
|
@@ -29825,7 +29825,7 @@ const rO = {
|
|
|
29825
29825
|
{
|
|
29826
29826
|
name: "Previewer",
|
|
29827
29827
|
region: "Preview",
|
|
29828
|
-
component:
|
|
29828
|
+
component: Je.Previewer,
|
|
29829
29829
|
type: "tab",
|
|
29830
29830
|
closable: !1,
|
|
29831
29831
|
label: "预览视图"
|
|
@@ -29833,7 +29833,7 @@ const rO = {
|
|
|
29833
29833
|
{
|
|
29834
29834
|
name: "Schema",
|
|
29835
29835
|
region: "Workspace",
|
|
29836
|
-
component:
|
|
29836
|
+
component: Je.Schema,
|
|
29837
29837
|
type: "tab",
|
|
29838
29838
|
closable: !0,
|
|
29839
29839
|
label: "DSL视图"
|
|
@@ -29841,7 +29841,7 @@ const rO = {
|
|
|
29841
29841
|
{
|
|
29842
29842
|
name: "Raw",
|
|
29843
29843
|
region: "Workspace",
|
|
29844
|
-
component:
|
|
29844
|
+
component: Je.Raw,
|
|
29845
29845
|
type: "tab",
|
|
29846
29846
|
closable: !0,
|
|
29847
29847
|
label: "源码视图"
|
|
@@ -29850,7 +29850,7 @@ const rO = {
|
|
|
29850
29850
|
name: "Docs",
|
|
29851
29851
|
invisible: !0,
|
|
29852
29852
|
region: "Workspace",
|
|
29853
|
-
component:
|
|
29853
|
+
component: Je.Docs,
|
|
29854
29854
|
type: "tab",
|
|
29855
29855
|
closable: !0,
|
|
29856
29856
|
label: "帮助中心",
|
|
@@ -29880,7 +29880,7 @@ const rO = {
|
|
|
29880
29880
|
{
|
|
29881
29881
|
name: "Scripts",
|
|
29882
29882
|
region: "Settings",
|
|
29883
|
-
component:
|
|
29883
|
+
component: Je.Scripts,
|
|
29884
29884
|
type: "tab",
|
|
29885
29885
|
group: jt.Block,
|
|
29886
29886
|
label: "设置"
|
|
@@ -29888,7 +29888,7 @@ const rO = {
|
|
|
29888
29888
|
{
|
|
29889
29889
|
name: "Css",
|
|
29890
29890
|
region: "Settings",
|
|
29891
|
-
component:
|
|
29891
|
+
component: Je.Css,
|
|
29892
29892
|
type: "tab",
|
|
29893
29893
|
group: jt.Block,
|
|
29894
29894
|
label: "CSS"
|
|
@@ -29896,7 +29896,7 @@ const rO = {
|
|
|
29896
29896
|
{
|
|
29897
29897
|
name: "DataSources",
|
|
29898
29898
|
region: "Settings",
|
|
29899
|
-
component:
|
|
29899
|
+
component: Je.DataSources,
|
|
29900
29900
|
type: "tab",
|
|
29901
29901
|
group: jt.Block,
|
|
29902
29902
|
label: "数据源"
|
|
@@ -29904,7 +29904,7 @@ const rO = {
|
|
|
29904
29904
|
{
|
|
29905
29905
|
name: "Defined",
|
|
29906
29906
|
region: "Settings",
|
|
29907
|
-
component:
|
|
29907
|
+
component: Je.Defined,
|
|
29908
29908
|
type: "tab",
|
|
29909
29909
|
group: jt.Block,
|
|
29910
29910
|
label: "定义"
|
|
@@ -29912,7 +29912,7 @@ const rO = {
|
|
|
29912
29912
|
{
|
|
29913
29913
|
name: "Properties",
|
|
29914
29914
|
region: "Settings",
|
|
29915
|
-
component:
|
|
29915
|
+
component: Je.Properties,
|
|
29916
29916
|
type: "tab",
|
|
29917
29917
|
group: jt.Node,
|
|
29918
29918
|
label: "属性"
|
|
@@ -29920,7 +29920,7 @@ const rO = {
|
|
|
29920
29920
|
{
|
|
29921
29921
|
name: "Style",
|
|
29922
29922
|
region: "Settings",
|
|
29923
|
-
component:
|
|
29923
|
+
component: Je.Style,
|
|
29924
29924
|
type: "tab",
|
|
29925
29925
|
group: jt.Node,
|
|
29926
29926
|
label: "样式"
|
|
@@ -29928,7 +29928,7 @@ const rO = {
|
|
|
29928
29928
|
{
|
|
29929
29929
|
name: "Events",
|
|
29930
29930
|
region: "Settings",
|
|
29931
|
-
component:
|
|
29931
|
+
component: Je.Events,
|
|
29932
29932
|
type: "tab",
|
|
29933
29933
|
group: jt.Node,
|
|
29934
29934
|
label: "事件"
|
|
@@ -29936,7 +29936,7 @@ const rO = {
|
|
|
29936
29936
|
{
|
|
29937
29937
|
name: "Directives",
|
|
29938
29938
|
region: "Settings",
|
|
29939
|
-
component:
|
|
29939
|
+
component: Je.Directives,
|
|
29940
29940
|
type: "tab",
|
|
29941
29941
|
group: jt.Node,
|
|
29942
29942
|
label: "指令"
|
|
@@ -29944,25 +29944,25 @@ const rO = {
|
|
|
29944
29944
|
{
|
|
29945
29945
|
name: "NodePath",
|
|
29946
29946
|
region: "Status",
|
|
29947
|
-
component:
|
|
29947
|
+
component: Je.NodePath,
|
|
29948
29948
|
group: jt.Left
|
|
29949
29949
|
},
|
|
29950
29950
|
{
|
|
29951
29951
|
name: "Devtools",
|
|
29952
29952
|
region: "Status",
|
|
29953
|
-
component:
|
|
29953
|
+
component: Je.Devtools,
|
|
29954
29954
|
group: jt.Right
|
|
29955
29955
|
},
|
|
29956
29956
|
{
|
|
29957
29957
|
name: "Hotkeys",
|
|
29958
29958
|
region: "Status",
|
|
29959
|
-
component:
|
|
29959
|
+
component: Je.Hotkeys,
|
|
29960
29960
|
group: jt.Right
|
|
29961
29961
|
},
|
|
29962
29962
|
{
|
|
29963
29963
|
name: "Themer",
|
|
29964
29964
|
region: "Status",
|
|
29965
|
-
component:
|
|
29965
|
+
component: Je.Themer,
|
|
29966
29966
|
group: jt.Right
|
|
29967
29967
|
}
|
|
29968
29968
|
], TO = [
|
|
@@ -30770,10 +30770,10 @@ const rO = {
|
|
|
30770
30770
|
onChange: i
|
|
30771
30771
|
}, {
|
|
30772
30772
|
prefix: E(() => [
|
|
30773
|
-
re(
|
|
30773
|
+
re(te(PO))
|
|
30774
30774
|
]),
|
|
30775
30775
|
suffix: E(() => [
|
|
30776
|
-
re(
|
|
30776
|
+
re(te(VO))
|
|
30777
30777
|
]),
|
|
30778
30778
|
_: 1
|
|
30779
30779
|
}, 8, ["modelValue"]));
|
|
@@ -30788,7 +30788,7 @@ const rO = {
|
|
|
30788
30788
|
const t = e;
|
|
30789
30789
|
return (n, o) => (v(), A(l(ui), St({ clearable: "" }, n.$attrs), {
|
|
30790
30790
|
default: E(() => [
|
|
30791
|
-
(v(!0), $(se, null,
|
|
30791
|
+
(v(!0), $(se, null, fe(t.options, (s) => (v(), A(l(Cr), St({
|
|
30792
30792
|
key: s.label
|
|
30793
30793
|
}, { ref_for: !0 }, s), null, 16))), 128))
|
|
30794
30794
|
]),
|
|
@@ -30831,7 +30831,7 @@ const rO = {
|
|
|
30831
30831
|
size: "small"
|
|
30832
30832
|
}, n.$attrs), {
|
|
30833
30833
|
default: E(() => [
|
|
30834
|
-
(v(!0), $(se, null,
|
|
30834
|
+
(v(!0), $(se, null, fe(t.options, (s) => (v(), A(l(wr), {
|
|
30835
30835
|
label: s.label,
|
|
30836
30836
|
value: s.value,
|
|
30837
30837
|
title: s.label
|
|
@@ -30841,7 +30841,7 @@ const rO = {
|
|
|
30841
30841
|
key: 0,
|
|
30842
30842
|
src: s.svg
|
|
30843
30843
|
}, null, 8, ["src"])) : (v(), $(se, { key: 1 }, [
|
|
30844
|
-
re(
|
|
30844
|
+
re(te(s.label), 1)
|
|
30845
30845
|
], 64))
|
|
30846
30846
|
]),
|
|
30847
30847
|
_: 2
|
|
@@ -30866,7 +30866,7 @@ const rO = {
|
|
|
30866
30866
|
class: "v-tag-setter",
|
|
30867
30867
|
size: "small"
|
|
30868
30868
|
}, r.$attrs), [
|
|
30869
|
-
(v(!0), $(se, null,
|
|
30869
|
+
(v(!0), $(se, null, fe(n.options, (i) => (v(), $("span", {
|
|
30870
30870
|
label: i.value,
|
|
30871
30871
|
title: i.label,
|
|
30872
30872
|
class: Oe({
|
|
@@ -30879,7 +30879,7 @@ const rO = {
|
|
|
30879
30879
|
src: i.svg,
|
|
30880
30880
|
size: 16
|
|
30881
30881
|
}, null, 8, ["src"])) : (v(), $(se, { key: 1 }, [
|
|
30882
|
-
re(
|
|
30882
|
+
re(te(i.label), 1)
|
|
30883
30883
|
], 64))
|
|
30884
30884
|
], 10, BO))), 256))
|
|
30885
30885
|
], 16));
|
|
@@ -31022,7 +31022,7 @@ const rO = {
|
|
|
31022
31022
|
o("change", s.value.join(" ").trim());
|
|
31023
31023
|
};
|
|
31024
31024
|
return (a, i) => (v(), $("div", JO, [
|
|
31025
|
-
(v(!0), $(se, null,
|
|
31025
|
+
(v(!0), $(se, null, fe(n.sections, (c) => (v(), A(pp, {
|
|
31026
31026
|
name: c - 1,
|
|
31027
31027
|
modelValue: s.value[c - 1],
|
|
31028
31028
|
"onUpdate:modelValue": (d) => s.value[c - 1] = d,
|
|
@@ -31401,7 +31401,7 @@ const rO = {
|
|
|
31401
31401
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
|
31402
31402
|
I("div", ZO, [
|
|
31403
31403
|
I("div", QO, [
|
|
31404
|
-
(v(!0), $(se, null,
|
|
31404
|
+
(v(!0), $(se, null, fe(c.value, (b) => (v(), $("i", {
|
|
31405
31405
|
onClick: (h) => d(b),
|
|
31406
31406
|
class: Oe([
|
|
31407
31407
|
r.value === b ? "is-active" : "",
|
|
@@ -31721,7 +31721,7 @@ const rO = {
|
|
|
31721
31721
|
),
|
|
31722
31722
|
r
|
|
31723
31723
|
);
|
|
31724
|
-
a.dir || (e.active(a), await
|
|
31724
|
+
a.dir || (e.active(a), await je(t.activeDelayMs));
|
|
31725
31725
|
const { name: i, title: c, layout: d, dir: f } = n;
|
|
31726
31726
|
return a ? {
|
|
31727
31727
|
name: i,
|
|
@@ -31770,7 +31770,7 @@ const rO = {
|
|
|
31770
31770
|
"调用 updatePage 工具参数错误,第一个参数要求是 PageFile 对象"
|
|
31771
31771
|
);
|
|
31772
31772
|
const o = e.updatePage(n);
|
|
31773
|
-
if (await
|
|
31773
|
+
if (await je(t.activeDelayMs), o) {
|
|
31774
31774
|
const { name: s, title: r, layout: a, dir: i, id: c } = o;
|
|
31775
31775
|
return { name: s, title: r, layout: a, dir: i, id: c };
|
|
31776
31776
|
}
|
|
@@ -31808,7 +31808,7 @@ const rO = {
|
|
|
31808
31808
|
createHandler: ({ project: e, config: t }) => async (n) => {
|
|
31809
31809
|
if (!e.getPage(n))
|
|
31810
31810
|
throw new Error(`页面不存在: ${n},请先调用 getPages 获取真实页面 ID`);
|
|
31811
|
-
return e.removePage(n), await
|
|
31811
|
+
return e.removePage(n), await je(t.activeDelayMs), !0;
|
|
31812
31812
|
}
|
|
31813
31813
|
}, dA = {
|
|
31814
31814
|
name: "getBlocks",
|
|
@@ -31857,7 +31857,7 @@ const rO = {
|
|
|
31857
31857
|
"调用 createBlock 工具参数错误,第一个参数要求是 BlockFile 对象"
|
|
31858
31858
|
);
|
|
31859
31859
|
const o = await e.createBlock(n);
|
|
31860
|
-
e.active(o), await
|
|
31860
|
+
e.active(o), await je(t.activeDelayMs);
|
|
31861
31861
|
const { name: s, title: r, category: a } = n;
|
|
31862
31862
|
return o ? {
|
|
31863
31863
|
name: s,
|
|
@@ -31901,7 +31901,7 @@ const rO = {
|
|
|
31901
31901
|
],
|
|
31902
31902
|
createHandler: ({ project: e, config: t }) => async (n) => {
|
|
31903
31903
|
const o = e.updateBlock(n);
|
|
31904
|
-
if (await
|
|
31904
|
+
if (await je(t.activeDelayMs), o) {
|
|
31905
31905
|
const { name: s, title: r, id: a, category: i } = n;
|
|
31906
31906
|
return {
|
|
31907
31907
|
name: s,
|
|
@@ -31928,7 +31928,7 @@ const rO = {
|
|
|
31928
31928
|
throw new Error(
|
|
31929
31929
|
`区块不存在: ${n},请先调用 getBlocks 获取真实区块 ID`
|
|
31930
31930
|
);
|
|
31931
|
-
return e.removeBlock(n), await
|
|
31931
|
+
return e.removeBlock(n), await je(t.activeDelayMs), !0;
|
|
31932
31932
|
}
|
|
31933
31933
|
}, mA = {
|
|
31934
31934
|
name: "active",
|
|
@@ -31943,7 +31943,7 @@ const rO = {
|
|
|
31943
31943
|
],
|
|
31944
31944
|
createHandler: ({ project: e, config: t }) => async (n) => {
|
|
31945
31945
|
const o = e.getFile(n);
|
|
31946
|
-
return o ? (e.active(o), await
|
|
31946
|
+
return o ? (e.active(o), await je(t.activeDelayMs), !0) : null;
|
|
31947
31947
|
}
|
|
31948
31948
|
}, hA = {
|
|
31949
31949
|
name: "getCurrentFile",
|
|
@@ -31990,7 +31990,7 @@ const rO = {
|
|
|
31990
31990
|
n = r;
|
|
31991
31991
|
};
|
|
31992
31992
|
try {
|
|
31993
|
-
e.simulator.refresh(), await
|
|
31993
|
+
e.simulator.refresh(), await je(t.activeDelayMs), await je(1e3);
|
|
31994
31994
|
} finally {
|
|
31995
31995
|
e.provider.errorHandler = o;
|
|
31996
31996
|
}
|
|
@@ -32132,7 +32132,7 @@ ${s.join(`
|
|
|
32132
32132
|
createHandler({ project: e, config: t }) {
|
|
32133
32133
|
return async (n) => {
|
|
32134
32134
|
const o = e.setApi(n);
|
|
32135
|
-
return await
|
|
32135
|
+
return await je(t.activeDelayMs), o;
|
|
32136
32136
|
};
|
|
32137
32137
|
}
|
|
32138
32138
|
}, _A = {
|
|
@@ -32140,7 +32140,7 @@ ${s.join(`
|
|
|
32140
32140
|
description: "获取当前项目可用的APIs",
|
|
32141
32141
|
parameters: [],
|
|
32142
32142
|
createHandler({ project: e, config: t }) {
|
|
32143
|
-
return async () => (await
|
|
32143
|
+
return async () => (await je(t.activeDelayMs), e.apis);
|
|
32144
32144
|
}
|
|
32145
32145
|
}, wA = {
|
|
32146
32146
|
name: "setApis",
|
|
@@ -32280,7 +32280,7 @@ ${s.join(`
|
|
|
32280
32280
|
const o = [];
|
|
32281
32281
|
for (const s of n)
|
|
32282
32282
|
o.push(e.setApi(s));
|
|
32283
|
-
return await
|
|
32283
|
+
return await je(t.activeDelayMs), o;
|
|
32284
32284
|
};
|
|
32285
32285
|
}
|
|
32286
32286
|
}, EA = {
|
|
@@ -32301,7 +32301,7 @@ ${s.join(`
|
|
|
32301
32301
|
throw new Error(
|
|
32302
32302
|
`API 不存在: ${n},请先调用 getApis 获取真实 API 名称或 ID`
|
|
32303
32303
|
);
|
|
32304
|
-
return e.removeApi(n), await
|
|
32304
|
+
return e.removeApi(n), await je(t.activeDelayMs), !0;
|
|
32305
32305
|
}
|
|
32306
32306
|
}, kA = {
|
|
32307
32307
|
name: "removeApis",
|
|
@@ -32334,7 +32334,7 @@ ${s.join(`
|
|
|
32334
32334
|
);
|
|
32335
32335
|
for (const s of n)
|
|
32336
32336
|
e.removeApi(s);
|
|
32337
|
-
return await
|
|
32337
|
+
return await je(t.activeDelayMs), !0;
|
|
32338
32338
|
}
|
|
32339
32339
|
}, SA = {
|
|
32340
32340
|
name: "getDeps",
|
|
@@ -32498,7 +32498,7 @@ ${s.join(`
|
|
|
32498
32498
|
required: !0
|
|
32499
32499
|
}
|
|
32500
32500
|
],
|
|
32501
|
-
createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await
|
|
32501
|
+
createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await je(t.activeDelayMs), !0)
|
|
32502
32502
|
}, OA = {
|
|
32503
32503
|
name: "setGlobalCss",
|
|
32504
32504
|
description: "设置应用的全局css代码",
|
|
@@ -32510,13 +32510,13 @@ ${s.join(`
|
|
|
32510
32510
|
required: !0
|
|
32511
32511
|
}
|
|
32512
32512
|
],
|
|
32513
|
-
createHandler: ({ project: e, config: t }) => async (n) => (e.platform === "uniapp" ? e.setUniConfig("css", n) : e.setGloblas("css", n), await
|
|
32513
|
+
createHandler: ({ project: e, config: t }) => async (n) => (e.platform === "uniapp" ? e.setUniConfig("css", n) : e.setGloblas("css", n), await je(t.activeDelayMs), !0)
|
|
32514
32514
|
}, AA = {
|
|
32515
32515
|
name: "getGlobalCss",
|
|
32516
32516
|
description: "获取应用的全局css代码",
|
|
32517
32517
|
parameters: [],
|
|
32518
32518
|
createHandler: ({ project: e, config: t }) => async () => {
|
|
32519
|
-
if (await
|
|
32519
|
+
if (await je(t.activeDelayMs), e.platform === "uniapp")
|
|
32520
32520
|
e.uniConfig.css;
|
|
32521
32521
|
else
|
|
32522
32522
|
return e.globals.css || "没有全局CSS";
|
|
@@ -32555,12 +32555,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32555
32555
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("store", {
|
|
32556
32556
|
type: "JSFunction",
|
|
32557
32557
|
value: n
|
|
32558
|
-
}), await
|
|
32558
|
+
}), await je(t.activeDelayMs), !0)
|
|
32559
32559
|
}, RA = {
|
|
32560
32560
|
name: "getGlobalStore",
|
|
32561
32561
|
description: "获取应用的全局状态(Pinia Store)",
|
|
32562
32562
|
parameters: [],
|
|
32563
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32563
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
|
|
32564
32564
|
}, DA = {
|
|
32565
32565
|
name: "setGlobalAccess",
|
|
32566
32566
|
description: "设置权限控制插件配置项",
|
|
@@ -32575,17 +32575,17 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32575
32575
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("access", {
|
|
32576
32576
|
type: "JSFunction",
|
|
32577
32577
|
value: n
|
|
32578
|
-
}), await
|
|
32578
|
+
}), await je(t.activeDelayMs), !0)
|
|
32579
32579
|
}, NA = {
|
|
32580
32580
|
name: "getGlobalAccess",
|
|
32581
32581
|
description: "查看权限控制插件配置项",
|
|
32582
32582
|
parameters: [],
|
|
32583
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32583
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
|
|
32584
32584
|
}, PA = {
|
|
32585
32585
|
name: "getGlobalAxios",
|
|
32586
32586
|
description: "查看Axios请求工具配置项",
|
|
32587
32587
|
parameters: [],
|
|
32588
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32588
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
|
|
32589
32589
|
}, VA = {
|
|
32590
32590
|
name: "setGlobalAxios",
|
|
32591
32591
|
description: "设置全局Axios请求工具配置项",
|
|
@@ -32600,7 +32600,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32600
32600
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("axios", {
|
|
32601
32601
|
type: "JSFunction",
|
|
32602
32602
|
value: n
|
|
32603
|
-
}), await
|
|
32603
|
+
}), await je(t.activeDelayMs), !0)
|
|
32604
32604
|
}, $A = {
|
|
32605
32605
|
name: "setGlobalRequestInterceptor",
|
|
32606
32606
|
description: "设置全局Axios全局请求拦截器",
|
|
@@ -32615,12 +32615,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32615
32615
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("request", {
|
|
32616
32616
|
type: "JSFunction",
|
|
32617
32617
|
value: n
|
|
32618
|
-
}), await
|
|
32618
|
+
}), await je(t.activeDelayMs), !0)
|
|
32619
32619
|
}, MA = {
|
|
32620
32620
|
name: "getGlobalRequestInterceptor",
|
|
32621
32621
|
description: "查看全局Axios全局请求拦截器",
|
|
32622
32622
|
parameters: [],
|
|
32623
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32623
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
|
|
32624
32624
|
}, jA = {
|
|
32625
32625
|
name: "setGlobalResponseInterceptor",
|
|
32626
32626
|
description: "设置全局Axios全局响应拦截器",
|
|
@@ -32635,22 +32635,22 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32635
32635
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("response", {
|
|
32636
32636
|
type: "JSFunction",
|
|
32637
32637
|
value: n
|
|
32638
|
-
}), await
|
|
32638
|
+
}), await je(t.activeDelayMs), !0)
|
|
32639
32639
|
}, LA = {
|
|
32640
32640
|
name: "getGlobalResponseInterceptor",
|
|
32641
32641
|
description: "查看全局Axios全局响应拦截器",
|
|
32642
32642
|
parameters: [],
|
|
32643
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32643
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
|
|
32644
32644
|
}, UA = {
|
|
32645
32645
|
name: "getGlobalBeforeEach",
|
|
32646
32646
|
description: "查看全局前置路由守卫",
|
|
32647
32647
|
parameters: [],
|
|
32648
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32648
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
|
|
32649
32649
|
}, BA = {
|
|
32650
32650
|
name: "getGlobalAfterEach",
|
|
32651
32651
|
description: "查看全局后置路由守卫",
|
|
32652
32652
|
parameters: [],
|
|
32653
|
-
createHandler: ({ project: e, config: t }) => async () => (await
|
|
32653
|
+
createHandler: ({ project: e, config: t }) => async () => (await je(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
|
|
32654
32654
|
}, zA = {
|
|
32655
32655
|
name: "setGlobalBeforeEach",
|
|
32656
32656
|
description: "设置全局前置路由守卫",
|
|
@@ -32665,7 +32665,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32665
32665
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("beforeEach", {
|
|
32666
32666
|
type: "JSFunction",
|
|
32667
32667
|
value: n
|
|
32668
|
-
}), await
|
|
32668
|
+
}), await je(t.activeDelayMs), !0)
|
|
32669
32669
|
}, FA = {
|
|
32670
32670
|
name: "setGlobalAfterEach",
|
|
32671
32671
|
description: "设置全局后置路由守卫",
|
|
@@ -32680,7 +32680,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
32680
32680
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("afterEach", {
|
|
32681
32681
|
type: "JSFunction",
|
|
32682
32682
|
value: n
|
|
32683
|
-
}), await
|
|
32683
|
+
}), await je(t.activeDelayMs), !0)
|
|
32684
32684
|
}, HA = {
|
|
32685
32685
|
name: "getNodeSelected",
|
|
32686
32686
|
description: "获取当前页面选中的节点路径,用于定位当前选中的页面元素,路径最后一个是选中的元素名称",
|
|
@@ -33255,7 +33255,7 @@ const xr = new nI(), Qn = z({
|
|
|
33255
33255
|
this.skeletonRef && (this.skeletonRef.isPreview = !1);
|
|
33256
33256
|
}
|
|
33257
33257
|
}
|
|
33258
|
-
}),
|
|
33258
|
+
}), Ne = z({
|
|
33259
33259
|
name: "SetterWrapper",
|
|
33260
33260
|
props: {
|
|
33261
33261
|
context: {
|
|
@@ -33621,7 +33621,7 @@ class sI {
|
|
|
33621
33621
|
this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
|
|
33622
33622
|
}
|
|
33623
33623
|
async updateRect() {
|
|
33624
|
-
await
|
|
33624
|
+
await je(100);
|
|
33625
33625
|
const t = l(this.selected), n = l(this.hover);
|
|
33626
33626
|
if (t) {
|
|
33627
33627
|
const o = t.el.getBoundingClientRect();
|
|
@@ -33643,7 +33643,7 @@ class sI {
|
|
|
33643
33643
|
this.lines.value = [];
|
|
33644
33644
|
return;
|
|
33645
33645
|
}
|
|
33646
|
-
await
|
|
33646
|
+
await je(100);
|
|
33647
33647
|
const t = this.engine.simulator.renderer?.context?.__refs || {}, n = [], o = Object.keys(Zo.nodes);
|
|
33648
33648
|
for (const s of o) {
|
|
33649
33649
|
const r = t[s];
|
|
@@ -34921,11 +34921,11 @@ class f2 extends Ac {
|
|
|
34921
34921
|
if (r || (r = a[0]?.id), !o || !s || !r) return;
|
|
34922
34922
|
const i = o.getPage(r);
|
|
34923
34923
|
i && !i.raw && (s.regionRef?.setActive("Pages"), this.simulator.ready(async () => {
|
|
34924
|
-
o.active(i), await
|
|
34924
|
+
o.active(i), await je(1e3), this.simulator.designer.value?.setSelected(this.current.value);
|
|
34925
34925
|
}));
|
|
34926
34926
|
const c = o.getBlock(r);
|
|
34927
34927
|
c && (s.regionRef?.setActive("Blocks"), this.simulator?.ready(async () => {
|
|
34928
|
-
o.active(c), await
|
|
34928
|
+
o.active(c), await je(1e3), this.simulator.designer.value?.setSelected(this.current.value);
|
|
34929
34929
|
}));
|
|
34930
34930
|
}
|
|
34931
34931
|
}
|
|
@@ -35527,13 +35527,13 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35527
35527
|
content: n.title
|
|
35528
35528
|
}, {
|
|
35529
35529
|
default: E(() => [
|
|
35530
|
-
re(
|
|
35530
|
+
re(te(n.label || n.name), 1)
|
|
35531
35531
|
]),
|
|
35532
35532
|
_: 1
|
|
35533
35533
|
}, 8, ["content"])) : (v(), $("span", {
|
|
35534
35534
|
key: 1,
|
|
35535
35535
|
title: n.name
|
|
35536
|
-
},
|
|
35536
|
+
}, te(n.label || n.name), 9, vI))
|
|
35537
35537
|
]),
|
|
35538
35538
|
default: E(() => [
|
|
35539
35539
|
I("div", bI, [
|
|
@@ -35556,10 +35556,10 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35556
35556
|
"model-value": "JSExpression"
|
|
35557
35557
|
}, {
|
|
35558
35558
|
prefix: E(() => [
|
|
35559
|
-
re(
|
|
35559
|
+
re(te(wI))
|
|
35560
35560
|
]),
|
|
35561
35561
|
suffix: E(() => [
|
|
35562
|
-
re(
|
|
35562
|
+
re(te(EI))
|
|
35563
35563
|
]),
|
|
35564
35564
|
_: 1
|
|
35565
35565
|
})) : j("", !0)
|
|
@@ -35581,7 +35581,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35581
35581
|
dropdown: E(() => [
|
|
35582
35582
|
y(l(Ia), null, {
|
|
35583
35583
|
default: E(() => [
|
|
35584
|
-
(v(!0), $(se, null,
|
|
35584
|
+
(v(!0), $(se, null, fe(n.setters, (T) => (v(), A(l(To), {
|
|
35585
35585
|
command: T,
|
|
35586
35586
|
key: T.name
|
|
35587
35587
|
}, {
|
|
@@ -35591,7 +35591,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35591
35591
|
"is-placeholder": T.name !== a.value.name
|
|
35592
35592
|
})
|
|
35593
35593
|
}, null, 8, ["class"]),
|
|
35594
|
-
re(" " +
|
|
35594
|
+
re(" " + te(T.label), 1)
|
|
35595
35595
|
]),
|
|
35596
35596
|
_: 2
|
|
35597
35597
|
}, 1032, ["command"]))), 128))
|
|
@@ -35633,7 +35633,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35633
35633
|
region: {}
|
|
35634
35634
|
},
|
|
35635
35635
|
setup(e) {
|
|
35636
|
-
return (t, n) => (v(), $("div", SI, "找不到符合【" +
|
|
35636
|
+
return (t, n) => (v(), $("div", SI, "找不到符合【" + te(e.region) + "】名称的区域组件", 1));
|
|
35637
35637
|
}
|
|
35638
35638
|
}), CI = { class: "v-brand-region" }, TI = /* @__PURE__ */ z({
|
|
35639
35639
|
name: "BrandRegion",
|
|
@@ -35648,7 +35648,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35648
35648
|
widgets: o,
|
|
35649
35649
|
widgetsRef: s
|
|
35650
35650
|
}), (r, a) => (v(), $("div", CI, [
|
|
35651
|
-
(v(!0), $(se, null,
|
|
35651
|
+
(v(!0), $(se, null, fe(l(o), (i) => (v(), A(l(Vn), {
|
|
35652
35652
|
ref_for: !0,
|
|
35653
35653
|
ref_key: "widgetsRef",
|
|
35654
35654
|
ref: s,
|
|
@@ -35670,7 +35670,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35670
35670
|
widgets: o,
|
|
35671
35671
|
widgetsRef: s
|
|
35672
35672
|
}), (r, a) => (v(), $("div", OI, [
|
|
35673
|
-
(v(!0), $(se, null,
|
|
35673
|
+
(v(!0), $(se, null, fe(l(o), (i) => (v(), A(l(Vn), {
|
|
35674
35674
|
ref_for: !0,
|
|
35675
35675
|
ref_key: "widgetsRef",
|
|
35676
35676
|
ref: s,
|
|
@@ -35693,7 +35693,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35693
35693
|
widgets: o,
|
|
35694
35694
|
widgetsRef: s
|
|
35695
35695
|
}), (r, a) => (v(), $("div", II, [
|
|
35696
|
-
(v(!0), $(se, null,
|
|
35696
|
+
(v(!0), $(se, null, fe(l(o), (i) => (v(), A(l(Vn), {
|
|
35697
35697
|
ref_for: !0,
|
|
35698
35698
|
ref_key: "widgetsRef",
|
|
35699
35699
|
ref: s,
|
|
@@ -35743,7 +35743,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35743
35743
|
}), (h, _) => (v(), $("div", DI, [
|
|
35744
35744
|
I("div", NI, [
|
|
35745
35745
|
I("div", PI, [
|
|
35746
|
-
(v(!0), $(se, null,
|
|
35746
|
+
(v(!0), $(se, null, fe(c.value, (k) => (v(), A(l(Ll), {
|
|
35747
35747
|
key: `icon-${k.name}`,
|
|
35748
35748
|
class: Oe(`v-apps-region-${k.name}`),
|
|
35749
35749
|
icon: k.icon,
|
|
@@ -35754,7 +35754,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35754
35754
|
}, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
|
|
35755
35755
|
]),
|
|
35756
35756
|
I("div", VI, [
|
|
35757
|
-
(v(!0), $(se, null,
|
|
35757
|
+
(v(!0), $(se, null, fe(d.value, (k) => (v(), A(l(Ll), {
|
|
35758
35758
|
key: `icon-${k.name}`,
|
|
35759
35759
|
icon: k.icon,
|
|
35760
35760
|
label: k.label,
|
|
@@ -35763,7 +35763,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35763
35763
|
])
|
|
35764
35764
|
]),
|
|
35765
35765
|
I("div", $I, [
|
|
35766
|
-
(v(!0), $(se, null,
|
|
35766
|
+
(v(!0), $(se, null, fe(c.value, (k) => (v(), $(se, {
|
|
35767
35767
|
key: k.name
|
|
35768
35768
|
}, [
|
|
35769
35769
|
k.cache ? (v(), A(wc, { key: 0 }, [
|
|
@@ -35821,7 +35821,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35821
35821
|
}, h = async () => {
|
|
35822
35822
|
g.value = !1, await Bt(), g.value = !0;
|
|
35823
35823
|
}, _ = () => c.value === "Designer", k = async () => {
|
|
35824
|
-
_() || (c.value = "Designer", await
|
|
35824
|
+
_() || (c.value = "Designer", await je(300));
|
|
35825
35825
|
}, T = [
|
|
35826
35826
|
{
|
|
35827
35827
|
label: "关闭其他",
|
|
@@ -35855,7 +35855,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35855
35855
|
onActionClick: b
|
|
35856
35856
|
}, {
|
|
35857
35857
|
menus: E(() => [
|
|
35858
|
-
(v(!0), $(se, null,
|
|
35858
|
+
(v(!0), $(se, null, fe(l(a), (C) => (v(), A(l(ze), {
|
|
35859
35859
|
mode: "icon",
|
|
35860
35860
|
size: "small",
|
|
35861
35861
|
type: l(c) === C.name ? "primary" : "info",
|
|
@@ -35869,7 +35869,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35869
35869
|
})
|
|
35870
35870
|
]),
|
|
35871
35871
|
default: E(() => [
|
|
35872
|
-
(v(!0), $(se, null,
|
|
35872
|
+
(v(!0), $(se, null, fe(l(o), (C) => (v(), $(se, {
|
|
35873
35873
|
key: C.name
|
|
35874
35874
|
}, [
|
|
35875
35875
|
g.value && l(c) === C.name ? (v(), A(l(Vn), {
|
|
@@ -35932,14 +35932,14 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35932
35932
|
return t({
|
|
35933
35933
|
widgets: c,
|
|
35934
35934
|
widgetsRef: d
|
|
35935
|
-
}), (h, _) => l(s) ? (v(), A(l(
|
|
35935
|
+
}), (h, _) => l(s) ? (v(), A(l(Me), {
|
|
35936
35936
|
key: 0,
|
|
35937
35937
|
class: "v-settings-region",
|
|
35938
35938
|
fit: "",
|
|
35939
35939
|
direction: "column"
|
|
35940
35940
|
}, {
|
|
35941
35941
|
default: E(() => [
|
|
35942
|
-
l(r) ? (v(), A(l(
|
|
35942
|
+
l(r) ? (v(), A(l(Me), {
|
|
35943
35943
|
key: 0,
|
|
35944
35944
|
flex: "",
|
|
35945
35945
|
justify: "space-between",
|
|
@@ -35947,17 +35947,17 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35947
35947
|
class: "v-settings-region__header"
|
|
35948
35948
|
}, {
|
|
35949
35949
|
default: E(() => [
|
|
35950
|
-
y(l(
|
|
35950
|
+
y(l(Me), { class: "v-settings-region__title" }, {
|
|
35951
35951
|
default: E(() => [
|
|
35952
35952
|
y(l(Hc)),
|
|
35953
35953
|
I("span", null, [
|
|
35954
|
-
re(
|
|
35955
|
-
I("i", null,
|
|
35954
|
+
re(te(l(r)?.model.name) + ": ", 1),
|
|
35955
|
+
I("i", null, te(l(r)?.model.id), 1)
|
|
35956
35956
|
])
|
|
35957
35957
|
]),
|
|
35958
35958
|
_: 1
|
|
35959
35959
|
}),
|
|
35960
|
-
g.value ? (v(), A(l(
|
|
35960
|
+
g.value ? (v(), A(l(Me), { key: 0 }, {
|
|
35961
35961
|
default: E(() => [
|
|
35962
35962
|
y(l(ze), {
|
|
35963
35963
|
onClick: m,
|
|
@@ -35971,7 +35971,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35971
35971
|
]),
|
|
35972
35972
|
_: 1
|
|
35973
35973
|
})) : j("", !0),
|
|
35974
|
-
l(r) && !l(r).model.locked ? (v(), A(l(
|
|
35974
|
+
l(r) && !l(r).model.locked ? (v(), A(l(Me), {
|
|
35975
35975
|
key: 1,
|
|
35976
35976
|
grow: "",
|
|
35977
35977
|
padding: !1
|
|
@@ -35986,7 +35986,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
35986
35986
|
onActionClick: b
|
|
35987
35987
|
}, {
|
|
35988
35988
|
default: E(() => [
|
|
35989
|
-
(v(!0), $(se, null,
|
|
35989
|
+
(v(!0), $(se, null, fe(l(c), (k) => (v(), $(se, {
|
|
35990
35990
|
key: k.name
|
|
35991
35991
|
}, [
|
|
35992
35992
|
f.value === k.name ? (v(), A(l(Vn), {
|
|
@@ -36031,7 +36031,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
36031
36031
|
widgetsRef: s
|
|
36032
36032
|
}), (i, c) => (v(), $("div", UI, [
|
|
36033
36033
|
I("div", BI, [
|
|
36034
|
-
(v(!0), $(se, null,
|
|
36034
|
+
(v(!0), $(se, null, fe(r.value, (d) => (v(), A(l(Vn), {
|
|
36035
36035
|
ref_for: !0,
|
|
36036
36036
|
ref_key: "widgetsRef",
|
|
36037
36037
|
ref: s,
|
|
@@ -36040,7 +36040,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
36040
36040
|
}, null, 8, ["region", "widget"]))), 256))
|
|
36041
36041
|
]),
|
|
36042
36042
|
I("div", zI, [
|
|
36043
|
-
(v(!0), $(se, null,
|
|
36043
|
+
(v(!0), $(se, null, fe(a.value, (d) => (v(), A(l(Vn), {
|
|
36044
36044
|
ref_for: !0,
|
|
36045
36045
|
ref_key: "widgetsRef",
|
|
36046
36046
|
ref: s,
|
|
@@ -36077,7 +36077,7 @@ const g2 = new gI(), mI = /* @__PURE__ */ z({
|
|
|
36077
36077
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f)
|
|
36078
36078
|
}, {
|
|
36079
36079
|
default: E(() => [
|
|
36080
|
-
(v(!0), $(se, null,
|
|
36080
|
+
(v(!0), $(se, null, fe(l(o), (f) => (v(), A(wc, {
|
|
36081
36081
|
key: f.name
|
|
36082
36082
|
}, [
|
|
36083
36083
|
i.value === f.name ? (v(), A(l(Vn), {
|
|
@@ -36162,7 +36162,7 @@ export {
|
|
|
36162
36162
|
er as ap,
|
|
36163
36163
|
tt as aq,
|
|
36164
36164
|
lo as ar,
|
|
36165
|
-
|
|
36165
|
+
Je as as,
|
|
36166
36166
|
uI as b,
|
|
36167
36167
|
Li as c,
|
|
36168
36168
|
Is as d,
|
|
@@ -36176,7 +36176,7 @@ export {
|
|
|
36176
36176
|
eh as l,
|
|
36177
36177
|
oh as m,
|
|
36178
36178
|
ih as n,
|
|
36179
|
-
|
|
36179
|
+
Pe as o,
|
|
36180
36180
|
dh as p,
|
|
36181
36181
|
Qn as q,
|
|
36182
36182
|
lI as r,
|
|
@@ -36184,7 +36184,7 @@ export {
|
|
|
36184
36184
|
cl as t,
|
|
36185
36185
|
nI as u,
|
|
36186
36186
|
kI as v,
|
|
36187
|
-
|
|
36187
|
+
Ne as w,
|
|
36188
36188
|
cI as x,
|
|
36189
36189
|
hI as y,
|
|
36190
36190
|
oI as z
|