@qin-ui/antd-vue-pro 1.0.12 → 1.0.13

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 (2) hide show
  1. package/es/form/index.js +7 -1
  2. package/package.json +1 -1
package/es/form/index.js CHANGED
@@ -1728,6 +1728,12 @@ const round$1 = round;
1728
1728
  function set$1(object4, path, value) {
1729
1729
  return object4 == null ? object4 : baseSet(object4, path, value);
1730
1730
  }
1731
+ function toPath(value) {
1732
+ if (isArray$2(value)) {
1733
+ return arrayMap(value, toKey);
1734
+ }
1735
+ return isSymbol(value) ? [value] : copyArray(stringToPath$1(toString(value)));
1736
+ }
1731
1737
  function _typeof$1(o2) {
1732
1738
  "@babel/helpers - typeof";
1733
1739
  return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
@@ -15862,7 +15868,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15862
15868
  ref: (el) => setFormItemRef(el, field),
15863
15869
  class: field.className,
15864
15870
  style: field.style,
15865
- name: getPath(field.key),
15871
+ name: getPath(field.key) ? unref(toPath)(getPath(field.key)) : "",
15866
15872
  path: getPath(field.key)
15867
15873
  }), createSlots({
15868
15874
  default: withCtx(() => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",