@fangzhongya/page 0.0.3 → 0.0.5
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/{array-DNzTqnWI.js → array-Bn5rSQ3j.js} +1 -1
- package/dist/{array-m4xM7bY6.cjs → array-C2xQwbqn.cjs} +6 -6
- package/dist/assemblys/index.d.ts +10 -0
- package/dist/{boolean-BrAyoMWr.cjs → boolean-C6FCDjUh.cjs} +6 -6
- package/dist/{boolean-O7ClnMtA.js → boolean-DwmLImFG.js} +1 -1
- package/dist/{button-editor-C5HmDQZY.cjs → button-editor-B6K-opQx.cjs} +22 -22
- package/dist/{button-editor-B9Hwtqh3.js → button-editor-CLnogDww.js} +1 -1
- package/dist/{choice-DfHgWwQd.js → choice-CKAUSd4X.js} +1 -1
- package/dist/{choice-C2_KDs8f.cjs → choice-RY4q5o4w.cjs} +9 -9
- package/dist/{class-D5OY1alc.cjs → class-D9jVpuOC.cjs} +12 -12
- package/dist/{class-wYp7_2ao.js → class-Dr4DBMiD.js} +1 -1
- package/dist/{code-BR3C6XHK.js → code-7ANvUL7t.js} +1 -1
- package/dist/{code-Bi6mCasH.cjs → code-B9NczDlt.cjs} +11 -11
- package/dist/{codes-CUdIl60P.cjs → codes-4HrVUIdO.cjs} +59 -58
- package/dist/{codes-4Mb8F7yh.js → codes-CrhRE94L.js} +2 -1
- package/dist/{color-BmeGoq56.cjs → color-DwWLBEPf.cjs} +6 -6
- package/dist/{color-DiUa8kw0.js → color-q5WwEI-M.js} +1 -1
- package/dist/components/control/config.d.ts +10 -0
- package/dist/components/control/design.d.ts +12 -0
- package/dist/components/control/draggable.d.ts +9 -0
- package/dist/components/output/prettier.d.ts +1 -0
- package/dist/components/output/util.d.ts +55 -0
- package/dist/components/output/vue/index.d.ts +2 -0
- package/dist/components/output/vue/toCodeString.d.ts +7 -0
- package/dist/components/right/currency/index.d.ts +1 -0
- package/dist/components/right/editdata/currency/index.d.ts +1 -0
- package/dist/components/right/editdata/util.d.ts +1 -0
- package/dist/components/util.d.ts +4 -0
- package/dist/config/assembly.d.ts +10 -0
- package/dist/config/attrconfig.d.ts +4 -0
- package/dist/config/basics.d.ts +9 -0
- package/dist/config/elements.d.ts +3 -0
- package/dist/config/template.d.ts +3 -0
- package/dist/config/util.d.ts +50 -0
- package/dist/config.d.ts +11 -0
- package/dist/{container-MDOC4zc5.cjs → container-Di9HhbKs.cjs} +5 -5
- package/dist/design/design.d.ts +19 -0
- package/dist/design/util.d.ts +7 -0
- package/dist/{editor-DPwBedZ2.cjs → editor-DEdBMnvc.cjs} +7 -7
- package/dist/{editor-B4tRH4Du.js → editor-m73OR1Wd.js} +2 -2
- package/dist/{emits-B7KwdqmA.cjs → emits-4jxmdFRi.cjs} +7 -7
- package/dist/{emits-CHkGnd-Y.js → emits-B7dODaBb.js} +2 -2
- package/dist/{emits-D2Rl4rjw.js → emits-DCTBfL0g.js} +1 -1
- package/dist/{emits-Ca-GNz_C.cjs → emits-Dl_PDuSs.cjs} +13 -13
- package/dist/{general-UJlyOZvQ.cjs → general-BJkCetwC.cjs} +6 -6
- package/dist/{general-DxwEYB6g.js → general-Dz5NA-es.js} +1 -1
- package/dist/{grid-item-Dp497fop.cjs → grid-item-BSzL8eGq.cjs} +10 -10
- package/dist/{grid-item-Cmdo7s5E.js → grid-item-txV0GbgB.js} +1 -1
- package/dist/{grid-layout-T6cqoGHe.cjs → grid-layout-By3zp1nz.cjs} +24 -24
- package/dist/{grid-layout-eQkarQXt.js → grid-layout-CwJUB2MS.js} +2 -2
- package/dist/{icon-pkpHgiKt.cjs → icon-DJNGUOUq.cjs} +9 -9
- package/dist/{icon-Df2JcOTJ.js → icon-tFdBoy7Z.js} +1 -1
- package/dist/{index-DyWEL-aT.cjs → index-Cj_K4qu5.cjs} +1370 -9232
- package/dist/{index-DN34gSCV.js → index-TQcT4j9O.js} +131 -7993
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -3
- package/dist/{number-C3VpEtV8.js → number-BCDjlJup.js} +1 -1
- package/dist/{number-CflHfHtP.cjs → number-C6dsBH3u.cjs} +10 -10
- package/dist/{object-ozr75zb0.cjs → object-BmJAVMpZ.cjs} +6 -6
- package/dist/{object-DBCu1gwK.js → object-XxuYTPUm.js} +1 -1
- package/dist/{page-z22w7mwk.cjs → page-CM5fy4FM.cjs} +31 -31
- package/dist/page.cjs +1 -1
- package/dist/page.d.ts +2 -0
- package/dist/{position-kgl0BpQL.cjs → position-N_mgkxl1.cjs} +7 -7
- package/dist/{props-6xREXIbi.js → props-DUgBkZDg.js} +1 -1
- package/dist/{props-D7vQsQVi.cjs → props-DiUXsVzJ.cjs} +95 -95
- package/dist/render/common.d.ts +33 -0
- package/dist/render/config.d.ts +45 -0
- package/dist/render/render.d.ts +22 -0
- package/dist/render/util.d.ts +21 -0
- package/dist/{slots-Bh6P4SS6.cjs → slots-DiixZcDi.cjs} +17 -17
- package/dist/{string-DnjyAONX.js → string-Dc3Yxhvk.js} +1 -1
- package/dist/{string-Cj2nmHmv.cjs → string-Dl1STdLc.cjs} +6 -6
- package/dist/{style-c2dTkxib.js → style-CZFeS67U.js} +2 -2
- package/dist/{style-IOBZgXpF.cjs → style-D-dQ4Wt_.cjs} +13 -13
- package/dist/{style-CfAbL6Bz.cjs → style-DkbA8SXg.cjs} +12 -12
- package/dist/{style-D0hLGzVR.js → style-iH5M0bZq.js} +1 -1
- package/dist/utils/copy.d.ts +7 -0
- package/dist/utils/css.d.ts +13 -0
- package/dist/utils/index.d.ts +22 -0
- package/dist/utils/render.d.ts +6 -0
- package/dist/utils/shared.d.ts +5 -0
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditData } from "@fangzhongya/fang-ui/components/edit-data/index";
|
|
2
2
|
import "@fangzhongya/fang-ui/components/edit-data/style/index2.scss";
|
|
3
3
|
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode } from "vue";
|
|
4
|
-
import { a as _sfc_main$1 } from "./index-
|
|
4
|
+
import { a as _sfc_main$1 } from "./index-TQcT4j9O.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "array",
|
|
7
7
|
props: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index$1 = require("@fangzhongya/fang-ui/components/edit-data/index");
|
|
4
4
|
require("@fangzhongya/fang-ui/components/edit-data/style/index2.scss");
|
|
5
|
-
const
|
|
6
|
-
const index = require("./index-
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "array",
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
37
37
|
const emit = __emit;
|
|
38
38
|
return (_ctx, _cache) => {
|
|
39
39
|
const _component_EditData = index$1.EditData;
|
|
40
|
-
return
|
|
41
|
-
default:
|
|
42
|
-
|
|
40
|
+
return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
|
|
41
|
+
default: vue.withCtx(() => [
|
|
42
|
+
vue.createVNode(_component_EditData, {
|
|
43
43
|
isJson: "",
|
|
44
44
|
isConfirmUpdate: "",
|
|
45
45
|
type: __props.config.type,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index$1 = require("@fangzhongya/fang-ui/components/switch/index");
|
|
4
4
|
require("@fangzhongya/fang-ui/components/switch/style/index2.scss");
|
|
5
|
-
const
|
|
6
|
-
const index = require("./index-
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "boolean",
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
37
37
|
const emit = __emit;
|
|
38
38
|
return (_ctx, _cache) => {
|
|
39
39
|
const _component_Switch = index$1.Switch;
|
|
40
|
-
return
|
|
41
|
-
default:
|
|
42
|
-
|
|
40
|
+
return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
|
|
41
|
+
default: vue.withCtx(() => [
|
|
42
|
+
vue.createVNode(_component_Switch, vue.mergeProps(props.config?.config, {
|
|
43
43
|
modelValue: props.modelValue[props.prop],
|
|
44
44
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event),
|
|
45
45
|
onBlur: _cache[1] || (_cache[1] = () => emit("blur"))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Switch } from "@fangzhongya/fang-ui/components/switch/index";
|
|
2
2
|
import "@fangzhongya/fang-ui/components/switch/style/index2.scss";
|
|
3
3
|
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps } from "vue";
|
|
4
|
-
import { a as _sfc_main$1 } from "./index-
|
|
4
|
+
import { a as _sfc_main$1 } from "./index-TQcT4j9O.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "boolean",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const index$1 = require("@fangzhongya/fang-ui/components/button/index");
|
|
3
3
|
require("@fangzhongya/fang-ui/components/button/style/index2.scss");
|
|
4
|
-
const
|
|
5
|
-
const index = require("./index-
|
|
6
|
-
const _sfc_main = /* @__PURE__ */
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
7
|
__name: "button-editor",
|
|
8
8
|
props: {
|
|
9
9
|
prop: {
|
|
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
45
45
|
const cs = index.getClass("editor-button");
|
|
46
46
|
const props = __props;
|
|
47
47
|
const emit = __emit;
|
|
48
|
-
const editorObj =
|
|
48
|
+
const editorObj = vue.inject("editor");
|
|
49
49
|
function submit(v) {
|
|
50
50
|
if (v) {
|
|
51
51
|
emit("update:modelValue", v);
|
|
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function setBox() {
|
|
59
|
-
|
|
59
|
+
vue.nextTick(() => {
|
|
60
60
|
if (editorObj) {
|
|
61
61
|
Object.keys(props).forEach((v) => {
|
|
62
62
|
editorObj[v] = props[v] || "";
|
|
@@ -77,47 +77,47 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
77
77
|
});
|
|
78
78
|
return (_ctx, _cache) => {
|
|
79
79
|
const _component_Button = index$1.Button;
|
|
80
|
-
return
|
|
81
|
-
class:
|
|
82
|
-
onClick: _cache[0] || (_cache[0] =
|
|
80
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
81
|
+
class: vue.normalizeClass(vue.unref(cs)()),
|
|
82
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => onClick(), ["stop"]))
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
props.but == 1 ? (
|
|
84
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
85
|
+
props.but == 1 ? (vue.openBlock(), vue.createBlock(_component_Button, {
|
|
86
86
|
key: 0,
|
|
87
87
|
type: "primary"
|
|
88
88
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
89
|
+
default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
90
|
+
vue.createTextVNode("方法", -1)
|
|
91
91
|
])]),
|
|
92
92
|
_: 1
|
|
93
|
-
})) : props.but == 2 ? (
|
|
93
|
+
})) : props.but == 2 ? (vue.openBlock(), vue.createBlock(_component_Button, {
|
|
94
94
|
key: 1,
|
|
95
95
|
type: "primary"
|
|
96
96
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
97
|
+
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
98
|
+
vue.createTextVNode("事件", -1)
|
|
99
99
|
])]),
|
|
100
100
|
_: 1
|
|
101
|
-
})) : props.but ? (
|
|
101
|
+
})) : props.but ? (vue.openBlock(), vue.createBlock(_component_Button, {
|
|
102
102
|
key: 2,
|
|
103
103
|
type: "primary"
|
|
104
104
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
105
|
+
default: vue.withCtx(() => [
|
|
106
|
+
vue.createTextVNode(vue.toDisplayString(props.but), 1)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
})) : (
|
|
109
|
+
})) : (vue.openBlock(), vue.createElementBlock("svg", {
|
|
110
110
|
key: 3,
|
|
111
|
-
class:
|
|
111
|
+
class: vue.normalizeClass(vue.unref(cs)("icon")),
|
|
112
112
|
viewBox: "0 0 1024 1024",
|
|
113
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
114
|
"data-v-ea893728": ""
|
|
115
115
|
}, [..._cache[3] || (_cache[3] = [
|
|
116
|
-
|
|
116
|
+
vue.createElementVNode("path", {
|
|
117
117
|
fill: "currentColor",
|
|
118
118
|
d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"
|
|
119
119
|
}, null, -1),
|
|
120
|
-
|
|
120
|
+
vue.createElementVNode("path", {
|
|
121
121
|
fill: "currentColor",
|
|
122
122
|
d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
|
|
123
123
|
}, null, -1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "@fangzhongya/fang-ui/components/button/index";
|
|
2
2
|
import "@fangzhongya/fang-ui/components/button/style/index2.scss";
|
|
3
3
|
import { defineComponent, inject, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createElementVNode, nextTick } from "vue";
|
|
4
|
-
import { g as getClass } from "./index-
|
|
4
|
+
import { g as getClass } from "./index-TQcT4j9O.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "button-editor",
|
|
7
7
|
props: {
|
|
@@ -3,7 +3,7 @@ import "element-plus/es/components/base/style/css";
|
|
|
3
3
|
import "element-plus/es/components/select/style/css";
|
|
4
4
|
import "element-plus/es/components/option/style/css";
|
|
5
5
|
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
6
|
-
import { a as _sfc_main$1 } from "./index-
|
|
6
|
+
import { a as _sfc_main$1 } from "./index-TQcT4j9O.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "choice",
|
|
9
9
|
props: {
|
|
@@ -4,9 +4,9 @@ const es = require("element-plus/es");
|
|
|
4
4
|
require("element-plus/es/components/base/style/css");
|
|
5
5
|
require("element-plus/es/components/select/style/css");
|
|
6
6
|
require("element-plus/es/components/option/style/css");
|
|
7
|
-
const
|
|
8
|
-
const index = require("./index-
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const vue = require("vue");
|
|
8
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "choice",
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
@@ -64,17 +64,17 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
64
64
|
return (_ctx, _cache) => {
|
|
65
65
|
const _component_el_option = es.ElOption;
|
|
66
66
|
const _component_el_select = es.ElSelect;
|
|
67
|
-
return
|
|
68
|
-
default:
|
|
69
|
-
|
|
67
|
+
return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
|
|
68
|
+
default: vue.withCtx(() => [
|
|
69
|
+
vue.createVNode(_component_el_select, {
|
|
70
70
|
modelValue: props.modelValue[props.prop],
|
|
71
71
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event),
|
|
72
72
|
clearable: "",
|
|
73
73
|
placeholder: "请选择"
|
|
74
74
|
}, {
|
|
75
|
-
default:
|
|
76
|
-
(
|
|
77
|
-
return
|
|
75
|
+
default: vue.withCtx(() => [
|
|
76
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.config.options, (item, key) => {
|
|
77
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
78
78
|
key,
|
|
79
79
|
label: setLabel(item),
|
|
80
80
|
value: setProp(item)
|
|
@@ -4,9 +4,9 @@ const es = require("element-plus/es");
|
|
|
4
4
|
require("element-plus/es/components/base/style/css");
|
|
5
5
|
require("element-plus/es/components/select/style/css");
|
|
6
6
|
require("element-plus/es/components/option/style/css");
|
|
7
|
-
const
|
|
8
|
-
const index = require("./index-
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const vue = require("vue");
|
|
8
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "class",
|
|
11
11
|
props: {
|
|
12
12
|
type: { type: String, default: "" },
|
|
@@ -21,12 +21,12 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
21
21
|
setup(__props, { emit: __emit }) {
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
24
|
-
const layout =
|
|
25
|
-
const options =
|
|
24
|
+
const layout = vue.inject("layout");
|
|
25
|
+
const options = vue.computed(() => {
|
|
26
26
|
const style = layout.value.config?.style || "";
|
|
27
27
|
return index.extractCssClass(style);
|
|
28
28
|
});
|
|
29
|
-
const value =
|
|
29
|
+
const value = vue.computed({
|
|
30
30
|
set(arr) {
|
|
31
31
|
emit("update:modelValue", arr.join(" "));
|
|
32
32
|
},
|
|
@@ -42,9 +42,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
43
|
const _component_el_option = es.ElOption;
|
|
44
44
|
const _component_el_select = es.ElSelect;
|
|
45
|
-
return
|
|
46
|
-
modelValue:
|
|
47
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
45
|
+
return vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
46
|
+
modelValue: vue.unref(value),
|
|
47
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null),
|
|
48
48
|
multiple: "",
|
|
49
49
|
filterable: "",
|
|
50
50
|
"allow-create": "",
|
|
@@ -52,9 +52,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
52
52
|
"reserve-keyword": false,
|
|
53
53
|
placeholder: "选择或者输入样式名称"
|
|
54
54
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
(
|
|
57
|
-
return
|
|
55
|
+
default: vue.withCtx(() => [
|
|
56
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
|
|
57
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
58
58
|
key: item,
|
|
59
59
|
label: item,
|
|
60
60
|
value: item
|
|
@@ -3,7 +3,7 @@ import "element-plus/es/components/base/style/css";
|
|
|
3
3
|
import "element-plus/es/components/select/style/css";
|
|
4
4
|
import "element-plus/es/components/option/style/css";
|
|
5
5
|
import { defineComponent, inject, computed, createBlock, openBlock, unref, isRef, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
6
|
-
import { e as extractCssClass } from "./index-
|
|
6
|
+
import { e as extractCssClass } from "./index-TQcT4j9O.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "class",
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, mergeProps, unref, isRef, withCtx, createVNode } from "vue";
|
|
2
|
-
import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-
|
|
2
|
+
import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-TQcT4j9O.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "code",
|
|
5
5
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const index = require("./index-
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
6
|
__name: "code",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -36,17 +36,17 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const codeValue =
|
|
39
|
+
const codeValue = vue.ref("");
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
|
-
return
|
|
41
|
+
return vue.openBlock(), vue.createBlock(index._sfc_main$1, vue.mergeProps(props, {
|
|
42
42
|
onBlur: _cache[1] || (_cache[1] = () => emit("blur")),
|
|
43
|
-
value:
|
|
44
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) =>
|
|
43
|
+
value: vue.unref(codeValue),
|
|
44
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => vue.isRef(codeValue) ? codeValue.value = $event : null)
|
|
45
45
|
}), {
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
modelValue:
|
|
49
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
46
|
+
default: vue.withCtx(() => [
|
|
47
|
+
vue.createVNode(index._sfc_main$2, {
|
|
48
|
+
modelValue: vue.unref(codeValue),
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(codeValue) ? codeValue.value = $event : null)
|
|
50
50
|
}, null, 8, ["modelValue"])
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
@@ -10,15 +10,16 @@ const index$1 = require("@fangzhongya/fang-ui/components/button/index");
|
|
|
10
10
|
require("@fangzhongya/fang-ui/components/button/style/index2.scss");
|
|
11
11
|
const index$2 = require("@fangzhongya/fang-ui/components/inputs/index");
|
|
12
12
|
require("@fangzhongya/fang-ui/components/inputs/style/index2.scss");
|
|
13
|
-
const
|
|
14
|
-
const index = require("./index-
|
|
13
|
+
const vue = require("vue");
|
|
14
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
15
|
+
const Draggable = require("vuedraggable");
|
|
15
16
|
const _hoisted_1 = { class: "handle codes-li" };
|
|
16
17
|
const _hoisted_2 = { key: 0 };
|
|
17
18
|
const _hoisted_3 = { class: "codes-box" };
|
|
18
19
|
const _hoisted_4 = { class: "dfrac" };
|
|
19
20
|
const _hoisted_5 = { class: "code" };
|
|
20
21
|
const _hoisted_6 = { class: "footer" };
|
|
21
|
-
const _sfc_main = /* @__PURE__ */
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
23
|
__name: "codes",
|
|
23
24
|
props: {
|
|
24
25
|
/**
|
|
@@ -49,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
49
50
|
setup(__props, { emit: __emit }) {
|
|
50
51
|
const props = __props;
|
|
51
52
|
const emit = __emit;
|
|
52
|
-
const drag =
|
|
53
|
+
const drag = vue.ref(false);
|
|
53
54
|
const dragOptions = {
|
|
54
55
|
animation: 200,
|
|
55
56
|
group: "description",
|
|
@@ -61,11 +62,11 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
61
62
|
{ label: "param", value: 1 },
|
|
62
63
|
{ label: "data", value: 2 }
|
|
63
64
|
];
|
|
64
|
-
const box =
|
|
65
|
+
const box = vue.ref(false);
|
|
65
66
|
const onDelete = (index2) => {
|
|
66
67
|
value.value.splice(index2, 1);
|
|
67
68
|
};
|
|
68
|
-
const value =
|
|
69
|
+
const value = vue.ref([]);
|
|
69
70
|
const getValue = (obj) => {
|
|
70
71
|
if (obj.isVar) {
|
|
71
72
|
return obj.varName + " = " + obj.value;
|
|
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
73
74
|
return obj.value;
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
const codeData =
|
|
77
|
+
const codeData = vue.ref({
|
|
77
78
|
value: "",
|
|
78
79
|
isVar: false,
|
|
79
80
|
varName: "",
|
|
@@ -118,43 +119,43 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
118
119
|
const _component_Switch = index$4.Switch;
|
|
119
120
|
const _component_Selects = index$5.Selects;
|
|
120
121
|
const _component_Window = index$3.Window;
|
|
121
|
-
return
|
|
122
|
-
|
|
122
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
123
|
+
vue.createVNode(index._sfc_main$1, vue.mergeProps(props, {
|
|
123
124
|
onBlur: _cache[3] || (_cache[3] = () => emit("blur")),
|
|
124
|
-
value:
|
|
125
|
-
"onUpdate:value": _cache[4] || (_cache[4] = ($event) =>
|
|
125
|
+
value: vue.unref(value),
|
|
126
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => vue.isRef(value) ? value.value = $event : null),
|
|
126
127
|
default: []
|
|
127
128
|
}), {
|
|
128
|
-
default:
|
|
129
|
-
|
|
129
|
+
default: vue.withCtx(() => [
|
|
130
|
+
vue.createVNode(vue.unref(Draggable), vue.mergeProps(dragOptions, {
|
|
130
131
|
class: "codes-ul",
|
|
131
132
|
onStart: _cache[0] || (_cache[0] = ($event) => drag.value = true),
|
|
132
133
|
onEnd: _cache[1] || (_cache[1] = ($event) => drag.value = false),
|
|
133
|
-
modelValue:
|
|
134
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) =>
|
|
134
|
+
modelValue: vue.unref(value),
|
|
135
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(value) ? value.value = $event : null),
|
|
135
136
|
"item-key": (key) => key,
|
|
136
137
|
handle: ".handle"
|
|
137
138
|
}), {
|
|
138
|
-
item:
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
item: vue.withCtx(({ element, index: index2 }) => [
|
|
140
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
141
|
+
vue.createVNode(_component_Inputs, {
|
|
141
142
|
readonly: "",
|
|
142
143
|
"model-value": getValue(element)
|
|
143
144
|
}, null, 8, ["model-value"]),
|
|
144
|
-
|
|
145
|
+
vue.createVNode(_component_Button, {
|
|
145
146
|
type: "primary",
|
|
146
147
|
onClick: ($event) => onSet(element, index2)
|
|
147
148
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
|
|
149
|
+
default: vue.withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
150
|
+
vue.createTextVNode("设置", -1)
|
|
150
151
|
])]),
|
|
151
152
|
_: 1
|
|
152
153
|
}, 8, ["onClick"]),
|
|
153
|
-
|
|
154
|
+
vue.createVNode(_component_Button, {
|
|
154
155
|
onClick: ($event) => onDelete(index2)
|
|
155
156
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
|
|
157
|
+
default: vue.withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
158
|
+
vue.createTextVNode("删除", -1)
|
|
158
159
|
])]),
|
|
159
160
|
_: 1
|
|
160
161
|
}, 8, ["onClick"])
|
|
@@ -162,69 +163,69 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
162
163
|
]),
|
|
163
164
|
_: 1
|
|
164
165
|
}, 16, ["modelValue", "item-key"]),
|
|
165
|
-
!
|
|
166
|
+
!vue.unref(value) || vue.unref(value).length == 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, "暂无设置")) : vue.createCommentVNode("", true)
|
|
166
167
|
]),
|
|
167
|
-
footer:
|
|
168
|
-
|
|
169
|
-
default:
|
|
170
|
-
|
|
168
|
+
footer: vue.withCtx(() => [
|
|
169
|
+
vue.createVNode(_component_Button, { onClick: onAdd }, {
|
|
170
|
+
default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
171
|
+
vue.createTextVNode("添加", -1)
|
|
171
172
|
])]),
|
|
172
173
|
_: 1
|
|
173
174
|
})
|
|
174
175
|
]),
|
|
175
176
|
_: 1
|
|
176
177
|
}, 16, ["value"]),
|
|
177
|
-
|
|
178
|
+
vue.createVNode(_component_Window, {
|
|
178
179
|
isMin: false,
|
|
179
180
|
title: "设置" + (props.config?.title || props.label),
|
|
180
|
-
modelValue:
|
|
181
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) =>
|
|
181
|
+
modelValue: vue.unref(box),
|
|
182
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(box) ? box.value = $event : null)
|
|
182
183
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
modelValue:
|
|
188
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) =>
|
|
184
|
+
default: vue.withCtx(() => [
|
|
185
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
186
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
187
|
+
vue.createVNode(_component_Switch, {
|
|
188
|
+
modelValue: vue.unref(codeData).isVar,
|
|
189
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(codeData).isVar = $event)
|
|
189
190
|
}, null, 8, ["modelValue"]),
|
|
190
|
-
_cache[13] || (_cache[13] =
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
_cache[13] || (_cache[13] = vue.createElementVNode("span", { class: "ml-10" }, "生成变量", -1)),
|
|
192
|
+
vue.unref(codeData).isVar ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
193
|
+
vue.createVNode(_component_Selects, {
|
|
193
194
|
class: "ml-10",
|
|
194
195
|
style: { "width": "90px" },
|
|
195
196
|
default: 0,
|
|
196
197
|
options,
|
|
197
|
-
modelValue:
|
|
198
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) =>
|
|
198
|
+
modelValue: vue.unref(codeData).varPosit,
|
|
199
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(codeData).varPosit = $event)
|
|
199
200
|
}, null, 8, ["modelValue"]),
|
|
200
|
-
|
|
201
|
+
vue.createVNode(_component_Inputs, {
|
|
201
202
|
class: "ml-10",
|
|
202
203
|
clearable: "",
|
|
203
204
|
placeholder: "变量名称",
|
|
204
|
-
modelValue:
|
|
205
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) =>
|
|
205
|
+
modelValue: vue.unref(codeData).varName,
|
|
206
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(codeData).varName = $event)
|
|
206
207
|
}, null, 8, ["modelValue"])
|
|
207
|
-
], 64)) :
|
|
208
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
208
209
|
]),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) =>
|
|
210
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
211
|
+
vue.createVNode(index._sfc_main$2, {
|
|
212
|
+
modelValue: vue.unref(codeData).value,
|
|
213
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(codeData).value = $event)
|
|
213
214
|
}, null, 8, ["modelValue"])
|
|
214
215
|
]),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
default:
|
|
218
|
-
|
|
216
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
217
|
+
vue.createVNode(_component_Button, { onClick: onCancel }, {
|
|
218
|
+
default: vue.withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
219
|
+
vue.createTextVNode("取消", -1)
|
|
219
220
|
])]),
|
|
220
221
|
_: 1
|
|
221
222
|
}),
|
|
222
|
-
|
|
223
|
+
vue.createVNode(_component_Button, {
|
|
223
224
|
type: "primary",
|
|
224
225
|
onClick: onSubmit
|
|
225
226
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
|
|
227
|
+
default: vue.withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
228
|
+
vue.createTextVNode("确定", -1)
|
|
228
229
|
])]),
|
|
229
230
|
_: 1
|
|
230
231
|
})
|
|
@@ -9,7 +9,8 @@ import "@fangzhongya/fang-ui/components/button/style/index2.scss";
|
|
|
9
9
|
import { Inputs } from "@fangzhongya/fang-ui/components/inputs/index";
|
|
10
10
|
import "@fangzhongya/fang-ui/components/inputs/style/index2.scss";
|
|
11
11
|
import { defineComponent, ref, createElementBlock, openBlock, createVNode, mergeProps, unref, isRef, withCtx, createTextVNode, createCommentVNode, createElementVNode, Fragment } from "vue";
|
|
12
|
-
import { b as _sfc_main$1,
|
|
12
|
+
import { b as _sfc_main$1, c as _sfc_main$2 } from "./index-TQcT4j9O.js";
|
|
13
|
+
import Draggable from "vuedraggable";
|
|
13
14
|
const _hoisted_1 = { class: "handle codes-li" };
|
|
14
15
|
const _hoisted_2 = { key: 0 };
|
|
15
16
|
const _hoisted_3 = { class: "codes-box" };
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const es = require("element-plus/es");
|
|
4
4
|
require("element-plus/es/components/base/style/css");
|
|
5
5
|
require("element-plus/es/components/color-picker/style/css");
|
|
6
|
-
const
|
|
7
|
-
const index = require("./index-
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const index = require("./index-Cj_K4qu5.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "color",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -38,9 +38,9 @@ const _sfc_main = /* @__PURE__ */ require$$0.defineComponent({
|
|
|
38
38
|
const emit = __emit;
|
|
39
39
|
return (_ctx, _cache) => {
|
|
40
40
|
const _component_el_color_picker = es.ElColorPicker;
|
|
41
|
-
return
|
|
42
|
-
default:
|
|
43
|
-
|
|
41
|
+
return vue.openBlock(), vue.createBlock(index._sfc_main, vue.normalizeProps(vue.guardReactiveProps(props)), {
|
|
42
|
+
default: vue.withCtx(() => [
|
|
43
|
+
vue.createVNode(_component_el_color_picker, {
|
|
44
44
|
modelValue: props.modelValue[props.prop],
|
|
45
45
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.modelValue[props.prop] = $event)
|
|
46
46
|
}, null, 8, ["modelValue"])
|
|
@@ -2,7 +2,7 @@ import { ElColorPicker } from "element-plus/es";
|
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/color-picker/style/css";
|
|
4
4
|
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createVNode } from "vue";
|
|
5
|
-
import { a as _sfc_main$1 } from "./index-
|
|
5
|
+
import { a as _sfc_main$1 } from "./index-TQcT4j9O.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "color",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getAbsolute(obj: ControlDesign, config?: ObjAny): void;
|
|
2
|
+
/**
|
|
3
|
+
* 生成插槽代码
|
|
4
|
+
* @param obj
|
|
5
|
+
* @param is
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDesignSlots(obj: ControlRender, callback: (slots: ControlRender[], key: string, obj: TempsObjectKey) => void): {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|