el-plus-crud 0.0.75 → 0.0.76
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 +2 -0
- package/dist/el-plus-crud.mjs +10 -10
- package/example/App.vue +3 -2
- package/lib/components/el-plus-form/ElPlusForm.vue +2 -1
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +2 -1
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormFile.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormInput.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormUpbtn.vue +2 -1
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +2 -1
- package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +2 -1
- package/lib/components/el-plus-table/ElPlusTable.vue +2 -1
- package/lib/components/el-plus-table/components/columnItem.vue +2 -1
- package/lib/components/el-plus-table/components/header.vue +2 -1
- package/lib/components/el-plus-table/components/settingColumn.vue +2 -1
- package/lib/components/el-plus-table/util/index.ts +1 -1
- package/lib/config/index.ts +1 -1
- package/lib/index.ts +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- /package/types/{formList.d.ts → index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.76](https://github.com/KDJack/el-plus-crud/compare/v0.0.75...v0.0.76) (2023-09-05)
|
|
6
|
+
|
|
5
7
|
### [0.0.75](https://github.com/KDJack/el-plus-crud/compare/v0.0.74...v0.0.75) (2023-09-04)
|
|
6
8
|
|
|
7
9
|
### [0.0.74](https://github.com/KDJack/el-plus-crud/compare/v0.0.73...v0.0.74) (2023-09-04)
|
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-3f92595d"), 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-0866afea"), 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-3f92595d"]]), 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-066e66c3"]]), 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-cba406aa"), 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-cba406aa"]]), g2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Gi }, Symbol.toStringTag, { value: "Module" })), N2 = (d) => (Uu("data-v-3d9b295b"), 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-1574c09b"]]), 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-3d9b295b"]]), 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-5c08bae3"]]), 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",
|
|
@@ -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-aba51e4b"]]);
|
|
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-3601aa1f"]]), 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-43f282da"]]), 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-4378ced4"]]), 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,10 +14,10 @@
|
|
|
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
|
|
17
|
+
import { IFormBack, IFormDesc, IFormGroupConfig } from 'types'
|
|
18
18
|
|
|
19
19
|
let formData = reactive({
|
|
20
|
-
name: '
|
|
20
|
+
name: ''
|
|
21
21
|
} as any)
|
|
22
22
|
const formGroupConfig = ref({
|
|
23
23
|
column: 2,
|
|
@@ -66,3 +66,4 @@ onMounted(async () => {
|
|
|
66
66
|
// 初始化部门列表
|
|
67
67
|
})
|
|
68
68
|
</script>
|
|
69
|
+
types
|
|
@@ -45,7 +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
|
|
48
|
+
import { ICRUDConfig, IFormBack, IFormDescItem } from 'types'
|
|
49
49
|
|
|
50
50
|
// IFormProps定义
|
|
51
51
|
export interface IFormProps {
|
|
@@ -794,3 +794,4 @@ defineExpose({ submit: handleSubmitForm, getData: getFormData, validate: validat
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
</style>
|
|
797
|
+
types
|
|
@@ -25,7 +25,7 @@ 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
|
|
28
|
+
import { IFormBack } from 'types'
|
|
29
29
|
|
|
30
30
|
const emits = defineEmits(['update:show', 'update:modelValue'])
|
|
31
31
|
const props = withDefaults(defineProps<{ modelValue?: { [key: string]: any } | {}; show?: boolean; title?: string; tableRef?: any; success?: Function; successTip?: string | ((data?: any) => string) }>(), {
|
|
@@ -87,3 +87,4 @@ function handelClosed() {
|
|
|
87
87
|
refElPlusDialogForm.value?.clear()
|
|
88
88
|
}
|
|
89
89
|
</script>
|
|
90
|
+
types
|
|
@@ -23,7 +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
|
|
26
|
+
import { IFormDesc, IFormGroupConfig } from 'types'
|
|
27
27
|
|
|
28
28
|
const emits = defineEmits(['update:show', 'update:modelValue', 'before-validate', 'before-request', 'request-success', 'request-error', 'request-end', 'request'])
|
|
29
29
|
const props = defineProps<{
|
|
@@ -168,3 +168,4 @@ defineExpose({ validate, getData, clearValid })
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
</style>
|
|
171
|
+
types
|
|
@@ -29,7 +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
|
|
32
|
+
import { IBtnBack, ICRUDConfig } from 'types'
|
|
33
33
|
|
|
34
34
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
35
35
|
|
|
@@ -117,3 +117,4 @@ watch(
|
|
|
117
117
|
)
|
|
118
118
|
</script>
|
|
119
119
|
<style lang="scss" scoped></style>
|
|
120
|
+
types
|
|
@@ -35,7 +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
|
|
38
|
+
import { IBtnBack } from 'types'
|
|
39
39
|
|
|
40
40
|
const props = defineProps<{
|
|
41
41
|
field: string
|
|
@@ -139,3 +139,4 @@ onMounted(() => {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
</style>
|
|
142
|
+
types
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
17
|
<script lang="ts" setup>
|
|
18
|
-
import { IOssInfo } from 'types
|
|
18
|
+
import { IOssInfo } from 'types'
|
|
19
19
|
import FileIcons from './components/file-icons/FileIcons.vue'
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{
|
|
@@ -46,3 +46,4 @@ const props = defineProps<{
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
</style>
|
|
49
|
+
types
|
|
@@ -16,7 +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
|
|
19
|
+
import { ICRUDConfig } from 'types'
|
|
20
20
|
|
|
21
21
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
22
22
|
|
|
@@ -61,3 +61,4 @@ watch(
|
|
|
61
61
|
}
|
|
62
62
|
)
|
|
63
63
|
</script>
|
|
64
|
+
types
|
|
@@ -38,7 +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
|
|
41
|
+
import { IBtnBack, ITableConfig } from 'types'
|
|
42
42
|
|
|
43
43
|
interface ILinkItem {
|
|
44
44
|
label: string
|
|
@@ -281,3 +281,4 @@ onMounted(async () => {})
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
</style>
|
|
284
|
+
types
|
|
@@ -74,7 +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
|
|
77
|
+
import { ICRUDConfig } from 'types'
|
|
78
78
|
|
|
79
79
|
const globalData = inject('globalData') as any
|
|
80
80
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
@@ -489,3 +489,4 @@ onMounted(async () => {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
</style>
|
|
492
|
+
types
|
|
@@ -13,7 +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
|
|
16
|
+
import { ICRUDConfig } from 'types'
|
|
17
17
|
|
|
18
18
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
19
19
|
|
|
@@ -146,3 +146,4 @@ function handelValChange(val: any, oldVal: any) {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
</style>
|
|
149
|
+
types
|
|
@@ -17,7 +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
|
|
20
|
+
import { ICRUDConfig } from 'types'
|
|
21
21
|
|
|
22
22
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
23
23
|
|
|
@@ -43,3 +43,4 @@ onBeforeMount(async () => {
|
|
|
43
43
|
isInit.value = true
|
|
44
44
|
})
|
|
45
45
|
</script>
|
|
46
|
+
types
|
|
@@ -16,7 +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
|
|
19
|
+
import { ICRUDConfig } from 'types'
|
|
20
20
|
|
|
21
21
|
const globalData = inject('globalData') as any
|
|
22
22
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
@@ -95,3 +95,4 @@ watch(
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
</style>
|
|
98
|
+
types
|
|
@@ -21,7 +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
|
|
24
|
+
import { ICRUDConfig } from 'types'
|
|
25
25
|
|
|
26
26
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
27
27
|
const globalData = inject('globalData') as any
|
|
@@ -161,3 +161,4 @@ watch(
|
|
|
161
161
|
white-space: break-spaces;
|
|
162
162
|
}
|
|
163
163
|
</style>
|
|
164
|
+
types
|
|
@@ -12,7 +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
|
|
15
|
+
import { ICRUDConfig } from 'types'
|
|
16
16
|
|
|
17
17
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
18
18
|
|
|
@@ -49,3 +49,4 @@ watch(
|
|
|
49
49
|
{ immediate: true }
|
|
50
50
|
)
|
|
51
51
|
</script>
|
|
52
|
+
types
|
|
@@ -21,7 +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
|
|
24
|
+
import { IBtnBack } from 'types'
|
|
25
25
|
|
|
26
26
|
const props = defineProps<{
|
|
27
27
|
field?: string
|
|
@@ -143,3 +143,4 @@ onBeforeMount(async () => {
|
|
|
143
143
|
padding: 0;
|
|
144
144
|
}
|
|
145
145
|
</style>
|
|
146
|
+
types
|
|
@@ -47,7 +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
|
|
50
|
+
import { ICRUDConfig, IOssInfo } from 'types'
|
|
51
51
|
|
|
52
52
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
53
53
|
|
|
@@ -368,3 +368,4 @@ watch(
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
</style>
|
|
371
|
+
types
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { ref, computed } from 'vue'
|
|
16
16
|
import fileIcon, { imgSuffix, iconMap } from './data'
|
|
17
17
|
import { cutString } from '../../../util'
|
|
18
|
-
import { IOssInfo } from 'types
|
|
18
|
+
import { IOssInfo } from 'types'
|
|
19
19
|
|
|
20
20
|
const props = defineProps<{
|
|
21
21
|
files: Array<IOssInfo>
|
|
@@ -134,3 +134,4 @@ function handelPreview(file: IOssInfo) {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
</style>
|
|
137
|
+
types
|
|
@@ -106,7 +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
|
|
109
|
+
import { ICRUDConfig, ITableConfig, ITableTabItem, ITreeProps } from 'types'
|
|
110
110
|
|
|
111
111
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
112
112
|
const format = inject('format') as any
|
|
@@ -804,3 +804,4 @@ defineExpose({ reload, tableData, changeSelect, resetSelect, initCol })
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
</style>
|
|
807
|
+
types
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
16
|
import { ref, onMounted, computed } from 'vue'
|
|
17
17
|
import { WarningFilled } from '@element-plus/icons-vue'
|
|
18
|
-
import { IColumnItem } from 'types
|
|
18
|
+
import { IColumnItem } from 'types'
|
|
19
19
|
|
|
20
20
|
const props = defineProps<{
|
|
21
21
|
modelValue?: any
|
|
@@ -211,3 +211,4 @@ onMounted(() => {})
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
</style>
|
|
214
|
+
types
|
|
@@ -46,7 +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
|
|
49
|
+
import { IBtnBack, ICRUDConfig, IColumnItem, ITableToolbar } from 'types'
|
|
50
50
|
|
|
51
51
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
52
52
|
|
|
@@ -290,3 +290,4 @@ defineExpose({ getData: () => elPlusFormRef.value?.getData(), initCol })
|
|
|
290
290
|
width: 100%;
|
|
291
291
|
}
|
|
292
292
|
</style>
|
|
293
|
+
types
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<script lang="ts" setup>
|
|
30
30
|
import { ref, onMounted, inject } from 'vue'
|
|
31
31
|
import { ElMessage } from 'element-plus'
|
|
32
|
-
import { ICRUDConfig, IColumnItem } from 'types
|
|
32
|
+
import { ICRUDConfig, IColumnItem } from 'types'
|
|
33
33
|
|
|
34
34
|
const defaultConf = inject('defaultConf') as ICRUDConfig
|
|
35
35
|
|
|
@@ -177,3 +177,4 @@ defineExpose({ initCol: initLocalCheckList })
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
</style>
|
|
180
|
+
types
|
package/lib/config/index.ts
CHANGED
package/lib/index.ts
CHANGED
|
@@ -5,7 +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 '
|
|
8
|
+
import { ICRUDConfig } from '../types'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
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.76",
|
|
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.76",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@element-plus/icons-vue": "^2.1.0",
|
package/package.json
CHANGED
|
File without changes
|