sy-form-designer 1.0.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.
@@ -0,0 +1,90 @@
1
+ import { ref as k, resolveComponent as l, createBlock as d, openBlock as s, withCtx as e, createVNode as t, createElementBlock as u, Fragment as w, renderList as C, unref as n, mergeProps as N, createCommentVNode as S, createElementVNode as B, createTextVNode as I, toDisplayString as h } from "vue";
2
+ import { u as E, a as T } from "./vue-i18n-CiM3E4ph.js";
3
+ import U from "vuedraggable";
4
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const F = ["title"], L = {
6
+ __name: "widgets",
7
+ setup(P) {
8
+ const { t: r, locale: W } = E(), { cloneItem: f, allComponents: g } = T(), m = k("base"), b = (y, c, p) => {
9
+ };
10
+ return (y, c) => {
11
+ const p = l("sy-svg-icon"), v = l("el-collapse-item"), x = l("el-collapse"), _ = l("el-scrollbar"), i = l("el-tab-pane"), V = l("el-tabs");
12
+ return s(), d(V, {
13
+ modelValue: m.value,
14
+ "onUpdate:modelValue": c[0] || (c[0] = (o) => m.value = o),
15
+ style: { padding: "4px" }
16
+ }, {
17
+ default: e(() => [
18
+ t(i, {
19
+ label: "基础组件库",
20
+ name: "base"
21
+ }, {
22
+ default: e(() => [
23
+ t(_, { style: { flex: "1" } }, {
24
+ default: e(() => [
25
+ t(x, { class: "widget-collapse" }, {
26
+ default: e(() => [
27
+ (s(!0), u(w, null, C(n(g), (o, $) => (s(), d(v, {
28
+ title: o.name,
29
+ name: o.name
30
+ }, {
31
+ default: e(() => [
32
+ t(n(U), N({
33
+ tag: "ul",
34
+ list: o.components,
35
+ ref_for: !0
36
+ }, { group: { name: "people", pull: "clone", put: !1 }, sort: !1 }, {
37
+ "item-key": "key",
38
+ onStart: (a) => b(),
39
+ clone: n(f)
40
+ }), {
41
+ item: e(({ element: a }) => [
42
+ a.display !== !1 ? (s(), u("li", {
43
+ key: 0,
44
+ class: "widget-item",
45
+ title: n(r)("components.fields." + a.type),
46
+ "data-draggable": "true",
47
+ draggable: "false",
48
+ style: {}
49
+ }, [
50
+ B("span", null, [
51
+ t(p, {
52
+ "icon-class": a.icon,
53
+ "class-name": "color-svg-icon"
54
+ }, null, 8, ["icon-class"]),
55
+ I(" " + h(n(r)("components.fields." + a.type)), 1)
56
+ ])
57
+ ], 8, F)) : S("", !0)
58
+ ]),
59
+ _: 2
60
+ }, 1040, ["list", "onStart", "clone"])
61
+ ]),
62
+ _: 2
63
+ }, 1032, ["title", "name"]))), 256))
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]),
68
+ _: 1
69
+ })
70
+ ]),
71
+ _: 1
72
+ }),
73
+ t(i, {
74
+ label: "系统组件库",
75
+ name: "system"
76
+ }, {
77
+ default: e(() => [
78
+ t(_, { style: { flex: "1" } })
79
+ ]),
80
+ _: 1
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["modelValue"]);
85
+ };
86
+ }
87
+ }, G = /* @__PURE__ */ D(L, [["__scopeId", "data-v-f61b845f"]]);
88
+ export {
89
+ G as default
90
+ };