@opentiny/tiny-engine-toolbar-save 2.3.0-rc.0 → 2.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +165 -131
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { reactive as x, ref as
|
|
3
|
-
import { ToolbarBase as
|
|
4
|
-
import { Select as R, Checkbox as j, DialogBox as Y, Popover as
|
|
5
|
-
import { useCanvas as
|
|
6
|
-
import { constants as
|
|
7
|
-
import { handlePageUpdate as
|
|
8
|
-
const
|
|
2
|
+
import { reactive as x, ref as h, onMounted as A, onUnmounted as O, resolveComponent as f, createElementBlock as J, openBlock as P, createVNode as v, withCtx as u, createBlock as L, createCommentVNode as U, createTextVNode as S, createElementVNode as k } from "vue";
|
|
3
|
+
import { ToolbarBase as I, VueMonaco as G } from "@opentiny/tiny-engine-common";
|
|
4
|
+
import { Select as R, Checkbox as j, DialogBox as Y, Popover as q, Button as z } from "@opentiny/vue";
|
|
5
|
+
import { useCanvas as B, getOptions as H, useNotify as D, useLayout as K, usePage as Q, getMetaApi as W, META_APP as X, useBlock as Z, useMessage as $ } from "@opentiny/tiny-engine-meta-register";
|
|
6
|
+
import { constants as N } from "@opentiny/tiny-engine-utils";
|
|
7
|
+
import { handlePageUpdate as ee } from "@opentiny/tiny-engine-common/js/http";
|
|
8
|
+
const V = {
|
|
9
9
|
id: "engine.toolbars.save",
|
|
10
10
|
type: "toolbars",
|
|
11
11
|
title: "save",
|
|
@@ -15,100 +15,100 @@ const E = {
|
|
|
15
15
|
},
|
|
16
16
|
renderType: "button"
|
|
17
17
|
}
|
|
18
|
-
}, { PAGE_STATUS:
|
|
18
|
+
}, { PAGE_STATUS: g, AUTO_SAVED: w } = N, _ = x({
|
|
19
19
|
visible: !1,
|
|
20
20
|
code: "",
|
|
21
21
|
originalCode: "",
|
|
22
22
|
disabled: !1
|
|
23
|
-
}),
|
|
24
|
-
var
|
|
25
|
-
const e =
|
|
26
|
-
t.label =
|
|
27
|
-
},
|
|
28
|
-
const { currentPage: e } =
|
|
29
|
-
page_content:
|
|
23
|
+
}), b = h(!1), te = async (a) => {
|
|
24
|
+
var s;
|
|
25
|
+
const e = W(X.BlockManage), { getCurrentBlock: o } = Z(), t = o();
|
|
26
|
+
t.label = a.fileName, t.content = a, b.value = !0, t.screenshot = await e.getBlockBase64(), await ((s = e.saveBlock) == null ? void 0 : s.call(e, t)), b.value = !1;
|
|
27
|
+
}, oe = async (a) => {
|
|
28
|
+
const { currentPage: e } = B().pageState, o = {
|
|
29
|
+
page_content: a
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
b.value = !0;
|
|
32
|
+
const t = {
|
|
33
|
+
id: e.id,
|
|
34
|
+
params: { ...e, ...o }
|
|
35
|
+
};
|
|
36
|
+
await ee(t), b.value = !1;
|
|
37
|
+
}, T = (a) => {
|
|
38
|
+
const { pageSettingState: e, isTemporaryPage: o } = Q(), { isBlock: t, canvasApi: s, pageState: l, resetBlockCanvasState: r, resetPageCanvasState: i } = B(), n = JSON.parse(a), { selectNode: c } = s.value;
|
|
39
|
+
if (t() ? r({ ...l, pageSchema: n }) : i({ ...l, pageSchema: n }), e != null && e.isAIPage) {
|
|
35
40
|
o.saved && (o.saved = !1), o.saved = !0;
|
|
36
41
|
const p = "page_content";
|
|
37
|
-
return e.currentPageData[p] =
|
|
42
|
+
return e.currentPageData[p] = n, Promise.resolve();
|
|
38
43
|
}
|
|
39
|
-
return c(null), t() ?
|
|
40
|
-
},
|
|
44
|
+
return c(null), t() ? te(n) : oe(n);
|
|
45
|
+
}, F = async () => {
|
|
41
46
|
var p;
|
|
42
|
-
const { isSaved:
|
|
43
|
-
if (
|
|
47
|
+
const { isSaved: a, getSchema: e } = B();
|
|
48
|
+
if (a() || _.disabled)
|
|
44
49
|
return;
|
|
45
|
-
const { beforeSave: o, saveMethod: t, saved:
|
|
50
|
+
const { beforeSave: o, saveMethod: t, saved: s } = H(V.id);
|
|
46
51
|
try {
|
|
47
52
|
if (typeof o == "function" && await o(), typeof t == "function" && await t())
|
|
48
53
|
return;
|
|
49
|
-
} catch (
|
|
50
|
-
|
|
54
|
+
} catch (d) {
|
|
55
|
+
D({
|
|
51
56
|
type: "error",
|
|
52
|
-
message: `Error in saving: ${
|
|
57
|
+
message: `Error in saving: ${d}`
|
|
53
58
|
});
|
|
54
59
|
}
|
|
55
|
-
const
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
+
const l = (p = K().layoutState) == null ? void 0 : p.pageStatus, r = l == null ? void 0 : l.state, i = l == null ? void 0 : l.data, n = {
|
|
61
|
+
[g.Release]: "当前页面未锁定,请先锁定再保存",
|
|
62
|
+
[g.Empty]: "当前应用无页面,请先新建页面再保存",
|
|
63
|
+
[g.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
|
|
64
|
+
[g.Lock]: `当前页面被 ${i == null ? void 0 : i.username} ${i == null ? void 0 : i.resetPasswordToken} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
|
|
60
65
|
};
|
|
61
|
-
if ([
|
|
62
|
-
|
|
66
|
+
if ([g.Release, g.Empty, g.Guest, g.Lock].includes(r)) {
|
|
67
|
+
D({
|
|
63
68
|
type: "error",
|
|
64
69
|
title: "保存失败",
|
|
65
|
-
message:
|
|
70
|
+
message: n[r]
|
|
66
71
|
});
|
|
67
72
|
return;
|
|
68
73
|
}
|
|
69
74
|
_.disabled = !0;
|
|
70
75
|
const c = e();
|
|
71
76
|
_.code = JSON.stringify(c || {}, null, 2), T(_.code).finally(() => {
|
|
72
|
-
if (_.disabled = !1, typeof
|
|
77
|
+
if (_.disabled = !1, typeof s == "function")
|
|
73
78
|
try {
|
|
74
|
-
|
|
75
|
-
} catch (
|
|
76
|
-
|
|
79
|
+
s();
|
|
80
|
+
} catch (d) {
|
|
81
|
+
D({
|
|
77
82
|
type: "error",
|
|
78
|
-
message: `Error in saved: ${
|
|
83
|
+
message: `Error in saved: ${d}`
|
|
79
84
|
});
|
|
80
85
|
}
|
|
81
86
|
});
|
|
82
|
-
},
|
|
87
|
+
}, ae = () => {
|
|
83
88
|
try {
|
|
84
|
-
const
|
|
85
|
-
return JSON.parse(
|
|
89
|
+
const a = localStorage.getItem(w) ?? "";
|
|
90
|
+
return JSON.parse(a) ?? !1;
|
|
86
91
|
} catch {
|
|
87
92
|
return !1;
|
|
88
93
|
}
|
|
89
|
-
},
|
|
94
|
+
}, ne = (a) => {
|
|
90
95
|
try {
|
|
91
|
-
return localStorage.setItem(
|
|
96
|
+
return localStorage.setItem(w, JSON.stringify(a)), !0;
|
|
92
97
|
} catch {
|
|
93
98
|
return !1;
|
|
94
99
|
}
|
|
95
|
-
},
|
|
96
|
-
const o = n.__vccOpts || n;
|
|
97
|
-
for (const [t, i] of e)
|
|
98
|
-
o[t] = i;
|
|
99
|
-
return o;
|
|
100
|
-
}, { OPEN_DELAY: ne } = B, ae = {
|
|
100
|
+
}, { OPEN_DELAY: se } = N, ie = {
|
|
101
101
|
saveCommon: T,
|
|
102
|
-
openCommon:
|
|
103
|
-
},
|
|
102
|
+
openCommon: F
|
|
103
|
+
}, le = {
|
|
104
104
|
components: {
|
|
105
|
-
VueMonaco:
|
|
106
|
-
TinyButton:
|
|
107
|
-
TinyPopover:
|
|
105
|
+
VueMonaco: G,
|
|
106
|
+
TinyButton: z,
|
|
107
|
+
TinyPopover: q,
|
|
108
108
|
TinyDialogBox: Y,
|
|
109
109
|
TinyCheckbox: j,
|
|
110
110
|
TinySelect: R,
|
|
111
|
-
ToolbarBase:
|
|
111
|
+
ToolbarBase: I
|
|
112
112
|
},
|
|
113
113
|
props: {
|
|
114
114
|
iconExpand: {
|
|
@@ -121,105 +121,139 @@ const E = {
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
setup() {
|
|
124
|
-
const
|
|
124
|
+
const a = [
|
|
125
125
|
{ value: 5, label: "5分钟" },
|
|
126
126
|
{ value: 10, label: "10分钟" },
|
|
127
127
|
{ value: 15, label: "15分钟" }
|
|
128
|
-
],
|
|
128
|
+
], e = x({
|
|
129
129
|
visible: !1,
|
|
130
130
|
code: "",
|
|
131
131
|
originalCode: "",
|
|
132
|
-
disabled: !1,
|
|
133
|
-
timeValue: 5,
|
|
134
132
|
checked: !1,
|
|
133
|
+
timeValue: 5,
|
|
135
134
|
preservationTime: null
|
|
136
|
-
}),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
135
|
+
}), o = h(null), { isSaved: t, setSaved: s, getSchema: l } = B(), { subscribe: r, unsubscribe: i } = $(), n = "toolbar-save", c = h(null);
|
|
136
|
+
A(() => {
|
|
137
|
+
r({
|
|
138
|
+
topic: "pageOrBlockInit",
|
|
139
|
+
subscriber: n,
|
|
140
|
+
callback: (y) => {
|
|
141
|
+
c.value = JSON.stringify(y), s(!0);
|
|
142
|
+
}
|
|
143
|
+
}), r({
|
|
144
|
+
topic: "schemaChange",
|
|
145
|
+
subscriber: n,
|
|
146
|
+
callback: () => {
|
|
147
|
+
if (c.value) {
|
|
148
|
+
const y = JSON.stringify(l()) === c.value;
|
|
149
|
+
s(y);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}), r({
|
|
153
|
+
topic: "schemaImport",
|
|
154
|
+
subscriber: n,
|
|
155
|
+
callback: () => {
|
|
156
|
+
if (c.value) {
|
|
157
|
+
const y = JSON.stringify(l()) === c.value;
|
|
158
|
+
s(y);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}), O(() => {
|
|
163
|
+
i({ topic: "pageOrBlockInit", subscriber: n }), i({ topic: "schemaChange", subscriber: n }), i({ topic: "schemaImport", subscriber: n });
|
|
164
|
+
});
|
|
165
|
+
const p = () => {
|
|
166
|
+
e.visible = !1, e.originalCode = "";
|
|
167
|
+
}, d = () => {
|
|
168
|
+
b.value || F();
|
|
169
|
+
}, C = () => {
|
|
141
170
|
T();
|
|
142
|
-
},
|
|
171
|
+
}, E = {
|
|
143
172
|
language: "json",
|
|
144
173
|
lineNumbers: !0,
|
|
145
174
|
minimap: {
|
|
146
175
|
enabled: !1
|
|
147
176
|
}
|
|
148
|
-
},
|
|
149
|
-
clearTimeout(
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
|
|
177
|
+
}, m = () => {
|
|
178
|
+
clearTimeout(e.preservationTime), e.preservationTime = setTimeout(() => {
|
|
179
|
+
d(), m();
|
|
180
|
+
}, e.timeValue * 60 * 1e3);
|
|
181
|
+
}, M = () => {
|
|
182
|
+
ne(e.checked), e.checked ? m() : clearTimeout(e.preservationTime);
|
|
154
183
|
};
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
clearTimeout(
|
|
184
|
+
return A(() => {
|
|
185
|
+
e.checked = ae(), e.checked && m();
|
|
186
|
+
}), O(() => {
|
|
187
|
+
clearTimeout(e.preservationTime);
|
|
159
188
|
}), {
|
|
160
|
-
state:
|
|
161
|
-
editor:
|
|
162
|
-
editorOptions:
|
|
163
|
-
isLoading:
|
|
164
|
-
isSaved:
|
|
165
|
-
close:
|
|
166
|
-
openApi:
|
|
167
|
-
saveApi:
|
|
168
|
-
delayOptions:
|
|
169
|
-
saveConfig:
|
|
170
|
-
OPEN_DELAY:
|
|
189
|
+
state: e,
|
|
190
|
+
editor: o,
|
|
191
|
+
editorOptions: E,
|
|
192
|
+
isLoading: b,
|
|
193
|
+
isSaved: t,
|
|
194
|
+
close: p,
|
|
195
|
+
openApi: d,
|
|
196
|
+
saveApi: C,
|
|
197
|
+
delayOptions: a,
|
|
198
|
+
saveConfig: M,
|
|
199
|
+
OPEN_DELAY: se
|
|
171
200
|
};
|
|
172
201
|
}
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
202
|
+
}, ce = (a, e) => {
|
|
203
|
+
const o = a.__vccOpts || a;
|
|
204
|
+
for (const [t, s] of e)
|
|
205
|
+
o[t] = s;
|
|
206
|
+
return o;
|
|
207
|
+
}, re = { class: "toolbar-save" }, ue = { class: "save-style" }, de = { class: "save-time" }, me = { class: "save-button-group" };
|
|
208
|
+
function ve(a, e, o, t, s, l) {
|
|
209
|
+
const r = f("svg-icon"), i = f("tiny-checkbox"), n = f("tiny-select"), c = f("tiny-button"), p = f("tiny-popover"), d = f("vue-monaco"), C = f("tiny-dialog-box"), E = f("toolbar-base");
|
|
210
|
+
return P(), J("div", re, [
|
|
211
|
+
v(E, {
|
|
178
212
|
content: t.isLoading ? "保存中" : "保存",
|
|
179
213
|
icon: o.options.icon.default || o.options.icon,
|
|
180
214
|
options: { ...o.options, showDots: !t.isSaved() },
|
|
181
215
|
onClickApi: t.openApi
|
|
182
216
|
}, {
|
|
183
|
-
button:
|
|
184
|
-
|
|
217
|
+
button: u(() => [
|
|
218
|
+
v(p, {
|
|
185
219
|
"visible-arrow": !1,
|
|
186
220
|
width: "203",
|
|
187
221
|
trigger: "click",
|
|
188
222
|
"open-delay": t.OPEN_DELAY.Default
|
|
189
223
|
}, {
|
|
190
|
-
reference:
|
|
191
|
-
|
|
224
|
+
reference: u(() => [
|
|
225
|
+
v(r, { name: o.iconExpand }, null, 8, ["name"])
|
|
192
226
|
]),
|
|
193
|
-
default:
|
|
194
|
-
|
|
195
|
-
e[6] || (e[6] =
|
|
196
|
-
|
|
227
|
+
default: u(() => [
|
|
228
|
+
k("div", ue, [
|
|
229
|
+
e[6] || (e[6] = k("div", { class: "save-setting" }, "保存设置", -1)),
|
|
230
|
+
v(i, {
|
|
197
231
|
modelValue: t.state.checked,
|
|
198
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
232
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.state.checked = m),
|
|
199
233
|
name: "tiny-checkbox"
|
|
200
234
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
235
|
+
default: u(() => e[3] || (e[3] = [
|
|
236
|
+
S("自动保存")
|
|
203
237
|
])),
|
|
204
238
|
_: 1
|
|
205
239
|
}, 8, ["modelValue"]),
|
|
206
|
-
|
|
207
|
-
e[4] || (e[4] =
|
|
208
|
-
|
|
240
|
+
k("div", de, [
|
|
241
|
+
e[4] || (e[4] = k("div", { class: "save-time-label" }, "保存间隔", -1)),
|
|
242
|
+
v(n, {
|
|
209
243
|
modelValue: t.state.timeValue,
|
|
210
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
244
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.timeValue = m),
|
|
211
245
|
options: t.delayOptions,
|
|
212
246
|
disabled: !t.state.checked,
|
|
213
247
|
autocomplete: ""
|
|
214
248
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
215
249
|
]),
|
|
216
|
-
|
|
217
|
-
|
|
250
|
+
k("div", me, [
|
|
251
|
+
v(c, {
|
|
218
252
|
type: "primary",
|
|
219
253
|
onClick: t.saveConfig
|
|
220
254
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
255
|
+
default: u(() => e[5] || (e[5] = [
|
|
256
|
+
S("设置并保存")
|
|
223
257
|
])),
|
|
224
258
|
_: 1
|
|
225
259
|
}, 8, ["onClick"])
|
|
@@ -229,35 +263,35 @@ function de(n, e, o, t, i, a) {
|
|
|
229
263
|
_: 1
|
|
230
264
|
}, 8, ["open-delay"])
|
|
231
265
|
]),
|
|
232
|
-
default:
|
|
233
|
-
|
|
266
|
+
default: u(() => [
|
|
267
|
+
v(C, {
|
|
234
268
|
class: "dialog-box",
|
|
235
269
|
modal: !1,
|
|
236
270
|
fullscreen: !0,
|
|
237
271
|
"append-to-body": !0,
|
|
238
272
|
visible: t.state.visible,
|
|
239
273
|
title: "Schema 本地与线上差异",
|
|
240
|
-
"onUpdate:visible": e[2] || (e[2] = (
|
|
274
|
+
"onUpdate:visible": e[2] || (e[2] = (m) => t.state.visible = m)
|
|
241
275
|
}, {
|
|
242
|
-
footer:
|
|
243
|
-
|
|
244
|
-
default:
|
|
245
|
-
|
|
276
|
+
footer: u(() => [
|
|
277
|
+
v(c, { onClick: t.close }, {
|
|
278
|
+
default: u(() => e[7] || (e[7] = [
|
|
279
|
+
S("取 消")
|
|
246
280
|
])),
|
|
247
281
|
_: 1
|
|
248
282
|
}, 8, ["onClick"]),
|
|
249
|
-
|
|
283
|
+
v(c, {
|
|
250
284
|
type: "primary",
|
|
251
285
|
onClick: t.saveApi
|
|
252
286
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
287
|
+
default: u(() => e[8] || (e[8] = [
|
|
288
|
+
S("保 存")
|
|
255
289
|
])),
|
|
256
290
|
_: 1
|
|
257
291
|
}, 8, ["onClick"])
|
|
258
292
|
]),
|
|
259
|
-
default:
|
|
260
|
-
t.state.visible ? (
|
|
293
|
+
default: u(() => [
|
|
294
|
+
t.state.visible ? (P(), L(d, {
|
|
261
295
|
key: 0,
|
|
262
296
|
ref: "editor",
|
|
263
297
|
class: "monaco-editor",
|
|
@@ -265,7 +299,7 @@ function de(n, e, o, t, i, a) {
|
|
|
265
299
|
options: t.editorOptions,
|
|
266
300
|
value: t.state.code,
|
|
267
301
|
original: t.state.originalCode
|
|
268
|
-
}, null, 8, ["options", "value", "original"])) :
|
|
302
|
+
}, null, 8, ["options", "value", "original"])) : U("", !0)
|
|
269
303
|
]),
|
|
270
304
|
_: 1
|
|
271
305
|
}, 8, ["visible"])
|
|
@@ -274,11 +308,11 @@ function de(n, e, o, t, i, a) {
|
|
|
274
308
|
}, 8, ["content", "icon", "options", "onClickApi"])
|
|
275
309
|
]);
|
|
276
310
|
}
|
|
277
|
-
const
|
|
278
|
-
...
|
|
279
|
-
entry:
|
|
280
|
-
apis:
|
|
311
|
+
const pe = /* @__PURE__ */ ce(le, [["render", ve], ["__scopeId", "data-v-047f42c8"]]), Be = {
|
|
312
|
+
...V,
|
|
313
|
+
entry: pe,
|
|
314
|
+
apis: ie
|
|
281
315
|
};
|
|
282
316
|
export {
|
|
283
|
-
|
|
317
|
+
Be as default
|
|
284
318
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dots[data-v-
|
|
1
|
+
.dots[data-v-047f42c8]{width:6px;height:6px;background:var(--te-toolbars-save-dot-color);border-radius:50%;display:inline-block;position:absolute;top:4px;right:3px;z-index:100}.toolbar-save .icon-down-arrow.icon-down-arrow[data-v-047f42c8]{margin-left:var(--te-base-space-2x);margin-right:var(--te-base-space-0)}.toolbar-save .save-button[data-v-047f42c8]{background-color:var(--te-toolbars-save-button-bg-color);border:none;min-width:70px;height:26px;display:flex;align-items:center;padding:0 8px;border-radius:4px}.toolbar-save .save-button[data-v-047f42c8]:not(.disabled):hover{background-color:var(--te-toolbars-save-button-bg-color)}.toolbar-save[data-v-047f42c8] .icon-down-arrow:focus{outline:none}.save-style[data-v-047f42c8]{padding:8px 4px;font-size:12px}.save-style .save-setting[data-v-047f42c8]{font-size:14px;font-weight:600;line-height:20px;height:20px;margin-bottom:16px}.save-style .save-time[data-v-047f42c8]{line-height:24px;font-size:12px;margin:12px 0 16px;display:flex}.save-style .save-time .save-time-label[data-v-047f42c8]{width:60px;color:var(--te-toolbars-save-text-color)}.save-style .save-time .tiny-select[data-v-047f42c8]{width:103px;margin-left:12px}.save-style .save-time .tiny-select[data-v-047f42c8] .tiny-input__suffix{width:12px}.save-style .save-time[data-v-047f42c8] .tiny-select.is-disabled .tiny-input__suffix{display:flex}.save-style .save-button-group[data-v-047f42c8]{text-align:right}#saving[data-v-047f42c8]{cursor:not-allowed;color:var(--te-toolbars-save-text-color-disabled)}#saving[data-v-047f42c8] svg{color:var(--te-toolbars-save-text-color-disabled)}.dialog-box[data-v-047f42c8] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-047f42c8] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-047f42c8]{width:100%;height:100%}.changeRole a{color:var(--te-toolbars-save-text-color-link);padding:0 5px}.save-style .save-time .tiny-input__inner{height:24px!important}:root{--te-toolbars-save-text-color: var(--te-common-text-secondary);--te-toolbars-save-text-color-disabled: var(--te-common-text-disabled);--te-toolbars-save-dot-color: var(--te-common-color-error);--te-toolbars-save-button-bg-color: var(--te-common-bg-prompt);--te-toolbars-save-text-color-link: var(--te-common-text-link)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-toolbar-save",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-rc.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"homepage": "https://opentiny.design/tiny-engine",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@opentiny/tiny-engine-common": "2.
|
|
29
|
-
"@opentiny/tiny-engine-meta-register": "2.
|
|
30
|
-
"@opentiny/tiny-engine-utils": "2.
|
|
28
|
+
"@opentiny/tiny-engine-common": "2.4.0-rc.0",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.4.0-rc.0",
|
|
30
|
+
"@opentiny/tiny-engine-utils": "2.4.0-rc.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.
|
|
33
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0-rc.0",
|
|
34
34
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
35
35
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
36
36
|
"vite": "^5.4.2"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@opentiny/vue": "^3.20.0",
|
|
40
40
|
"vue": "^3.4.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "40df6ee51c80bf918c176f7e8ad97b6b687ddc7b"
|
|
43
43
|
}
|