el-plus-crud 0.0.75 → 0.0.77

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/el-plus-crud.mjs +10 -10
  3. package/example/App.vue +3 -2
  4. package/lib/components/el-plus-form/ElPlusForm.vue +2 -1
  5. package/lib/components/el-plus-form/ElPlusFormDialog.vue +2 -1
  6. package/lib/components/el-plus-form/ElPlusFormGroup.vue +2 -1
  7. package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +2 -1
  8. package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +2 -1
  9. package/lib/components/el-plus-form/components/ElPlusFormFile.vue +2 -1
  10. package/lib/components/el-plus-form/components/ElPlusFormInput.vue +2 -1
  11. package/lib/components/el-plus-form/components/ElPlusFormLink.vue +2 -1
  12. package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +2 -1
  13. package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +2 -1
  14. package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +2 -1
  15. package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +2 -1
  16. package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +2 -1
  17. package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +2 -1
  18. package/lib/components/el-plus-form/components/ElPlusFormUpbtn.vue +2 -1
  19. package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +2 -1
  20. package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +2 -1
  21. package/lib/components/el-plus-table/ElPlusTable.vue +2 -1
  22. package/lib/components/el-plus-table/components/columnItem.vue +2 -1
  23. package/lib/components/el-plus-table/components/header.vue +2 -1
  24. package/lib/components/el-plus-table/components/settingColumn.vue +2 -1
  25. package/lib/components/el-plus-table/util/index.ts +1 -1
  26. package/lib/config/index.ts +1 -1
  27. package/lib/index.ts +1 -1
  28. package/package-lock.json +2 -2
  29. package/package.json +1 -1
  30. package/types/{formList.d.ts → index.d.ts} +7 -5
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.77](https://github.com/KDJack/el-plus-crud/compare/v0.0.76...v0.0.77) (2023-09-05)
6
+
7
+ ### [0.0.76](https://github.com/KDJack/el-plus-crud/compare/v0.0.75...v0.0.76) (2023-09-05)
8
+
5
9
  ### [0.0.75](https://github.com/KDJack/el-plus-crud/compare/v0.0.74...v0.0.75) (2023-09-04)
6
10
 
7
11
  ### [0.0.74](https://github.com/KDJack/el-plus-crud/compare/v0.0.73...v0.0.74) (2023-09-04)
@@ -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-0866afea"), d = d(), Vu(), d), qj = { class: "el-button el-plus-form-up-btn" }, Xj = /* @__PURE__ */ $j(() => /* @__PURE__ */ ve("div", null, null, -1)), ez = {
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-0866afea"]]), 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 = {
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-d9487625"]]), Hz = {
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-1574c09b"), d = d(), Vu(), d), o2 = { class: "el-plus-form-link" }, s2 = {
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-1574c09b"]]), g2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Gi }, Symbol.toStringTag, { value: "Module" })), N2 = (d) => (Uu("data-v-aea8f33b"), d = d(), Vu(), d), p2 = { class: "el-plus-form-link-user" }, j2 = {
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-aea8f33b"]]), A2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Zi }, Symbol.toStringTag, { value: "Module" })), I2 = {
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-8f959b46"]]), E2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ki }, Symbol.toStringTag, { value: "Module" })), b2 = {
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-9e07d863"]]);
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-43f282da"]]), QD = { style: { width: "100%", display: "flex" } }, FD = /* @__PURE__ */ fe({
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-8f824803"]]), RD = { class: "el-plus-table-content" }, WD = {
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/formList'
17
+ import { IFormBack, IFormDesc, IFormGroupConfig } from 'types'
18
18
 
19
19
  let formData = reactive({
20
- name: 'xiaoha'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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/formList'
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
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep } from 'lodash'
2
- import { IColumnItem } from 'types/formList'
2
+ import { IColumnItem } from 'types'
3
3
 
4
4
  /**
5
5
  * 获取随机字符串
@@ -1,4 +1,4 @@
1
- import { ICRUDConfig } from 'types/formList'
1
+ import { ICRUDConfig } from 'types'
2
2
 
3
3
  export default {
4
4
  debug: false,
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 './../types/formList.d'
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.75",
3
+ "version": "0.0.77",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "el-plus-crud",
9
- "version": "0.0.75",
9
+ "version": "0.0.77",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@element-plus/icons-vue": "^2.1.0",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.0.75",
5
+ "version": "0.0.77",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",
@@ -50,7 +50,12 @@ export type IDescItem = {
50
50
  limit?: number
51
51
  required?: boolean | ((data?: any) => boolean)
52
52
  style?: IBaseObj | ((data?: any) => IBaseObj)
53
+ // 事件
53
54
  on?: { [key: string]: Function }
55
+ // 查看详情
56
+ linkId?: string | ((val: any, formData: any) => string)
57
+ linkType?: string | ((val: any, formData: any) => string)
58
+ linkLabel?: string | ((val: any, formData: any) => string)
54
59
  // 内部使用属性
55
60
  _vif?: boolean
56
61
  }
@@ -83,16 +88,13 @@ export interface IFormDescItem extends IDescItem {
83
88
  tableConfig?: ITableConfig
84
89
  tableAttr?: IBaseObj
85
90
  tableEvent?: IBaseObj
86
- // 查看详情
87
- linkId?: string | ((val: any, formData: any) => string)
88
- linkType?: string | ((val: any, formData: any) => string)
89
- linkLabel?: string | ((val: any, formData: any) => string)
91
+
90
92
  // 内部接口
91
93
  _type?: string
92
94
  _tip?: string
93
95
  _disabled?: boolean
94
96
  _attrs?: IBaseObj
95
- _label?: null
97
+ _label?: string
96
98
  _prop?: IBaseObj
97
99
  _options?: Array<IFormDescItemOptionItem>
98
100
  // 其他属性