@vipl520/dk-ui 1.0.28 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/dist/index.js +701 -413
- package/dist/index.min.js +8 -8
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +8 -8
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +701 -413
- package/dist/web-types.json +1 -1
- package/es/page-diy/index.d.ts +1 -0
- package/es/page-diy/index.mjs +4 -0
- package/es/page-diy/index.mjs.map +1 -1
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue.d.ts +36 -0
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +7 -0
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs.map +1 -0
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue2.mjs +81 -0
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue2.mjs.map +1 -0
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.d.ts +38 -0
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +165 -0
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -0
- package/es/page-diy/src/config/rule/web/common/DkViewDialog.d.ts +14 -0
- package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +3 -9
- package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
- package/es/page-diy/src/config/rule/web/common/index.d.ts +28 -0
- package/es/page-diy/src/config/rule/web/index.d.ts +28 -0
- package/es/page-diy/src/page-diy.vue.d.ts +2 -0
- package/es/page-diy/src/page-diy.vue.mjs +3 -0
- package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
- package/es/page-diy/src/props.mjs +1 -1
- package/es/page-diy/src/props.mjs.map +1 -1
- package/es/page-diy/src/utils/bus.d.ts +2 -0
- package/es/page-diy/src/utils/eventData.d.ts +32 -0
- package/es/page-diy/src/utils/eventData.mjs +51 -0
- package/es/page-diy/src/utils/eventData.mjs.map +1 -0
- package/es/page-diy/src/views/web/DkViewDialog.vue.d.ts +9 -0
- package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +3 -1
- package/es/page-diy/src/views/web/DkViewDialog.vue.mjs.map +1 -1
- package/lib/page-diy/index.d.ts +1 -0
- package/lib/page-diy/index.js +4 -0
- package/lib/page-diy/index.js.map +1 -1
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.d.ts +36 -0
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +11 -0
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js.map +1 -0
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue2.js +85 -0
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue2.js.map +1 -0
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.d.ts +38 -0
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +169 -0
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -0
- package/lib/page-diy/src/config/rule/web/common/DkViewDialog.d.ts +14 -0
- package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +3 -9
- package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
- package/lib/page-diy/src/config/rule/web/common/index.d.ts +28 -0
- package/lib/page-diy/src/config/rule/web/index.d.ts +28 -0
- package/lib/page-diy/src/page-diy.vue.d.ts +2 -0
- package/lib/page-diy/src/page-diy.vue.js +3 -0
- package/lib/page-diy/src/page-diy.vue.js.map +1 -1
- package/lib/page-diy/src/props.js +1 -1
- package/lib/page-diy/src/props.js.map +1 -1
- package/lib/page-diy/src/utils/bus.d.ts +2 -0
- package/lib/page-diy/src/utils/eventData.d.ts +32 -0
- package/lib/page-diy/src/utils/eventData.js +55 -0
- package/lib/page-diy/src/utils/eventData.js.map +1 -0
- package/lib/page-diy/src/views/web/DkViewDialog.vue.d.ts +9 -0
- package/lib/page-diy/src/views/web/DkViewDialog.vue.js +2 -0
- package/lib/page-diy/src/views/web/DkViewDialog.vue.js.map +1 -1
- package/package.json +3 -2
@@ -1,10 +1,11 @@
|
|
1
|
-
import { createElementVNode, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createCommentVNode } from 'vue';
|
1
|
+
import { createElementVNode, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createBlock, withCtx, createCommentVNode } from 'vue';
|
2
2
|
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
3
3
|
|
4
4
|
const _sfc_main = {
|
5
5
|
name: 'DkViewDialog',
|
6
6
|
props: {
|
7
7
|
title: { default: '标题', type: String },
|
8
|
+
listen: { default: '', type: String },
|
8
9
|
show: { default: false, type: Boolean },
|
9
10
|
content: { default: '', type: String },
|
10
11
|
confirmText: { default: '确定', type: String },
|
@@ -43,6 +44,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43
44
|
|
44
45
|
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
45
46
|
_hoisted_2,
|
47
|
+
createTextVNode(" " + toDisplayString(_ctx.$props) + " ", 1 /* TEXT */),
|
46
48
|
($data.showDialog)
|
47
49
|
? (openBlock(), createBlock(_component_van_dialog, {
|
48
50
|
key: 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewDialog.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewDialog.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-dialog\">\n <div class=\"preview\">点击预览可以查看弹窗效果</div>\n <van-dialog\n v-if=\"showDialog\"\n v-model:show=\"showDialog\"\n :title=\"title\"\n teleport=\".phone-body\"\n :overlay-style=\"{ position: 'absolute' }\"\n style=\"position: absolute\"\n >\n <div style=\"padding: 10px\" v-html=\"content\" />\n </van-dialog>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewDialog',\n props: {\n title: { default: '标题', type: String },\n show: { default: false, type: Boolean },\n content: { default: '', type: String },\n confirmText: { default: '确定', type: String },\n copy: { default: '0', type: [Number, String] },\n copyType: { default: 'text', type: String },\n copyText: { default: '复制的内容', type: String },\n copyHtml: { default: '复制的富文本', type: String },\n },\n data() {\n return {\n showDialog: false,\n }\n },\n computed: {},\n watch: {\n show() {\n this.showDialog = this.show\n },\n },\n mounted() {\n console.log('123')\n },\n methods: {\n getContainer() {\n return document.querySelector('.phone-body')\n },\n },\n}\n</script>\n"],"names":["_createElementVNode","_openBlock","_createElementBlock","_createBlock"],"mappings":";;;
|
1
|
+
{"version":3,"file":"DkViewDialog.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewDialog.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-dialog\">\n <div class=\"preview\">点击预览可以查看弹窗效果</div>\n {{ $props }}\n <van-dialog\n v-if=\"showDialog\"\n v-model:show=\"showDialog\"\n :title=\"title\"\n teleport=\".phone-body\"\n :overlay-style=\"{ position: 'absolute' }\"\n style=\"position: absolute\"\n >\n <div style=\"padding: 10px\" v-html=\"content\" />\n </van-dialog>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewDialog',\n props: {\n title: { default: '标题', type: String },\n listen: { default: '', type: String },\n show: { default: false, type: Boolean },\n content: { default: '', type: String },\n confirmText: { default: '确定', type: String },\n copy: { default: '0', type: [Number, String] },\n copyType: { default: 'text', type: String },\n copyText: { default: '复制的内容', type: String },\n copyHtml: { default: '复制的富文本', type: String },\n },\n data() {\n return {\n showDialog: false,\n }\n },\n computed: {},\n watch: {\n show() {\n this.showDialog = this.show\n },\n },\n mounted() {\n console.log('123')\n },\n methods: {\n getContainer() {\n return document.querySelector('.phone-body')\n },\n },\n}\n</script>\n"],"names":["_createElementVNode","_openBlock","_createElementBlock","_toDisplayString","_createBlock"],"mappings":";;;AAkBA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,cAAc;AACpB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;AACtC,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,E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M,EAAA;IAZJ,UAAuC;oBAAA,GACvC,GAAAC,eAAA,CAAG,IAAM,CAAA,MAAA,CAAA,GAAG,GACZ,EAAA,CAAA,YAAA;KACQ,KAAU,CAAA,UAAA;sBADlBC,WASa,CAAA,qBAAA,EAAA;;AAPH,UAAA,IAAI,EAAE,KAAU,CAAA,UAAA;iEAAV,KAAU,CAAA,UAAA,IAAA,MAAA,CAAA,CAAA;AACvB,UAAA,KAAK,EAAE,MAAK,CAAA,KAAA;AACb,UAAA,QAAQ,EAAC,aAAa;AACrB,UAAA,eAAa,EAAE,EAAwB,QAAA,EAAA,UAAA,EAAA;AACxC,UAAA,KAA0B,EAA1B,CAA0B,UAAA,CAAA,UAAA,CAAA;;2BAE1B,MAA8C;YAA9CJ,kBAA8C,CAAA,KAAA,EAAA;AAAzC,cAAA,KAAqB,EAArB,CAAqB,SAAA,CAAA,MAAA,CAAA;AAAC,cAAA,SAAgB,EAAR,MAAO,CAAA,OAAA;;;;;;;;;;;;"}
|
package/lib/page-diy/index.d.ts
CHANGED
@@ -34,6 +34,7 @@ export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue")
|
|
34
34
|
}, {
|
35
35
|
countObj: import("vue").ComputedRef<{}>;
|
36
36
|
diyTree: import("vue").ComputedRef<any[]>;
|
37
|
+
eventData: import("./src/utils/eventData").default;
|
37
38
|
clear(type?: string): void;
|
38
39
|
get(): {
|
39
40
|
rule: any;
|
package/lib/page-diy/index.js
CHANGED
@@ -6,6 +6,8 @@ var utils = require('@vipl520/utils');
|
|
6
6
|
var pageDiy = require('./src/page-diy.vue.js');
|
7
7
|
var DragTool = require('./src/components/DragTool.vue.js');
|
8
8
|
var DragBox = require('./src/components/DragBox.vue.js');
|
9
|
+
var DkEventCreateInput = require('./src/components/forms/DkEventCreateInput.vue.js');
|
10
|
+
var DkEventSelectInput = require('./src/components/forms/DkEventSelectInput.vue.js');
|
9
11
|
var form = require('./src/utils/form.js');
|
10
12
|
var draggable = require('vuedraggable/src/vuedraggable');
|
11
13
|
require('./src/utils/index.js');
|
@@ -19,6 +21,8 @@ const addComponent = (id, component) => {
|
|
19
21
|
form.designerForm.component("Draggable", draggable);
|
20
22
|
form.designerForm.component("DragTool", DragTool.default);
|
21
23
|
form.designerForm.component("DragBox", DragBox.default);
|
24
|
+
form.designerForm.component("DkEventCreateInput", DkEventCreateInput.default);
|
25
|
+
form.designerForm.component("DkEventSelectInput", DkEventSelectInput.default);
|
22
26
|
form.designerForm.register("_fc", {
|
23
27
|
init(fc, rule) {
|
24
28
|
rule._id = unique.uniqueId();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/page-diy/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _PageDiy from './src/page-diy.vue'\nimport DragTool from './src/components/DragTool.vue'\nimport DragBox from './src/components/DragBox.vue'\nimport formCreate, { designerForm } from './src/utils/form'\nimport draggable from 'vuedraggable/src/vuedraggable'\nimport { uniqueId } from './src/utils'\n// import views from './src/views/web'\n\nconst addComponent = (id: any, component: any) => {\n designerForm.component(id, component)\n formCreate.component(id, component)\n}\n\ndesignerForm.component('Draggable', draggable)\ndesignerForm.component('DragTool', DragTool)\ndesignerForm.component('DragBox', DragBox)\n\n// for (const name in views) {\n// designerForm.component(name, views[name])\n// }\n\ndesignerForm.register('_fc', {\n init(fc: any, rule: any) {\n rule._id = uniqueId()\n if (fc.value) {\n rule.effect._fc = false\n }\n },\n})\n\ndesignerForm.register('_fc_tool', {\n init(_, rule: any) {\n rule.props.unique = uniqueId()\n },\n})\n\n_PageDiy.formCreate = formCreate\n_PageDiy.designerForm = designerForm\n_PageDiy.component = addComponent\nexport const PageDiy = withInstall(_PageDiy)\nexport default PageDiy\n\nexport * from './src/props'\n"],"names":["designerForm","formCreate","DragTool","DragBox","uniqueId","_PageDiy","withInstall"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/page-diy/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _PageDiy from './src/page-diy.vue'\nimport DragTool from './src/components/DragTool.vue'\nimport DragBox from './src/components/DragBox.vue'\nimport DkEventCreateInput from './src/components/forms/DkEventCreateInput.vue'\nimport DkEventSelectInput from './src/components/forms/DkEventSelectInput.vue'\nimport formCreate, { designerForm } from './src/utils/form'\nimport draggable from 'vuedraggable/src/vuedraggable'\nimport { uniqueId } from './src/utils'\n// import views from './src/views/web'\n\nconst addComponent = (id: any, component: any) => {\n designerForm.component(id, component)\n formCreate.component(id, component)\n}\n\ndesignerForm.component('Draggable', draggable)\ndesignerForm.component('DragTool', DragTool)\ndesignerForm.component('DragBox', DragBox)\ndesignerForm.component('DkEventCreateInput', DkEventCreateInput)\ndesignerForm.component('DkEventSelectInput', DkEventSelectInput)\n\n// for (const name in views) {\n// designerForm.component(name, views[name])\n// }\n\ndesignerForm.register('_fc', {\n init(fc: any, rule: any) {\n rule._id = uniqueId()\n if (fc.value) {\n rule.effect._fc = false\n }\n },\n})\n\ndesignerForm.register('_fc_tool', {\n init(_, rule: any) {\n rule.props.unique = uniqueId()\n },\n})\n\n_PageDiy.formCreate = formCreate\n_PageDiy.designerForm = designerForm\n_PageDiy.component = addComponent\nexport const PageDiy = withInstall(_PageDiy)\nexport default PageDiy\n\nexport * from './src/props'\n"],"names":["designerForm","formCreate","DragTool","DragBox","DkEventCreateInput","DkEventSelectInput","uniqueId","_PageDiy","withInstall"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAM,YAAA,GAAe,CAAC,EAAA,EAAS,SAAmB,KAAA;AAChD,EAAaA,iBAAA,CAAA,SAAA,CAAU,IAAI,SAAS,CAAA,CAAA;AACpC,EAAWC,aAAA,CAAA,SAAA,CAAU,IAAI,SAAS,CAAA,CAAA;AACpC,CAAA,CAAA;AAEAD,iBAAa,CAAA,SAAA,CAAU,aAAa,SAAS,CAAA,CAAA;AAC7CA,iBAAa,CAAA,SAAA,CAAU,YAAYE,gBAAQ,CAAA,CAAA;AAC3CF,iBAAa,CAAA,SAAA,CAAU,WAAWG,eAAO,CAAA,CAAA;AACzCH,iBAAa,CAAA,SAAA,CAAU,sBAAsBI,0BAAkB,CAAA,CAAA;AAC/DJ,iBAAa,CAAA,SAAA,CAAU,sBAAsBK,0BAAkB,CAAA,CAAA;AAM/DL,iBAAA,CAAa,SAAS,KAAO,EAAA;AAAA,EAC3B,IAAA,CAAK,IAAS,IAAW,EAAA;AACvB,IAAA,IAAA,CAAK,MAAMM,eAAS,EAAA,CAAA;AACpB,IAAA,IAAI,GAAG,KAAO,EAAA;AACZ,MAAA,IAAA,CAAK,OAAO,GAAM,GAAA,KAAA,CAAA;AAAA,KACpB;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AAEDN,iBAAA,CAAa,SAAS,UAAY,EAAA;AAAA,EAChC,IAAA,CAAK,GAAG,IAAW,EAAA;AACjB,IAAK,IAAA,CAAA,KAAA,CAAM,SAASM,eAAS,EAAA,CAAA;AAAA,GAC/B;AACF,CAAC,CAAA,CAAA;AAEDC,eAAA,CAAS,UAAa,GAAAN,aAAA,CAAA;AACtBM,eAAA,CAAS,YAAe,GAAAP,iBAAA,CAAA;AACxBO,eAAA,CAAS,SAAY,GAAA,YAAA,CAAA;AACR,MAAA,OAAA,GAAUC,kBAAYD,eAAQ;;;;;;"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
placeholder: {
|
7
|
+
default: string;
|
8
|
+
type: StringConstructor;
|
9
|
+
};
|
10
|
+
label: {
|
11
|
+
default: string;
|
12
|
+
type: StringConstructor;
|
13
|
+
};
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
modelValue: {
|
16
|
+
default: string;
|
17
|
+
type: StringConstructor;
|
18
|
+
};
|
19
|
+
placeholder: {
|
20
|
+
default: string;
|
21
|
+
type: StringConstructor;
|
22
|
+
};
|
23
|
+
label: {
|
24
|
+
default: string;
|
25
|
+
type: StringConstructor;
|
26
|
+
};
|
27
|
+
}>> & {
|
28
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
31
|
+
}, {
|
32
|
+
modelValue: string;
|
33
|
+
label: string;
|
34
|
+
placeholder: string;
|
35
|
+
}, {}>;
|
36
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var DkEventCreateInput_vue_vue_type_script_setup_true_lang = require('./DkEventCreateInput.vue2.js');
|
6
|
+
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
var DkEventCreateInput = /* @__PURE__ */ _pluginVue_exportHelper.default(DkEventCreateInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);
|
9
|
+
|
10
|
+
exports.default = DkEventCreateInput;
|
11
|
+
//# sourceMappingURL=DkEventCreateInput.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DkEventCreateInput.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
|
7
|
+
const __default__ = vue.defineComponent({
|
8
|
+
name: "DkEventCreateInput"
|
9
|
+
});
|
10
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
11
|
+
...__default__,
|
12
|
+
props: {
|
13
|
+
modelValue: {
|
14
|
+
default: "",
|
15
|
+
type: String
|
16
|
+
},
|
17
|
+
placeholder: {
|
18
|
+
default: "",
|
19
|
+
type: String
|
20
|
+
},
|
21
|
+
label: {
|
22
|
+
default: "",
|
23
|
+
type: String
|
24
|
+
}
|
25
|
+
},
|
26
|
+
emits: ["input", "update:modelValue", "change"],
|
27
|
+
setup(__props, { emit }) {
|
28
|
+
const props = __props;
|
29
|
+
const data = vue.ref(props.modelValue || "");
|
30
|
+
vue.watch(
|
31
|
+
() => props.modelValue,
|
32
|
+
(val) => {
|
33
|
+
data.value = val;
|
34
|
+
}
|
35
|
+
);
|
36
|
+
vue.watch(
|
37
|
+
() => data.value,
|
38
|
+
(val) => {
|
39
|
+
emit("change", val);
|
40
|
+
emit("update:modelValue", val);
|
41
|
+
emit("input", val);
|
42
|
+
}
|
43
|
+
);
|
44
|
+
const randomString = (e) => {
|
45
|
+
e = e || 32;
|
46
|
+
const t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";
|
47
|
+
const a = t.length;
|
48
|
+
let n = "";
|
49
|
+
for (let i = 0; i < e; i++) {
|
50
|
+
n += t.charAt(Math.floor(Math.random() * a));
|
51
|
+
}
|
52
|
+
return n;
|
53
|
+
};
|
54
|
+
const onClick = () => {
|
55
|
+
data.value = randomString(6);
|
56
|
+
};
|
57
|
+
return (_ctx, _cache) => {
|
58
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
59
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
60
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
61
|
+
vue.createVNode(_component_el_input, {
|
62
|
+
modelValue: data.value,
|
63
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event),
|
64
|
+
placeholder: __props.placeholder,
|
65
|
+
clearable: ""
|
66
|
+
}, {
|
67
|
+
append: vue.withCtx(() => [
|
68
|
+
vue.createVNode(_component_el_button, { onClick }, {
|
69
|
+
default: vue.withCtx(() => [
|
70
|
+
vue.createTextVNode("\u968F\u673A")
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
/* STABLE */
|
74
|
+
})
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
/* STABLE */
|
78
|
+
}, 8, ["modelValue", "placeholder"])
|
79
|
+
]);
|
80
|
+
};
|
81
|
+
}
|
82
|
+
});
|
83
|
+
|
84
|
+
exports.default = _sfc_main;
|
85
|
+
//# sourceMappingURL=DkEventCreateInput.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DkEventCreateInput.vue2.js","sources":["../../../../../src/page-diy/src/components/forms/DkEventCreateInput.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkEventCreateInput',\n});\n</script>\n<template>\n <div>\n <el-input v-model=\"data\" :placeholder=\"placeholder\" clearable>\n <template #append>\n <el-button @click=\"onClick\">随机</el-button>\n </template>\n </el-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\n\n\n\nconst props = defineProps({\n modelValue: {\n default: '',\n type: String,\n },\n placeholder: {\n default: '',\n type: String,\n },\n label: {\n default: '',\n type: String,\n },\n})\n\nconst data = ref(props.modelValue || '')\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n data.value = val\n }\n)\nwatch(\n () => data.value,\n (val) => {\n emit('change', val)\n emit('update:modelValue', val)\n emit('input', val)\n }\n)\n\nconst randomString = (e: any) => {\n e = e || 32\n const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'\n const a = t.length\n let n = ''\n for (let i = 0; i < e; i++) {\n n += t.charAt(Math.floor(Math.random() * a))\n }\n return n\n}\nconst onClick = () => {\n data.value = randomString(6)\n}\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent","ref","watch"],"mappings":";;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAgCD,IAAA,MAAM,IAAO,GAAAC,OAAA,CAAI,KAAM,CAAA,UAAA,IAAc,EAAE,CAAA,CAAA;AAGvC,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,IAAA,CAAK,KAAQ,GAAA,GAAA,CAAA;AAAA,OACf;AAAA,KACF,CAAA;AACA,IAAAA,SAAA;AAAA,MACE,MAAM,IAAK,CAAA,KAAA;AAAA,MACX,CAAC,GAAQ,KAAA;AACP,QAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAClB,QAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,QAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,OACnB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,YAAA,GAAe,CAAC,CAAW,KAAA;AAC/B,MAAA,CAAA,GAAI,CAAK,IAAA,EAAA,CAAA;AACT,MAAA,MAAM,CAAI,GAAA,kDAAA,CAAA;AACV,MAAA,MAAM,IAAI,CAAE,CAAA,MAAA,CAAA;AACZ,MAAA,IAAI,CAAI,GAAA,EAAA,CAAA;AACR,MAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,CAAA,EAAG,CAAK,EAAA,EAAA;AAC1B,QAAK,CAAA,IAAA,CAAA,CAAE,OAAO,IAAK,CAAA,KAAA,CAAM,KAAK,MAAO,EAAA,GAAI,CAAC,CAAC,CAAA,CAAA;AAAA,OAC7C;AACA,MAAO,OAAA,CAAA,CAAA;AAAA,KACT,CAAA;AACA,IAAA,MAAM,UAAU,MAAM;AACpB,MAAK,IAAA,CAAA,KAAA,GAAQ,aAAa,CAAC,CAAA,CAAA;AAAA,KAC7B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
placeholder: {
|
7
|
+
default: string;
|
8
|
+
type: StringConstructor;
|
9
|
+
};
|
10
|
+
}, any, {
|
11
|
+
data: string;
|
12
|
+
loading: boolean;
|
13
|
+
eventData: never[];
|
14
|
+
}, {
|
15
|
+
EventData(): any;
|
16
|
+
children(): any;
|
17
|
+
}, {
|
18
|
+
updateEvent(): void;
|
19
|
+
onClick(): void;
|
20
|
+
randomString(e: any): string;
|
21
|
+
onUpdateEvent(): void;
|
22
|
+
findDkEventCreateInput(data: any, propsData: any): any[];
|
23
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
24
|
+
modelValue: {
|
25
|
+
default: string;
|
26
|
+
type: StringConstructor;
|
27
|
+
};
|
28
|
+
placeholder: {
|
29
|
+
default: string;
|
30
|
+
type: StringConstructor;
|
31
|
+
};
|
32
|
+
}>> & {
|
33
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
34
|
+
}, {
|
35
|
+
modelValue: string;
|
36
|
+
placeholder: string;
|
37
|
+
}, {}>;
|
38
|
+
export default _default;
|
@@ -0,0 +1,169 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
const _sfc_main = {
|
9
|
+
name: 'DkEventSelectInput',
|
10
|
+
inject: ['diy'],
|
11
|
+
props: {
|
12
|
+
modelValue: {
|
13
|
+
default: '',
|
14
|
+
type: String,
|
15
|
+
},
|
16
|
+
placeholder: {
|
17
|
+
default: '',
|
18
|
+
type: String,
|
19
|
+
},
|
20
|
+
},
|
21
|
+
emits: ['update:modelValue'],
|
22
|
+
data() {
|
23
|
+
return {
|
24
|
+
data: '',
|
25
|
+
loading: false,
|
26
|
+
eventData: [],
|
27
|
+
}
|
28
|
+
},
|
29
|
+
computed: {
|
30
|
+
EventData() {
|
31
|
+
return this.diy.proxy.eventData
|
32
|
+
},
|
33
|
+
children() {
|
34
|
+
return this.diy.proxy.children
|
35
|
+
},
|
36
|
+
},
|
37
|
+
watch: {
|
38
|
+
data() {
|
39
|
+
this.$emit('update:modelValue', this.data);
|
40
|
+
},
|
41
|
+
},
|
42
|
+
mounted() {
|
43
|
+
this.data = this.modelValue || '';
|
44
|
+
this.updateEvent();
|
45
|
+
},
|
46
|
+
methods: {
|
47
|
+
updateEvent() {
|
48
|
+
this.loading = true;
|
49
|
+
this.EventData.removeAllEvent();
|
50
|
+
this.onUpdateEvent();
|
51
|
+
this.loading = false;
|
52
|
+
},
|
53
|
+
onClick() {
|
54
|
+
this.data = this.randomString(10);
|
55
|
+
},
|
56
|
+
randomString(e) {
|
57
|
+
e = e || 32;
|
58
|
+
const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
|
59
|
+
const a = t.length;
|
60
|
+
let n = '';
|
61
|
+
for (let i = 0; i < e; i++) {
|
62
|
+
n += t.charAt(Math.floor(Math.random() * a));
|
63
|
+
}
|
64
|
+
return n
|
65
|
+
},
|
66
|
+
// 更新事件
|
67
|
+
onUpdateEvent() {
|
68
|
+
console.log('children', this.children);
|
69
|
+
for (let i = 0; i < this.children.length; i++) {
|
70
|
+
if (this.children[i].children.length > 0) {
|
71
|
+
// 当前节点
|
72
|
+
const children = this.children[i].children[0];
|
73
|
+
// 当前节点的props数据
|
74
|
+
const propsData = children.props;
|
75
|
+
// 当前节点的配置数据
|
76
|
+
const config = children.config.config;
|
77
|
+
const isEvent = config.event || false;
|
78
|
+
if (isEvent) {
|
79
|
+
// 表单配置数据
|
80
|
+
const eventProps = config.props();
|
81
|
+
this.findDkEventCreateInput(eventProps, propsData).forEach((item) => {
|
82
|
+
const data = {
|
83
|
+
id: children._id,
|
84
|
+
label: item.props?.label || config.label,
|
85
|
+
value: propsData[item.field],
|
86
|
+
};
|
87
|
+
if (data.value && data.id && data.label) {
|
88
|
+
this.EventData.addEvent(data);
|
89
|
+
}
|
90
|
+
});
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
this.eventData = this.EventData.getAllEvents();
|
95
|
+
},
|
96
|
+
// 寻找事件
|
97
|
+
findDkEventCreateInput(data, propsData) {
|
98
|
+
console.log('findDkEventCreateInput', data);
|
99
|
+
const result = [];
|
100
|
+
data.forEach((element) => {
|
101
|
+
if (element.children) {
|
102
|
+
result.push(...this.findDkEventCreateInput(element.children));
|
103
|
+
}
|
104
|
+
if (element.control && Array.isArray(element.control)) {
|
105
|
+
element.control.forEach((control) => {
|
106
|
+
if (control.rule.length > 0) {
|
107
|
+
result.push(...this.findDkEventCreateInput(control.rule));
|
108
|
+
}
|
109
|
+
});
|
110
|
+
}
|
111
|
+
if (element.type === 'DkEventCreateInput') {
|
112
|
+
result.push(element);
|
113
|
+
}
|
114
|
+
});
|
115
|
+
return result
|
116
|
+
},
|
117
|
+
},
|
118
|
+
};
|
119
|
+
|
120
|
+
const _hoisted_1 = { style: {"display":"flex"} };
|
121
|
+
const _hoisted_2 = { style: {"float":"left"} };
|
122
|
+
const _hoisted_3 = { style: {"float":"right","color":"#8492a6","font-size":"13px"} };
|
123
|
+
|
124
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
125
|
+
const _component_el_option = vue.resolveComponent("el-option");
|
126
|
+
const _component_el_select = vue.resolveComponent("el-select");
|
127
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
128
|
+
|
129
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
130
|
+
vue.createVNode(_component_el_select, {
|
131
|
+
modelValue: $data.data,
|
132
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.data) = $event)),
|
133
|
+
placeholder: "请选择要触发事件",
|
134
|
+
style: {"width":"100%"},
|
135
|
+
"allow-create": "",
|
136
|
+
filterable: ""
|
137
|
+
}, {
|
138
|
+
default: vue.withCtx(() => [
|
139
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.eventData, (item) => {
|
140
|
+
return (vue.openBlock(), vue.createBlock(_component_el_option, {
|
141
|
+
key: item.value,
|
142
|
+
label: item.label + '(' + item.value + ')',
|
143
|
+
value: item.value
|
144
|
+
}, {
|
145
|
+
default: vue.withCtx(() => [
|
146
|
+
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(item.label), 1 /* TEXT */),
|
147
|
+
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(item.value), 1 /* TEXT */)
|
148
|
+
]),
|
149
|
+
_: 2 /* DYNAMIC */
|
150
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["label", "value"]))
|
151
|
+
}), 128 /* KEYED_FRAGMENT */))
|
152
|
+
]),
|
153
|
+
_: 1 /* STABLE */
|
154
|
+
}, 8 /* PROPS */, ["modelValue"]),
|
155
|
+
vue.createVNode(_component_el_button, {
|
156
|
+
loading: $data.loading,
|
157
|
+
onClick: $options.updateEvent
|
158
|
+
}, {
|
159
|
+
default: vue.withCtx(() => [
|
160
|
+
vue.createTextVNode("刷新")
|
161
|
+
]),
|
162
|
+
_: 1 /* STABLE */
|
163
|
+
}, 8 /* PROPS */, ["loading", "onClick"])
|
164
|
+
]))
|
165
|
+
}
|
166
|
+
var DkEventSelectInput = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);
|
167
|
+
|
168
|
+
exports.default = DkEventSelectInput;
|
169
|
+
//# sourceMappingURL=DkEventSelectInput.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DkEventSelectInput.vue.js","sources":["../../../../../src/page-diy/src/components/forms/DkEventSelectInput.vue"],"sourcesContent":["<template>\n <div style=\"display: flex\">\n <el-select v-model=\"data\" placeholder=\"请选择要触发事件\" style=\"width: 100%\" allow-create filterable>\n <el-option\n v-for=\"item in eventData\"\n :key=\"item.value\"\n :label=\"item.label + '(' + item.value + ')'\"\n :value=\"item.value\"\n >\n <span style=\"float: left\">{{ item.label }}</span>\n <span style=\"float: right; color: #8492a6; font-size: 13px\">{{ item.value }}</span>\n </el-option>\n </el-select>\n <el-button :loading=\"loading\" @click=\"updateEvent\">刷新</el-button>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkEventSelectInput',\n inject: ['diy'],\n props: {\n modelValue: {\n default: '',\n type: String,\n },\n placeholder: {\n default: '',\n type: String,\n },\n },\n emits: ['update:modelValue'],\n data() {\n return {\n data: '',\n loading: false,\n eventData: [],\n }\n },\n computed: {\n EventData() {\n return this.diy.proxy.eventData\n },\n children() {\n return this.diy.proxy.children\n },\n },\n watch: {\n data() {\n this.$emit('update:modelValue', this.data)\n },\n },\n mounted() {\n this.data = this.modelValue || ''\n this.updateEvent()\n },\n methods: {\n updateEvent() {\n this.loading = true\n this.EventData.removeAllEvent()\n this.onUpdateEvent()\n this.loading = false\n },\n onClick() {\n this.data = this.randomString(10)\n },\n randomString(e) {\n e = e || 32\n const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'\n const a = t.length\n let n = ''\n for (let i = 0; i < e; i++) {\n n += t.charAt(Math.floor(Math.random() * a))\n }\n return n\n },\n // 更新事件\n onUpdateEvent() {\n console.log('children', this.children)\n for (let i = 0; i < this.children.length; i++) {\n if (this.children[i].children.length > 0) {\n // 当前节点\n const children = this.children[i].children[0]\n // 当前节点的props数据\n const propsData = children.props\n // 当前节点的配置数据\n const config = children.config.config\n const isEvent = config.event || false\n if (isEvent) {\n // 表单配置数据\n const eventProps = config.props()\n this.findDkEventCreateInput(eventProps, propsData).forEach((item) => {\n const data = {\n id: children._id,\n label: item.props?.label || config.label,\n value: propsData[item.field],\n }\n if (data.value && data.id && data.label) {\n this.EventData.addEvent(data)\n }\n })\n }\n }\n }\n this.eventData = this.EventData.getAllEvents()\n },\n // 寻找事件\n findDkEventCreateInput(data, propsData) {\n console.log('findDkEventCreateInput', data)\n const result = []\n data.forEach((element) => {\n if (element.children) {\n result.push(...this.findDkEventCreateInput(element.children))\n }\n if (element.control && Array.isArray(element.control)) {\n element.control.forEach((control) => {\n if (control.rule.length > 0) {\n result.push(...this.findDkEventCreateInput(control.rule))\n }\n })\n }\n if (element.type === 'DkEventCreateInput') {\n result.push(element)\n }\n })\n return result\n },\n },\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_Fragment","_renderList","_createBlock","_createElementVNode","_toDisplayString"],"mappings":";;;;;;;AAkBA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,oBAAoB;AAC1B,EAAA,MAAM,EAAE,CAAC,KAAK,CAAC;AACf,EAAA,KAAK,EAAE;IACL,UAAU,EAAE;MACV,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;MACX,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;GACF;EACD,KAAK,EAAE,CAAC,mBAAmB,CAAC;AAC5B,EAAA,IAAI,GAAG;AACL,IAAA,OAAO;AACL,MAAA,IAAI,EAAE,EAAE;MACR,OAAO,EAAE,KAAK;MACd,SAAS,EAAE,EAAE;AACf,KAAA;GACD;AACD,EAAA,QAAQ,EAAE;IACR,SAAS,GA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AAA,IAAA,IAAA,MAAA,CAAA,CAAA;AAAE,MAAA,WAAW,EAAC,UAAU;AAAC,MAAA,KAAmB,EAAnB,CAAmB,OAAA,CAAA,MAAA,CAAA;AAAC,MAAA,cAAY,EAAZ,EAAY;AAAC,MAAA,UAAU,EAAV,EAAU;;2BAExF,MAAyB;8BAD3BD,sBAQY,CAAAE,YAAA,EAAA,IAAA,EAAAC,cAAA,CAPK,KAAS,CAAA,SAAA,EAAA,CAAjB,IAAI,KAAA;mCADbC,eAQY,CAAA,oBAAA,EAAA;YANT,GAAG,EAAE,IAAI,CAAC,KAAK;AACf,YAAA,KAAK,EAAE,IAAI,CAAC,KAAK,GAAS,GAAA,GAAA,IAAI,CAAC,KAAK,GAAA,GAAA;YACpC,KAAK,EAAE,IAAI,CAAC,KAAK;;iCAElB,MAAiD;AAAjD,cAAAC,sBAAA,CAAiD,MAAjD,EAAA,UAAiD,EAApBC,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;AACvC,cAAAD,sBAAA,CAAmF,MAAnF,EAAA,UAAmF,EAApBC,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;IAG7EL,eAAiE,CAAA,oBAAA,EAAA;AAArD,MAAA,OAAO,EAAE,KAAO,CAAA,OAAA;AAAG,MAAA,OAAK,EAAE,QAAW,CAAA,WAAA;;2BAAE,MAAE;4BAAF,IAAE,CAAA;;;;;;;;;;"}
|
@@ -7,11 +7,24 @@ declare namespace _default {
|
|
7
7
|
type: string;
|
8
8
|
props: {
|
9
9
|
title: string;
|
10
|
+
listen: string;
|
10
11
|
};
|
11
12
|
showStyle: boolean;
|
12
13
|
fixed: boolean;
|
13
14
|
};
|
14
15
|
export function props(): ({
|
16
|
+
type: string;
|
17
|
+
field: string;
|
18
|
+
title: string;
|
19
|
+
value: string;
|
20
|
+
props: {
|
21
|
+
label: string;
|
22
|
+
buttonText?: undefined;
|
23
|
+
};
|
24
|
+
effect?: undefined;
|
25
|
+
options?: undefined;
|
26
|
+
control?: undefined;
|
27
|
+
} | {
|
15
28
|
type: string;
|
16
29
|
field: string;
|
17
30
|
title: string;
|
@@ -26,6 +39,7 @@ declare namespace _default {
|
|
26
39
|
title: string;
|
27
40
|
props: {
|
28
41
|
buttonText: string;
|
42
|
+
label?: undefined;
|
29
43
|
};
|
30
44
|
value: string;
|
31
45
|
effect?: undefined;
|
@@ -13,7 +13,8 @@ var DkViewDialog = {
|
|
13
13
|
return {
|
14
14
|
type: name,
|
15
15
|
props: {
|
16
|
-
title: "\u901A\u77E5"
|
16
|
+
title: "\u901A\u77E5",
|
17
|
+
listen: ""
|
17
18
|
},
|
18
19
|
showStyle: true,
|
19
20
|
fixed: true
|
@@ -21,14 +22,7 @@ var DkViewDialog = {
|
|
21
22
|
},
|
22
23
|
props() {
|
23
24
|
return [
|
24
|
-
|
25
|
-
// {
|
26
|
-
// type: 'DkEventCreateInput',
|
27
|
-
// field: 'listen',
|
28
|
-
// title: '监听事件',
|
29
|
-
// value: '',
|
30
|
-
// props: { label: '弹窗组件' },
|
31
|
-
// },
|
25
|
+
{ type: "DkEventCreateInput", field: "listen", title: "\u76D1\u542C\u4E8B\u4EF6", value: "", props: { label: "\u5F39\u7A97\u7EC4\u4EF6" } },
|
32
26
|
{ type: "input", field: "title", title: "\u5F39\u7A97\u6807\u9898", value: "\u901A\u77E5" },
|
33
27
|
{
|
34
28
|
type: "dk-tiny-editor",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewDialog.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewDialog.js"],"sourcesContent":["const label = '弹窗组件'\nconst name = 'DkViewDialog'\nexport default {\n icon: 'mi:window',\n label,\n name,\n event: true,\n rule() {\n return {\n type: name,\n props: {\n title: '通知',\n },\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n
|
1
|
+
{"version":3,"file":"DkViewDialog.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewDialog.js"],"sourcesContent":["const label = '弹窗组件'\nconst name = 'DkViewDialog'\nexport default {\n icon: 'mi:window',\n label,\n name,\n event: true,\n rule() {\n return {\n type: name,\n props: {\n title: '通知',\n listen: '',\n },\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n { type: 'DkEventCreateInput', field: 'listen', title: '监听事件', value: '', props: { label: '弹窗组件' } },\n { type: 'input', field: 'title', title: '弹窗标题', value: '通知' },\n {\n type: 'dk-tiny-editor',\n field: 'content',\n title: '弹窗内容',\n props: {\n buttonText: '编辑弹窗内容',\n },\n value: '',\n },\n { type: 'input', field: 'confirmText', title: '按钮文字', value: '确定' },\n {\n type: 'switch',\n field: 'show',\n title: '预览',\n value: false,\n effect: {\n help: '当前为预览按钮,不影响实际显示,点击后在预览窗口点确定即可关闭',\n },\n },\n {\n type: 'radio',\n field: 'copy',\n title: '复制内容',\n value: '0',\n options: [\n { label: '不复制', value: '0' },\n { label: '复制弹窗内容', value: '1' },\n {\n label: '复制自定义内容',\n value: '2',\n },\n ],\n control: [\n {\n value: '2',\n rule: [\n {\n type: 'select',\n field: 'copyType',\n title: '复制类型',\n value: 'text',\n options: [\n { label: '纯文本', value: 'text' },\n { label: '富文本', value: 'html' },\n ],\n control: [\n {\n value: 'text',\n rule: [\n {\n type: 'input',\n field: 'copyText',\n title: '复制内容',\n value: '',\n props: { type: 'textarea' },\n },\n ],\n },\n {\n value: 'html',\n rule: [\n {\n type: 'dk-tiny-editor',\n field: 'copyHtml',\n title: '复制内容',\n value: '',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n handle: function (val) {\n return val !== ''\n },\n rule: [\n {\n type: 'input',\n field: 'copySuccessToast',\n title: '复制提示',\n value: '复制成功',\n effect: { help: '复制成功后的提示,不填则不显示' },\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,0BAAA,CAAA;AACd,MAAM,IAAO,GAAA,cAAA,CAAA;A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A,qBACF;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,MAAA,EAAQ,SAAU,GAAK,EAAA;AACrB,cAAA,OAAO,GAAQ,KAAA,EAAA,CAAA;AAAA,aACjB;AAAA,YACA,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,OAAA;AAAA,gBACN,KAAO,EAAA,kBAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,MAAA,EAAQ,EAAE,IAAA,EAAM,uFAAkB,EAAA;AAAA,eACpC;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
|
@@ -486,11 +486,24 @@ export const commonMenu: ({
|
|
486
486
|
type: string;
|
487
487
|
props: {
|
488
488
|
title: string;
|
489
|
+
listen: string;
|
489
490
|
};
|
490
491
|
showStyle: boolean;
|
491
492
|
fixed: boolean;
|
492
493
|
};
|
493
494
|
props(): ({
|
495
|
+
type: string;
|
496
|
+
field: string;
|
497
|
+
title: string;
|
498
|
+
value: string;
|
499
|
+
props: {
|
500
|
+
label: string;
|
501
|
+
buttonText?: undefined;
|
502
|
+
};
|
503
|
+
effect?: undefined;
|
504
|
+
options?: undefined;
|
505
|
+
control?: undefined;
|
506
|
+
} | {
|
494
507
|
type: string;
|
495
508
|
field: string;
|
496
509
|
title: string;
|
@@ -505,6 +518,7 @@ export const commonMenu: ({
|
|
505
518
|
title: string;
|
506
519
|
props: {
|
507
520
|
buttonText: string;
|
521
|
+
label?: undefined;
|
508
522
|
};
|
509
523
|
value: string;
|
510
524
|
effect?: undefined;
|
@@ -1805,11 +1819,24 @@ export const commonRuleList: {
|
|
1805
1819
|
type: string;
|
1806
1820
|
props: {
|
1807
1821
|
title: string;
|
1822
|
+
listen: string;
|
1808
1823
|
};
|
1809
1824
|
showStyle: boolean;
|
1810
1825
|
fixed: boolean;
|
1811
1826
|
};
|
1812
1827
|
props(): ({
|
1828
|
+
type: string;
|
1829
|
+
field: string;
|
1830
|
+
title: string;
|
1831
|
+
value: string;
|
1832
|
+
props: {
|
1833
|
+
label: string;
|
1834
|
+
buttonText?: undefined;
|
1835
|
+
};
|
1836
|
+
effect?: undefined;
|
1837
|
+
options?: undefined;
|
1838
|
+
control?: undefined;
|
1839
|
+
} | {
|
1813
1840
|
type: string;
|
1814
1841
|
field: string;
|
1815
1842
|
title: string;
|
@@ -1824,6 +1851,7 @@ export const commonRuleList: {
|
|
1824
1851
|
title: string;
|
1825
1852
|
props: {
|
1826
1853
|
buttonText: string;
|
1854
|
+
label?: undefined;
|
1827
1855
|
};
|
1828
1856
|
value: string;
|
1829
1857
|
effect?: undefined;
|