@qin-ui/antd-vue-pro 1.1.8 → 1.1.10

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.
@@ -15714,7 +15714,7 @@ Form$1.install = function(app) {
15714
15714
  app.component(FormItemRest.name, FormItemRest);
15715
15715
  return app;
15716
15716
  };
15717
- const FORM_ITEM_SLOT_KEYS = ["label", "extra", "help"];
15717
+ const FORM_ITEM_SLOT_KEYS = ["label", "extra", "help", "tooltip"];
15718
15718
  const COMPONENT_MAP = /* @__PURE__ */ new Map([
15719
15719
  ["input", Input],
15720
15720
  ["textarea", Textarea],
@@ -15768,7 +15768,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15768
15768
  },
15769
15769
  setup(__props) {
15770
15770
  const formItemPropKeys = Object.keys(formItemProps());
15771
- const gridItemPropKeys = Object.keys(rowProps());
15771
+ const gridItemPropKeys = Object.keys(colProps());
15772
15772
  memoize.Cache = WeakMap;
15773
15773
  const customItemPropsKeys = [
15774
15774
  "style",
@@ -16491,7 +16491,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16491
16491
  };
16492
16492
  }
16493
16493
  });
16494
- const index_vue_vue_type_style_index_0_scoped_060ffbee_lang = "";
16494
+ const index_vue_vue_type_style_index_0_scoped_7ea181bc_lang = "";
16495
16495
  const _export_sfc = (sfc, props) => {
16496
16496
  const target = sfc.__vccOpts || sfc;
16497
16497
  for (const [key, val] of props) {
@@ -16499,7 +16499,7 @@ const _export_sfc = (sfc, props) => {
16499
16499
  }
16500
16500
  return target;
16501
16501
  };
16502
- const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-060ffbee"]]);
16502
+ const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7ea181bc"]]);
16503
16503
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16504
16504
  ...{
16505
16505
  name: "ContainerFragment",
@@ -16580,6 +16580,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16580
16580
  return props.form ? (_a = props.form) == null ? void 0 : _a.formData.value : props.formData;
16581
16581
  }
16582
16582
  );
16583
+ const _fields = computed(
16584
+ () => {
16585
+ var _a;
16586
+ return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
16587
+ }
16588
+ );
16583
16589
  const updateFormData = (path, value) => {
16584
16590
  var _a;
16585
16591
  if (props.form) {
@@ -16591,12 +16597,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16591
16597
  }
16592
16598
  updateActivePath(path);
16593
16599
  };
16594
- const _fields = computed(
16595
- () => {
16596
- var _a;
16597
- return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
16598
- }
16599
- );
16600
16600
  const command = computed(() => {
16601
16601
  return props.form && !props.autoCommandDisabled ? useCommand({
16602
16602
  refs: exposed.refs,
package/es/form/index.js CHANGED
@@ -1,4 +1,4 @@
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-a8e0c5c2.js";
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-bb61c8f9.js";
2
2
  import "vue";
3
3
  import "ant-design-vue";
4
4
  import "../component-provider/index.js";
package/es/index.d.ts CHANGED
@@ -58,7 +58,7 @@ import type { Select } from 'ant-design-vue';
58
58
  import { SelectProps } from 'ant-design-vue';
59
59
  import { ShallowUnwrapRef } from 'vue';
60
60
  import { SliderProps } from 'ant-design-vue';
61
- import { Slot as Slot_2 } from 'vue';
61
+ import { Slot } from 'vue';
62
62
  import { SorterResult } from 'ant-design-vue/es/table/interface';
63
63
  import { SortOrder } from 'ant-design-vue/es/table/interface';
64
64
  import { SwitchProps } from 'ant-design-vue';
@@ -1851,10 +1851,12 @@ export declare type FieldType = {
1851
1851
  /** 穿梭框 */
1852
1852
  'transfer': {
1853
1853
  component: 'transfer';
1854
+ slots?: TransferSlots;
1854
1855
  } & TransferProps;
1855
1856
  /** 自定义组件 */
1856
1857
  'custom': {
1857
1858
  component?: RenderComponentType | Raw<RenderComponentType>;
1859
+ slots?: Slots;
1858
1860
  } & Record<string, any>;
1859
1861
  };
1860
1862
 
@@ -1862,7 +1864,7 @@ export declare type Form<D extends FormData_2 = FormData_2> = ReturnType<UseForm
1862
1864
 
1863
1865
  export declare const FORM_DATA: InjectionKey<Record<string, any>>;
1864
1866
 
1865
- export declare const FORM_ITEM_SLOT_KEYS: readonly ["label", "extra", "help"];
1867
+ export declare const FORM_ITEM_SLOT_KEYS: readonly ["label", "extra", "help", "tooltip"];
1866
1868
 
1867
1869
  declare type FormData_2 = {
1868
1870
  [key: string]: any;
@@ -2672,7 +2674,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
2672
2674
  [x: string]: unknown;
2673
2675
  };
2674
2676
  $slots: Readonly<{
2675
- [name: string]: Slot_2<any> | undefined;
2677
+ [name: string]: Slot<any> | undefined;
2676
2678
  }>;
2677
2679
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
2678
2680
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
@@ -3992,7 +3994,7 @@ export declare const ProForm: SFCWithInstall<{
3992
3994
  [x: string]: unknown;
3993
3995
  };
3994
3996
  $slots: Readonly<{
3995
- [name: string]: Slot_2<any> | undefined;
3997
+ [name: string]: Slot<any> | undefined;
3996
3998
  }>;
3997
3999
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3998
4000
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
@@ -6026,15 +6028,14 @@ declare type SFCWithInstall<T> = T & Plugin_2;
6026
6028
 
6027
6029
  declare type SliderSlots = FieldSlot<'mark'>;
6028
6030
 
6029
- export declare type Slot = {
6030
- name: string;
6031
- component: SlotComponentType;
6032
- };
6033
-
6034
6031
  export declare const SlotComponent: DefineComponent<__VLS_TypePropsToRuntimeProps_5<Props_5>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<Props_5>>>, {}, {}>;
6035
6032
 
6036
6033
  export declare type SlotComponentType = string | Component<DefaultProps>;
6037
6034
 
6035
+ export declare type Slots = {
6036
+ [name: string]: SlotComponentType;
6037
+ };
6038
+
6038
6039
  declare type SwitchSlots = FieldSlot<'checkedChildren' | 'unCheckedChildren'>;
6039
6040
 
6040
6041
  export declare type Table<D extends Data = Data> = {
@@ -6048,6 +6049,8 @@ export declare type Table<D extends Data = Data> = {
6048
6049
 
6049
6050
  declare type TimePickerSlots = FieldSlot<'clearIcon' | 'renderExtraFooter' | 'suffixIcon'>;
6050
6051
 
6052
+ declare type TransferSlots = FieldSlot<'footer' | 'render'>;
6053
+
6051
6054
  declare type TreeSelectSlots = FieldSlot<'maxTagPlaceholder' | 'notFoundContent' | 'placeholder' | 'searchPlaceholder' | 'suffixIcon' | 'tagRender' | 'title'>;
6052
6055
 
6053
6056
  export declare const UPDATE_ACTIVE_PATH: InjectionKey<SetActivePath>;
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-a8e0c5c2.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-a8e0c5c2.js";
2
+ import { _ as _sfc_main } from "./form/index-bb61c8f9.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-bb61c8f9.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";
package/es/style.css CHANGED
@@ -1,7 +1,7 @@
1
1
  .ant-form-item:has(> [hide-feedback='true']) {
2
2
  margin-bottom: 0;
3
3
  }
4
- .field-component[data-v-060ffbee]:not(.ant-switch) {
4
+ .field-component[data-v-7ea181bc]:not(.ant-switch) {
5
5
  width: 100%;
6
6
  min-width: 120px;
7
7
  }
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-a8e0c5c2.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-bb61c8f9.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.8",
3
+ "version": "1.1.10",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",