el-plus-crud 0.1.54 → 0.1.55

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 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.1.55](https://github.com/KDJack/el-plus-crud/compare/v0.1.54...v0.1.55) (2024-09-05)
6
+
5
7
  ### [0.1.54](https://github.com/KDJack/el-plus-crud/compare/v0.1.53...v0.1.54) (2024-08-30)
6
8
 
7
9
  ### [0.1.53](https://github.com/KDJack/el-plus-crud/compare/v0.1.52...v0.1.53) (2024-08-22)
@@ -3,7 +3,7 @@ import { ElMessageBox as ll, ElMessage as Ge } from "element-plus";
3
3
  const ge = async (e, t) => {
4
4
  var a, r, i, n, s, c;
5
5
  const l = Object.assign({}, t, (a = e.desc) == null ? void 0 : a._attrs, e.desc, (r = e.desc) == null ? void 0 : r.attrs, Pn(e.desc));
6
- return e.desc.multiple && (l.multiple = !0, l.showCheckbox = !0, ["select"].indexOf(e.desc.type) >= 0 && (l.collapseTags = ((i = e.desc.attrs) == null ? void 0 : i.collapseTags) ?? ((n = e.desc) == null ? void 0 : n.collapseTags) ?? !1, l.collapseTagsTooltip = ((s = e.desc.attrs) == null ? void 0 : s.collapseTagsTooltip) ?? ((c = e.desc) == null ? void 0 : c.collapseTagsTooltip) ?? !1)), e.desc.elType && (typeof e.desc.elType == "function" ? l.type = e.desc.elType(e.formData) : l.type = e.desc.elType), ["input", "switch", "number", "nbinput"].indexOf(e.desc.type) >= 0 && delete l.label, l;
6
+ return e.desc.multiple && (l.multiple = !0, l.showCheckbox = !0, ["select"].indexOf(e.desc.type) >= 0 && (l.collapseTags = ((i = e.desc.attrs) == null ? void 0 : i.collapseTags) ?? ((n = e.desc) == null ? void 0 : n.collapseTags) ?? !1, l.collapseTagsTooltip = ((s = e.desc.attrs) == null ? void 0 : s.collapseTagsTooltip) ?? ((c = e.desc) == null ? void 0 : c.collapseTagsTooltip) ?? !1)), e.desc.elType && (typeof e.desc.elType == "function" ? l.type = e.desc.elType(e.formData) : l.type = e.desc.elType), ["area", "input", "switch", "number", "nbinput", "checkbox", "date", "daterange", "datetime", "percentinput"].indexOf(e.desc.type) >= 0 && delete l.label, l;
7
7
  }, ve = (e) => {
8
8
  var l;
9
9
  const t = {};
@@ -902,16 +902,16 @@ const Ma = /* @__PURE__ */ Ie(So, [["__scopeId", "data-v-22454ba3"]]), ko = /* @
902
902
  "onUpdate:modelValue": M[0] || (M[0] = (w) => nt(i) ? i.value = w : null)
903
903
  }), {
904
904
  default: x(() => [
905
- (g(!0), T(J, null, Me(n, (w) => (g(), O(N, $({
905
+ (g(!0), T(J, null, Me(n, (w) => (g(), O(N, {
906
906
  key: w.value,
907
907
  label: w.value,
908
- ref_for: !0
909
- }, w.attrs), {
908
+ value: w.value
909
+ }, {
910
910
  default: x(() => [
911
911
  ye(fe(w.text || w.label), 1)
912
912
  ]),
913
913
  _: 2
914
- }, 1040, ["label"]))), 128))
914
+ }, 1032, ["label", "value"]))), 128))
915
915
  ]),
916
916
  _: 1
917
917
  }, 16, ["disabled", "modelValue"])) : (g(), T("div", Bo, "暂无选项"))
@@ -919,7 +919,7 @@ const Ma = /* @__PURE__ */ Ie(So, [["__scopeId", "data-v-22454ba3"]]), ko = /* @
919
919
  };
920
920
  }
921
921
  });
922
- const da = /* @__PURE__ */ Ie(Po, [["__scopeId", "data-v-d5ecbd1d"]]), Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: da }, Symbol.toStringTag, { value: "Module" })), Uo = {
922
+ const da = /* @__PURE__ */ Ie(Po, [["__scopeId", "data-v-89df95d5"]]), Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: da }, Symbol.toStringTag, { value: "Module" })), Uo = {
923
923
  name: "ElPlusFormCheckboxButton",
924
924
  inheritAttrs: !1,
925
925
  typeName: "checkboxButton",
@@ -1,9 +1,11 @@
1
1
  <template>
2
2
  <template v-if="isInit">
3
3
  <el-checkbox-group v-if="options?.length" class="ElPlusFormCheckbox-panel" v-bind="attrs" :disabled="disabled" v-on="onEvents" v-model="currentValue">
4
- <el-checkbox v-for="option of options" :key="option.value" :label="option.value" v-bind="option.attrs">
5
- {{ option.text || option.label }}
6
- </el-checkbox>
4
+ <template v-for="option of options" :key="option.value">
5
+ <el-checkbox :label="option.value" :value="option.value">
6
+ {{ option.text || option.label }}
7
+ </el-checkbox>
8
+ </template>
7
9
  </el-checkbox-group>
8
10
  <div v-else class="null-tip">暂无选项</div>
9
11
  </template>
@@ -46,7 +46,7 @@ export const getAttrs = async (props: IMixinsProps, customAttrs?: { [key: string
46
46
  }
47
47
  }
48
48
 
49
- if (['input', 'switch', 'number', 'nbinput'].indexOf(props.desc.type) >= 0) {
49
+ if (['area', 'input', 'switch', 'number', 'nbinput', 'checkbox', 'date', 'daterange', 'datetime', 'percentinput'].indexOf(props.desc.type) >= 0) {
50
50
  delete attrs.label
51
51
  }
52
52
  return attrs
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.1.54",
5
+ "version": "0.1.55",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",