@vipl520/dk-ui 1.0.61 → 1.0.62
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/index.js +117 -106
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +3 -3
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +117 -106
- package/es/page-diy/index.d.ts +1 -0
- package/es/page-diy/src/page-diy.vue.d.ts +1 -0
- package/es/page-diy/src/page-diy.vue.mjs +118 -107
- package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
- package/es/page-diy/style/dk-page-diy.css +1 -1
- package/es/page-diy/style/dk-page-diy.scss +29 -25
- package/es/page-diy/style/index.css +1 -1
- package/lib/page-diy/index.d.ts +1 -0
- package/lib/page-diy/src/page-diy.vue.d.ts +1 -0
- package/lib/page-diy/src/page-diy.vue.js +117 -106
- package/lib/page-diy/src/page-diy.vue.js.map +1 -1
- package/lib/page-diy/style/dk-page-diy.css +1 -1
- package/lib/page-diy/style/dk-page-diy.scss +29 -25
- package/lib/page-diy/style/index.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -14206,6 +14206,7 @@ const _sfc_main$p = defineComponent({
|
|
14206
14206
|
hide: true,
|
14207
14207
|
treeData: [],
|
14208
14208
|
},
|
14209
|
+
leftTabsName: 'component',
|
14209
14210
|
});
|
14210
14211
|
|
14211
14212
|
function cleanTreeData(node) {
|
@@ -15059,20 +15060,23 @@ const _hoisted_5$7 = {
|
|
15059
15060
|
class: "_fc-l-count",
|
15060
15061
|
style: {}
|
15061
15062
|
};
|
15062
|
-
const _hoisted_6$7 =
|
15063
|
-
const _hoisted_7$7 = {
|
15063
|
+
const _hoisted_6$7 = { class: "children-list" };
|
15064
|
+
const _hoisted_7$7 = {
|
15065
|
+
key: 0,
|
15066
|
+
class: "_fc-tree-node"
|
15067
|
+
};
|
15064
15068
|
|
15065
15069
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
15066
15070
|
const _component_dk_icon = resolveComponent("dk-icon");
|
15067
15071
|
const _component_draggable = resolveComponent("draggable");
|
15072
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
15068
15073
|
const _component_el_tree = resolveComponent("el-tree");
|
15074
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
15069
15075
|
const _component_el_aside = resolveComponent("el-aside");
|
15070
15076
|
const _component_el_header = resolveComponent("el-header");
|
15071
15077
|
const _component_DragForm = resolveComponent("DragForm");
|
15072
15078
|
const _component_preview_phone = resolveComponent("preview-phone");
|
15073
15079
|
const _component_el_container = resolveComponent("el-container");
|
15074
|
-
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
15075
|
-
const _component_el_tabs = resolveComponent("el-tabs");
|
15076
15080
|
const _component_el_dialog = resolveComponent("el-dialog");
|
15077
15081
|
const _component_diy_cloud = resolveComponent("diy-cloud");
|
15078
15082
|
const _component_dk_dialog = resolveComponent("dk-dialog");
|
@@ -15086,108 +15090,115 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15086
15090
|
style: normalizeStyle(_ctx.leftAside.style)
|
15087
15091
|
}, {
|
15088
15092
|
default: withCtx(() => [
|
15089
|
-
|
15090
|
-
|
15091
|
-
|
15092
|
-
|
15093
|
-
|
15094
|
-
|
15095
|
-
|
15096
|
-
|
15097
|
-
|
15098
|
-
|
15099
|
-
|
15100
|
-
|
15101
|
-
|
15102
|
-
|
15103
|
-
|
15104
|
-
|
15105
|
-
|
15106
|
-
|
15107
|
-
|
15108
|
-
|
15109
|
-
|
15110
|
-
|
15111
|
-
|
15112
|
-
|
15113
|
-
},
|
15093
|
+
createVNode(_component_el_tabs, {
|
15094
|
+
modelValue: _ctx.leftTabsName,
|
15095
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.leftTabsName) = $event))
|
15096
|
+
}, {
|
15097
|
+
default: withCtx(() => [
|
15098
|
+
createVNode(_component_el_tab_pane, {
|
15099
|
+
label: "组件列表",
|
15100
|
+
name: "component"
|
15101
|
+
}, {
|
15102
|
+
default: withCtx(() => [
|
15103
|
+
createElementVNode("div", _hoisted_1$i, [
|
15104
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuList, (item, index) => {
|
15105
|
+
return (openBlock(), createElementBlock("div", {
|
15106
|
+
key: index,
|
15107
|
+
class: "_fc-l-group"
|
15108
|
+
}, [
|
15109
|
+
createElementVNode("h4", _hoisted_2$e, toDisplayString(item.title), 1 /* TEXT */),
|
15110
|
+
createVNode(_component_draggable, {
|
15111
|
+
group: { name: 'default', pull: 'clone', put: false },
|
15112
|
+
sort: false,
|
15113
|
+
list: item.list,
|
15114
|
+
"item-key": "icon",
|
15115
|
+
filter: ".not-drag",
|
15116
|
+
class: "_fc-l-items"
|
15117
|
+
}, {
|
15118
|
+
item: withCtx(({ element }) => [
|
15119
|
+
(openBlock(), createElementBlock("div", {
|
15120
|
+
key: element.id,
|
15121
|
+
class: normalizeClass(["_fc-l-item", element.count - (_ctx.countObj[element.name] || 0) <= 0 ? 'not-drag' : ''])
|
15122
|
+
}, [
|
15123
|
+
createElementVNode("div", _hoisted_3$b, [
|
15124
|
+
createVNode(_component_dk_icon, {
|
15125
|
+
icon: element.icon,
|
15126
|
+
size: 24
|
15127
|
+
}, null, 8 /* PROPS */, ["icon"])
|
15128
|
+
]),
|
15129
|
+
createElementVNode("span", _hoisted_4$9, toDisplayString(element.label), 1 /* TEXT */),
|
15130
|
+
(element.count)
|
15131
|
+
? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(element.count - (_ctx.countObj[element.name] || 0)), 1 /* TEXT */))
|
15132
|
+
: createCommentVNode("v-if", true)
|
15133
|
+
], 2 /* CLASS */))
|
15134
|
+
]),
|
15135
|
+
_: 2 /* DYNAMIC */
|
15136
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["list"])
|
15137
|
+
]))
|
15138
|
+
}), 128 /* KEYED_FRAGMENT */))
|
15139
|
+
])
|
15140
|
+
]),
|
15141
|
+
_: 1 /* STABLE */
|
15142
|
+
}),
|
15143
|
+
createVNode(_component_el_tab_pane, {
|
15144
|
+
label: "结构大纲",
|
15145
|
+
name: "tree"
|
15146
|
+
}, {
|
15147
|
+
default: withCtx(() => [
|
15148
|
+
createElementVNode("div", _hoisted_6$7, [
|
15149
|
+
createVNode(_component_el_tree, {
|
15150
|
+
draggable: "",
|
15151
|
+
"highlight-current": "",
|
15152
|
+
data: _ctx.treeAside.treeData,
|
15153
|
+
props: { value: 'type', label: 'type' },
|
15154
|
+
"allow-drop": _ctx.allowDrop,
|
15155
|
+
"default-expand-all": true,
|
15156
|
+
onNodeDrop: _ctx.nodeDrop,
|
15157
|
+
onNodeClick: _ctx.nodeClick
|
15158
|
+
}, {
|
15159
|
+
default: withCtx(({ data }) => [
|
15160
|
+
createElementVNode("div", {
|
15161
|
+
class: "el-tree-node-content",
|
15162
|
+
style: normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:#409eff' : '')
|
15163
|
+
}, [
|
15164
|
+
(data.config?.config.label)
|
15165
|
+
? (openBlock(), createElementBlock("div", _hoisted_7$7, [
|
15166
|
+
createVNode(_component_dk_icon, {
|
15167
|
+
icon: data.config?.config.icon,
|
15168
|
+
class: "_fc-tree-icon"
|
15169
|
+
}, null, 8 /* PROPS */, ["icon"]),
|
15170
|
+
createTextVNode(" " + toDisplayString(data.config?.config.label), 1 /* TEXT */)
|
15171
|
+
]))
|
15172
|
+
: createCommentVNode("v-if", true),
|
15173
|
+
createVNode(_component_dk_icon, {
|
15174
|
+
icon: "Close",
|
15175
|
+
class: "close-rule",
|
15176
|
+
onClick: withModifiers($event => (_ctx.delRule(data._id)), ["stop"])
|
15177
|
+
}, null, 8 /* PROPS */, ["onClick"])
|
15178
|
+
], 4 /* STYLE */)
|
15114
15179
|
]),
|
15115
|
-
|
15116
|
-
|
15117
|
-
|
15118
|
-
|
15119
|
-
|
15120
|
-
|
15121
|
-
_: 2 /* DYNAMIC */
|
15122
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["list"])
|
15123
|
-
]))
|
15124
|
-
}), 128 /* KEYED_FRAGMENT */))
|
15125
|
-
]),
|
15126
|
-
createElementVNode("div", {
|
15127
|
-
class: "children-list",
|
15128
|
-
style: normalizeStyle(_ctx.treeAside.style)
|
15129
|
-
}, [
|
15130
|
-
createElementVNode("div", {
|
15131
|
-
class: "child-title",
|
15132
|
-
onClick: _cache[0] || (_cache[0] = $event => (_ctx.hideAside('tree')))
|
15133
|
-
}, [
|
15134
|
-
_hoisted_6$7,
|
15135
|
-
createVNode(_component_dk_icon, {
|
15136
|
-
icon: _ctx.treeAside.hide ? 'ArrowUp' : 'ArrowDown'
|
15137
|
-
}, null, 8 /* PROPS */, ["icon"])
|
15180
|
+
_: 1 /* STABLE */
|
15181
|
+
}, 8 /* PROPS */, ["data", "allow-drop", "onNodeDrop", "onNodeClick"])
|
15182
|
+
])
|
15183
|
+
]),
|
15184
|
+
_: 1 /* STABLE */
|
15185
|
+
})
|
15138
15186
|
]),
|
15139
|
-
|
15140
|
-
|
15141
|
-
draggable: "",
|
15142
|
-
"highlight-current": "",
|
15143
|
-
data: _ctx.treeAside.treeData,
|
15144
|
-
props: { value: 'type', label: 'type' },
|
15145
|
-
"allow-drop": _ctx.allowDrop,
|
15146
|
-
"default-expand-all": true,
|
15147
|
-
onNodeDrop: _ctx.nodeDrop,
|
15148
|
-
onNodeClick: _ctx.nodeClick
|
15149
|
-
}, {
|
15150
|
-
default: withCtx(({ data }) => [
|
15151
|
-
createElementVNode("div", {
|
15152
|
-
class: "el-tree-node-content",
|
15153
|
-
style: normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : '')
|
15154
|
-
}, [
|
15155
|
-
createTextVNode(toDisplayString(data.type) + " ", 1 /* TEXT */),
|
15156
|
-
(data.config?.config.label)
|
15157
|
-
? (openBlock(), createElementBlock("span", _hoisted_7$7, toDisplayString(data.config?.config.label), 1 /* TEXT */))
|
15158
|
-
: createCommentVNode("v-if", true),
|
15159
|
-
createVNode(_component_dk_icon, {
|
15160
|
-
icon: "Close",
|
15161
|
-
class: "close-rule",
|
15162
|
-
onClick: withModifiers($event => (_ctx.delRule(data._id)), ["stop"])
|
15163
|
-
}, null, 8 /* PROPS */, ["onClick"])
|
15164
|
-
], 4 /* STYLE */)
|
15165
|
-
]),
|
15166
|
-
_: 1 /* STABLE */
|
15167
|
-
}, 8 /* PROPS */, ["data", "allow-drop", "onNodeDrop", "onNodeClick"]),
|
15168
|
-
(!_ctx.treeAside.hide)
|
15169
|
-
? (openBlock(), createElementBlock("div", {
|
15170
|
-
key: 0,
|
15171
|
-
class: "aside-resizer",
|
15172
|
-
onMousedown: _cache[1] || (_cache[1] = $event => (_ctx.onResizerMouseDown('tree', $event))),
|
15173
|
-
onMouseup: _cache[2] || (_cache[2] = $event => (_ctx.onResizerMouseUp('tree'))),
|
15174
|
-
onMousemove: _cache[3] || (_cache[3] = $event => (_ctx.onResizerMouseMove('tree')))
|
15175
|
-
}, null, 32 /* HYDRATE_EVENTS */))
|
15176
|
-
: createCommentVNode("v-if", true)
|
15177
|
-
], 4 /* STYLE */),
|
15187
|
+
_: 1 /* STABLE */
|
15188
|
+
}, 8 /* PROPS */, ["modelValue"]),
|
15178
15189
|
(!_ctx.leftAside.hide)
|
15179
15190
|
? (openBlock(), createElementBlock("div", {
|
15180
15191
|
key: 0,
|
15181
15192
|
class: "aside-resizer",
|
15182
|
-
onMousedown: _cache[
|
15183
|
-
onMouseup: _cache[
|
15184
|
-
onMousemove: _cache[
|
15193
|
+
onMousedown: _cache[1] || (_cache[1] = $event => (_ctx.onResizerMouseDown('left', $event))),
|
15194
|
+
onMouseup: _cache[2] || (_cache[2] = $event => (_ctx.onResizerMouseUp('left'))),
|
15195
|
+
onMousemove: _cache[3] || (_cache[3] = $event => (_ctx.onResizerMouseMove('left')))
|
15185
15196
|
}, null, 32 /* HYDRATE_EVENTS */))
|
15186
15197
|
: createCommentVNode("v-if", true),
|
15187
15198
|
createElementVNode("div", {
|
15188
15199
|
class: "aside-toggle left-99%",
|
15189
15200
|
style: normalizeStyle(_ctx.leftAside.hide ? 'display:block' : ''),
|
15190
|
-
onClick: _cache[
|
15201
|
+
onClick: _cache[4] || (_cache[4] = $event => (_ctx.hideAside('left')))
|
15191
15202
|
}, [
|
15192
15203
|
createVNode(_component_dk_icon, {
|
15193
15204
|
icon: _ctx.leftAside.hide ? 'ArrowRight' : 'ArrowLeft'
|
@@ -15215,7 +15226,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15215
15226
|
default: withCtx(() => [
|
15216
15227
|
withDirectives(createVNode(_component_DragForm, {
|
15217
15228
|
api: _ctx.dragForm.api,
|
15218
|
-
"onUpdate:api": _cache[
|
15229
|
+
"onUpdate:api": _cache[5] || (_cache[5] = $event => ((_ctx.dragForm.api) = $event)),
|
15219
15230
|
rule: _ctx.dragForm.rule,
|
15220
15231
|
option: _ctx.dragForm.option
|
15221
15232
|
}, null, 8 /* PROPS */, ["api", "rule", "option"]), [
|
@@ -15236,7 +15247,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15236
15247
|
default: withCtx(() => [
|
15237
15248
|
withDirectives(createVNode(_component_el_tabs, {
|
15238
15249
|
modelValue: _ctx.activeTab,
|
15239
|
-
"onUpdate:modelValue": _cache[
|
15250
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((_ctx.activeTab) = $event))
|
15240
15251
|
}, {
|
15241
15252
|
default: withCtx(() => [
|
15242
15253
|
(!!_ctx.activeRule)
|
@@ -15248,7 +15259,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15248
15259
|
default: withCtx(() => [
|
15249
15260
|
createVNode(_component_DragForm, {
|
15250
15261
|
api: _ctx.propsForm.api,
|
15251
|
-
"onUpdate:api": _cache[
|
15262
|
+
"onUpdate:api": _cache[6] || (_cache[6] = $event => ((_ctx.propsForm.api) = $event)),
|
15252
15263
|
rule: _ctx.propsForm.rule,
|
15253
15264
|
option: _ctx.propsForm.options,
|
15254
15265
|
"model-value": _ctx.propsForm.value,
|
@@ -15268,7 +15279,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15268
15279
|
default: withCtx(() => [
|
15269
15280
|
withDirectives(createVNode(_component_DragForm, {
|
15270
15281
|
api: _ctx.dkSettingForm.api,
|
15271
|
-
"onUpdate:api": _cache[
|
15282
|
+
"onUpdate:api": _cache[7] || (_cache[7] = $event => ((_ctx.dkSettingForm.api) = $event)),
|
15272
15283
|
rule: _ctx.dkSettingForm.rule,
|
15273
15284
|
option: _ctx.dkSettingForm.options,
|
15274
15285
|
"model-value": _ctx.dkSettingForm.value,
|
@@ -15287,7 +15298,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15287
15298
|
default: withCtx(() => [
|
15288
15299
|
createVNode(_component_DragForm, {
|
15289
15300
|
api: _ctx.dkPageForm.api,
|
15290
|
-
"onUpdate:api": _cache[
|
15301
|
+
"onUpdate:api": _cache[8] || (_cache[8] = $event => ((_ctx.dkPageForm.api) = $event)),
|
15291
15302
|
rule: _ctx.dkPageForm.rule,
|
15292
15303
|
option: _ctx.dkPageForm.options,
|
15293
15304
|
onChange: _ctx.dkPageChange
|
@@ -15304,15 +15315,15 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15304
15315
|
? (openBlock(), createElementBlock("div", {
|
15305
15316
|
key: 0,
|
15306
15317
|
class: "aside-resizer left-0",
|
15307
|
-
onMousedown: _cache[
|
15308
|
-
onMouseup: _cache[
|
15309
|
-
onMousemove: _cache[
|
15318
|
+
onMousedown: _cache[10] || (_cache[10] = $event => (_ctx.onResizerMouseDown('right', $event))),
|
15319
|
+
onMouseup: _cache[11] || (_cache[11] = $event => (_ctx.onResizerMouseUp('right'))),
|
15320
|
+
onMousemove: _cache[12] || (_cache[12] = $event => (_ctx.onResizerMouseMove('right')))
|
15310
15321
|
}, null, 32 /* HYDRATE_EVENTS */))
|
15311
15322
|
: createCommentVNode("v-if", true),
|
15312
15323
|
createElementVNode("div", {
|
15313
15324
|
class: "aside-toggle right-99%",
|
15314
15325
|
style: normalizeStyle(_ctx.rightAside.hide ? 'display:block' : ''),
|
15315
|
-
onClick: _cache[
|
15326
|
+
onClick: _cache[13] || (_cache[13] = $event => (_ctx.hideAside('right')))
|
15316
15327
|
}, [
|
15317
15328
|
createVNode(_component_dk_icon, {
|
15318
15329
|
icon: _ctx.rightAside.hide ? 'ArrowLeft' : 'ArrowRight'
|
@@ -15324,7 +15335,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15324
15335
|
createCommentVNode(" 右边操作区结束"),
|
15325
15336
|
createVNode(_component_el_dialog, {
|
15326
15337
|
visible: _ctx.preview.state,
|
15327
|
-
"onUpdate:visible": _cache[
|
15338
|
+
"onUpdate:visible": _cache[14] || (_cache[14] = $event => ((_ctx.preview.state) = $event)),
|
15328
15339
|
width: "375px",
|
15329
15340
|
"append-to-body": "",
|
15330
15341
|
style: {"min-height":"700px"}
|
@@ -15340,7 +15351,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15340
15351
|
}, 8 /* PROPS */, ["visible"]),
|
15341
15352
|
createVNode(_component_dk_dialog, {
|
15342
15353
|
modelValue: _ctx.diyCloud.show,
|
15343
|
-
"onUpdate:modelValue": _cache[
|
15354
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((_ctx.diyCloud.show) = $event)),
|
15344
15355
|
width: "1200px",
|
15345
15356
|
"append-to-body": "",
|
15346
15357
|
title: "DIY模板市场",
|
package/es/page-diy/index.d.ts
CHANGED
@@ -322,6 +322,7 @@ export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue")
|
|
322
322
|
hide: boolean;
|
323
323
|
treeData: never[];
|
324
324
|
}>;
|
325
|
+
leftTabsName: import("vue").Ref<string>;
|
325
326
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
326
327
|
type: {
|
327
328
|
type: StringConstructor;
|
@@ -322,6 +322,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
322
322
|
hide: boolean;
|
323
323
|
treeData: never[];
|
324
324
|
}>;
|
325
|
+
leftTabsName: import("vue").Ref<string>;
|
325
326
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
326
327
|
type: {
|
327
328
|
type: StringConstructor;
|