ele-admin-plus 1.5.0-beta.5 → 1.5.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent, useModel, ref, onBeforeUnmount,
|
|
1
|
+
import { defineComponent, useModel, ref, onBeforeUnmount, createBlock, openBlock, mergeProps, withCtx, createVNode, createElementVNode, createCommentVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps, normalizeClass, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { ElEmpty } from "element-plus";
|
|
2
3
|
import { useMobile } from "../utils/hook";
|
|
3
4
|
import { eachTree, findTree, omit } from "../utils/common";
|
|
4
5
|
import EleSplitPanel from "../ele-split-panel/index";
|
|
@@ -246,7 +247,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
246
247
|
stopStoreHistoryTimer();
|
|
247
248
|
});
|
|
248
249
|
return (_ctx, _cache) => {
|
|
249
|
-
const _component_ElEmpty = resolveComponent("ElEmpty");
|
|
250
250
|
return openBlock(), createBlock(EleSplitPanel, mergeProps({
|
|
251
251
|
space: 0,
|
|
252
252
|
size: 240,
|
|
@@ -295,7 +295,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
}
|
|
296
296
|
]])
|
|
297
297
|
}, [
|
|
298
|
-
!unref(crudConfig) || !unref(crudConfig).fields || !unref(crudConfig).fields.length ? (openBlock(), createBlock(
|
|
298
|
+
!unref(crudConfig) || !unref(crudConfig).fields || !unref(crudConfig).fields.length ? (openBlock(), createBlock(unref(ElEmpty), {
|
|
299
299
|
key: 0,
|
|
300
300
|
imageSize: 80,
|
|
301
301
|
class: "ele-crud-builder-form-empty"
|
|
@@ -2,7 +2,11 @@ import { EleBasicSelectInstance, EleProTableInstance } from '../ele-app/plus';
|
|
|
2
2
|
import { SelectValue, SingleValue, SelectedItem } from '../ele-basic-select/types';
|
|
3
3
|
import { DataItem } from '../ele-data-table/types';
|
|
4
4
|
|
|
5
|
-
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_:
|
|
5
|
+
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}) => any>> & {
|
|
6
10
|
popperTopExtra?(_: {}): any;
|
|
7
11
|
popperBottomExtra?(_: {}): any;
|
|
8
12
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, provide,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, provide, createBlock, openBlock, createSlots, withCtx, createElementBlock, resolveDynamicComponent, normalizeProps, mergeProps, renderSlot, createVNode, renderList, unref, guardReactiveProps, Fragment, nextTick } from "vue";
|
|
2
2
|
import { getSlotsMap, getValue } from "../utils/common";
|
|
3
3
|
import { useResponsive } from "../ele-pro-layout/util";
|
|
4
4
|
import EleBasicSelect from "../ele-basic-select/index";
|
|
5
5
|
import { useFormValidate, isEmptyValue, SELECT_DATA_KEY, valueIsChanged } from "../ele-basic-select/util";
|
|
6
6
|
import EleButtons from "../ele-buttons/index";
|
|
7
|
+
import EleProTable from "../ele-pro-table/index";
|
|
7
8
|
import { tableSelectEmits, tableSelectProps } from "./props";
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
...{ name: "EleTableSelect" },
|
|
@@ -412,7 +413,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
412
413
|
...provideMethods
|
|
413
414
|
});
|
|
414
415
|
return (_ctx, _cache) => {
|
|
415
|
-
const _component_EleProTable = resolveComponent("EleProTable");
|
|
416
416
|
return openBlock(), createBlock(EleBasicSelect, {
|
|
417
417
|
ref_key: "selectRef",
|
|
418
418
|
ref: selectRef,
|
|
@@ -457,7 +457,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
457
457
|
_ctx.wrapperComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.wrapperComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.wrapperComponentProps || {})), {
|
|
458
458
|
default: withCtx(() => [
|
|
459
459
|
renderSlot(_ctx.$slots, "popperTopExtra"),
|
|
460
|
-
createVNode(
|
|
460
|
+
createVNode(EleProTable, mergeProps({
|
|
461
461
|
"onUpdate:selectedRowKeys": handleUpdateTableSelectedRowKeys,
|
|
462
462
|
"onUpdate:currentRowKey": handleUpdateTableCurrentRowKey,
|
|
463
463
|
onSelectionChange: handleTableSelectionChange,
|
|
@@ -495,7 +495,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
495
495
|
_: 3
|
|
496
496
|
}, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
497
497
|
renderSlot(_ctx.$slots, "popperTopExtra"),
|
|
498
|
-
createVNode(
|
|
498
|
+
createVNode(EleProTable, mergeProps({
|
|
499
499
|
"onUpdate:selectedRowKeys": handleUpdateTableSelectedRowKeys,
|
|
500
500
|
"onUpdate:currentRowKey": handleUpdateTableCurrentRowKey,
|
|
501
501
|
onSelectionChange: handleTableSelectionChange,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
3
4
|
const hook = require("../utils/hook");
|
|
4
5
|
const common = require("../utils/common");
|
|
5
6
|
const EleSplitPanel = require("../ele-split-panel/index");
|
|
@@ -247,7 +248,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
247
248
|
stopStoreHistoryTimer();
|
|
248
249
|
});
|
|
249
250
|
return (_ctx, _cache) => {
|
|
250
|
-
const _component_ElEmpty = vue.resolveComponent("ElEmpty");
|
|
251
251
|
return vue.openBlock(), vue.createBlock(EleSplitPanel, vue.mergeProps({
|
|
252
252
|
space: 0,
|
|
253
253
|
size: 240,
|
|
@@ -296,7 +296,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
296
296
|
}
|
|
297
297
|
]])
|
|
298
298
|
}, [
|
|
299
|
-
!vue.unref(crudConfig) || !vue.unref(crudConfig).fields || !vue.unref(crudConfig).fields.length ? (vue.openBlock(), vue.createBlock(
|
|
299
|
+
!vue.unref(crudConfig) || !vue.unref(crudConfig).fields || !vue.unref(crudConfig).fields.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElEmpty), {
|
|
300
300
|
key: 0,
|
|
301
301
|
imageSize: 80,
|
|
302
302
|
class: "ele-crud-builder-form-empty"
|
|
@@ -5,6 +5,7 @@ const util$1 = require("../ele-pro-layout/util");
|
|
|
5
5
|
const EleBasicSelect = require("../ele-basic-select/index");
|
|
6
6
|
const util = require("../ele-basic-select/util");
|
|
7
7
|
const EleButtons = require("../ele-buttons/index");
|
|
8
|
+
const EleProTable = require("../ele-pro-table/index");
|
|
8
9
|
const props = require("./props");
|
|
9
10
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
11
|
...{ name: "EleTableSelect" },
|
|
@@ -413,7 +414,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
413
414
|
...provideMethods
|
|
414
415
|
});
|
|
415
416
|
return (_ctx, _cache) => {
|
|
416
|
-
const _component_EleProTable = vue.resolveComponent("EleProTable");
|
|
417
417
|
return vue.openBlock(), vue.createBlock(EleBasicSelect, {
|
|
418
418
|
ref_key: "selectRef",
|
|
419
419
|
ref: selectRef,
|
|
@@ -458,7 +458,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
458
458
|
_ctx.wrapperComponent ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.wrapperComponent), vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.wrapperComponentProps || {})), {
|
|
459
459
|
default: vue.withCtx(() => [
|
|
460
460
|
vue.renderSlot(_ctx.$slots, "popperTopExtra"),
|
|
461
|
-
vue.createVNode(
|
|
461
|
+
vue.createVNode(EleProTable, vue.mergeProps({
|
|
462
462
|
"onUpdate:selectedRowKeys": handleUpdateTableSelectedRowKeys,
|
|
463
463
|
"onUpdate:currentRowKey": handleUpdateTableCurrentRowKey,
|
|
464
464
|
onSelectionChange: handleTableSelectionChange,
|
|
@@ -496,7 +496,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
496
496
|
_: 3
|
|
497
497
|
}, 16)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
498
498
|
vue.renderSlot(_ctx.$slots, "popperTopExtra"),
|
|
499
|
-
vue.createVNode(
|
|
499
|
+
vue.createVNode(EleProTable, vue.mergeProps({
|
|
500
500
|
"onUpdate:selectedRowKeys": handleUpdateTableSelectedRowKeys,
|
|
501
501
|
"onUpdate:currentRowKey": handleUpdateTableCurrentRowKey,
|
|
502
502
|
onSelectionChange: handleTableSelectionChange,
|
|
@@ -2,7 +2,11 @@ import { EleBasicSelectInstance, EleProTableInstance } from '../ele-app/plus';
|
|
|
2
2
|
import { SelectValue, SingleValue, SelectedItem } from '../ele-basic-select/types';
|
|
3
3
|
import { DataItem } from '../ele-data-table/types';
|
|
4
4
|
|
|
5
|
-
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_:
|
|
5
|
+
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}) => any>> & {
|
|
6
10
|
popperTopExtra?(_: {}): any;
|
|
7
11
|
popperBottomExtra?(_: {}): any;
|
|
8
12
|
};
|