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