@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
@@ -0,0 +1,55 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
class EventData {
|
6
|
+
events = [];
|
7
|
+
constructor() {
|
8
|
+
}
|
9
|
+
// 添加单个事件数据
|
10
|
+
addEvent(data) {
|
11
|
+
this.events.push({
|
12
|
+
id: data.id,
|
13
|
+
label: data.label,
|
14
|
+
value: data.value
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// 批量添加事件数据
|
18
|
+
addEvents(dataList) {
|
19
|
+
this.events.push(
|
20
|
+
...dataList.map((data) => ({
|
21
|
+
id: data.id,
|
22
|
+
label: data.label,
|
23
|
+
value: data.value
|
24
|
+
}))
|
25
|
+
);
|
26
|
+
}
|
27
|
+
// 获取所有事件数据
|
28
|
+
getAllEvents() {
|
29
|
+
return this.events;
|
30
|
+
}
|
31
|
+
// 根据id获取事件数据
|
32
|
+
getEventById(id) {
|
33
|
+
return this.events.find((event) => event.id === id);
|
34
|
+
}
|
35
|
+
// 删除指定id的事件数据
|
36
|
+
removeEventById(id) {
|
37
|
+
const index = this.events.findIndex((event) => event.id === id);
|
38
|
+
if (index !== -1) {
|
39
|
+
this.events.splice(index, 1);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
// 删除指定id的事件数据
|
43
|
+
removeEventByLabel(label) {
|
44
|
+
const index = this.events.findIndex((event) => event.label === label);
|
45
|
+
if (index !== -1) {
|
46
|
+
this.events.splice(index, 1);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
removeAllEvent() {
|
50
|
+
this.events = [];
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
exports.default = EventData;
|
55
|
+
//# sourceMappingURL=eventData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"eventData.js","sources":["../../../../src/page-diy/src/utils/eventData.ts"],"sourcesContent":["class EventData {\n events: { id: string | number; label: string; value: any }[] = []\n\n constructor() {}\n\n // 添加单个事件数据\n addEvent(data: { id: string | number; label: string; value: any }) {\n this.events.push({\n id: data.id,\n label: data.label,\n value: data.value,\n })\n }\n\n // 批量添加事件数据\n addEvents(dataList: Array<{ id: string | number; label: string; value: any }>) {\n this.events.push(\n ...dataList.map((data) => ({\n id: data.id,\n label: data.label,\n value: data.value,\n }))\n )\n }\n\n // 获取所有事件数据\n getAllEvents() {\n // return [...this.events]\n return this.events\n }\n\n // 根据id获取事件数据\n getEventById(id: string | number) {\n return this.events.find((event) => event.id === id)\n }\n\n // 删除指定id的事件数据\n removeEventById(id: string | number) {\n const index = this.events.findIndex((event) => event.id === id)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n // 删除指定id的事件数据\n removeEventByLabel(label: string | number) {\n const index = this.events.findIndex((event) => event.label === label)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n removeAllEvent() {\n this.events = []\n }\n}\n\nexport default EventData\n"],"names":[],"mappings":";;;;AAAA,MAAM,SAAU,CAAA;AAAA,EACd,SAA+D,EAAC,CAAA;AAAA,EAEhE,WAAc,GAAA;AAAA,GAAC;AAAA;AAAA,EAGf,SAAS,IAA0D,EAAA;AACjE,IAAA,IAAA,CAAK,OAAO,IAAK,CAAA;AAAA,MACf,IAAI,IAAK,CAAA,EAAA;AAAA,MACT,OAAO,IAAK,CAAA,KAAA;AAAA,MACZ,OAAO,IAAK,CAAA,KAAA;AAAA,KACb,CAAA,CAAA;AAAA,GACH;AAAA;AAAA,EAGA,UAAU,QAAqE,EAAA;AAC7E,IAAA,IAAA,CAAK,MAAO,CAAA,IAAA;AAAA,MACV,GAAG,QAAA,CAAS,GAAI,CAAA,CAAC,IAAU,MAAA;AAAA,QACzB,IAAI,IAAK,CAAA,EAAA;AAAA,QACT,OAAO,IAAK,CAAA,KAAA;AAAA,QACZ,OAAO,IAAK,CAAA,KAAA;AAAA,OACZ,CAAA,CAAA;AAAA,KACJ,CAAA;AAAA,GACF;AAAA;AAAA,EAGA,YAAe,GAAA;AAEb,IAAA,OAAO,IAAK,CAAA,MAAA,CAAA;AAAA,GACd;AAAA;AAAA,EAGA,aAAa,EAAqB,EAAA;AAChC,IAAA,OAAO,KAAK,MAAO,CAAA,IAAA,CAAK,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,EAAE,CAAA,CAAA;AAAA,GACpD;AAAA;AAAA,EAGA,gBAAgB,EAAqB,EAAA;AACnC,IAAM,MAAA,KAAA,GAAQ,KAAK,MAAO,CAAA,SAAA,CAAU,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,EAAE,CAAA,CAAA;AAC9D,IAAA,IAAI,UAAU,CAAI,CAAA,EAAA;AAChB,MAAK,IAAA,CAAA,MAAA,CAAO,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC7B;AAAA,GACF;AAAA;AAAA,EAGA,mBAAmB,KAAwB,EAAA;AACzC,IAAM,MAAA,KAAA,GAAQ,KAAK,MAAO,CAAA,SAAA,CAAU,CAAC,KAAU,KAAA,KAAA,CAAM,UAAU,KAAK,CAAA,CAAA;AACpE,IAAA,IAAI,UAAU,CAAI,CAAA,EAAA;AAChB,MAAK,IAAA,CAAA,MAAA,CAAO,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC7B;AAAA,GACF;AAAA,EAEA,cAAiB,GAAA;AACf,IAAA,IAAA,CAAK,SAAS,EAAC,CAAA;AAAA,GACjB;AACF;;;;"}
|
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
default: string;
|
4
4
|
type: StringConstructor;
|
5
5
|
};
|
6
|
+
listen: {
|
7
|
+
default: string;
|
8
|
+
type: StringConstructor;
|
9
|
+
};
|
6
10
|
show: {
|
7
11
|
default: boolean;
|
8
12
|
type: BooleanConstructor;
|
@@ -40,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
44
|
default: string;
|
41
45
|
type: StringConstructor;
|
42
46
|
};
|
47
|
+
listen: {
|
48
|
+
default: string;
|
49
|
+
type: StringConstructor;
|
50
|
+
};
|
43
51
|
show: {
|
44
52
|
default: boolean;
|
45
53
|
type: BooleanConstructor;
|
@@ -73,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
81
|
show: boolean;
|
74
82
|
copy: string | number;
|
75
83
|
content: string;
|
84
|
+
listen: string;
|
76
85
|
confirmText: string;
|
77
86
|
copyType: string;
|
78
87
|
copyText: string;
|
@@ -9,6 +9,7 @@ const _sfc_main = {
|
|
9
9
|
name: 'DkViewDialog',
|
10
10
|
props: {
|
11
11
|
title: { default: '标题', type: String },
|
12
|
+
listen: { default: '', type: String },
|
12
13
|
show: { default: false, type: Boolean },
|
13
14
|
content: { default: '', type: String },
|
14
15
|
confirmText: { default: '确定', type: String },
|
@@ -47,6 +48,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
47
48
|
|
48
49
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
49
50
|
_hoisted_2,
|
51
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.$props) + " ", 1 /* TEXT */),
|
50
52
|
($data.showDialog)
|
51
53
|
? (vue.openBlock(), vue.createBlock(_component_van_dialog, {
|
52
54
|
key: 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewDialog.vue.js","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.js","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,E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AADnC,EAAA,QAAAC,aAAA,EAAA,EAAAC,sBAAA,CAaM,OAbN,UAaM,EAAA;IAZJ,UAAuC;wBAAA,GACvC,GAAAC,mBAAA,CAAG,IAAM,CAAA,MAAA,CAAA,GAAG,GACZ,EAAA,CAAA,YAAA;KACQ,KAAU,CAAA,UAAA;0BADlBC,eASa,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;;+BAE1B,MAA8C;YAA9CJ,sBAA8C,CAAA,KAAA,EAAA;AAAzC,cAAA,KAAqB,EAArB,CAAqB,SAAA,CAAA,MAAA,CAAA;AAAC,cAAA,SAAgB,EAAR,MAAO,CAAA,OAAA;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vipl520/dk-ui",
|
3
|
-
"version": "1.0.
|
4
|
-
"description": "
|
3
|
+
"version": "1.0.30",
|
4
|
+
"description": "多客怪兽框架核心组件,支持diy、crud动态表格、上传组件等",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "es/index.mjs",
|
7
7
|
"types": "es/index.d.ts",
|
@@ -47,6 +47,7 @@
|
|
47
47
|
"el-table-next": "^1.0.2",
|
48
48
|
"lodash": "^4.17.21",
|
49
49
|
"lodash-es": "^4.17.21",
|
50
|
+
"mitt": "^3.0.1",
|
50
51
|
"sortablejs": "1.15.0",
|
51
52
|
"unocss": "^0.56.5",
|
52
53
|
"vue3-draggable-resizable": "^1.6.5",
|