@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.
@@ -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;
@@ -234,6 +234,7 @@ const _sfc_main = vue.defineComponent({
234
234
  hide: true,
235
235
  treeData: [],
236
236
  },
237
+ leftTabsName: 'component',
237
238
  });
238
239
 
239
240
  function cleanTreeData(node) {
@@ -1087,20 +1088,23 @@ const _hoisted_5 = {
1087
1088
  class: "_fc-l-count",
1088
1089
  style: {}
1089
1090
  };
1090
- const _hoisted_6 = /*#__PURE__*/vue.createElementVNode("span", null, "结构", -1 /* HOISTED */);
1091
- const _hoisted_7 = { key: 0 };
1091
+ const _hoisted_6 = { class: "children-list" };
1092
+ const _hoisted_7 = {
1093
+ key: 0,
1094
+ class: "_fc-tree-node"
1095
+ };
1092
1096
 
1093
1097
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1094
1098
  const _component_dk_icon = vue.resolveComponent("dk-icon");
1095
1099
  const _component_draggable = vue.resolveComponent("draggable");
1100
+ const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
1096
1101
  const _component_el_tree = vue.resolveComponent("el-tree");
1102
+ const _component_el_tabs = vue.resolveComponent("el-tabs");
1097
1103
  const _component_el_aside = vue.resolveComponent("el-aside");
1098
1104
  const _component_el_header = vue.resolveComponent("el-header");
1099
1105
  const _component_DragForm = vue.resolveComponent("DragForm");
1100
1106
  const _component_preview_phone = vue.resolveComponent("preview-phone");
1101
1107
  const _component_el_container = vue.resolveComponent("el-container");
1102
- const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
1103
- const _component_el_tabs = vue.resolveComponent("el-tabs");
1104
1108
  const _component_el_dialog = vue.resolveComponent("el-dialog");
1105
1109
  const _component_diy_cloud = vue.resolveComponent("diy-cloud");
1106
1110
  const _component_dk_dialog = vue.resolveComponent("dk-dialog");
@@ -1114,108 +1118,115 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1114
1118
  style: vue.normalizeStyle(_ctx.leftAside.style)
1115
1119
  }, {
1116
1120
  default: vue.withCtx(() => [
1117
- vue.createElementVNode("div", _hoisted_1, [
1118
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuList, (item, index) => {
1119
- return (vue.openBlock(), vue.createElementBlock("div", {
1120
- key: index,
1121
- class: "_fc-l-group"
1122
- }, [
1123
- vue.createElementVNode("h4", _hoisted_2, vue.toDisplayString(item.title), 1 /* TEXT */),
1124
- vue.createVNode(_component_draggable, {
1125
- group: { name: 'default', pull: 'clone', put: false },
1126
- sort: false,
1127
- list: item.list,
1128
- "item-key": "icon",
1129
- filter: ".not-drag",
1130
- class: "_fc-l-items"
1131
- }, {
1132
- item: vue.withCtx(({ element }) => [
1133
- (vue.openBlock(), vue.createElementBlock("div", {
1134
- key: element.id,
1135
- class: vue.normalizeClass(["_fc-l-item", element.count - (_ctx.countObj[element.name] || 0) <= 0 ? 'not-drag' : ''])
1136
- }, [
1137
- vue.createElementVNode("div", _hoisted_3, [
1138
- vue.createVNode(_component_dk_icon, {
1139
- icon: element.icon,
1140
- size: 24
1141
- }, null, 8 /* PROPS */, ["icon"])
1121
+ vue.createVNode(_component_el_tabs, {
1122
+ modelValue: _ctx.leftTabsName,
1123
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.leftTabsName) = $event))
1124
+ }, {
1125
+ default: vue.withCtx(() => [
1126
+ vue.createVNode(_component_el_tab_pane, {
1127
+ label: "组件列表",
1128
+ name: "component"
1129
+ }, {
1130
+ default: vue.withCtx(() => [
1131
+ vue.createElementVNode("div", _hoisted_1, [
1132
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuList, (item, index) => {
1133
+ return (vue.openBlock(), vue.createElementBlock("div", {
1134
+ key: index,
1135
+ class: "_fc-l-group"
1136
+ }, [
1137
+ vue.createElementVNode("h4", _hoisted_2, vue.toDisplayString(item.title), 1 /* TEXT */),
1138
+ vue.createVNode(_component_draggable, {
1139
+ group: { name: 'default', pull: 'clone', put: false },
1140
+ sort: false,
1141
+ list: item.list,
1142
+ "item-key": "icon",
1143
+ filter: ".not-drag",
1144
+ class: "_fc-l-items"
1145
+ }, {
1146
+ item: vue.withCtx(({ element }) => [
1147
+ (vue.openBlock(), vue.createElementBlock("div", {
1148
+ key: element.id,
1149
+ class: vue.normalizeClass(["_fc-l-item", element.count - (_ctx.countObj[element.name] || 0) <= 0 ? 'not-drag' : ''])
1150
+ }, [
1151
+ vue.createElementVNode("div", _hoisted_3, [
1152
+ vue.createVNode(_component_dk_icon, {
1153
+ icon: element.icon,
1154
+ size: 24
1155
+ }, null, 8 /* PROPS */, ["icon"])
1156
+ ]),
1157
+ vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(element.label), 1 /* TEXT */),
1158
+ (element.count)
1159
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, vue.toDisplayString(element.count - (_ctx.countObj[element.name] || 0)), 1 /* TEXT */))
1160
+ : vue.createCommentVNode("v-if", true)
1161
+ ], 2 /* CLASS */))
1162
+ ]),
1163
+ _: 2 /* DYNAMIC */
1164
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["list"])
1165
+ ]))
1166
+ }), 128 /* KEYED_FRAGMENT */))
1167
+ ])
1168
+ ]),
1169
+ _: 1 /* STABLE */
1170
+ }),
1171
+ vue.createVNode(_component_el_tab_pane, {
1172
+ label: "结构大纲",
1173
+ name: "tree"
1174
+ }, {
1175
+ default: vue.withCtx(() => [
1176
+ vue.createElementVNode("div", _hoisted_6, [
1177
+ vue.createVNode(_component_el_tree, {
1178
+ draggable: "",
1179
+ "highlight-current": "",
1180
+ data: _ctx.treeAside.treeData,
1181
+ props: { value: 'type', label: 'type' },
1182
+ "allow-drop": _ctx.allowDrop,
1183
+ "default-expand-all": true,
1184
+ onNodeDrop: _ctx.nodeDrop,
1185
+ onNodeClick: _ctx.nodeClick
1186
+ }, {
1187
+ default: vue.withCtx(({ data }) => [
1188
+ vue.createElementVNode("div", {
1189
+ class: "el-tree-node-content",
1190
+ style: vue.normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:#409eff' : '')
1191
+ }, [
1192
+ (data.config?.config.label)
1193
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
1194
+ vue.createVNode(_component_dk_icon, {
1195
+ icon: data.config?.config.icon,
1196
+ class: "_fc-tree-icon"
1197
+ }, null, 8 /* PROPS */, ["icon"]),
1198
+ vue.createTextVNode(" " + vue.toDisplayString(data.config?.config.label), 1 /* TEXT */)
1199
+ ]))
1200
+ : vue.createCommentVNode("v-if", true),
1201
+ vue.createVNode(_component_dk_icon, {
1202
+ icon: "Close",
1203
+ class: "close-rule",
1204
+ onClick: vue.withModifiers($event => (_ctx.delRule(data._id)), ["stop"])
1205
+ }, null, 8 /* PROPS */, ["onClick"])
1206
+ ], 4 /* STYLE */)
1142
1207
  ]),
1143
- vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(element.label), 1 /* TEXT */),
1144
- (element.count)
1145
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, vue.toDisplayString(element.count - (_ctx.countObj[element.name] || 0)), 1 /* TEXT */))
1146
- : vue.createCommentVNode("v-if", true)
1147
- ], 2 /* CLASS */))
1148
- ]),
1149
- _: 2 /* DYNAMIC */
1150
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["list"])
1151
- ]))
1152
- }), 128 /* KEYED_FRAGMENT */))
1153
- ]),
1154
- vue.createElementVNode("div", {
1155
- class: "children-list",
1156
- style: vue.normalizeStyle(_ctx.treeAside.style)
1157
- }, [
1158
- vue.createElementVNode("div", {
1159
- class: "child-title",
1160
- onClick: _cache[0] || (_cache[0] = $event => (_ctx.hideAside('tree')))
1161
- }, [
1162
- _hoisted_6,
1163
- vue.createVNode(_component_dk_icon, {
1164
- icon: _ctx.treeAside.hide ? 'ArrowUp' : 'ArrowDown'
1165
- }, null, 8 /* PROPS */, ["icon"])
1208
+ _: 1 /* STABLE */
1209
+ }, 8 /* PROPS */, ["data", "allow-drop", "onNodeDrop", "onNodeClick"])
1210
+ ])
1211
+ ]),
1212
+ _: 1 /* STABLE */
1213
+ })
1166
1214
  ]),
1167
- vue.createCommentVNode(" <textarea style=\"width: 100%\">{{ treeAside.treeData }}</textarea>"),
1168
- vue.createVNode(_component_el_tree, {
1169
- draggable: "",
1170
- "highlight-current": "",
1171
- data: _ctx.treeAside.treeData,
1172
- props: { value: 'type', label: 'type' },
1173
- "allow-drop": _ctx.allowDrop,
1174
- "default-expand-all": true,
1175
- onNodeDrop: _ctx.nodeDrop,
1176
- onNodeClick: _ctx.nodeClick
1177
- }, {
1178
- default: vue.withCtx(({ data }) => [
1179
- vue.createElementVNode("div", {
1180
- class: "el-tree-node-content",
1181
- style: vue.normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : '')
1182
- }, [
1183
- vue.createTextVNode(vue.toDisplayString(data.type) + " ", 1 /* TEXT */),
1184
- (data.config?.config.label)
1185
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7, vue.toDisplayString(data.config?.config.label), 1 /* TEXT */))
1186
- : vue.createCommentVNode("v-if", true),
1187
- vue.createVNode(_component_dk_icon, {
1188
- icon: "Close",
1189
- class: "close-rule",
1190
- onClick: vue.withModifiers($event => (_ctx.delRule(data._id)), ["stop"])
1191
- }, null, 8 /* PROPS */, ["onClick"])
1192
- ], 4 /* STYLE */)
1193
- ]),
1194
- _: 1 /* STABLE */
1195
- }, 8 /* PROPS */, ["data", "allow-drop", "onNodeDrop", "onNodeClick"]),
1196
- (!_ctx.treeAside.hide)
1197
- ? (vue.openBlock(), vue.createElementBlock("div", {
1198
- key: 0,
1199
- class: "aside-resizer",
1200
- onMousedown: _cache[1] || (_cache[1] = $event => (_ctx.onResizerMouseDown('tree', $event))),
1201
- onMouseup: _cache[2] || (_cache[2] = $event => (_ctx.onResizerMouseUp('tree'))),
1202
- onMousemove: _cache[3] || (_cache[3] = $event => (_ctx.onResizerMouseMove('tree')))
1203
- }, null, 32 /* HYDRATE_EVENTS */))
1204
- : vue.createCommentVNode("v-if", true)
1205
- ], 4 /* STYLE */),
1215
+ _: 1 /* STABLE */
1216
+ }, 8 /* PROPS */, ["modelValue"]),
1206
1217
  (!_ctx.leftAside.hide)
1207
1218
  ? (vue.openBlock(), vue.createElementBlock("div", {
1208
1219
  key: 0,
1209
1220
  class: "aside-resizer",
1210
- onMousedown: _cache[4] || (_cache[4] = $event => (_ctx.onResizerMouseDown('left', $event))),
1211
- onMouseup: _cache[5] || (_cache[5] = $event => (_ctx.onResizerMouseUp('left'))),
1212
- onMousemove: _cache[6] || (_cache[6] = $event => (_ctx.onResizerMouseMove('left')))
1221
+ onMousedown: _cache[1] || (_cache[1] = $event => (_ctx.onResizerMouseDown('left', $event))),
1222
+ onMouseup: _cache[2] || (_cache[2] = $event => (_ctx.onResizerMouseUp('left'))),
1223
+ onMousemove: _cache[3] || (_cache[3] = $event => (_ctx.onResizerMouseMove('left')))
1213
1224
  }, null, 32 /* HYDRATE_EVENTS */))
1214
1225
  : vue.createCommentVNode("v-if", true),
1215
1226
  vue.createElementVNode("div", {
1216
1227
  class: "aside-toggle left-99%",
1217
1228
  style: vue.normalizeStyle(_ctx.leftAside.hide ? 'display:block' : ''),
1218
- onClick: _cache[7] || (_cache[7] = $event => (_ctx.hideAside('left')))
1229
+ onClick: _cache[4] || (_cache[4] = $event => (_ctx.hideAside('left')))
1219
1230
  }, [
1220
1231
  vue.createVNode(_component_dk_icon, {
1221
1232
  icon: _ctx.leftAside.hide ? 'ArrowRight' : 'ArrowLeft'
@@ -1243,7 +1254,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1243
1254
  default: vue.withCtx(() => [
1244
1255
  vue.withDirectives(vue.createVNode(_component_DragForm, {
1245
1256
  api: _ctx.dragForm.api,
1246
- "onUpdate:api": _cache[8] || (_cache[8] = $event => ((_ctx.dragForm.api) = $event)),
1257
+ "onUpdate:api": _cache[5] || (_cache[5] = $event => ((_ctx.dragForm.api) = $event)),
1247
1258
  rule: _ctx.dragForm.rule,
1248
1259
  option: _ctx.dragForm.option
1249
1260
  }, null, 8 /* PROPS */, ["api", "rule", "option"]), [
@@ -1264,7 +1275,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1264
1275
  default: vue.withCtx(() => [
1265
1276
  vue.withDirectives(vue.createVNode(_component_el_tabs, {
1266
1277
  modelValue: _ctx.activeTab,
1267
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((_ctx.activeTab) = $event))
1278
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((_ctx.activeTab) = $event))
1268
1279
  }, {
1269
1280
  default: vue.withCtx(() => [
1270
1281
  (!!_ctx.activeRule)
@@ -1276,7 +1287,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1276
1287
  default: vue.withCtx(() => [
1277
1288
  vue.createVNode(_component_DragForm, {
1278
1289
  api: _ctx.propsForm.api,
1279
- "onUpdate:api": _cache[9] || (_cache[9] = $event => ((_ctx.propsForm.api) = $event)),
1290
+ "onUpdate:api": _cache[6] || (_cache[6] = $event => ((_ctx.propsForm.api) = $event)),
1280
1291
  rule: _ctx.propsForm.rule,
1281
1292
  option: _ctx.propsForm.options,
1282
1293
  "model-value": _ctx.propsForm.value,
@@ -1296,7 +1307,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1296
1307
  default: vue.withCtx(() => [
1297
1308
  vue.withDirectives(vue.createVNode(_component_DragForm, {
1298
1309
  api: _ctx.dkSettingForm.api,
1299
- "onUpdate:api": _cache[10] || (_cache[10] = $event => ((_ctx.dkSettingForm.api) = $event)),
1310
+ "onUpdate:api": _cache[7] || (_cache[7] = $event => ((_ctx.dkSettingForm.api) = $event)),
1300
1311
  rule: _ctx.dkSettingForm.rule,
1301
1312
  option: _ctx.dkSettingForm.options,
1302
1313
  "model-value": _ctx.dkSettingForm.value,
@@ -1315,7 +1326,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1315
1326
  default: vue.withCtx(() => [
1316
1327
  vue.createVNode(_component_DragForm, {
1317
1328
  api: _ctx.dkPageForm.api,
1318
- "onUpdate:api": _cache[11] || (_cache[11] = $event => ((_ctx.dkPageForm.api) = $event)),
1329
+ "onUpdate:api": _cache[8] || (_cache[8] = $event => ((_ctx.dkPageForm.api) = $event)),
1319
1330
  rule: _ctx.dkPageForm.rule,
1320
1331
  option: _ctx.dkPageForm.options,
1321
1332
  onChange: _ctx.dkPageChange
@@ -1332,15 +1343,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1332
1343
  ? (vue.openBlock(), vue.createElementBlock("div", {
1333
1344
  key: 0,
1334
1345
  class: "aside-resizer left-0",
1335
- onMousedown: _cache[13] || (_cache[13] = $event => (_ctx.onResizerMouseDown('right', $event))),
1336
- onMouseup: _cache[14] || (_cache[14] = $event => (_ctx.onResizerMouseUp('right'))),
1337
- onMousemove: _cache[15] || (_cache[15] = $event => (_ctx.onResizerMouseMove('right')))
1346
+ onMousedown: _cache[10] || (_cache[10] = $event => (_ctx.onResizerMouseDown('right', $event))),
1347
+ onMouseup: _cache[11] || (_cache[11] = $event => (_ctx.onResizerMouseUp('right'))),
1348
+ onMousemove: _cache[12] || (_cache[12] = $event => (_ctx.onResizerMouseMove('right')))
1338
1349
  }, null, 32 /* HYDRATE_EVENTS */))
1339
1350
  : vue.createCommentVNode("v-if", true),
1340
1351
  vue.createElementVNode("div", {
1341
1352
  class: "aside-toggle right-99%",
1342
1353
  style: vue.normalizeStyle(_ctx.rightAside.hide ? 'display:block' : ''),
1343
- onClick: _cache[16] || (_cache[16] = $event => (_ctx.hideAside('right')))
1354
+ onClick: _cache[13] || (_cache[13] = $event => (_ctx.hideAside('right')))
1344
1355
  }, [
1345
1356
  vue.createVNode(_component_dk_icon, {
1346
1357
  icon: _ctx.rightAside.hide ? 'ArrowLeft' : 'ArrowRight'
@@ -1352,7 +1363,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1352
1363
  vue.createCommentVNode(" 右边操作区结束"),
1353
1364
  vue.createVNode(_component_el_dialog, {
1354
1365
  visible: _ctx.preview.state,
1355
- "onUpdate:visible": _cache[17] || (_cache[17] = $event => ((_ctx.preview.state) = $event)),
1366
+ "onUpdate:visible": _cache[14] || (_cache[14] = $event => ((_ctx.preview.state) = $event)),
1356
1367
  width: "375px",
1357
1368
  "append-to-body": "",
1358
1369
  style: {"min-height":"700px"}
@@ -1368,7 +1379,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1368
1379
  }, 8 /* PROPS */, ["visible"]),
1369
1380
  vue.createVNode(_component_dk_dialog, {
1370
1381
  modelValue: _ctx.diyCloud.show,
1371
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((_ctx.diyCloud.show) = $event)),
1382
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((_ctx.diyCloud.show) = $event)),
1372
1383
  width: "1200px",
1373
1384
  "append-to-body": "",
1374
1385
  title: "DIY模板市场",