el-plus-crud 0.0.72 → 0.0.74
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.
- package/CHANGELOG.md +4 -0
- package/dist/el-plus-crud.mjs +12 -12
- package/example/App.vue +2 -1
- package/lib/components/el-plus-form/ElPlusForm.vue +1 -0
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +3 -2
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormFile.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormInput.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormUpbtn.vue +1 -0
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +1 -0
- package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +1 -0
- package/lib/components/el-plus-table/ElPlusTable.vue +1 -0
- package/lib/components/el-plus-table/components/columnItem.vue +1 -0
- package/lib/components/el-plus-table/components/header.vue +1 -0
- package/lib/components/el-plus-table/components/settingColumn.vue +1 -0
- package/lib/components/el-plus-table/util/index.ts +1 -0
- package/lib/config/index.ts +2 -0
- package/lib/index.ts +1 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/types/formList.d.ts +97 -91
- package/types/global.d.ts +1 -133
- package/types/axios.d.ts +0 -13
- package/types/layout.d.ts +0 -57
- package/types/mitt.d.ts +0 -38
- package/types/pinia.d.ts +0 -149
- package/types/views.d.ts +0 -329
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.74](https://github.com/KDJack/el-plus-crud/compare/v0.0.73...v0.0.74) (2023-09-04)
|
|
6
|
+
|
|
7
|
+
### [0.0.73](https://github.com/KDJack/el-plus-crud/compare/v0.0.72...v0.0.73) (2023-09-04)
|
|
8
|
+
|
|
5
9
|
### [0.0.72](https://github.com/KDJack/el-plus-crud/compare/v0.0.71...v0.0.72) (2023-09-01)
|
|
6
10
|
|
|
7
11
|
### [0.0.71](https://github.com/KDJack/el-plus-crud/compare/v0.0.70...v0.0.71) (2023-09-01)
|
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -4040,7 +4040,7 @@ function Kj(d, s, l, o, p, g) {
|
|
|
4040
4040
|
return D(), V("svg", Gj, Hj);
|
|
4041
4041
|
}
|
|
4042
4042
|
var Jj = /* @__PURE__ */ Nl(Wj, [["render", Kj], ["__file", "warning-filled.vue"]]);
|
|
4043
|
-
const $j = (d) => (Uu("data-v-
|
|
4043
|
+
const $j = (d) => (Uu("data-v-e757586c"), d = d(), Vu(), d), qj = { class: "el-button el-plus-form-up-btn" }, Xj = /* @__PURE__ */ $j(() => /* @__PURE__ */ ve("div", null, null, -1)), ez = {
|
|
4044
4044
|
name: "ElPlusFormUpbtn",
|
|
4045
4045
|
inheritAttrs: !1,
|
|
4046
4046
|
typeName: "upbtn",
|
|
@@ -4136,7 +4136,7 @@ const $j = (d) => (Uu("data-v-7746b4bb"), d = d(), Vu(), d), qj = { class: "el-b
|
|
|
4136
4136
|
};
|
|
4137
4137
|
}
|
|
4138
4138
|
});
|
|
4139
|
-
const Cl = /* @__PURE__ */ Ge(tz, [["__scopeId", "data-v-
|
|
4139
|
+
const Cl = /* @__PURE__ */ Ge(tz, [["__scopeId", "data-v-e757586c"]]), nz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Cl }, Symbol.toStringTag, { value: "Module" })), lz = /* @__PURE__ */ ve("i", { class: "ele-ArrowDown el-icon--right" }, null, -1), rz = {
|
|
4140
4140
|
name: "ElPlusFormBtns",
|
|
4141
4141
|
inheritAttrs: !1,
|
|
4142
4142
|
typeName: "btns",
|
|
@@ -4720,7 +4720,7 @@ const Uz = (d = "", s, l = !1) => d ? (l ? Vz(d) : d.length) > s ? d.substring(0
|
|
|
4720
4720
|
};
|
|
4721
4721
|
}
|
|
4722
4722
|
});
|
|
4723
|
-
const Zz = /* @__PURE__ */ Ge(Gz, [["__scopeId", "data-v-
|
|
4723
|
+
const Zz = /* @__PURE__ */ Ge(Gz, [["__scopeId", "data-v-647fba8b"]]), Hz = {
|
|
4724
4724
|
key: 1,
|
|
4725
4725
|
class: "no-img-tip"
|
|
4726
4726
|
}, Kz = {
|
|
@@ -4857,7 +4857,7 @@ const n2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4857
4857
|
]), 1040, ["disabled", "modelValue"])) : X("", !0);
|
|
4858
4858
|
};
|
|
4859
4859
|
}
|
|
4860
|
-
}), r2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Wi }, Symbol.toStringTag, { value: "Module" })), u2 = (d) => (Uu("data-v-
|
|
4860
|
+
}), r2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Wi }, Symbol.toStringTag, { value: "Module" })), u2 = (d) => (Uu("data-v-e5d0b5fa"), d = d(), Vu(), d), o2 = { class: "el-plus-form-link" }, s2 = {
|
|
4861
4861
|
style: { width: "100%" },
|
|
4862
4862
|
class: "form-link-dialog"
|
|
4863
4863
|
}, i2 = { class: "panel-left" }, a2 = {
|
|
@@ -5024,7 +5024,7 @@ const n2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5024
5024
|
};
|
|
5025
5025
|
}
|
|
5026
5026
|
});
|
|
5027
|
-
const Gi = /* @__PURE__ */ Ge(d2, [["__scopeId", "data-v-
|
|
5027
|
+
const Gi = /* @__PURE__ */ Ge(d2, [["__scopeId", "data-v-e5d0b5fa"]]), g2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Gi }, Symbol.toStringTag, { value: "Module" })), N2 = (d) => (Uu("data-v-a6b27e5a"), d = d(), Vu(), d), p2 = { class: "el-plus-form-link-user" }, j2 = {
|
|
5028
5028
|
style: { width: "100%" },
|
|
5029
5029
|
class: "form-link-user-dialog"
|
|
5030
5030
|
}, z2 = { class: "panel-left" }, y2 = { class: "dept-breadcrumb" }, D2 = { style: { display: "flex", "align-items": "center" } }, _2 = { class: "panel-right" }, m2 = /* @__PURE__ */ N2(() => /* @__PURE__ */ ve("div", { class: "right-title" }, "已选中项:", -1)), h2 = { class: "btn-panel" }, v2 = {
|
|
@@ -5361,7 +5361,7 @@ const Gi = /* @__PURE__ */ Ge(d2, [["__scopeId", "data-v-f4467b2e"]]), g2 = /* @
|
|
|
5361
5361
|
};
|
|
5362
5362
|
}
|
|
5363
5363
|
});
|
|
5364
|
-
const Zi = /* @__PURE__ */ Ge(w2, [["__scopeId", "data-v-
|
|
5364
|
+
const Zi = /* @__PURE__ */ Ge(w2, [["__scopeId", "data-v-a6b27e5a"]]), A2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Zi }, Symbol.toStringTag, { value: "Module" })), I2 = {
|
|
5365
5365
|
name: "ElPlusFormNbinput",
|
|
5366
5366
|
inheritAttrs: !1,
|
|
5367
5367
|
typeName: "nbinput",
|
|
@@ -5486,7 +5486,7 @@ const Y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5486
5486
|
};
|
|
5487
5487
|
}
|
|
5488
5488
|
});
|
|
5489
|
-
const Ki = /* @__PURE__ */ Ge(T2, [["__scopeId", "data-v-
|
|
5489
|
+
const Ki = /* @__PURE__ */ Ge(T2, [["__scopeId", "data-v-8cf9fc98"]]), E2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ki }, Symbol.toStringTag, { value: "Module" })), b2 = {
|
|
5490
5490
|
name: "ElPlusFormPassword",
|
|
5491
5491
|
inheritAttrs: !1,
|
|
5492
5492
|
typeName: "password",
|
|
@@ -6926,7 +6926,7 @@ const _D = {
|
|
|
6926
6926
|
title: { default: "" },
|
|
6927
6927
|
tableRef: {},
|
|
6928
6928
|
success: {},
|
|
6929
|
-
successTip: { default: "操作成功!" }
|
|
6929
|
+
successTip: { type: [String, Function], default: "操作成功!" }
|
|
6930
6930
|
},
|
|
6931
6931
|
emits: ["update:show", "update:modelValue"],
|
|
6932
6932
|
setup(d, { emit: s }) {
|
|
@@ -6944,7 +6944,7 @@ const _D = {
|
|
|
6944
6944
|
}
|
|
6945
6945
|
}), g = _(null), { width: h, top: m, modal: f, appendToBody: a, showClose: v, draggable: j, closeOnClickModal: Y, ...O } = Object.assign({ width: "700px", draggable: !0, top: "15vh", closeOnClickModal: !1, showCancel: !0 }, Ie()), T = { width: h, top: m, modal: f, appendToBody: a, showClose: v, draggable: j, closeOnClickModal: Y };
|
|
6946
6946
|
function A(U) {
|
|
6947
|
-
l.success ? l.success(U) : l.tableRef && (cn.success(l.successTip), l.tableRef.reload(), p.value = !1, setTimeout(() => {
|
|
6947
|
+
l.success ? l.success(U) : l.tableRef && (cn.success(typeof l.successTip == "function" ? l.successTip() : l.successTip), l.tableRef.reload(), p.value = !1, setTimeout(() => {
|
|
6948
6948
|
U.callBack();
|
|
6949
6949
|
}, 200));
|
|
6950
6950
|
}
|
|
@@ -7198,7 +7198,7 @@ const ID = { class: "el-plus-table-edit-column" }, YD = { class: "select-panel"
|
|
|
7198
7198
|
};
|
|
7199
7199
|
}
|
|
7200
7200
|
});
|
|
7201
|
-
const Yi = /* @__PURE__ */ Ge(TD, [["__scopeId", "data-v-
|
|
7201
|
+
const Yi = /* @__PURE__ */ Ge(TD, [["__scopeId", "data-v-9d331899"]]);
|
|
7202
7202
|
function ED() {
|
|
7203
7203
|
return !!navigator.userAgent.match(/('phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone')/i);
|
|
7204
7204
|
}
|
|
@@ -7451,7 +7451,7 @@ const xD = (d, s) => {
|
|
|
7451
7451
|
};
|
|
7452
7452
|
}
|
|
7453
7453
|
});
|
|
7454
|
-
const VD = /* @__PURE__ */ Ge(UD, [["__scopeId", "data-v-
|
|
7454
|
+
const VD = /* @__PURE__ */ Ge(UD, [["__scopeId", "data-v-43f282da"]]), QD = { style: { width: "100%", display: "flex" } }, FD = /* @__PURE__ */ fe({
|
|
7455
7455
|
__name: "columnItem",
|
|
7456
7456
|
props: {
|
|
7457
7457
|
modelValue: {},
|
|
@@ -7532,7 +7532,7 @@ const VD = /* @__PURE__ */ Ge(UD, [["__scopeId", "data-v-65fb4aed"]]), QD = { st
|
|
|
7532
7532
|
};
|
|
7533
7533
|
}
|
|
7534
7534
|
});
|
|
7535
|
-
const Li = /* @__PURE__ */ Ge(FD, [["__scopeId", "data-v-
|
|
7535
|
+
const Li = /* @__PURE__ */ Ge(FD, [["__scopeId", "data-v-19d5e9b1"]]), RD = { class: "el-plus-table-content" }, WD = {
|
|
7536
7536
|
key: 1,
|
|
7537
7537
|
class: "table-tabs-panel"
|
|
7538
7538
|
}, GD = { class: "el-plus-table-main" }, ZD = { key: 1 }, HD = {
|
package/example/App.vue
CHANGED
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
import { reactive, ref, onMounted } from 'vue'
|
|
15
15
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
16
16
|
import { ElMessage } from 'element-plus'
|
|
17
|
+
import { IFormBack, IFormDesc, IFormGroupConfig } from 'types/formList'
|
|
17
18
|
|
|
18
19
|
let formData = reactive({
|
|
19
20
|
name: 'xiaoha'
|
|
20
21
|
} as any)
|
|
21
22
|
const formGroupConfig = ref({
|
|
22
23
|
column: 2,
|
|
23
|
-
requestFn: () => {},
|
|
24
|
+
// requestFn: () => {},
|
|
24
25
|
beforeRequest: (data: any) => {
|
|
25
26
|
return data
|
|
26
27
|
},
|
|
@@ -45,6 +45,7 @@ import * as validates from './util/validate'
|
|
|
45
45
|
import { typeList } from './components/index'
|
|
46
46
|
import ElPlusFormBtn from './components/ElPlusFormBtn.vue'
|
|
47
47
|
import { cloneDeep } from 'lodash'
|
|
48
|
+
import { ICRUDConfig, IFormBack, IFormDescItem } from 'types/formList'
|
|
48
49
|
|
|
49
50
|
// IFormProps定义
|
|
50
51
|
export interface IFormProps {
|
|
@@ -25,9 +25,10 @@ export default {
|
|
|
25
25
|
import { ref, computed, useAttrs } from 'vue'
|
|
26
26
|
import ElPlusForm from './ElPlusForm.vue'
|
|
27
27
|
import { ElMessage } from 'element-plus'
|
|
28
|
+
import { IFormBack } from 'types/formList'
|
|
28
29
|
|
|
29
30
|
const emits = defineEmits(['update:show', 'update:modelValue'])
|
|
30
|
-
const props = withDefaults(defineProps<{ modelValue?: { [key: string]: any } | {}; show?: boolean; title?: string; tableRef?: any; success?: Function; successTip?: string }>(), {
|
|
31
|
+
const props = withDefaults(defineProps<{ modelValue?: { [key: string]: any } | {}; show?: boolean; title?: string; tableRef?: any; success?: Function; successTip?: string | ((data?: any) => string) }>(), {
|
|
31
32
|
title: '',
|
|
32
33
|
modelValue: () => {
|
|
33
34
|
return {}
|
|
@@ -69,7 +70,7 @@ function dialogSuccess(formBack: IFormBack) {
|
|
|
69
70
|
props.success(formBack)
|
|
70
71
|
} else {
|
|
71
72
|
if (props.tableRef) {
|
|
72
|
-
ElMessage.success(props.successTip)
|
|
73
|
+
ElMessage.success(typeof props.successTip === 'function' ? props.successTip() : props.successTip)
|
|
73
74
|
props.tableRef.reload()
|
|
74
75
|
currentShow.value = false
|
|
75
76
|
setTimeout(() => {
|
|
@@ -23,6 +23,7 @@ export default {
|
|
|
23
23
|
import { cloneDeep } from 'lodash'
|
|
24
24
|
import { computed, ref, useSlots } from 'vue'
|
|
25
25
|
import ElPlusForm, { IFormProps } from './ElPlusForm.vue'
|
|
26
|
+
import { IFormDesc, IFormGroupConfig } from 'types/formList'
|
|
26
27
|
|
|
27
28
|
const emits = defineEmits(['update:show', 'update:modelValue', 'before-validate', 'before-request', 'request-success', 'request-error', 'request-end', 'request'])
|
|
28
29
|
const props = defineProps<{
|
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
<script lang="ts" setup>
|
|
30
30
|
import { ref, computed, useAttrs, watch, inject } from 'vue'
|
|
31
31
|
import { cloneDeep } from 'lodash'
|
|
32
|
+
import { IBtnBack, ICRUDConfig } from 'types/formList'
|
|
32
33
|
|
|
33
34
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
34
35
|
|
|
@@ -35,6 +35,7 @@ import { ref, computed, watch, onMounted } from 'vue'
|
|
|
35
35
|
import ElPlusFormBtn from './ElPlusFormBtn.vue'
|
|
36
36
|
import ElPlusFormUpbtn from './ElPlusFormUpbtn.vue'
|
|
37
37
|
import { ElMessageBox } from 'element-plus'
|
|
38
|
+
import { IBtnBack } from 'types/formList'
|
|
38
39
|
|
|
39
40
|
const props = defineProps<{
|
|
40
41
|
field: string
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
<script lang="ts" setup>
|
|
17
17
|
import { ref, watch, useAttrs, useSlots, onBeforeMount, inject } from 'vue'
|
|
18
18
|
import { getAttrs, getEvents } from '../mixins'
|
|
19
|
+
import { ICRUDConfig } from 'types/formList'
|
|
19
20
|
|
|
20
21
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
21
22
|
|
|
@@ -38,6 +38,7 @@ export default {
|
|
|
38
38
|
import { cloneDeep } from 'lodash'
|
|
39
39
|
import { ref, reactive, watch, onMounted, computed } from 'vue'
|
|
40
40
|
import { getEvents } from '../mixins'
|
|
41
|
+
import { IBtnBack, ITableConfig } from 'types/formList'
|
|
41
42
|
|
|
42
43
|
interface ILinkItem {
|
|
43
44
|
label: string
|
|
@@ -74,6 +74,7 @@ import { ref, reactive, nextTick, watch, onMounted, computed, inject, onBeforeMo
|
|
|
74
74
|
import { Share, UserFilled } from '@element-plus/icons-vue'
|
|
75
75
|
import { cloneDeep } from 'lodash'
|
|
76
76
|
import { getAttrs } from '../mixins'
|
|
77
|
+
import { ICRUDConfig } from 'types/formList'
|
|
77
78
|
|
|
78
79
|
const globalData = inject('globalData') as any
|
|
79
80
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
import { ref, computed, useAttrs, onBeforeMount, nextTick, inject } from 'vue'
|
|
14
14
|
import { getAttrs, getEvents } from '../mixins'
|
|
15
15
|
import { ElMessage } from 'element-plus'
|
|
16
|
+
import { ICRUDConfig } from 'types/formList'
|
|
16
17
|
|
|
17
18
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
18
19
|
|
|
@@ -17,6 +17,7 @@ export default {
|
|
|
17
17
|
<script lang="ts" setup>
|
|
18
18
|
import { ref, useAttrs, useSlots, onBeforeMount, inject } from 'vue'
|
|
19
19
|
import { getAttrs, getEvents } from '../mixins'
|
|
20
|
+
import { ICRUDConfig } from 'types/formList'
|
|
20
21
|
|
|
21
22
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
22
23
|
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
import { ref, useAttrs, watch, onBeforeMount, inject, reactive } from 'vue'
|
|
17
17
|
import { getAttrs, getEvents } from '../mixins'
|
|
18
18
|
import { isEqual } from 'lodash'
|
|
19
|
+
import { ICRUDConfig } from 'types/formList'
|
|
19
20
|
|
|
20
21
|
const globalData = inject('globalData') as any
|
|
21
22
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
@@ -21,6 +21,7 @@ import { ref, reactive, computed, onBeforeMount, useAttrs, watch, inject } from
|
|
|
21
21
|
import { ElMessage } from 'element-plus'
|
|
22
22
|
import { getAttrs } from '../mixins'
|
|
23
23
|
import { isEqual } from 'lodash'
|
|
24
|
+
import { ICRUDConfig } from 'types/formList'
|
|
24
25
|
|
|
25
26
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
26
27
|
const globalData = inject('globalData') as any
|
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
<script lang="ts" setup>
|
|
13
13
|
import { ref, useAttrs, watch, onBeforeMount, inject } from 'vue'
|
|
14
14
|
import { getAttrs, getEvents } from '../mixins'
|
|
15
|
+
import { ICRUDConfig } from 'types/formList'
|
|
15
16
|
|
|
16
17
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
17
18
|
|
|
@@ -21,6 +21,7 @@ import { ref, computed, onBeforeMount, useAttrs, watch } from 'vue'
|
|
|
21
21
|
import { Upload } from '@element-plus/icons-vue'
|
|
22
22
|
import { ElMessage, ElMessageBox, UploadRawFile } from 'element-plus'
|
|
23
23
|
import { getAttrs } from '../mixins'
|
|
24
|
+
import { IBtnBack } from 'types/formList'
|
|
24
25
|
|
|
25
26
|
const props = defineProps<{
|
|
26
27
|
field?: string
|
|
@@ -47,6 +47,7 @@ import txt from '../images/icon/txt.png'
|
|
|
47
47
|
import word from '../images/icon/word.png'
|
|
48
48
|
import zip from '../images/icon/zip.png'
|
|
49
49
|
import ppt from '../images/icon/ppt.png'
|
|
50
|
+
import { ICRUDConfig, IOssInfo } from 'types/formList'
|
|
50
51
|
|
|
51
52
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
52
53
|
|
|
@@ -106,6 +106,7 @@ import ColumnItem from './components/columnItem.vue'
|
|
|
106
106
|
import { handelListColumn } from './util'
|
|
107
107
|
import { cloneDeep } from 'lodash'
|
|
108
108
|
import { Loading } from '@element-plus/icons-vue'
|
|
109
|
+
import { ICRUDConfig, ITableConfig, ITableTabItem, ITreeProps } from 'types/formList'
|
|
109
110
|
|
|
110
111
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
111
112
|
const format = inject('format') as any
|
|
@@ -46,6 +46,7 @@ import ElPlusTableSettingColumn from './settingColumn.vue'
|
|
|
46
46
|
import ElPlusFormBtn from '../../el-plus-form/components/ElPlusFormBtn.vue'
|
|
47
47
|
import ElPlusFormUpbtn from '../../el-plus-form/components/ElPlusFormUpbtn.vue'
|
|
48
48
|
import { isMobile, handelBtnType, mapToUrlStr } from '../util'
|
|
49
|
+
import { IBtnBack, ICRUDConfig, IColumnItem, ITableToolbar } from 'types/formList'
|
|
49
50
|
|
|
50
51
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
51
52
|
|
package/lib/config/index.ts
CHANGED
package/lib/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import ElPlusFormDialog from './components/el-plus-form/ElPlusFormDialog.vue'
|
|
|
5
5
|
import ElPlusFormGroup from './components/el-plus-form/ElPlusFormGroup.vue'
|
|
6
6
|
import ElPlusTable from './components/el-plus-table/ElPlusTable.vue'
|
|
7
7
|
import defaultConf from './config'
|
|
8
|
+
import { ICRUDConfig } from './../types/formList.d'
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
install: (app: App, config: ICRUDConfig, format?: { [key: string]: Function }, globalData?: { [key: string]: Function }) => {
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "el-plus-crud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "el-plus-crud",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.74",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@element-plus/icons-vue": "^2.1.0",
|