@opentiny/tiny-engine-toolbar-save 2.5.0 → 2.5.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.
Files changed (2) hide show
  1. package/dist/index.js +19 -15
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { reactive as N, ref as B, onMounted as P, onUnmounted as x, resolveComponent as f, createElementBlock as U, openBlock as E, createVNode as p, withCtx as d, createBlock as I, createCommentVNode as G, createTextVNode as S, createElementVNode as k } from "vue";
2
+ import { reactive as N, ref as B, onMounted as P, onUnmounted as x, resolveComponent as f, createElementBlock as U, openBlock as E, createVNode as p, withCtx as d, createBlock as I, createCommentVNode as G, createTextVNode as S, createElementVNode as _ } from "vue";
3
3
  import { ToolbarBase as R, VueMonaco as j } from "@opentiny/tiny-engine-common";
4
4
  import { Select as Y, Checkbox as q, DialogBox as z, Popover as F, Button as H } from "@opentiny/vue";
5
5
  import { useMessage as V, useCanvas as C, getOptions as K, useNotify as A, useLayout as Q, usePage as W, getMetaApi as X, META_APP as Z, useBlock as $ } from "@opentiny/tiny-engine-meta-register";
@@ -15,7 +15,7 @@ const D = {
15
15
  },
16
16
  renderType: "button"
17
17
  }
18
- }, { publish: te } = V(), { PAGE_STATUS: g, AUTO_SAVED: M } = w, _ = N({
18
+ }, { publish: te } = V(), { PAGE_STATUS: g, AUTO_SAVED: M } = w, k = N({
19
19
  visible: !1,
20
20
  code: "",
21
21
  originalCode: "",
@@ -45,7 +45,7 @@ const D = {
45
45
  }, J = async () => {
46
46
  var v;
47
47
  const { isSaved: a, getSchema: e } = C();
48
- if (a() || _.disabled)
48
+ if (a() || k.disabled)
49
49
  return;
50
50
  const { beforeSave: o, saveMethod: t, saved: s } = K(D.id);
51
51
  try {
@@ -71,10 +71,10 @@ const D = {
71
71
  });
72
72
  return;
73
73
  }
74
- _.disabled = !0;
74
+ k.disabled = !0;
75
75
  const c = e();
76
- _.code = JSON.stringify(c || {}, null, 2), O(_.code).finally(() => {
77
- if (_.disabled = !1, typeof s == "function")
76
+ k.code = JSON.stringify(c || {}, null, 2), O(k.code).finally(() => {
77
+ if (k.disabled = !1, typeof s == "function")
78
78
  try {
79
79
  s();
80
80
  } catch (u) {
@@ -225,8 +225,8 @@ function ve(a, e, o, t, s, l) {
225
225
  p(r, { name: o.iconExpand }, null, 8, ["name"])
226
226
  ]),
227
227
  default: d(() => [
228
- k("div", ue, [
229
- e[6] || (e[6] = k("div", { class: "save-setting" }, "保存设置", -1)),
228
+ _("div", ue, [
229
+ e[6] || (e[6] = _("div", { class: "save-setting" }, "保存设置", -1)),
230
230
  p(i, {
231
231
  modelValue: t.state.checked,
232
232
  "onUpdate:modelValue": e[0] || (e[0] = (m) => t.state.checked = m),
@@ -235,10 +235,11 @@ function ve(a, e, o, t, s, l) {
235
235
  default: d(() => e[3] || (e[3] = [
236
236
  S("自动保存")
237
237
  ])),
238
- _: 1
238
+ _: 1,
239
+ __: [3]
239
240
  }, 8, ["modelValue"]),
240
- k("div", me, [
241
- e[4] || (e[4] = k("div", { class: "save-time-label" }, "保存间隔", -1)),
241
+ _("div", me, [
242
+ e[4] || (e[4] = _("div", { class: "save-time-label" }, "保存间隔", -1)),
242
243
  p(n, {
243
244
  modelValue: t.state.timeValue,
244
245
  "onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.timeValue = m),
@@ -247,7 +248,7 @@ function ve(a, e, o, t, s, l) {
247
248
  autocomplete: ""
248
249
  }, null, 8, ["modelValue", "options", "disabled"])
249
250
  ]),
250
- k("div", pe, [
251
+ _("div", pe, [
251
252
  p(c, {
252
253
  type: "primary",
253
254
  onClick: t.saveConfig
@@ -255,7 +256,8 @@ function ve(a, e, o, t, s, l) {
255
256
  default: d(() => e[5] || (e[5] = [
256
257
  S("设置并保存")
257
258
  ])),
258
- _: 1
259
+ _: 1,
260
+ __: [5]
259
261
  }, 8, ["onClick"])
260
262
  ])
261
263
  ])
@@ -278,7 +280,8 @@ function ve(a, e, o, t, s, l) {
278
280
  default: d(() => e[7] || (e[7] = [
279
281
  S("取 消")
280
282
  ])),
281
- _: 1
283
+ _: 1,
284
+ __: [7]
282
285
  }, 8, ["onClick"]),
283
286
  p(c, {
284
287
  type: "primary",
@@ -287,7 +290,8 @@ function ve(a, e, o, t, s, l) {
287
290
  default: d(() => e[8] || (e[8] = [
288
291
  S("保 存")
289
292
  ])),
290
- _: 1
293
+ _: 1,
294
+ __: [8]
291
295
  }, 8, ["onClick"])
292
296
  ]),
293
297
  default: d(() => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-save",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
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.5.0",
29
- "@opentiny/tiny-engine-meta-register": "2.5.0",
30
- "@opentiny/tiny-engine-utils": "2.5.0"
28
+ "@opentiny/tiny-engine-common": "2.5.1",
29
+ "@opentiny/tiny-engine-meta-register": "2.5.1",
30
+ "@opentiny/tiny-engine-utils": "2.5.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.1",
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": "db1033835ed51b30398716070cc73e7ac985b3f3"
42
+ "gitHead": "108fdf8b27cc1904c35cbb21b32be62fdbd86968"
43
43
  }