@vipl520/dk-ui 1.0.27 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/README.md +2 -2
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +698 -412
  4. package/dist/index.min.js +8 -8
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +8 -8
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +698 -412
  9. package/dist/web-types.json +1 -1
  10. package/es/page-diy/index.d.ts +1 -0
  11. package/es/page-diy/index.mjs +4 -0
  12. package/es/page-diy/index.mjs.map +1 -1
  13. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.d.ts +36 -0
  14. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +7 -0
  15. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs.map +1 -0
  16. package/es/page-diy/src/components/forms/DkEventCreateInput.vue2.mjs +81 -0
  17. package/es/page-diy/src/components/forms/DkEventCreateInput.vue2.mjs.map +1 -0
  18. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.d.ts +38 -0
  19. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +163 -0
  20. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -0
  21. package/es/page-diy/src/config/rule/web/common/DkViewDialog.d.ts +14 -0
  22. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +3 -9
  23. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
  24. package/es/page-diy/src/config/rule/web/common/index.d.ts +28 -0
  25. package/es/page-diy/src/config/rule/web/index.d.ts +28 -0
  26. package/es/page-diy/src/page-diy.vue.d.ts +2 -0
  27. package/es/page-diy/src/page-diy.vue.mjs +3 -0
  28. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  29. package/es/page-diy/src/utils/bus.d.ts +2 -0
  30. package/es/page-diy/src/utils/eventData.d.ts +32 -0
  31. package/es/page-diy/src/utils/eventData.mjs +51 -0
  32. package/es/page-diy/src/utils/eventData.mjs.map +1 -0
  33. package/es/page-diy/src/views/web/DkViewDialog.vue.d.ts +9 -0
  34. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +3 -1
  35. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs.map +1 -1
  36. package/es/table/style/index.css +1 -1
  37. package/es/table/style/index.scss +1 -0
  38. package/lib/page-diy/index.d.ts +1 -0
  39. package/lib/page-diy/index.js +4 -0
  40. package/lib/page-diy/index.js.map +1 -1
  41. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.d.ts +36 -0
  42. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +11 -0
  43. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js.map +1 -0
  44. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue2.js +85 -0
  45. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue2.js.map +1 -0
  46. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.d.ts +38 -0
  47. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +167 -0
  48. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -0
  49. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.d.ts +14 -0
  50. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +3 -9
  51. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
  52. package/lib/page-diy/src/config/rule/web/common/index.d.ts +28 -0
  53. package/lib/page-diy/src/config/rule/web/index.d.ts +28 -0
  54. package/lib/page-diy/src/page-diy.vue.d.ts +2 -0
  55. package/lib/page-diy/src/page-diy.vue.js +3 -0
  56. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  57. package/lib/page-diy/src/utils/bus.d.ts +2 -0
  58. package/lib/page-diy/src/utils/eventData.d.ts +32 -0
  59. package/lib/page-diy/src/utils/eventData.js +55 -0
  60. package/lib/page-diy/src/utils/eventData.js.map +1 -0
  61. package/lib/page-diy/src/views/web/DkViewDialog.vue.d.ts +9 -0
  62. package/lib/page-diy/src/views/web/DkViewDialog.vue.js +2 -0
  63. package/lib/page-diy/src/views/web/DkViewDialog.vue.js.map +1 -1
  64. package/lib/table/style/index.css +1 -1
  65. package/lib/table/style/index.scss +1 -0
  66. package/package.json +4 -3
@@ -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":";;;AAiBA,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,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS;AACvC,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACtC,I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B,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;YAA9CH,kBAA8C,CAAA,KAAA,EAAA;AAAzC,cAAA,KAAqB,EAArB,CAAqB,SAAA,CAAA,MAAA,CAAA;AAAC,cAAA,SAAgB,EAAR,MAAO,CAAA,OAAA;;;;;;;;;;;;"}
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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,EAAA,CAAA,CAAA,gBAAA;;;;;;AADnC,EAAA,QAAAC,SAAA,EAAA,EAAAC,kBAAA,CAaM,OAbN,UAaM,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;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- .dk-table .dk-data-table .cell{color:var(--el-text-color-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dk-table .dk-data-table .cell .dk-render-color{width:100%;height:25px}.dk-table .dk-data-table .cell .move-button{cursor:move}.dk-table .dk-data-table .cell .table-operate-text{padding-left:5px}.dk-table .dk-data-table .cell .table-operate{height:auto;padding:4px 5px}.dk-table .dk-data-table .cell .dk-tooltip-button{display:inline-flex;margin-left:6px;vertical-align:middle}.dk-table .dk-data-table .cell .el-image{width:36px;height:36px}.dk-table .dk-data-table .cell .images-item{width:50px;margin:0 5px}.dk-table .table-pagination{box-sizing:border-box;width:100%;max-width:100%;background-color:var(--ba-bg-color-overlay);padding:13px 15px}.dk-table-header{position:relative;overflow-x:auto;box-sizing:border-box;display:flex;align-items:center;width:100%;max-width:100%;background-color:var(--ba-bg-color-overlay);border:1px solid var(--ba-border-color);border-bottom:none;padding:13px 15px;font-size:14px}.dk-table-header .el-button+.el-button{margin-left:6px}.dk-table-header .table-header-operate-text{margin-left:6px}.dk-table-header .table-search{display:flex;margin-left:auto}.dk-table-header .table-search .quick-search{width:auto}.dk-table-header .table-search-button-group{display:flex;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);overflow:hidden}.dk-table-header .table-search-button-group button:active,.dk-table-header .table-search-button-group button:focus{background-color:var(--ba-bg-color-overlay)}.dk-table-header .table-search-button-group button:hover{background-color:var(--el-color-info-light-7)}.dk-table-header .table-search-button-group .table-search-button-item{border:none;border-radius:0}.dk-table-header .table-search-button-group .el-button+.el-button{margin:0}.dk-table-header .table-search-button-group .right-border{border-right:1px solid var(--el-border-color)}.table-com-search{box-sizing:border-box;width:100%;max-width:100%;padding:13px 15px;font-size:14px;background-color:var(--ba-bg-color-overlay);border:1px solid var(--ba-border-color);border-bottom:none}.table-com-search .com-search-col{display:flex;align-items:center;padding-top:8px;font-size:13px;color:var(--el-text-color-regular)}.table-com-search .com-search-col-label{width:80px;padding:0 15px;overflow:hidden;text-align:left;white-space:nowrap}.table-com-search .com-search-col-input{width:100%;padding:0 15px}.table-com-search .com-search-col-input-range{display:flex;align-items:center;width:100%;padding:0 15px}.table-com-search .com-search-col-input-range .range-separator{padding:0 5px}
1
+ .dk-table .dk-data-table .cell{color:var(--el-text-color-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dk-table .dk-data-table .cell .dk-render-color{width:100%;height:25px}.dk-table .dk-data-table .cell .move-button{cursor:move}.dk-table .dk-data-table .cell .table-operate-text{padding-left:5px}.dk-table .dk-data-table .cell .table-operate{height:auto;padding:4px 5px}.dk-table .dk-data-table .cell .dk-tooltip-button{display:inline-flex;margin-left:6px;vertical-align:middle;height:24px}.dk-table .dk-data-table .cell .el-image{width:36px;height:36px}.dk-table .dk-data-table .cell .images-item{width:50px;margin:0 5px}.dk-table .table-pagination{box-sizing:border-box;width:100%;max-width:100%;background-color:var(--ba-bg-color-overlay);padding:13px 15px}.dk-table-header{position:relative;overflow-x:auto;box-sizing:border-box;display:flex;align-items:center;width:100%;max-width:100%;background-color:var(--ba-bg-color-overlay);border:1px solid var(--ba-border-color);border-bottom:none;padding:13px 15px;font-size:14px}.dk-table-header .el-button+.el-button{margin-left:6px}.dk-table-header .table-header-operate-text{margin-left:6px}.dk-table-header .table-search{display:flex;margin-left:auto}.dk-table-header .table-search .quick-search{width:auto}.dk-table-header .table-search-button-group{display:flex;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);overflow:hidden}.dk-table-header .table-search-button-group button:active,.dk-table-header .table-search-button-group button:focus{background-color:var(--ba-bg-color-overlay)}.dk-table-header .table-search-button-group button:hover{background-color:var(--el-color-info-light-7)}.dk-table-header .table-search-button-group .table-search-button-item{border:none;border-radius:0}.dk-table-header .table-search-button-group .el-button+.el-button{margin:0}.dk-table-header .table-search-button-group .right-border{border-right:1px solid var(--el-border-color)}.table-com-search{box-sizing:border-box;width:100%;max-width:100%;padding:13px 15px;font-size:14px;background-color:var(--ba-bg-color-overlay);border:1px solid var(--ba-border-color);border-bottom:none}.table-com-search .com-search-col{display:flex;align-items:center;padding-top:8px;font-size:13px;color:var(--el-text-color-regular)}.table-com-search .com-search-col-label{width:80px;padding:0 15px;overflow:hidden;text-align:left;white-space:nowrap}.table-com-search .com-search-col-input{width:100%;padding:0 15px}.table-com-search .com-search-col-input-range{display:flex;align-items:center;width:100%;padding:0 15px}.table-com-search .com-search-col-input-range .range-separator{padding:0 5px}
@@ -28,6 +28,7 @@
28
28
  display: inline-flex;
29
29
  margin-left: 6px;
30
30
  vertical-align: middle;
31
+ height: 24px;
31
32
  }
32
33
 
33
34
  .el-image {
@@ -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;
@@ -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":";;;;;;;;;;;;;;AASA,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;AAMzCH,iBAAA,CAAa,SAAS,KAAO,EAAA;AAAA,EAC3B,IAAA,CAAK,IAAS,IAAW,EAAA;AACvB,IAAA,IAAA,CAAK,MAAMI,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;AAEDJ,iBAAA,CAAa,SAAS,UAAY,EAAA;AAAA,EAChC,IAAA,CAAK,GAAG,IAAW,EAAA;AACjB,IAAK,IAAA,CAAA,KAAA,CAAM,SAASI,eAAS,EAAA,CAAA;AAAA,GAC/B;AACF,CAAC,CAAA,CAAA;AAEDC,eAAA,CAAS,UAAa,GAAAJ,aAAA,CAAA;AACtBI,eAAA,CAAS,YAAe,GAAAL,iBAAA,CAAA;AACxBK,eAAA,CAAS,SAAY,GAAA,YAAA,CAAA;AACR,MAAA,OAAA,GAAUC,kBAAYD,eAAQ;;;;;;"}
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,167 @@
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
+ for (let i = 0; i < this.children.length; i++) {
69
+ if (this.children[i].children.length > 0) {
70
+ // 当前节点
71
+ const children = this.children[i].children[0];
72
+ // 当前节点的props数据
73
+ const propsData = children.props;
74
+ // 当前节点的配置数据
75
+ const config = children.config.config;
76
+ const isEvent = config.event || false;
77
+ if (isEvent) {
78
+ // 表单配置数据
79
+ const eventProps = config.props();
80
+ this.findDkEventCreateInput(eventProps, propsData).forEach((item) => {
81
+ const data = {
82
+ id: children._id,
83
+ label: item.props?.label || config.label,
84
+ value: propsData[item.field],
85
+ };
86
+ if (data.value && data.id && data.label) {
87
+ this.EventData.addEvent(data);
88
+ }
89
+ });
90
+ }
91
+ }
92
+ }
93
+ this.eventData = this.EventData.getAllEvents();
94
+ },
95
+ // 寻找事件
96
+ findDkEventCreateInput(data, propsData) {
97
+ const result = [];
98
+ data.forEach((element) => {
99
+ if (element.children) {
100
+ result.push(...this.findDkEventCreateInput(element.children));
101
+ }
102
+ if (element.control && Array.isArray(element.control)) {
103
+ element.control.forEach((control) => {
104
+ if (control.rule.length > 0) {
105
+ result.push(...this.findDkEventCreateInput(control.rule));
106
+ }
107
+ });
108
+ }
109
+ if (element.type === 'DkEventCreateInput') {
110
+ result.push(element);
111
+ }
112
+ });
113
+ return result
114
+ },
115
+ },
116
+ };
117
+
118
+ const _hoisted_1 = { style: {"display":"flex"} };
119
+ const _hoisted_2 = { style: {"float":"left"} };
120
+ const _hoisted_3 = { style: {"float":"right","color":"#8492a6","font-size":"13px"} };
121
+
122
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
+ const _component_el_option = vue.resolveComponent("el-option");
124
+ const _component_el_select = vue.resolveComponent("el-select");
125
+ const _component_el_button = vue.resolveComponent("el-button");
126
+
127
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
128
+ vue.createVNode(_component_el_select, {
129
+ modelValue: $data.data,
130
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.data) = $event)),
131
+ placeholder: "请选择要触发事件",
132
+ style: {"width":"100%"},
133
+ "allow-create": "",
134
+ filterable: ""
135
+ }, {
136
+ default: vue.withCtx(() => [
137
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.eventData, (item) => {
138
+ return (vue.openBlock(), vue.createBlock(_component_el_option, {
139
+ key: item.value,
140
+ label: item.label + '(' + item.value + ')',
141
+ value: item.value
142
+ }, {
143
+ default: vue.withCtx(() => [
144
+ vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(item.label), 1 /* TEXT */),
145
+ vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(item.value), 1 /* TEXT */)
146
+ ]),
147
+ _: 2 /* DYNAMIC */
148
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["label", "value"]))
149
+ }), 128 /* KEYED_FRAGMENT */))
150
+ ]),
151
+ _: 1 /* STABLE */
152
+ }, 8 /* PROPS */, ["modelValue"]),
153
+ vue.createVNode(_component_el_button, {
154
+ loading: $data.loading,
155
+ onClick: $options.updateEvent
156
+ }, {
157
+ default: vue.withCtx(() => [
158
+ vue.createTextVNode("刷新")
159
+ ]),
160
+ _: 1 /* STABLE */
161
+ }, 8 /* PROPS */, ["loading", "onClick"])
162
+ ]))
163
+ }
164
+ 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"]]);
165
+
166
+ exports.default = DkEventSelectInput;
167
+ //# 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 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 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,GAAG;MACV,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,SAAQ;KAC/B;IACD,QAAQ,GAAG;MACT,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAO;KAC9B;GACF;AACD,EAAA,KAAK,EAAE;AACL,IAAA,IAAI,GAAG;AACL,MAAA,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,EAAA;KAC1C;GACF;AACD,EAAA,OAAO,GAAG;IACR,IAAI,CAAC,IAAK,GAAE,IAAI,CAAC,UAAS,IAAK,GAAC;AAChC,IAAA,IAAI,CAAC,WAAW,GAAC;GAClB;AACD,EAAA,OAAO,EAAE;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AApBC,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
- // TODO 待完善
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 // TODO 待完善\n // {\n // type: 'DkEventCreateInput',\n // field: 'listen',\n // title: '监听事件',\n // value: '',\n // props: { label: '弹窗组件' },\n // },\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;AACb,mBAAe;AAAA,EACb,IAAM,EAAA,WAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAO,EAAA,IAAA;AAAA,EACP,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,cAAA;AAAA,OACT;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MASL,EAAE,MAAM,OAAS,EAAA,KAAA,EAAO,SAAS,KAAO,EAAA,0BAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,MAC5D;AAAA,QACE,IAAM,EAAA,gBAAA;AAAA,QACN,KAAO,EAAA,SAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA;AAAA,UACL,UAAY,EAAA,sCAAA;AAAA,SACd;AAAA,QACA,KAAO,EAAA,EAAA;AAAA,OACT;AAAA,MACA,EAAE,MAAM,OAAS,EAAA,KAAA,EAAO,eAAe,KAAO,EAAA,0BAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,MAClE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,MAAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,KAAA;AAAA,QACP,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,4LAAA;AAAA,SACR;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAA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AAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,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;;;;"}
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;AACb,mBAAe;AAAA,EACb,IAAM,EAAA,WAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAO,EAAA,IAAA;AAAA,EACP,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,cAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,IAAA,EAAM,oBAAsB,EAAA,KAAA,EAAO,QAAU,EAAA,KAAA,EAAO,0BAAQ,EAAA,KAAA,EAAO,EAAI,EAAA,KAAA,EAAO,EAAE,KAAA,EAAO,4BAAS,EAAA;AAAA,MAClG,EAAE,MAAM,OAAS,EAAA,KAAA,EAAO,SAAS,KAAO,EAAA,0BAAA,EAAQ,OAAO,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A,EAAO,oBAAO,EAAA,KAAA,EAAO,MAAO,EAAA;AAAA,iBAChC;AAAA,gBACA,OAAS,EAAA;AAAA,kBACP;AAAA,oBACE,KAAO,EAAA,MAAA;AAAA,oBACP,IAAM,EAAA;AAAA,sBACJ;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,wBACP,KAAA,EAAO,EAAE,IAAA,EAAM,UAAW,EAAA;AAAA,uBAC5B;AAAA,qBACF;AAAA,mBACF;AAAA,kBACA;AAAA,oBACE,KAAO,EAAA,MAAA;AAAA,oBACP,IAAM,EAAA;AAAA,sBACJ;AAAA,wBACE,IAAM,EAAA,gBAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,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;