@qin-ui/antd-vue-pro 1.1.4 → 1.1.6

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.
@@ -15802,7 +15802,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15802
15802
  );
15803
15803
  const defaultProps = {
15804
15804
  validateFirst: true,
15805
- showFeedback: !field.fields
15805
+ hideFeedback: !!field.fields
15806
15806
  };
15807
15807
  return {
15808
15808
  ...defaultProps,
@@ -15893,6 +15893,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15893
15893
  };
15894
15894
  }
15895
15895
  });
15896
+ const index_vue_vue_type_style_index_0_scoped_a4fb5eae_lang = "";
15897
+ const _export_sfc = (sfc, props) => {
15898
+ const target = sfc.__vccOpts || sfc;
15899
+ for (const [key, val] of props) {
15900
+ target[key] = val;
15901
+ }
15902
+ return target;
15903
+ };
15904
+ const BaseFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a4fb5eae"]]);
15896
15905
  const generateFieldMap = (fields, prePath = "", preFieldPath = "", fieldMap = {}) => {
15897
15906
  fields.forEach((field, index2) => {
15898
15907
  let path;
@@ -16490,13 +16499,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16490
16499
  }
16491
16500
  });
16492
16501
  const index_vue_vue_type_style_index_0_scoped_060ffbee_lang = "";
16493
- const _export_sfc = (sfc, props) => {
16494
- const target = sfc.__vccOpts || sfc;
16495
- for (const [key, val] of props) {
16496
- target[key] = val;
16497
- }
16498
- return target;
16499
- };
16500
16502
  const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-060ffbee"]]);
16501
16503
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16502
16504
  ...{
@@ -16618,7 +16620,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16618
16620
  model: _formData.value
16619
16621
  }, { ...unref(injectAttrs), ..._ctx.$attrs }), {
16620
16622
  default: withCtx(() => [
16621
- createVNode(unref(_sfc_main$4), {
16623
+ createVNode(unref(BaseFormItem), {
16622
16624
  fields: _fields.value,
16623
16625
  grid: _ctx.grid,
16624
16626
  disabled: _ctx.$attrs.disabled
@@ -16632,7 +16634,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16632
16634
  });
16633
16635
  export {
16634
16636
  AntdIcon as A,
16635
- BaseField as B,
16637
+ BaseFormItem as B,
16636
16638
  COMPONENT_MAP as C,
16637
16639
  FORM_ITEM_SLOT_KEYS as F,
16638
16640
  RULE_TYPE_MAP as R,
@@ -16641,7 +16643,7 @@ export {
16641
16643
  _export_sfc as a,
16642
16644
  _sfc_main$2 as b,
16643
16645
  cloneDeep as c,
16644
- _sfc_main$4 as d,
16646
+ BaseField as d,
16645
16647
  _sfc_main$1 as e,
16646
16648
  FORM_DATA as f,
16647
16649
  get$1 as g,
package/es/form/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-9f36cc9e.js";
1
+ import { l, d, B, i, C, b, f, F, k, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-a3649324.js";
2
2
  import "vue";
3
3
  import "ant-design-vue";
4
4
  import "../component-provider/index.js";
5
5
  export {
6
6
  l as ArrowFunctionRegexp,
7
- B as BaseField,
8
- d as BaseFormItem,
7
+ d as BaseField,
8
+ B as BaseFormItem,
9
9
  i as COMMAND,
10
10
  C as COMPONENT_MAP,
11
11
  b as ContainerFragment,
package/es/index.d.ts CHANGED
@@ -304,6 +304,8 @@ export declare interface Common<D extends FormData_2 = FormData_2> {
304
304
  * @example (val) => val?.trim()
305
305
  */
306
306
  valueFormatter?: (val: any) => any;
307
+ /** 是否隐藏校验错误信息 */
308
+ hideFeedback?: boolean;
307
309
  /** 以data-form-item-开头的属性将会被渲染至formItem的dom节点 */
308
310
  [key: `data-form-item-${string}`]: string;
309
311
  /** 以data-component-开头的属性将会被渲染至component的dom节点 */
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-9f36cc9e.js";
3
- import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-9f36cc9e.js";
2
+ import { _ as _sfc_main } from "./form/index-a3649324.js";
3
+ import { l, d, B, i, C, b, f, F, k, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-a3649324.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { useTable } from "./table/index.js";
6
6
  import _sfc_main$1 from "./component-provider/index.js";
@@ -26,8 +26,8 @@ const index = {
26
26
  };
27
27
  export {
28
28
  l as ArrowFunctionRegexp,
29
- B as BaseField,
30
- d as BaseFormItem,
29
+ d as BaseField,
30
+ B as BaseFormItem,
31
31
  i as COMMAND,
32
32
  C as COMPONENT_MAP,
33
33
  b as ContainerFragment,
package/es/style.css CHANGED
@@ -1,3 +1,6 @@
1
+ [data-v-a4fb5eae] .ant-form-item > [hideFeedback='true'] {
2
+ margin-bottom: 0;
3
+ }
1
4
  .field-component[data-v-060ffbee]:not(.ant-switch) {
2
5
  width: 100%;
3
6
  min-width: 120px;
package/es/table/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
3
3
  import { useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
4
- import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-9f36cc9e.js";
4
+ import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-a3649324.js";
5
5
  var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
6
6
  const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
7
7
  function _objectSpread$2(target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",