@opentiny/tiny-engine-toolbar-save 2.2.0 → 2.3.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 +164 -135
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { reactive as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { constants as
|
|
7
|
-
import { handlePageUpdate as
|
|
8
|
-
const
|
|
2
|
+
import { reactive as N, ref as B, resolveComponent as f, createElementBlock as L, openBlock as x, createVNode as v, withCtx as d, createBlock as U, createCommentVNode as I, createTextVNode as S, createElementVNode as k, onMounted as P, onUnmounted as E } from "vue";
|
|
3
|
+
import { ToolbarBase as G, VueMonaco as R } from "@opentiny/tiny-engine-common";
|
|
4
|
+
import { Select as j, Checkbox as Y, DialogBox as q, Popover as z, Button as F } from "@opentiny/vue";
|
|
5
|
+
import { useCanvas as C, getOptions as H, useNotify as A, 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 V } from "@opentiny/tiny-engine-utils";
|
|
7
|
+
import { handlePageUpdate as ee } from "@opentiny/tiny-engine-common/js/http";
|
|
8
|
+
const w = {
|
|
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: D } = V, _ = N({
|
|
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 = B(!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 } = C().pageState, o = {
|
|
29
|
+
page_content: a
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
const { pageSettingState: e, isTemporaryPage: o } =
|
|
34
|
-
if (t() ?
|
|
31
|
+
b.value = !0, await ee(e.id, { ...e, ...o }, !1, !0), b.value = !1;
|
|
32
|
+
}, O = (a) => {
|
|
33
|
+
const { pageSettingState: e, isTemporaryPage: o } = Q(), { isBlock: t, canvasApi: s, pageState: l, resetBlockCanvasState: r, resetPageCanvasState: i } = C(), n = JSON.parse(a), { selectNode: c } = s.value;
|
|
34
|
+
if (t() ? r({ ...l, pageSchema: n }) : i({ ...l, pageSchema: n }), e != null && e.isAIPage) {
|
|
35
35
|
o.saved && (o.saved = !1), o.saved = !0;
|
|
36
36
|
const p = "page_content";
|
|
37
|
-
return e.currentPageData[p] =
|
|
37
|
+
return e.currentPageData[p] = n, Promise.resolve();
|
|
38
38
|
}
|
|
39
|
-
return c(null), t() ?
|
|
40
|
-
},
|
|
39
|
+
return c(null), t() ? te(n) : oe(n);
|
|
40
|
+
}, M = async () => {
|
|
41
41
|
var p;
|
|
42
|
-
const { isSaved:
|
|
43
|
-
if (
|
|
42
|
+
const { isSaved: a, getSchema: e } = C();
|
|
43
|
+
if (a() || _.disabled)
|
|
44
44
|
return;
|
|
45
|
-
const { beforeSave: o, saveMethod: t, saved:
|
|
45
|
+
const { beforeSave: o, saveMethod: t, saved: s } = H(w.id);
|
|
46
46
|
try {
|
|
47
47
|
if (typeof o == "function" && await o(), typeof t == "function" && await t())
|
|
48
48
|
return;
|
|
49
|
-
} catch (
|
|
50
|
-
|
|
49
|
+
} catch (u) {
|
|
50
|
+
A({
|
|
51
51
|
type: "error",
|
|
52
|
-
message: `Error in saving: ${
|
|
52
|
+
message: `Error in saving: ${u}`
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
55
|
+
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 = {
|
|
56
|
+
[g.Release]: "当前页面未锁定,请先锁定再保存",
|
|
57
|
+
[g.Empty]: "当前应用无页面,请先新建页面再保存",
|
|
58
|
+
[g.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
|
|
59
|
+
[g.Lock]: `当前页面被 ${i == null ? void 0 : i.username} ${i == null ? void 0 : i.resetPasswordToken} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
|
|
60
60
|
};
|
|
61
|
-
if ([
|
|
62
|
-
|
|
61
|
+
if ([g.Release, g.Empty, g.Guest, g.Lock].includes(r)) {
|
|
62
|
+
A({
|
|
63
63
|
type: "error",
|
|
64
64
|
title: "保存失败",
|
|
65
|
-
message:
|
|
65
|
+
message: n[r]
|
|
66
66
|
});
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
_.disabled = !0;
|
|
70
70
|
const c = e();
|
|
71
|
-
_.code = JSON.stringify(c || {}, null, 2),
|
|
72
|
-
if (_.disabled = !1, typeof
|
|
71
|
+
_.code = JSON.stringify(c || {}, null, 2), O(_.code).finally(() => {
|
|
72
|
+
if (_.disabled = !1, typeof s == "function")
|
|
73
73
|
try {
|
|
74
|
-
|
|
75
|
-
} catch (
|
|
76
|
-
|
|
74
|
+
s();
|
|
75
|
+
} catch (u) {
|
|
76
|
+
A({
|
|
77
77
|
type: "error",
|
|
78
|
-
message: `Error in saved: ${
|
|
78
|
+
message: `Error in saved: ${u}`
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
},
|
|
82
|
+
}, ae = () => {
|
|
83
83
|
try {
|
|
84
|
-
const
|
|
85
|
-
return JSON.parse(
|
|
84
|
+
const a = localStorage.getItem(D);
|
|
85
|
+
return JSON.parse(a) ?? !1;
|
|
86
86
|
} catch {
|
|
87
87
|
return !1;
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, ne = (a) => {
|
|
90
90
|
try {
|
|
91
|
-
return localStorage.setItem(
|
|
91
|
+
return localStorage.setItem(D, JSON.stringify(a)), !0;
|
|
92
92
|
} catch {
|
|
93
93
|
return !1;
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
const o =
|
|
97
|
-
for (const [t,
|
|
98
|
-
o[t] =
|
|
95
|
+
}, se = (a, e) => {
|
|
96
|
+
const o = a.__vccOpts || a;
|
|
97
|
+
for (const [t, s] of e)
|
|
98
|
+
o[t] = s;
|
|
99
99
|
return o;
|
|
100
|
-
}, { OPEN_DELAY:
|
|
101
|
-
saveCommon:
|
|
102
|
-
openCommon:
|
|
103
|
-
},
|
|
100
|
+
}, { OPEN_DELAY: ie } = V, le = {
|
|
101
|
+
saveCommon: O,
|
|
102
|
+
openCommon: M
|
|
103
|
+
}, ce = {
|
|
104
104
|
components: {
|
|
105
|
-
VueMonaco:
|
|
106
|
-
TinyButton:
|
|
107
|
-
TinyPopover:
|
|
108
|
-
TinyDialogBox:
|
|
109
|
-
TinyCheckbox:
|
|
110
|
-
TinySelect:
|
|
111
|
-
ToolbarBase:
|
|
105
|
+
VueMonaco: R,
|
|
106
|
+
TinyButton: F,
|
|
107
|
+
TinyPopover: z,
|
|
108
|
+
TinyDialogBox: q,
|
|
109
|
+
TinyCheckbox: Y,
|
|
110
|
+
TinySelect: j,
|
|
111
|
+
ToolbarBase: G
|
|
112
112
|
},
|
|
113
113
|
props: {
|
|
114
114
|
iconExpand: {
|
|
@@ -121,105 +121,134 @@ 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 = N({
|
|
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
|
-
|
|
135
|
+
}), o = B(null), { isSaved: t, setSaved: s, getSchema: l } = C(), { subscribe: r, unsubscribe: i } = $(), n = "toolbar-save", c = B(null);
|
|
136
|
+
P(() => {
|
|
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
|
+
}), E(() => {
|
|
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 = "";
|
|
140
167
|
}, u = () => {
|
|
141
|
-
|
|
142
|
-
},
|
|
168
|
+
b.value || M();
|
|
169
|
+
}, h = () => {
|
|
170
|
+
O();
|
|
171
|
+
}, T = {
|
|
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
|
+
u(), m();
|
|
180
|
+
}, e.timeValue * 60 * 1e3);
|
|
181
|
+
}, J = () => {
|
|
182
|
+
ne(e.checked), e.checked ? m() : clearTimeout(e.preservationTime);
|
|
154
183
|
};
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
clearTimeout(
|
|
184
|
+
return P(() => {
|
|
185
|
+
e.checked = ae(), e.checked && m();
|
|
186
|
+
}), E(() => {
|
|
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: T,
|
|
192
|
+
isLoading: b,
|
|
193
|
+
isSaved: t,
|
|
194
|
+
close: p,
|
|
195
|
+
openApi: u,
|
|
196
|
+
saveApi: h,
|
|
197
|
+
delayOptions: a,
|
|
198
|
+
saveConfig: J,
|
|
199
|
+
OPEN_DELAY: ie
|
|
171
200
|
};
|
|
172
201
|
}
|
|
173
|
-
},
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
return
|
|
177
|
-
|
|
202
|
+
}, re = { class: "toolbar-save" }, de = { class: "save-style" }, ue = { class: "save-time" }, me = { class: "save-button-group" };
|
|
203
|
+
function ve(a, e, o, t, s, l) {
|
|
204
|
+
const r = f("svg-icon"), i = f("tiny-checkbox"), n = f("tiny-select"), c = f("tiny-button"), p = f("tiny-popover"), u = f("vue-monaco"), h = f("tiny-dialog-box"), T = f("toolbar-base");
|
|
205
|
+
return x(), L("div", re, [
|
|
206
|
+
v(T, {
|
|
178
207
|
content: t.isLoading ? "保存中" : "保存",
|
|
179
208
|
icon: o.options.icon.default || o.options.icon,
|
|
180
209
|
options: { ...o.options, showDots: !t.isSaved() },
|
|
181
210
|
onClickApi: t.openApi
|
|
182
211
|
}, {
|
|
183
|
-
button:
|
|
184
|
-
|
|
212
|
+
button: d(() => [
|
|
213
|
+
v(p, {
|
|
185
214
|
"visible-arrow": !1,
|
|
186
215
|
width: "203",
|
|
187
216
|
trigger: "click",
|
|
188
217
|
"open-delay": t.OPEN_DELAY.Default
|
|
189
218
|
}, {
|
|
190
|
-
reference:
|
|
191
|
-
|
|
219
|
+
reference: d(() => [
|
|
220
|
+
v(r, { name: o.iconExpand }, null, 8, ["name"])
|
|
192
221
|
]),
|
|
193
|
-
default:
|
|
194
|
-
|
|
195
|
-
e[6] || (e[6] =
|
|
196
|
-
|
|
222
|
+
default: d(() => [
|
|
223
|
+
k("div", de, [
|
|
224
|
+
e[6] || (e[6] = k("div", { class: "save-setting" }, "保存设置", -1)),
|
|
225
|
+
v(i, {
|
|
197
226
|
modelValue: t.state.checked,
|
|
198
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
227
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.state.checked = m),
|
|
199
228
|
name: "tiny-checkbox"
|
|
200
229
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
230
|
+
default: d(() => e[3] || (e[3] = [
|
|
231
|
+
S("自动保存")
|
|
203
232
|
])),
|
|
204
233
|
_: 1
|
|
205
234
|
}, 8, ["modelValue"]),
|
|
206
|
-
|
|
207
|
-
e[4] || (e[4] =
|
|
208
|
-
|
|
235
|
+
k("div", ue, [
|
|
236
|
+
e[4] || (e[4] = k("div", { class: "save-time-label" }, "保存间隔", -1)),
|
|
237
|
+
v(n, {
|
|
209
238
|
modelValue: t.state.timeValue,
|
|
210
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
239
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.timeValue = m),
|
|
211
240
|
options: t.delayOptions,
|
|
212
241
|
disabled: !t.state.checked,
|
|
213
242
|
autocomplete: ""
|
|
214
243
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
215
244
|
]),
|
|
216
|
-
|
|
217
|
-
|
|
245
|
+
k("div", me, [
|
|
246
|
+
v(c, {
|
|
218
247
|
type: "primary",
|
|
219
248
|
onClick: t.saveConfig
|
|
220
249
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
250
|
+
default: d(() => e[5] || (e[5] = [
|
|
251
|
+
S("设置并保存")
|
|
223
252
|
])),
|
|
224
253
|
_: 1
|
|
225
254
|
}, 8, ["onClick"])
|
|
@@ -229,35 +258,35 @@ function de(n, e, o, t, i, a) {
|
|
|
229
258
|
_: 1
|
|
230
259
|
}, 8, ["open-delay"])
|
|
231
260
|
]),
|
|
232
|
-
default:
|
|
233
|
-
|
|
261
|
+
default: d(() => [
|
|
262
|
+
v(h, {
|
|
234
263
|
class: "dialog-box",
|
|
235
264
|
modal: !1,
|
|
236
265
|
fullscreen: !0,
|
|
237
266
|
"append-to-body": !0,
|
|
238
267
|
visible: t.state.visible,
|
|
239
268
|
title: "Schema 本地与线上差异",
|
|
240
|
-
"onUpdate:visible": e[2] || (e[2] = (
|
|
269
|
+
"onUpdate:visible": e[2] || (e[2] = (m) => t.state.visible = m)
|
|
241
270
|
}, {
|
|
242
|
-
footer:
|
|
243
|
-
|
|
244
|
-
default:
|
|
245
|
-
|
|
271
|
+
footer: d(() => [
|
|
272
|
+
v(c, { onClick: t.close }, {
|
|
273
|
+
default: d(() => e[7] || (e[7] = [
|
|
274
|
+
S("取 消")
|
|
246
275
|
])),
|
|
247
276
|
_: 1
|
|
248
277
|
}, 8, ["onClick"]),
|
|
249
|
-
|
|
278
|
+
v(c, {
|
|
250
279
|
type: "primary",
|
|
251
280
|
onClick: t.saveApi
|
|
252
281
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
282
|
+
default: d(() => e[8] || (e[8] = [
|
|
283
|
+
S("保 存")
|
|
255
284
|
])),
|
|
256
285
|
_: 1
|
|
257
286
|
}, 8, ["onClick"])
|
|
258
287
|
]),
|
|
259
|
-
default:
|
|
260
|
-
t.state.visible ? (
|
|
288
|
+
default: d(() => [
|
|
289
|
+
t.state.visible ? (x(), U(u, {
|
|
261
290
|
key: 0,
|
|
262
291
|
ref: "editor",
|
|
263
292
|
class: "monaco-editor",
|
|
@@ -265,7 +294,7 @@ function de(n, e, o, t, i, a) {
|
|
|
265
294
|
options: t.editorOptions,
|
|
266
295
|
value: t.state.code,
|
|
267
296
|
original: t.state.originalCode
|
|
268
|
-
}, null, 8, ["options", "value", "original"])) :
|
|
297
|
+
}, null, 8, ["options", "value", "original"])) : I("", !0)
|
|
269
298
|
]),
|
|
270
299
|
_: 1
|
|
271
300
|
}, 8, ["visible"])
|
|
@@ -274,11 +303,11 @@ function de(n, e, o, t, i, a) {
|
|
|
274
303
|
}, 8, ["content", "icon", "options", "onClickApi"])
|
|
275
304
|
]);
|
|
276
305
|
}
|
|
277
|
-
const
|
|
278
|
-
...
|
|
279
|
-
entry:
|
|
280
|
-
apis:
|
|
306
|
+
const pe = /* @__PURE__ */ se(ce, [["render", ve], ["__scopeId", "data-v-204025a1"]]), Ce = {
|
|
307
|
+
...w,
|
|
308
|
+
entry: pe,
|
|
309
|
+
apis: le
|
|
281
310
|
};
|
|
282
311
|
export {
|
|
283
|
-
|
|
312
|
+
Ce as default
|
|
284
313
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dots[data-v-
|
|
1
|
+
.dots[data-v-204025a1]{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-204025a1]{margin-left:var(--te-base-space-2x);margin-right:var(--te-base-space-0)}.toolbar-save .save-button[data-v-204025a1]{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-204025a1]:not(.disabled):hover{background-color:var(--te-toolbars-save-button-bg-color)}.toolbar-save[data-v-204025a1] .icon-down-arrow:focus{outline:none}.save-style[data-v-204025a1]{padding:8px 4px;font-size:12px}.save-style .save-setting[data-v-204025a1]{font-size:14px;font-weight:600;line-height:20px;height:20px;margin-bottom:16px}.save-style .save-time[data-v-204025a1]{line-height:24px;font-size:12px;margin:12px 0 16px;display:flex}.save-style .save-time .save-time-label[data-v-204025a1]{width:60px;color:var(--te-toolbars-save-text-color)}.save-style .save-time .tiny-select[data-v-204025a1]{width:103px;margin-left:12px}.save-style .save-time .tiny-select[data-v-204025a1] .tiny-input__suffix{width:12px}.save-style .save-time[data-v-204025a1] .tiny-select.is-disabled .tiny-input__suffix{display:flex}.save-style .save-button-group[data-v-204025a1]{text-align:right}#saving[data-v-204025a1]{cursor:not-allowed;color:var(--te-toolbars-save-text-color-disabled)}#saving[data-v-204025a1] svg{color:var(--te-toolbars-save-text-color-disabled)}.dialog-box[data-v-204025a1] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-204025a1] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-204025a1]{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.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,19 +25,19 @@
|
|
|
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.3.0",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.3.0",
|
|
30
|
+
"@opentiny/tiny-engine-utils": "2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.
|
|
33
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.3.0",
|
|
34
34
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
35
35
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
36
36
|
"vite": "^5.4.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@opentiny/vue": "^3.
|
|
39
|
+
"@opentiny/vue": "^3.20.0",
|
|
40
40
|
"vue": "^3.4.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "330c4d2b319d5b5ba6ad64c270c21a7931a2e400"
|
|
43
43
|
}
|