@qin-ui/antd-vue-pro 1.0.25 → 1.0.26

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.
@@ -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-b9546055.js";
3
+ import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-416cf600.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",
@@ -7113,7 +7113,7 @@ const useConfigInject = (name, props) => {
7113
7113
  var _a, _b;
7114
7114
  return (_a = props.getTargetContainer) !== null && _a !== void 0 ? _a : (_b = configProvider.getTargetContainer) === null || _b === void 0 ? void 0 : _b.value;
7115
7115
  });
7116
- const getPopupContainer = computed(() => {
7116
+ const getPopupContainer2 = computed(() => {
7117
7117
  var _a, _b, _c;
7118
7118
  return (_b = (_a = props.getContainer) !== null && _a !== void 0 ? _a : props.getPopupContainer) !== null && _b !== void 0 ? _b : (_c = configProvider.getPopupContainer) === null || _c === void 0 ? void 0 : _c.value;
7119
7119
  });
@@ -7144,7 +7144,7 @@ const useConfigInject = (name, props) => {
7144
7144
  direction,
7145
7145
  size,
7146
7146
  getTargetContainer,
7147
- getPopupContainer,
7147
+ getPopupContainer: getPopupContainer2,
7148
7148
  space,
7149
7149
  pageHeader,
7150
7150
  form,
@@ -12198,15 +12198,15 @@ const Trigger = defineComponent({
12198
12198
  attachParent(popupContainer) {
12199
12199
  wrapperRaf.cancel(this.attachId);
12200
12200
  const {
12201
- getPopupContainer,
12201
+ getPopupContainer: getPopupContainer2,
12202
12202
  getDocument: getDocument2
12203
12203
  } = this.$props;
12204
12204
  const domNode = this.getRootDomNode();
12205
12205
  let mountNode;
12206
- if (!getPopupContainer) {
12206
+ if (!getPopupContainer2) {
12207
12207
  mountNode = getDocument2(this.getRootDomNode()).body;
12208
- } else if (domNode || getPopupContainer.length === 0) {
12209
- mountNode = getPopupContainer(domNode);
12208
+ } else if (domNode || getPopupContainer2.length === 0) {
12209
+ mountNode = getPopupContainer2(domNode);
12210
12210
  }
12211
12211
  if (mountNode) {
12212
12212
  mountNode.appendChild(popupContainer);
@@ -12400,7 +12400,7 @@ const Trigger = defineComponent({
12400
12400
  const children = filterEmpty(getSlot(this));
12401
12401
  const {
12402
12402
  alignPoint: alignPoint2,
12403
- getPopupContainer
12403
+ getPopupContainer: getPopupContainer2
12404
12404
  } = this.$props;
12405
12405
  const child = children[0];
12406
12406
  this.childOriginEvents = getEvents(child);
@@ -12454,7 +12454,7 @@ const Trigger = defineComponent({
12454
12454
  }), true, true);
12455
12455
  const portal = createVNode(Portal, {
12456
12456
  "key": "portal",
12457
- "getContainer": getPopupContainer && (() => getPopupContainer(this.getRootDomNode())),
12457
+ "getContainer": getPopupContainer2 && (() => getPopupContainer2(this.getRootDomNode())),
12458
12458
  "didUpdate": this.handlePortalUpdate,
12459
12459
  "visible": this.$data.sPopupVisible
12460
12460
  }, {
@@ -13479,7 +13479,7 @@ const ToolTip = defineComponent({
13479
13479
  }
13480
13480
  const {
13481
13481
  prefixCls,
13482
- getPopupContainer,
13482
+ getPopupContainer: getPopupContainer2,
13483
13483
  direction,
13484
13484
  rootPrefixCls
13485
13485
  } = useConfigInject("tooltip", props);
@@ -13628,7 +13628,7 @@ const ToolTip = defineComponent({
13628
13628
  const arrowContentStyle = colorInfo.value.arrowStyle;
13629
13629
  const vcTooltipProps = _extends$1(_extends$1(_extends$1({}, attrs), props), {
13630
13630
  prefixCls: prefixCls.value,
13631
- getPopupContainer: getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer.value,
13631
+ getPopupContainer: getPopupContainer2 === null || getPopupContainer2 === void 0 ? void 0 : getPopupContainer2.value,
13632
13632
  builtinPlacements: tooltipPlacements.value,
13633
13633
  visible: tempVisible,
13634
13634
  ref: tooltip,
@@ -15743,21 +15743,22 @@ const INJECT_COMPONENT_PROPS_KEYS = {
15743
15743
  "transfer": Symbol("")
15744
15744
  };
15745
15745
  const PROPS_KEYS = INJECT_COMPONENT_PROPS_KEYS;
15746
+ const getPopupContainer = (triggerNode) => triggerNode.closest(".ant-form");
15746
15747
  const INIT_COMPONENT_PROPS_MAP = /* @__PURE__ */ new Map([
15747
15748
  [PROPS_KEYS.input, { maxlength: 100, allowClear: true, placeholder: "请输入" }],
15748
15749
  [PROPS_KEYS.textarea, { maxlength: 200, autoSize: { minRows: 3, maxRows: 6 }, showCount: true, allowClear: true, placeholder: "请输入" }],
15749
15750
  [PROPS_KEYS["input-password"], { maxlength: 100, allowClear: true, placeholder: "请输入" }],
15750
15751
  [PROPS_KEYS["input-number"], { max: 10 ** 15 - 1, min: -(10 ** 15 + 1), controls: false, allowClear: true, placeholder: "请输入" }],
15751
- [PROPS_KEYS.select, { allowClear: true, placeholder: "请选择" }],
15752
- [PROPS_KEYS.cascader, { allowClear: true, placeholder: "请选择" }],
15753
- [PROPS_KEYS["date-picker"], { allowClear: true }],
15754
- [PROPS_KEYS["date-picker.week"], { allowClear: true }],
15755
- [PROPS_KEYS["date-picker.month"], { allowClear: true }],
15756
- [PROPS_KEYS["date-picker.year"], { allowClear: true }],
15757
- [PROPS_KEYS["date-picker.quarter"], { allowClear: true }],
15758
- [PROPS_KEYS["time-picker"], { allowClear: true }],
15759
- [PROPS_KEYS["range-picker"], { allowClear: true }],
15760
- [PROPS_KEYS["checkbox-group"], { allowClear: true }],
15752
+ [PROPS_KEYS.select, { allowClear: true, placeholder: "请选择", getPopupContainer }],
15753
+ [PROPS_KEYS.cascader, { allowClear: true, placeholder: "请选择", getPopupContainer }],
15754
+ [PROPS_KEYS["date-picker"], { allowClear: true, getPopupContainer }],
15755
+ [PROPS_KEYS["date-picker.week"], { allowClear: true, getPopupContainer }],
15756
+ [PROPS_KEYS["date-picker.month"], { allowClear: true, getPopupContainer }],
15757
+ [PROPS_KEYS["date-picker.year"], { allowClear: true, getPopupContainer }],
15758
+ [PROPS_KEYS["date-picker.quarter"], { allowClear: true, getPopupContainer }],
15759
+ [PROPS_KEYS["time-picker"], { allowClear: true, getPopupContainer }],
15760
+ [PROPS_KEYS["range-picker"], { allowClear: true, getPopupContainer }],
15761
+ [PROPS_KEYS["checkbox-group"], { allowClear: true, getPopupContainer }],
15761
15762
  [PROPS_KEYS["radio-group"], {}],
15762
15763
  [PROPS_KEYS.switch, {}],
15763
15764
  [PROPS_KEYS.slider, {}],
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-b9546055.js";
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-416cf600.js";
2
2
  import "vue";
3
3
  import "ant-design-vue";
4
4
  export {
package/es/index.d.ts CHANGED
@@ -1837,6 +1837,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
1837
1837
  max?: undefined;
1838
1838
  min?: undefined;
1839
1839
  controls?: undefined;
1840
+ getPopupContainer?: undefined;
1840
1841
  } | {
1841
1842
  maxlength: number;
1842
1843
  autoSize: {
@@ -1849,6 +1850,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
1849
1850
  max?: undefined;
1850
1851
  min?: undefined;
1851
1852
  controls?: undefined;
1853
+ getPopupContainer?: undefined;
1852
1854
  } | {
1853
1855
  max: number;
1854
1856
  min: number;
@@ -1858,9 +1860,11 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
1858
1860
  maxlength?: undefined;
1859
1861
  autoSize?: undefined;
1860
1862
  showCount?: undefined;
1863
+ getPopupContainer?: undefined;
1861
1864
  } | {
1862
1865
  allowClear: boolean;
1863
1866
  placeholder: string;
1867
+ getPopupContainer: (triggerNode: any) => any;
1864
1868
  maxlength?: undefined;
1865
1869
  autoSize?: undefined;
1866
1870
  showCount?: undefined;
@@ -1869,6 +1873,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
1869
1873
  controls?: undefined;
1870
1874
  } | {
1871
1875
  allowClear: boolean;
1876
+ getPopupContainer: (triggerNode: any) => any;
1872
1877
  maxlength?: undefined;
1873
1878
  placeholder?: undefined;
1874
1879
  autoSize?: undefined;
@@ -1885,6 +1890,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
1885
1890
  max?: undefined;
1886
1891
  min?: undefined;
1887
1892
  controls?: undefined;
1893
+ getPopupContainer?: undefined;
1888
1894
  }>;
1889
1895
 
1890
1896
  export declare const INJECT_COMPONENT_PROPS_KEYS: {
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-b9546055.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-b9546055.js";
2
+ import { _ as _sfc_main } from "./form/index-416cf600.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-416cf600.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";
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-b9546055.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-416cf600.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.25",
3
+ "version": "1.0.26",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",