@opentiny/tiny-engine-toolbar-media 1.0.1 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 - present TinyEngine Authors.
4
+ Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import "./style.css";
2
- import { ref as V, computed as M, reactive as z, toRaw as R, watchEffect as j, watch as G, onMounted as H, onUnmounted as J, resolveComponent as C, openBlock as v, createElementBlock as W, createElementVNode as i, Fragment as K, renderList as Q, normalizeClass as Y, createVNode as b, withCtx as p, toDisplayString as c, createTextVNode as I, createBlock as E, createCommentVNode as N, pushScopeId as Z, popScopeId as $ } from "vue";
3
- import { Popover as ee, Input as te, Switch as ie } from "@opentiny/vue";
4
- import { IconWebPlus as D } from "@opentiny/vue-icon";
5
- import { useLayout as h } from "@opentiny/tiny-engine-controller";
6
- import { getCanvasType as ne, setCanvasType as oe } from "@opentiny/tiny-engine-canvas";
7
- const se = (d, l) => {
2
+ import { ref as V, computed as E, reactive as K, toRaw as Q, watch as F, watchEffect as Y, onMounted as Z, onUnmounted as $, resolveComponent as k, openBlock as w, createElementBlock as C, createElementVNode as t, Fragment as ee, renderList as te, normalizeClass as ne, createVNode as _, withCtx as p, toDisplayString as c, createTextVNode as W, createBlock as L, createCommentVNode as I, pushScopeId as oe, popScopeId as ie } from "vue";
3
+ import { Popover as ae, Input as se, Switch as le } from "@opentiny/vue";
4
+ import { IconWebPlus as P } from "@opentiny/vue-icon";
5
+ import { useLayout as y } from "@opentiny/tiny-engine-controller";
6
+ import { getCanvasType as de, setCanvasType as ce } from "@opentiny/tiny-engine-canvas";
7
+ const re = (d, l) => {
8
8
  const r = d.__vccOpts || d;
9
9
  for (const [n, u] of l)
10
10
  r[n] = u;
11
11
  return r;
12
- }, ae = {
12
+ }, pe = {
13
13
  components: {
14
- TinyPopover: ee,
15
- TinyInput: te,
16
- TinySwitch: ie
14
+ TinyPopover: ae,
15
+ TinyInput: se,
16
+ TinySwitch: le
17
17
  },
18
18
  props: {
19
19
  data: {
@@ -27,7 +27,7 @@ const se = (d, l) => {
27
27
  },
28
28
  setup(d, { emit: l }) {
29
29
  let r = null, n = "", u = "";
30
- const { layoutState: _ } = h(), m = V(!1), w = V(!1), x = V(!1), T = V(ne() === "absolute"), s = M(() => h().getDimension()), y = M(() => s.value.scale * 100), t = z({
30
+ const { layoutState: b } = y(), m = V(!1), h = V(!1), v = V(!1), T = V(de() === "absolute"), o = E(() => y().getDimension()), x = E(() => o.value.scale * 100), i = K({
31
31
  activeIndex: 0,
32
32
  guideValue: "",
33
33
  width: "",
@@ -38,15 +38,15 @@ const se = (d, l) => {
38
38
  title: "添加大断点",
39
39
  list: [
40
40
  {
41
- icon: D(),
41
+ icon: P(),
42
42
  text: "1280px"
43
43
  },
44
44
  {
45
- icon: D(),
45
+ icon: P(),
46
46
  text: "1440px"
47
47
  },
48
48
  {
49
- icon: D(),
49
+ icon: P(),
50
50
  text: "1920px"
51
51
  }
52
52
  ],
@@ -144,120 +144,113 @@ const se = (d, l) => {
144
144
  enContent: "styles added here will apply at 480px and down."
145
145
  }
146
146
  ]
147
- }), L = () => {
148
- w.value = !1;
149
- }, B = () => {
147
+ }), B = () => {
148
+ h.value = !1;
149
+ }, U = () => {
150
150
  r = setTimeout(() => {
151
151
  m.value = !0;
152
152
  }, 1e3);
153
- }, F = () => {
154
- m.value = !1, clearTimeout(r);
155
- }, U = () => {
156
- _.toolbars.visiblePopover = !0, x.value = !0;
157
153
  }, A = () => {
158
- _.toolbars.visiblePopover = !1, x.value = !1;
159
- }, P = (e) => {
160
- const o = document.querySelector(".reference-text"), a = o == null ? void 0 : o.contains(e.target);
161
- o !== e.target && !a && (_.toolbars.visiblePopover = !1);
162
- }, g = t.media.reduce((e, o, a) => (e[o.view] = { ...R(o), index: a }, e), {}), S = (e) => {
163
- d.isCanvas ? (h().setDimension({
154
+ m.value = !1, clearTimeout(r);
155
+ }, O = () => {
156
+ b.toolbars.visiblePopover = !0, v.value = !0;
157
+ }, X = () => {
158
+ b.toolbars.visiblePopover = !1, v.value = !1;
159
+ }, D = (e) => {
160
+ const a = document.querySelector(".reference-text"), s = a == null ? void 0 : a.contains(e.target);
161
+ a !== e.target && !s && (b.toolbars.visiblePopover = !1);
162
+ }, g = i.media.reduce((e, a, s) => (e[a.view] = { ...Q(a), index: s }, e), {}), N = (e) => {
163
+ d.isCanvas ? y().setDimension({
164
164
  deviceType: e.view,
165
165
  width: e.width,
166
166
  minWidth: e.minWidth,
167
167
  maxWidth: e.maxWidth
168
- }), t.width = parseInt(e.width, 10), t.scaleValue = y.value.toFixed(2), t.readonly = e.view !== "mdx") : (t.activeIndex = e.idx, l("setViewPort", e.width));
169
- }, f = (e, o) => {
170
- const a = g[o];
171
- t.activeIndex = g[o].index, h().setDimension({
172
- deviceType: a.view,
173
- width: e ? `${e}px` : a.width,
174
- minWidth: a.minWidth,
175
- maxWidth: a.maxWidth
168
+ }) : (i.activeIndex = e.idx, l("setViewPort", e.width));
169
+ }, q = (e, a) => {
170
+ const s = g[a];
171
+ y().setDimension({
172
+ deviceType: s.view,
173
+ width: e ? `${e}px` : s.width,
174
+ minWidth: s.minWidth,
175
+ maxWidth: s.maxWidth
176
176
  });
177
- }, O = (e) => {
178
- const o = "^[0-9]*$", a = h().getDimension();
179
- switch (String(e).match(o) ? String(e) === "0" || Number(e) < 240 ? (t.width = 240, n = 240) : Number(e) > 1920 ? (t.width = 1920, n = 1920) : n = e : t.width = n || parseInt(a.width), !0) {
180
- case (1200 < Number(t.width) && Number(t.width) <= 1920):
181
- f(e, "mdx");
182
- break;
183
- case (992 < Number(t.width) && Number(t.width) <= 1200):
184
- f(e, "desktop");
185
- break;
186
- case (768 < Number(t.width) && Number(t.width) <= 992):
187
- f(e, "tablet");
188
- break;
189
- case (480 < Number(t.width) && Number(t.width) <= 768):
190
- f(e, "lanMobile");
191
- break;
192
- case (240 <= Number(t.width) && Number(t.width) <= 480):
193
- f(e, "mobile");
194
- break;
195
- }
196
- }, X = (e) => {
197
- const o = g.mdx, a = "^[0-9]*$";
198
- String(e).match(a) ? Number(e) > 100 ? t.scaleValue = 100 : Number(e) < 20 ? t.scaleValue = 20 : u = e : t.scaleValue = u || parseInt(o.scale), h().setDimension({
199
- deviceType: o.view,
200
- width: o.width,
201
- minWidth: o.minWidth,
202
- maxWidth: o.maxWidth,
203
- scale: Number(t.scaleValue) / 100
177
+ }, z = [
178
+ { type: "mobile", min: 240, max: 480 },
179
+ { type: "lanMobile", min: 480, max: 768 },
180
+ { type: "tablet", min: 768, max: 992 },
181
+ { type: "desktop", min: 992, max: 1200 },
182
+ { type: "mdx", min: 1200, max: 1920 }
183
+ ], R = (e) => {
184
+ var S;
185
+ const a = /^\d+$/;
186
+ String(e).match(a) ? Number(e) < 240 ? i.width = 240 : Number(e) > 1920 ? i.width = 1920 : i.width = e : i.width = n || parseInt(o.value.width, 10);
187
+ const s = Number(i.width), J = ((S = z.find((M) => M.min <= s && s <= M.max)) == null ? void 0 : S.type) || "desktop";
188
+ q(s, J);
189
+ }, j = (e) => {
190
+ const a = g.mdx, s = /^\d+(\.\d+)?$/;
191
+ String(e).match(s) ? Number(e) > 100 ? i.scaleValue = 100 : Number(e) < 20 ? i.scaleValue = 20 : i.scaleValue = e : i.scaleValue = u || parseInt(a.scale), i.scaleValue = Number(i.scaleValue).toFixed(2), y().setDimension({
192
+ scale: Number(i.scaleValue) / 100
204
193
  });
205
- }, q = (e) => {
206
- oe(e ? "absolute" : "normal");
194
+ }, G = (e) => {
195
+ ce(e ? "absolute" : "normal");
207
196
  };
208
- return j(
209
- () => {
210
- const e = s.value.deviceType || "desktop";
211
- t.activeIndex = g[e].index || 0, S(g[e]);
197
+ F(
198
+ () => o.value.deviceType,
199
+ (e) => {
200
+ i.activeIndex = g[e].index, i.readonly = e !== "mdx";
212
201
  },
213
- { flush: "post" }
214
- ), G(
215
- () => h().getDimension().width,
202
+ { immediate: !0 }
203
+ ), Y(() => {
204
+ i.scaleValue = x.value.toFixed(2), u = x.value;
205
+ }), F(
206
+ () => o.value.width,
216
207
  (e) => {
217
- const o = parseInt(e, 10);
218
- Number.isInteger(o) && o !== t.width && (t.width = o);
208
+ const a = parseInt(e, 10);
209
+ Number.isInteger(a) && (i.width = a, n = a);
219
210
  }
220
- ), H(() => {
221
- document.addEventListener("click", P);
222
- }), J(() => {
223
- document.removeEventListener("click", P);
224
- }), {
225
- scale: y,
226
- state: t,
227
- active: w,
228
- flag: x,
229
- hide: L,
230
- layoutState: _,
211
+ ), Z(() => {
212
+ document.addEventListener("click", D);
213
+ }), $(() => {
214
+ document.removeEventListener("click", D);
215
+ });
216
+ const H = o.value.deviceType || "desktop";
217
+ return N(g[H]), {
218
+ scale: x,
219
+ state: i,
220
+ active: h,
221
+ flag: v,
222
+ hide: B,
223
+ layoutState: b,
231
224
  visible: m,
232
- showTips: B,
233
- hideTips: F,
225
+ showTips: U,
226
+ hideTips: A,
234
227
  timer: r,
235
- dimension: s,
236
- setViewPort: S,
237
- showPopover: U,
238
- hidePopover: A,
239
- widthChange: O,
240
- scaleChange: X,
228
+ dimension: o,
229
+ setViewPort: N,
230
+ showPopover: O,
231
+ hidePopover: X,
232
+ widthChange: R,
233
+ scaleChange: j,
241
234
  isAbsolute: T,
242
- changeCanvasType: q
235
+ changeCanvasType: G
243
236
  };
244
237
  }
245
- }, k = (d) => (Z("data-v-c1e7d8e3"), d = d(), $(), d), le = { class: "toolbar-wrap" }, de = { class: "toolbar-icon-wrap" }, ce = ["onClick"], re = { class: "media-content" }, pe = { class: "media-title" }, he = {
238
+ }, f = (d) => (oe("data-v-9eb930f1"), d = d(), ie(), d), ue = { class: "toolbar-wrap" }, me = { class: "toolbar-icon-wrap" }, he = ["onClick"], ve = { class: "media-content" }, xe = { class: "media-title" }, we = {
246
239
  key: 0,
247
240
  class: "sub-title"
248
- }, ue = { class: "content" }, me = { class: "reference-text" }, we = /* @__PURE__ */ k(() => /* @__PURE__ */ i("span", { class: "symbol" }, "PX", -1)), xe = /* @__PURE__ */ k(() => /* @__PURE__ */ i("span", { class: "symbol" }, "%", -1)), ve = { class: "content-wrap text-content" }, be = { class: "title text-title" }, _e = { class: "setting" }, ye = { for: "" }, ge = /* @__PURE__ */ k(() => /* @__PURE__ */ i("span", null, "PX", -1)), fe = { for: "" }, ke = /* @__PURE__ */ k(() => /* @__PURE__ */ i("span", null, "%", -1)), Ve = { class: "more-setting" }, Ce = /* @__PURE__ */ k(() => /* @__PURE__ */ i("div", null, [
249
- /* @__PURE__ */ i("span", null, /* @__PURE__ */ c("自由布局"))
241
+ }, _e = { class: "content" }, be = { class: "reference-text" }, ye = /* @__PURE__ */ f(() => /* @__PURE__ */ t("span", { class: "symbol" }, "PX", -1)), fe = /* @__PURE__ */ f(() => /* @__PURE__ */ t("span", { class: "symbol" }, "%", -1)), ge = { class: "content-wrap text-content" }, Ve = { class: "title text-title" }, ke = { class: "setting" }, Ce = { for: "" }, Te = /* @__PURE__ */ f(() => /* @__PURE__ */ t("span", null, "PX", -1)), We = { for: "" }, Ie = /* @__PURE__ */ f(() => /* @__PURE__ */ t("span", null, "%", -1)), Pe = { class: "more-setting" }, De = /* @__PURE__ */ f(() => /* @__PURE__ */ t("div", null, [
242
+ /* @__PURE__ */ t("span", null, /* @__PURE__ */ c("自由布局"))
250
243
  ], -1));
251
- function We(d, l, r, n, u, _) {
252
- const m = C("svg-icon"), w = C("tiny-popover"), x = C("tiny-input"), T = C("tiny-switch");
253
- return v(), W("div", le, [
254
- i("div", de, [
255
- (v(!0), W(K, null, Q(n.state.media, (s, y) => (v(), W("span", {
256
- key: y,
257
- class: Y(["icon", { active: n.state.activeIndex === y, "is-rotate": s.view === "lanMobile" }]),
258
- onClick: (t) => n.setViewPort(s)
244
+ function Ne(d, l, r, n, u, b) {
245
+ const m = k("svg-icon"), h = k("tiny-popover"), v = k("tiny-input"), T = k("tiny-switch");
246
+ return w(), C("div", ue, [
247
+ t("div", me, [
248
+ (w(!0), C(ee, null, te(n.state.media, (o, x) => (w(), C("span", {
249
+ key: x,
250
+ class: ne(["icon", { active: n.state.activeIndex === x, "is-rotate": o.view === "lanMobile" }]),
251
+ onClick: (i) => n.setViewPort(o)
259
252
  }, [
260
- b(w, {
253
+ _(h, {
261
254
  trigger: "hover",
262
255
  width: "225",
263
256
  "append-to-body": "",
@@ -265,41 +258,41 @@ function We(d, l, r, n, u, _) {
265
258
  "popper-class": "media-icon-popover"
266
259
  }, {
267
260
  reference: p(() => [
268
- b(m, {
269
- name: s.liked,
261
+ _(m, {
262
+ name: o.liked,
270
263
  class: "media-icon"
271
264
  }, null, 8, ["name"])
272
265
  ]),
273
266
  default: p(() => [
274
- i("div", re, [
275
- i("div", pe, [
276
- i("div", null, c(s.title), 1),
277
- s.subTitle ? (v(), W("div", he, [
278
- I(" ("),
279
- s.view === "desktop" ? (v(), E(m, {
267
+ t("div", ve, [
268
+ t("div", xe, [
269
+ t("div", null, c(o.title), 1),
270
+ o.subTitle ? (w(), C("div", we, [
271
+ W(" ("),
272
+ o.view === "desktop" ? (w(), L(m, {
280
273
  key: 0,
281
274
  name: "stars"
282
- })) : N("", !0),
283
- I(),
284
- i("span", null, c(s.subTitle), 1),
285
- I(") ")
286
- ])) : N("", !0)
275
+ })) : I("", !0),
276
+ W(),
277
+ t("span", null, c(o.subTitle), 1),
278
+ W(") ")
279
+ ])) : I("", !0)
287
280
  ]),
288
- i("div", ue, c(s.content), 1)
281
+ t("div", _e, c(o.content), 1)
289
282
  ])
290
283
  ]),
291
284
  _: 2
292
285
  }, 1024)
293
- ], 10, ce))), 128))
286
+ ], 10, he))), 128))
294
287
  ]),
295
- r.isCanvas ? (v(), E(w, {
288
+ r.isCanvas ? (w(), L(h, {
296
289
  key: 0,
297
290
  width: "290",
298
291
  trigger: "click",
299
292
  "popper-class": "toolbar-media-popper"
300
293
  }, {
301
294
  reference: p(() => [
302
- b(w, {
295
+ _(h, {
303
296
  trigger: "hover",
304
297
  "open-delay": 1e3,
305
298
  "popper-class": "toolbar-right-popover",
@@ -307,14 +300,14 @@ function We(d, l, r, n, u, _) {
307
300
  content: "画布设置"
308
301
  }, {
309
302
  reference: p(() => [
310
- i("span", me, [
311
- i("span", null, [
312
- i("span", null, c(parseInt(n.state.width)), 1),
313
- we
303
+ t("span", be, [
304
+ t("span", null, [
305
+ t("span", null, c(parseInt(n.state.width)), 1),
306
+ ye
314
307
  ]),
315
- i("span", null, [
316
- i("span", null, c(n.scale.toFixed(2)), 1),
317
- xe
308
+ t("span", null, [
309
+ t("span", null, c(n.scale.toFixed(2)), 1),
310
+ fe
318
311
  ])
319
312
  ])
320
313
  ]),
@@ -322,44 +315,44 @@ function We(d, l, r, n, u, _) {
322
315
  })
323
316
  ]),
324
317
  default: p(() => [
325
- i("div", ve, [
326
- i("span", be, c(n.state.textData.title), 1),
327
- i("div", _e, [
328
- i("div", null, [
329
- i("label", ye, c(n.state.textData.width), 1),
330
- b(x, {
318
+ t("div", ge, [
319
+ t("span", Ve, c(n.state.textData.title), 1),
320
+ t("div", ke, [
321
+ t("div", null, [
322
+ t("label", Ce, c(n.state.textData.width), 1),
323
+ _(v, {
331
324
  modelValue: n.state.width,
332
- "onUpdate:modelValue": l[0] || (l[0] = (s) => n.state.width = s),
325
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => n.state.width = o),
333
326
  onChange: n.widthChange
334
327
  }, {
335
328
  suffix: p(() => [
336
- ge
329
+ Te
337
330
  ]),
338
331
  _: 1
339
332
  }, 8, ["modelValue", "onChange"])
340
333
  ]),
341
- i("div", null, [
342
- i("label", fe, c(n.state.textData.scale), 1),
343
- b(x, {
334
+ t("div", null, [
335
+ t("label", We, c(n.state.textData.scale), 1),
336
+ _(v, {
344
337
  modelValue: n.state.scaleValue,
345
- "onUpdate:modelValue": l[1] || (l[1] = (s) => n.state.scaleValue = s),
338
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => n.state.scaleValue = o),
346
339
  readonly: n.state.readonly,
347
340
  onChange: n.scaleChange
348
341
  }, {
349
342
  suffix: p(() => [
350
- ke
343
+ Ie
351
344
  ]),
352
345
  _: 1
353
346
  }, 8, ["modelValue", "readonly", "onChange"])
354
347
  ])
355
348
  ]),
356
- i("ul", Ve, [
357
- i("li", null, [
358
- Ce,
359
- i("div", null, [
360
- b(T, {
349
+ t("ul", Pe, [
350
+ t("li", null, [
351
+ De,
352
+ t("div", null, [
353
+ _(T, {
361
354
  modelValue: n.isAbsolute,
362
- "onUpdate:modelValue": l[2] || (l[2] = (s) => n.isAbsolute = s),
355
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => n.isAbsolute = o),
363
356
  onChange: n.changeCanvasType
364
357
  }, null, 8, ["modelValue", "onChange"])
365
358
  ])
@@ -368,16 +361,16 @@ function We(d, l, r, n, u, _) {
368
361
  ])
369
362
  ]),
370
363
  _: 1
371
- })) : N("", !0)
364
+ })) : I("", !0)
372
365
  ]);
373
366
  }
374
- const Te = /* @__PURE__ */ se(ae, [["render", We], ["__scopeId", "data-v-c1e7d8e3"]]), Ee = {
367
+ const Se = /* @__PURE__ */ re(pe, [["render", Ne], ["__scopeId", "data-v-9eb930f1"]]), Ae = {
375
368
  id: "media",
376
369
  title: "media",
377
370
  icon: "",
378
371
  align: "center",
379
- component: Te
372
+ component: Se
380
373
  };
381
374
  export {
382
- Ee as default
375
+ Ae as default
383
376
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .toolbar-wrap[data-v-c1e7d8e3]{display:flex;align-items:center}.toolbar-wrap .reference-text[data-v-c1e7d8e3]{cursor:pointer;height:var(--base-top-panel-height);line-height:var(--base-top-panel-height);padding:0 7px;color:var(--ti-lowcode-toolbar-breadcrumb-color);display:inline-block}.toolbar-wrap .reference-text>span[data-v-c1e7d8e3]:last-child{margin-left:8px}.toolbar-wrap .toolbar-icon-wrap[data-v-c1e7d8e3]{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.toolbar-wrap .toolbar-icon-wrap .icon[data-v-c1e7d8e3]{width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;border-radius:6px}.toolbar-wrap .toolbar-icon-wrap .icon svg[data-v-c1e7d8e3]{cursor:pointer;color:var(--ti-lowcode-toolbar-title-color);outline:none;width:22px;height:22px;margin-top:-.5px}.toolbar-wrap .toolbar-icon-wrap .icon.active[data-v-c1e7d8e3],.toolbar-wrap .toolbar-icon-wrap .icon[data-v-c1e7d8e3]:hover{background:var(--ti-lowcode-toolbar-view-active-bg)}.toolbar-wrap .toolbar-icon-wrap .icon.active svg[data-v-c1e7d8e3]{color:var(--ti-lowcode-common-primary-color)}.toolbar-wrap .more-setting .setting-item[data-v-c1e7d8e3]{display:flex;justify-content:space-between;padding:12px}
1
+ .toolbar-wrap[data-v-9eb930f1]{display:flex;align-items:center}.toolbar-wrap .reference-text[data-v-9eb930f1]{cursor:pointer;height:var(--base-top-panel-height);line-height:var(--base-top-panel-height);padding:0 7px;color:var(--ti-lowcode-toolbar-breadcrumb-color);display:inline-block}.toolbar-wrap .reference-text>span[data-v-9eb930f1]:last-child{margin-left:8px}.toolbar-wrap .toolbar-icon-wrap[data-v-9eb930f1]{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.toolbar-wrap .toolbar-icon-wrap .icon[data-v-9eb930f1]{width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;border-radius:6px}.toolbar-wrap .toolbar-icon-wrap .icon svg[data-v-9eb930f1]{cursor:pointer;color:var(--ti-lowcode-toolbar-title-color);outline:none;width:22px;height:22px;margin-top:-.5px}.toolbar-wrap .toolbar-icon-wrap .icon.active[data-v-9eb930f1],.toolbar-wrap .toolbar-icon-wrap .icon[data-v-9eb930f1]:hover{background:var(--ti-lowcode-toolbar-view-active-bg)}.toolbar-wrap .toolbar-icon-wrap .icon.active svg[data-v-9eb930f1]{color:var(--ti-lowcode-common-primary-color)}.toolbar-wrap .more-setting .setting-item[data-v-9eb930f1]{display:flex;justify-content:space-between;padding:12px}
package/package.json CHANGED
@@ -1,24 +1,38 @@
1
- {
2
- "name": "@opentiny/tiny-engine-toolbar-media",
3
- "version": "1.0.1",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "scripts": {
8
- "build": "vite build"
9
- },
10
- "main": "dist/index.js",
11
- "module": "dist/index.js",
12
- "files": [
13
- "dist"
14
- ],
15
- "dependencies": {
16
- "@opentiny/vue": "^3.8.0",
17
- "vue": "3.2.45"
18
- },
19
- "devDependencies": {
20
- "@vitejs/plugin-vue": "^4.2.3",
21
- "@vitejs/plugin-vue-jsx": "^1.3.10",
22
- "vite": "^4.3.7"
23
- }
24
- }
1
+ {
2
+ "name": "@opentiny/tiny-engine-toolbar-media",
3
+ "version": "1.0.2",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/opentiny/tiny-engine",
15
+ "directory": "packages/toolbars/media"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/opentiny/tiny-engine/issues"
19
+ },
20
+ "author": "OpenTiny Team",
21
+ "license": "MIT",
22
+ "homepage": "https://opentiny.design/tiny-engine",
23
+ "dependencies": {
24
+ "@opentiny/vue": "~3.10.0",
25
+ "@opentiny/vue-icon": "~3.10.0",
26
+ "vue": "3.2.45",
27
+ "@opentiny/tiny-engine-canvas": "1.0.2",
28
+ "@opentiny/tiny-engine-controller": "1.0.2"
29
+ },
30
+ "devDependencies": {
31
+ "@vitejs/plugin-vue": "^4.2.3",
32
+ "@vitejs/plugin-vue-jsx": "^1.3.10",
33
+ "vite": "^4.3.7"
34
+ },
35
+ "scripts": {
36
+ "build": "vite build"
37
+ }
38
+ }