@qin-ui/antd-vue-pro 1.0.27 → 1.0.28

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  - [x] pro-component-provider
4
4
  - [x] pro-form
5
- - [ ] pro-table
5
+ - [x] pro-table
6
6
 
7
7
  #### 安装
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, provide, renderSlot } from "vue";
2
2
  import "ant-design-vue";
3
- import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-5e5da646.js";
3
+ import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-1c203895.js";
4
4
  import { PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS } from "../table/index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -15706,6 +15706,9 @@ const COMMAND = Symbol("command");
15706
15706
  const UPDATE_ACTIVE_PATH = Symbol(
15707
15707
  "setActivePath"
15708
15708
  );
15709
+ const PARENT_DISABLED = Symbol(
15710
+ "parentDisabled"
15711
+ );
15709
15712
  const RULE_TYPE_MAP = /* @__PURE__ */ new Map([
15710
15713
  ["value", "字段赋值"],
15711
15714
  ["hidden", "字段隐藏/显示"],
@@ -15773,7 +15776,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15773
15776
  props: {
15774
15777
  grid: { type: [Boolean, Object] },
15775
15778
  fields: {},
15776
- path: {}
15779
+ path: {},
15780
+ disabled: { type: Boolean }
15777
15781
  },
15778
15782
  setup(__props) {
15779
15783
  const formItemPropKeys = Object.keys(formItemProps());
@@ -15786,6 +15790,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15786
15790
  "container"
15787
15791
  ];
15788
15792
  const props = __props;
15793
+ provide(PARENT_DISABLED, props.disabled);
15789
15794
  const updateRefs = inject(UPDATE_REFS);
15790
15795
  const getPath = (fieldKey) => {
15791
15796
  if (props.path) {
@@ -15882,8 +15887,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15882
15887
  key: 0,
15883
15888
  grid: field.grid ?? _ctx.grid,
15884
15889
  fields: field.fields,
15885
- path: getPath(field.key)
15886
- }, null, 8, ["grid", "fields", "path"])) : !field.component ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
15890
+ path: getPath(field.key),
15891
+ disabled: field.disabled
15892
+ }, null, 8, ["grid", "fields", "path", "disabled"])) : !field.component ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
15887
15893
  createTextVNode(' missing "component" prop ')
15888
15894
  ], 64)) : (openBlock(), createBlock(unref(BaseField), mergeProps({ key: 2 }, unref(omitFormItemProps)(field), {
15889
15895
  label: field.label,
@@ -16377,6 +16383,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16377
16383
  const updateRefs = inject(UPDATE_REFS);
16378
16384
  const command = inject(COMMAND);
16379
16385
  const updateActivePath = inject(UPDATE_ACTIVE_PATH);
16386
+ const parentDisabled = inject(PARENT_DISABLED);
16380
16387
  const { getInitProps } = useInitProps();
16381
16388
  const value = computed({
16382
16389
  get() {
@@ -16439,7 +16446,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16439
16446
  ...attrs,
16440
16447
  ...methods,
16441
16448
  onFocus: void 0,
16442
- disabled: attrs.disabled ?? formDisabled.value ?? initProps.disabled
16449
+ disabled: attrs.disabled ?? parentDisabled ?? formDisabled.value ?? initProps.disabled
16443
16450
  };
16444
16451
  });
16445
16452
  const is = computed(() => {
@@ -16494,7 +16501,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16494
16501
  };
16495
16502
  }
16496
16503
  });
16497
- const index_vue_vue_type_style_index_0_scoped_86724ea3_lang = "";
16504
+ const index_vue_vue_type_style_index_0_scoped_301c3406_lang = "";
16498
16505
  const _export_sfc = (sfc, props) => {
16499
16506
  const target = sfc.__vccOpts || sfc;
16500
16507
  for (const [key, val] of props) {
@@ -16502,7 +16509,7 @@ const _export_sfc = (sfc, props) => {
16502
16509
  }
16503
16510
  return target;
16504
16511
  };
16505
- const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-86724ea3"]]);
16512
+ const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-301c3406"]]);
16506
16513
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16507
16514
  ...{
16508
16515
  name: "ContainerFragment",
@@ -16649,6 +16656,7 @@ export {
16649
16656
  COMPONENT_MAP as C,
16650
16657
  FORM_ITEM_SLOT_KEYS as F,
16651
16658
  INJECT_COMPONENT_PROPS_KEYS as I,
16659
+ PARENT_DISABLED as P,
16652
16660
  RULE_TYPE_MAP as R,
16653
16661
  UPDATE_FORM_DATA as U,
16654
16662
  _sfc_main as _,
package/es/form/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-5e5da646.js";
1
+ import { k, B, d, h, C, b, f, F, j, l, I, P, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-1c203895.js";
2
2
  import "vue";
3
3
  import "ant-design-vue";
4
4
  export {
@@ -13,6 +13,7 @@ export {
13
13
  j as FunctionRegexp,
14
14
  l as INIT_COMPONENT_PROPS_MAP,
15
15
  I as INJECT_COMPONENT_PROPS_KEYS,
16
+ P as PARENT_DISABLED,
16
17
  R as RULE_TYPE_MAP,
17
18
  e as SlotComponent,
18
19
  i as UPDATE_ACTIVE_PATH,
package/es/index.d.ts CHANGED
@@ -1959,6 +1959,8 @@ export declare type ParamCache = {
1959
1959
  set(val: Data | ((v: Data) => Data)): void;
1960
1960
  };
1961
1961
 
1962
+ export declare const PARENT_DISABLED: InjectionKey<boolean>;
1963
+
1962
1964
  export declare type PrependField = (path: string | undefined, field: Field) => void;
1963
1965
 
1964
1966
  export declare const PRO_TABLE_INIT_COMPONENT_PROPS_MAP: Map<symbol, {}>;
@@ -2944,6 +2946,7 @@ declare type Props_2 = {
2944
2946
  grid?: Grid;
2945
2947
  fields: Fields;
2946
2948
  path?: string;
2949
+ disabled?: boolean;
2947
2950
  };
2948
2951
 
2949
2952
  declare type Props_3 = {
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-5e5da646.js";
3
- import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-5e5da646.js";
2
+ import { _ as _sfc_main } from "./form/index-1c203895.js";
3
+ import { k, B, d, h, C, b, f, F, j, l, I, P, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-1c203895.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { PRO_TABLE_INIT_COMPONENT_PROPS_MAP, PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, useTable } from "./table/index.js";
6
6
  import _sfc_main$1 from "./component-provider/index.js";
@@ -35,6 +35,7 @@ export {
35
35
  j as FunctionRegexp,
36
36
  l as INIT_COMPONENT_PROPS_MAP,
37
37
  I as INJECT_COMPONENT_PROPS_KEYS,
38
+ P as PARENT_DISABLED,
38
39
  PRO_TABLE_INIT_COMPONENT_PROPS_MAP,
39
40
  PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS,
40
41
  ProComponentProvider,
package/es/style.css CHANGED
@@ -1,4 +1,4 @@
1
- .field-component[data-v-86724ea3] {
1
+ .field-component[data-v-301c3406] {
2
2
  width: 100%;
3
3
  min-width: 120px;
4
4
  }
package/es/table/index.js CHANGED
@@ -1,6 +1,6 @@
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, inject, 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
- import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-5e5da646.js";
3
+ import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-1c203895.js";
4
4
  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" };
5
5
  const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
6
6
  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.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",