@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 +22 -0
- package/dist/index.js +145 -152
- package/dist/style.css +1 -1
- package/package.json +38 -24
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
|
|
3
|
-
import { Popover as
|
|
4
|
-
import { IconWebPlus as
|
|
5
|
-
import { useLayout as
|
|
6
|
-
import { getCanvasType as
|
|
7
|
-
const
|
|
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
|
-
},
|
|
12
|
+
}, pe = {
|
|
13
13
|
components: {
|
|
14
|
-
TinyPopover:
|
|
15
|
-
TinyInput:
|
|
16
|
-
TinySwitch:
|
|
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:
|
|
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:
|
|
41
|
+
icon: P(),
|
|
42
42
|
text: "1280px"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
icon:
|
|
45
|
+
icon: P(),
|
|
46
46
|
text: "1440px"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
icon:
|
|
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
|
-
}),
|
|
148
|
-
|
|
149
|
-
},
|
|
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
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
})
|
|
169
|
-
},
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
deviceType:
|
|
173
|
-
width: e ? `${e}px` :
|
|
174
|
-
minWidth:
|
|
175
|
-
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
|
-
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
},
|
|
206
|
-
|
|
194
|
+
}, G = (e) => {
|
|
195
|
+
ce(e ? "absolute" : "normal");
|
|
207
196
|
};
|
|
208
|
-
|
|
209
|
-
() =>
|
|
210
|
-
|
|
211
|
-
|
|
197
|
+
F(
|
|
198
|
+
() => o.value.deviceType,
|
|
199
|
+
(e) => {
|
|
200
|
+
i.activeIndex = g[e].index, i.readonly = e !== "mdx";
|
|
212
201
|
},
|
|
213
|
-
{
|
|
214
|
-
),
|
|
215
|
-
|
|
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
|
|
218
|
-
Number.isInteger(
|
|
208
|
+
const a = parseInt(e, 10);
|
|
209
|
+
Number.isInteger(a) && (i.width = a, n = a);
|
|
219
210
|
}
|
|
220
|
-
),
|
|
221
|
-
document.addEventListener("click",
|
|
222
|
-
}),
|
|
223
|
-
document.removeEventListener("click",
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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:
|
|
233
|
-
hideTips:
|
|
225
|
+
showTips: U,
|
|
226
|
+
hideTips: A,
|
|
234
227
|
timer: r,
|
|
235
|
-
dimension:
|
|
236
|
-
setViewPort:
|
|
237
|
-
showPopover:
|
|
238
|
-
hidePopover:
|
|
239
|
-
widthChange:
|
|
240
|
-
scaleChange:
|
|
228
|
+
dimension: o,
|
|
229
|
+
setViewPort: N,
|
|
230
|
+
showPopover: O,
|
|
231
|
+
hidePopover: X,
|
|
232
|
+
widthChange: R,
|
|
233
|
+
scaleChange: j,
|
|
241
234
|
isAbsolute: T,
|
|
242
|
-
changeCanvasType:
|
|
235
|
+
changeCanvasType: G
|
|
243
236
|
};
|
|
244
237
|
}
|
|
245
|
-
},
|
|
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
|
-
},
|
|
249
|
-
/* @__PURE__ */
|
|
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
|
|
252
|
-
const m =
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
(
|
|
256
|
-
key:
|
|
257
|
-
class:
|
|
258
|
-
onClick: (
|
|
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
|
-
|
|
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
|
-
|
|
269
|
-
name:
|
|
261
|
+
_(m, {
|
|
262
|
+
name: o.liked,
|
|
270
263
|
class: "media-icon"
|
|
271
264
|
}, null, 8, ["name"])
|
|
272
265
|
]),
|
|
273
266
|
default: p(() => [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
})) :
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
])) :
|
|
275
|
+
})) : I("", !0),
|
|
276
|
+
W(),
|
|
277
|
+
t("span", null, c(o.subTitle), 1),
|
|
278
|
+
W(") ")
|
|
279
|
+
])) : I("", !0)
|
|
287
280
|
]),
|
|
288
|
-
|
|
281
|
+
t("div", _e, c(o.content), 1)
|
|
289
282
|
])
|
|
290
283
|
]),
|
|
291
284
|
_: 2
|
|
292
285
|
}, 1024)
|
|
293
|
-
], 10,
|
|
286
|
+
], 10, he))), 128))
|
|
294
287
|
]),
|
|
295
|
-
r.isCanvas ? (
|
|
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
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
303
|
+
t("span", be, [
|
|
304
|
+
t("span", null, [
|
|
305
|
+
t("span", null, c(parseInt(n.state.width)), 1),
|
|
306
|
+
ye
|
|
314
307
|
]),
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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] = (
|
|
325
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => n.state.width = o),
|
|
333
326
|
onChange: n.widthChange
|
|
334
327
|
}, {
|
|
335
328
|
suffix: p(() => [
|
|
336
|
-
|
|
329
|
+
Te
|
|
337
330
|
]),
|
|
338
331
|
_: 1
|
|
339
332
|
}, 8, ["modelValue", "onChange"])
|
|
340
333
|
]),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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] = (
|
|
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
|
-
|
|
343
|
+
Ie
|
|
351
344
|
]),
|
|
352
345
|
_: 1
|
|
353
346
|
}, 8, ["modelValue", "readonly", "onChange"])
|
|
354
347
|
])
|
|
355
348
|
]),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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] = (
|
|
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
|
-
})) :
|
|
364
|
+
})) : I("", !0)
|
|
372
365
|
]);
|
|
373
366
|
}
|
|
374
|
-
const
|
|
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:
|
|
372
|
+
component: Se
|
|
380
373
|
};
|
|
381
374
|
export {
|
|
382
|
-
|
|
375
|
+
Ae as default
|
|
383
376
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.toolbar-wrap[data-v-
|
|
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.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
}
|