el-plus-crud 0.1.105 → 0.1.107

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,21 @@
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.107](https://github.com/KDJack/el-plus-crud/compare/v0.1.106...v0.1.107) (2026-08-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **form:** 修复 ElPlusFormBtn 默认插槽文字被隐藏 ([bd2f6c7](https://github.com/KDJack/el-plus-crud/commit/bd2f6c72e7c3819e1cc861807588a37527551ef1))
11
+ * **form:** 消除 el-checkbox label-as-value 弃用告警 ([9dbd79c](https://github.com/KDJack/el-plus-crud/commit/9dbd79c51e4d6559eae65be4011b86caef726cf8))
12
+
13
+ ### [0.1.106](https://github.com/KDJack/el-plus-crud/compare/v0.1.105...v0.1.106) (2026-08-04)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **form:** transfer 保留原始字段以兼容自定义 key/label 字段名 ([ec0f1df](https://github.com/KDJack/el-plus-crud/commit/ec0f1dfcf5bf4e42580951d99c57621902a86abc))
19
+
5
20
  ### [0.1.105](https://github.com/KDJack/el-plus-crud/compare/v0.1.104...v0.1.105) (2026-08-04)
6
21
 
7
22
 
@@ -490,7 +490,7 @@ const Uo = {
490
490
  loading: u.value,
491
491
  size: ((v = n.desc) == null ? void 0 : v.size) || oe(l).size || "default"
492
492
  }, i.value, {
493
- class: { btnHideLabel: !((D = n.desc) != null && D.label) }
493
+ class: { btnHideLabel: !((D = n.desc) != null && D.label) && !N.$slots.default }
494
494
  }), {
495
495
  default: x(() => [
496
496
  Ye(N.$slots, "default", {}, () => {
@@ -513,7 +513,7 @@ const Uo = {
513
513
  size: ((z = n.desc) == null ? void 0 : z.size) || oe(l).size || "default"
514
514
  }, i.value, me(c.value), {
515
515
  style: { pointerEvents: (w = e.desc) != null && w.isTag ? "none" : "all" },
516
- class: { "no-label": !((I = n.desc) != null && I.label), btnHideLabel: !((f = n.desc) != null && f.label) }
516
+ class: { "no-label": !((I = n.desc) != null && I.label), btnHideLabel: !((f = n.desc) != null && f.label) && !N.$slots.default }
517
517
  }), {
518
518
  default: x(() => [
519
519
  Ye(N.$slots, "default", {}, () => {
@@ -1080,20 +1080,20 @@ const En = /* @__PURE__ */ _e(Ms, [["__scopeId", "data-v-0320ab23"]]), fs = /* @
1080
1080
  default: x(() => [
1081
1081
  (d(!0), Y(se, null, Ne(e.desc.options, (g) => (d(), O(i, te({
1082
1082
  key: g.value,
1083
- label: g.value
1083
+ value: g.value
1084
1084
  }, { ref_for: !0 }, g.attrs), {
1085
1085
  default: x(() => [
1086
1086
  ye(fe(g.text), 1)
1087
1087
  ]),
1088
1088
  _: 2
1089
- }, 1040, ["label"]))), 128))
1089
+ }, 1040, ["value"]))), 128))
1090
1090
  ]),
1091
1091
  _: 1
1092
1092
  }, 16, ["disabled", "modelValue"])) : U("", !0);
1093
1093
  };
1094
1094
  }
1095
1095
  });
1096
- const On = /* @__PURE__ */ _e(Ns, [["__scopeId", "data-v-55c42eca"]]), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: On }, Symbol.toStringTag, { value: "Module" })), ps = {
1096
+ const On = /* @__PURE__ */ _e(Ns, [["__scopeId", "data-v-4dc6128e"]]), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: On }, Symbol.toStringTag, { value: "Module" })), ps = {
1097
1097
  name: "ElPlusFormColor",
1098
1098
  inheritAttrs: !1,
1099
1099
  typeName: "color",
@@ -3216,7 +3216,8 @@ const ia = /* @__PURE__ */ _e(pi, [["__scopeId", "data-v-c7000e64"]]), yi = /* @
3216
3216
  return Array.isArray(s) ? s.map((i) => ({
3217
3217
  ...i,
3218
3218
  // 保留原字段,el-transfer 按 desc.props.key/label 读自定义字段名(如 employeeId/employeeName)
3219
- key: i.key ?? i.value ?? i.v,
3219
+ key: i.key ?? i.value ?? i.v ?? i.label ?? i.l ?? i.text,
3220
+ // ponytail: 兜底到 label 类字段,确保 el-transfer 内部 checkbox 的 value 永不缺失,避免 label-as-value 弃用告警
3220
3221
  label: i.label ?? i.l ?? i.text ?? i.value ?? i.key,
3221
3222
  disabled: !!i.disabled
3222
3223
  })) : [];
@@ -3244,7 +3245,7 @@ const ia = /* @__PURE__ */ _e(pi, [["__scopeId", "data-v-c7000e64"]]), yi = /* @
3244
3245
  };
3245
3246
  }
3246
3247
  });
3247
- const ra = /* @__PURE__ */ _e(mi, [["__scopeId", "data-v-72c12490"]]), vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ra }, Symbol.toStringTag, { value: "Module" })), Di = { class: "custom-tree-node-list" }, Yi = ["onClick"], wi = {
3248
+ const ra = /* @__PURE__ */ _e(mi, [["__scopeId", "data-v-3991c65d"]]), vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ra }, Symbol.toStringTag, { value: "Module" })), Di = { class: "custom-tree-node-list" }, Yi = ["onClick"], wi = {
3248
3249
  key: 1,
3249
3250
  class: "expand-placeholder"
3250
3251
  }, bi = ["title"], Ii = {
@@ -4210,7 +4211,7 @@ const Lr = { class: "required-dot" }, Cr = ["innerHTML"], Er = { class: "require
4210
4211
  labelPosition: Lt() ? "top" : ((_ = a.formAttrs) == null ? void 0 : _.labelPosition) || "right",
4211
4212
  style: {
4212
4213
  // ponytail: 窄屏(isMobile<768)弹窗表单铺满,避免 80% 宽 + 居中导致表单项未占满整行
4213
- width: a.maxWidth || (a.isTable ? "100%" : a.isDialog ? Lt() ? "100%" : "80%" : "1000px"),
4214
+ width: a.maxWidth || (a.isTable ? "100%" : a.isDialog ? (Lt(), "100%") : "1000px"),
4214
4215
  // ponytail: 窄屏弹窗铺满(100%)时去除右内边距,避免与父级 padding 叠加导致左右不对称
4215
4216
  paddingRight: a.isTable || a.isDialog && Lt() ? "0" : "20px"
4216
4217
  }