el-plus-crud 0.0.21 → 0.0.23

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 (61) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/components/el-plus-form/ElPlusForm.vue.d.ts +357 -320
  3. package/dist/components/el-plus-form/ElPlusFormDialog.vue.d.ts +101 -74
  4. package/dist/components/el-plus-form/ElPlusFormGroup.vue.d.ts +61 -39
  5. package/dist/components/el-plus-form/components/ElPlusFormArea.vue.d.ts +60 -44
  6. package/dist/components/el-plus-form/components/ElPlusFormAutocomplete.vue.d.ts +70 -55
  7. package/dist/components/el-plus-form/components/ElPlusFormBtn.vue.d.ts +60 -44
  8. package/dist/components/el-plus-form/components/ElPlusFormBtns.vue.d.ts +58 -42
  9. package/dist/components/el-plus-form/components/ElPlusFormCascader.vue.d.ts +60 -44
  10. package/dist/components/el-plus-form/components/ElPlusFormCascaderPanel.vue.d.ts +68 -51
  11. package/dist/components/el-plus-form/components/ElPlusFormCheckbox.vue.d.ts +60 -44
  12. package/dist/components/el-plus-form/components/ElPlusFormCheckboxButton.vue.d.ts +60 -44
  13. package/dist/components/el-plus-form/components/ElPlusFormColor.vue.d.ts +60 -44
  14. package/dist/components/el-plus-form/components/ElPlusFormDate.vue.d.ts +60 -44
  15. package/dist/components/el-plus-form/components/ElPlusFormDaterange.vue.d.ts +68 -51
  16. package/dist/components/el-plus-form/components/ElPlusFormDatetime.vue.d.ts +60 -44
  17. package/dist/components/el-plus-form/components/ElPlusFormFile.vue.d.ts +64 -48
  18. package/dist/components/el-plus-form/components/ElPlusFormImage.vue.d.ts +64 -48
  19. package/dist/components/el-plus-form/components/ElPlusFormInput.vue.d.ts +69 -50
  20. package/dist/components/el-plus-form/components/ElPlusFormLink.vue.d.ts +69 -53
  21. package/dist/components/el-plus-form/components/ElPlusFormNbinput.vue.d.ts +80 -61
  22. package/dist/components/el-plus-form/components/ElPlusFormNumber.vue.d.ts +73 -57
  23. package/dist/components/el-plus-form/components/ElPlusFormPassword.vue.d.ts +74 -57
  24. package/dist/components/el-plus-form/components/ElPlusFormQuickInput.vue.d.ts +67 -51
  25. package/dist/components/el-plus-form/components/ElPlusFormRadio.vue.d.ts +60 -44
  26. package/dist/components/el-plus-form/components/ElPlusFormRate.vue.d.ts +60 -44
  27. package/dist/components/el-plus-form/components/ElPlusFormSelect.vue.d.ts +72 -56
  28. package/dist/components/el-plus-form/components/ElPlusFormSlider.vue.d.ts +60 -44
  29. package/dist/components/el-plus-form/components/ElPlusFormStatus.vue.d.ts +60 -44
  30. package/dist/components/el-plus-form/components/ElPlusFormSwitch.vue.d.ts +66 -50
  31. package/dist/components/el-plus-form/components/ElPlusFormTag.vue.d.ts +64 -48
  32. package/dist/components/el-plus-form/components/ElPlusFormText.vue.d.ts +64 -48
  33. package/dist/components/el-plus-form/components/ElPlusFormTextarea.vue.d.ts +67 -51
  34. package/dist/components/el-plus-form/components/ElPlusFormTransfer.vue.d.ts +74 -57
  35. package/dist/components/el-plus-form/components/ElPlusFormTree.vue.d.ts +66 -50
  36. package/dist/components/el-plus-form/components/ElPlusFormTreeSelect.vue.d.ts +66 -50
  37. package/dist/components/el-plus-form/components/ElPlusFormUpload.vue.d.ts +67 -51
  38. package/dist/components/el-plus-form/components/components/file-icons/FileIcons.vue.d.ts +58 -42
  39. package/dist/components/el-plus-form/components/components/file-icons/data/index.d.ts +15 -15
  40. package/dist/components/el-plus-form/components/index.d.ts +3 -3
  41. package/dist/components/el-plus-form/data/file.d.ts +63 -63
  42. package/dist/components/el-plus-form/mixins/index.d.ts +33 -28
  43. package/dist/components/el-plus-form/util/index.d.ts +47 -47
  44. package/dist/components/el-plus-form/util/validate.d.ts +256 -253
  45. package/dist/components/el-plus-table/ElPlusTable.vue.d.ts +171 -155
  46. package/dist/components/el-plus-table/components/columnItem.vue.d.ts +58 -42
  47. package/dist/components/el-plus-table/components/header.vue.d.ts +115 -93
  48. package/dist/components/el-plus-table/components/settingColumn.vue.d.ts +44 -28
  49. package/dist/components/el-plus-table/util/index.d.ts +26 -26
  50. package/dist/components-list.d.ts +2 -2
  51. package/dist/config/index.d.ts +2 -2
  52. package/dist/el-plus-crud.mjs +18 -18
  53. package/dist/el-plus-crud.umd.js +7618 -25
  54. package/dist/index.d.ts +18 -9
  55. package/dist/style.css +1 -1
  56. package/lib/components/el-plus-form/ElPlusFormGroup.vue +1 -1
  57. package/lib/components/el-plus-form/components/ElPlusFormText.vue +1 -1
  58. package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +1 -1
  59. package/lib/components/el-plus-table/components/columnItem.vue +1 -1
  60. package/lib/components-list.ts +34 -34
  61. package/package.json +1 -1
@@ -1,28 +1,44 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- column: {
3
- type: import("vue").PropType<IColumnItem[]>;
4
- required: true;
5
- };
6
- tbName: {
7
- type: import("vue").PropType<string>;
8
- required: true;
9
- };
10
- size: {
11
- type: import("vue").PropType<string>;
12
- required: true;
13
- };
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- column: {
16
- type: import("vue").PropType<IColumnItem[]>;
17
- required: true;
18
- };
19
- tbName: {
20
- type: import("vue").PropType<string>;
21
- required: true;
22
- };
23
- size: {
24
- type: import("vue").PropType<string>;
25
- required: true;
26
- };
27
- }>>, {}, {}>;
28
- export default _default;
1
+ declare const _default: import('vue').DefineComponent<
2
+ {
3
+ column: {
4
+ type: import('vue').PropType<IColumnItem[]>
5
+ required: true
6
+ }
7
+ tbName: {
8
+ type: import('vue').PropType<string>
9
+ required: true
10
+ }
11
+ size: {
12
+ type: import('vue').PropType<string>
13
+ required: true
14
+ }
15
+ },
16
+ {},
17
+ unknown,
18
+ {},
19
+ {},
20
+ import('vue').ComponentOptionsMixin,
21
+ import('vue').ComponentOptionsMixin,
22
+ {},
23
+ string,
24
+ import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
25
+ Readonly<
26
+ import('vue').ExtractPropTypes<{
27
+ column: {
28
+ type: import('vue').PropType<IColumnItem[]>
29
+ required: true
30
+ }
31
+ tbName: {
32
+ type: import('vue').PropType<string>
33
+ required: true
34
+ }
35
+ size: {
36
+ type: import('vue').PropType<string>
37
+ required: true
38
+ }
39
+ }>
40
+ >,
41
+ {},
42
+ {}
43
+ >
44
+ export default _default
@@ -1,26 +1,26 @@
1
- /**
2
- * 获取随机字符串
3
- * @returns {string}
4
- */
5
- export declare function getUID(): string;
6
- export declare function is(val: any, type: any): boolean;
7
- /**
8
- * 判断是否是移动端
9
- */
10
- export declare function isMobile(): boolean;
11
- /**
12
- * 处理按钮类型
13
- * @param item
14
- */
15
- export declare function handelBtnType(item: any): Object;
16
- /**
17
- * 处理列表表头,list转Map
18
- */
19
- export declare function handelListColumn(columnList: Array<IColumnItem>, minWidth?: string): any[];
20
- /**
21
- * map转string
22
- * @param map
23
- * @param excludeList
24
- * @returns {string}
25
- */
26
- export declare const mapToUrlStr: (map: any, excludeList?: any) => string;
1
+ /**
2
+ * 获取随机字符串
3
+ * @returns {string}
4
+ */
5
+ export declare function getUID(): string
6
+ export declare function is(val: any, type: any): boolean
7
+ /**
8
+ * 判断是否是移动端
9
+ */
10
+ export declare function isMobile(): boolean
11
+ /**
12
+ * 处理按钮类型
13
+ * @param item
14
+ */
15
+ export declare function handelBtnType(item: any): Object
16
+ /**
17
+ * 处理列表表头,list转Map
18
+ */
19
+ export declare function handelListColumn(columnList: Array<IColumnItem>, minWidth?: string): any[]
20
+ /**
21
+ * map转string
22
+ * @param map
23
+ * @param excludeList
24
+ * @returns {string}
25
+ */
26
+ export declare const mapToUrlStr: (map: any, excludeList?: any) => string
@@ -1,2 +1,2 @@
1
- declare const _default: any[];
2
- export default _default;
1
+ declare const _default: any[]
2
+ export default _default
@@ -1,2 +1,2 @@
1
- declare const _default: ICRUDConfig;
2
- export default _default;
1
+ declare const _default: ICRUDConfig
2
+ export default _default
@@ -4380,7 +4380,7 @@ const Fp = (N = "", s, r = !1) => N ? (r ? Rp(N) : N.length) > s ? N.substring(0
4380
4380
  };
4381
4381
  }
4382
4382
  });
4383
- const qp = /* @__PURE__ */ Fe(Kp, [["__scopeId", "data-v-d8bed7ef"]]), Jp = {
4383
+ const qp = /* @__PURE__ */ Fe(Kp, [["__scopeId", "data-v-26d8ab17"]]), Jp = {
4384
4384
  key: 1,
4385
4385
  class: "no-img-tip"
4386
4386
  }, $p = {
@@ -5248,7 +5248,7 @@ const Fs = /* @__PURE__ */ Fe(Zz, [["__scopeId", "data-v-87ed9e56"]]), Hz = /* @
5248
5248
  ], 16));
5249
5249
  }
5250
5250
  });
5251
- const Gs = /* @__PURE__ */ Fe(n2, [["__scopeId", "data-v-07e15a42"]]), l2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Gs }, Symbol.toStringTag, { value: "Module" })), r2 = {
5251
+ const Gs = /* @__PURE__ */ Fe(n2, [["__scopeId", "data-v-5a8778fe"]]), l2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Gs }, Symbol.toStringTag, { value: "Module" })), r2 = {
5252
5252
  name: "ElPlusFormTextarea",
5253
5253
  inheritAttrs: !1,
5254
5254
  typeName: "textarea",
@@ -6611,7 +6611,7 @@ const Uy = (N, s) => {
6611
6611
  };
6612
6612
  }
6613
6613
  });
6614
- const Gy = /* @__PURE__ */ Fe(Wy, [["__scopeId", "data-v-6ce69554"]]), Zy = /* @__PURE__ */ oe({
6614
+ const Gy = /* @__PURE__ */ Fe(Wy, [["__scopeId", "data-v-6ce69554"]]), Zy = { style: { width: "100%", display: "flex" } }, Hy = /* @__PURE__ */ oe({
6615
6615
  __name: "columnItem",
6616
6616
  props: {
6617
6617
  modelValue: {},
@@ -6676,7 +6676,7 @@ const Gy = /* @__PURE__ */ Fe(Wy, [["__scopeId", "data-v-6ce69554"]]), Zy = /* @
6676
6676
  ]),
6677
6677
  _: 1
6678
6678
  }, 8, ["content"])) : ce("", !0),
6679
- Ue("div", null, [
6679
+ Ue("div", Zy, [
6680
6680
  h.vshow === void 0 || h.vshow ? (m(), Z(zs("el-plus-form-" + h.desc.type), ee({ key: 0 }, h, {
6681
6681
  isTable: !0,
6682
6682
  formData: (S = s.scope) == null ? void 0 : S.row,
@@ -6692,18 +6692,18 @@ const Gy = /* @__PURE__ */ Fe(Wy, [["__scopeId", "data-v-6ce69554"]]), Zy = /* @
6692
6692
  };
6693
6693
  }
6694
6694
  });
6695
- const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { class: "el-plus-table-content" }, qy = {
6695
+ const Ky = /* @__PURE__ */ Fe(Hy, [["__scopeId", "data-v-e78344c9"]]), qy = { class: "el-plus-table-content" }, Jy = {
6696
6696
  key: 0,
6697
6697
  class: "table-tabs-panel"
6698
- }, Jy = { class: "el-plus-table-main" }, $y = { key: 1 }, Xy = {
6698
+ }, $y = { class: "el-plus-table-main" }, Xy = { key: 1 }, eD = {
6699
6699
  key: 1,
6700
6700
  class: "bottom-page-static-info"
6701
- }, eD = {
6701
+ }, tD = {
6702
6702
  name: "ElPlusTable",
6703
6703
  inheritAttrs: !1,
6704
6704
  customOptions: {}
6705
- }, tD = /* @__PURE__ */ oe({
6706
- ...eD,
6705
+ }, nD = /* @__PURE__ */ oe({
6706
+ ...tD,
6707
6707
  props: {
6708
6708
  tableConfig: {},
6709
6709
  modelValue: { default: null },
@@ -6873,7 +6873,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
6873
6873
  }), s({ reload: Bn, tableData: F, changeSelect: De, resetSelect: Ut }), (L, re) => {
6874
6874
  var kn;
6875
6875
  const ne = V("el-icon"), we = V("el-radio-button"), st = V("el-radio-group"), dt = V("el-table-column"), lt = V("el-empty"), $e = V("el-table"), Lt = V("el-pagination"), Gt = Jj("loading");
6876
- return m(), Q("div", Ky, [
6876
+ return m(), Q("div", qy, [
6877
6877
  de(Gy, {
6878
6878
  ref_key: "tableHeaderRef",
6879
6879
  ref: D,
@@ -6888,7 +6888,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
6888
6888
  isDialog: L.isDialog,
6889
6889
  onQuery: In
6890
6890
  }, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog"]),
6891
- L.tableConfig.tabConf ? (m(), Q("div", qy, [
6891
+ L.tableConfig.tabConf ? (m(), Q("div", Jy, [
6892
6892
  de(st, {
6893
6893
  modelValue: d.value,
6894
6894
  "onUpdate:modelValue": re[1] || (re[1] = (pe) => d.value = pe),
@@ -6924,7 +6924,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
6924
6924
  _: 1
6925
6925
  }, 8, ["modelValue"])
6926
6926
  ])) : ce("", !0),
6927
- $j((m(), Q("div", Jy, [
6927
+ $j((m(), Q("div", $y, [
6928
6928
  L.isDIYMain ? Je(L.$slots, "main", {
6929
6929
  key: 0,
6930
6930
  tableData: F
@@ -6981,7 +6981,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
6981
6981
  }, Oe(We.label), 7)
6982
6982
  ]),
6983
6983
  default: G((We) => [
6984
- We.$index >= 0 ? (m(), Z(Hy, {
6984
+ We.$index >= 0 ? (m(), Z(Ky, {
6985
6985
  key: 0,
6986
6986
  field: pe.prop,
6987
6987
  desc: pe,
@@ -7004,7 +7004,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
7004
7004
  L.isEmptyImg ? (m(), Z(lt, {
7005
7005
  key: 0,
7006
7006
  description: L.nullText
7007
- }, null, 8, ["description"])) : (m(), Q("span", $y, Oe(L.nullText), 1))
7007
+ }, null, 8, ["description"])) : (m(), Q("span", Xy, Oe(L.nullText), 1))
7008
7008
  ]),
7009
7009
  key: "0"
7010
7010
  } : void 0,
@@ -7034,7 +7034,7 @@ const Hy = /* @__PURE__ */ Fe(Zy, [["__scopeId", "data-v-53e27808"]]), Ky = { cl
7034
7034
  ])), [
7035
7035
  [Gt, A.value]
7036
7036
  ]),
7037
- L.isPager || L.tableConfig.statistic ? (m(), Q("div", Xy, [
7037
+ L.isPager || L.tableConfig.statistic ? (m(), Q("div", eD, [
7038
7038
  de(Lt, {
7039
7039
  class: "page-info",
7040
7040
  small: "",
@@ -7083,13 +7083,13 @@ const _l = {
7083
7083
  }
7084
7084
  }
7085
7085
  }
7086
- }, rD = {
7086
+ }, uD = {
7087
7087
  install: (N, s, r, i) => {
7088
- Object.assign(_l, s), _l.debug && console.log("initConfig: ", _l), N.provide("format", r), N.provide("globalData", i), N.provide("defaultConf", _l), Xn.unshift(Su), Xn.unshift(vy), Xn.unshift(Ey), Xn.push(tD), _l.debug && console.log("components: ", Xn), Xn.map((z) => {
7088
+ Object.assign(_l, s), _l.debug && console.log("initConfig: ", _l), N.provide("format", r), N.provide("globalData", i), N.provide("defaultConf", _l), Xn.unshift(Su), Xn.unshift(vy), Xn.unshift(Ey), Xn.push(nD), _l.debug && console.log("components: ", Xn), Xn.map((z) => {
7089
7089
  N.component(z.name, z);
7090
7090
  });
7091
7091
  }
7092
7092
  };
7093
7093
  export {
7094
- rD as default
7094
+ uD as default
7095
7095
  };