@qin-ui/antd-vue-pro 1.1.13 → 1.1.15
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/es/form/{index-c1a5e7f6.js → index-46e84b2b.js} +98 -74
- package/es/form/index.js +1 -1
- package/es/index.d.ts +3894 -3664
- package/es/index.js +2 -2
- package/es/style.css +5 -5
- package/es/table/index.js +30 -27
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref, h as h$1, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, shallowRef, watch, unref, provide, watchEffect, onBeforeUnmount, computed,
|
|
1
|
+
import { inject, ref, h as h$1, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, shallowRef, watch, unref, provide, watchEffect, onBeforeUnmount, computed, triggerRef, Fragment, Comment, Text, isVNode, onMounted, cloneVNode, Transition, withDirectives, resolveDirective, onUpdated, onUnmounted, toRef, withModifiers, vShow, onBeforeMount, Teleport, TransitionGroup, toRaw, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, renderList, resolveDynamicComponent, createSlots, createTextVNode, createCommentVNode, useAttrs, normalizeProps, renderSlot, toDisplayString, shallowReactive } from "vue";
|
|
2
2
|
import { Input, Textarea, InputSearch, InputPassword, InputNumber, Select, Cascader, DatePicker as DatePicker$1, RangePicker, TimePicker as TimePicker$1, CheckboxGroup, RadioGroup, Switch, Slider, TreeSelect, Transfer, Row as Row$1, Col as Col$1, FormItem as FormItem$1, message, Form as Form$2 } from "ant-design-vue";
|
|
3
3
|
import { INIT_PROPS_MAP, useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
|
|
4
4
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
@@ -4635,7 +4635,9 @@ function supportLayer() {
|
|
|
4635
4635
|
return canLayer;
|
|
4636
4636
|
}
|
|
4637
4637
|
const EMPTY_OVERRIDE = {};
|
|
4638
|
-
const
|
|
4638
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
4639
|
+
const isPrerender = process.env.NODE_ENV === "prerender";
|
|
4640
|
+
const hashPrefix = !isProduction && !isPrerender ? "css-dev-only-do-not-override" : "css";
|
|
4639
4641
|
const tokenKeys = /* @__PURE__ */ new Map();
|
|
4640
4642
|
function recordCleanToken(tokenKey) {
|
|
4641
4643
|
tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);
|
|
@@ -5390,7 +5392,7 @@ class Keyframe {
|
|
|
5390
5392
|
}
|
|
5391
5393
|
}
|
|
5392
5394
|
const Keyframes = Keyframe;
|
|
5393
|
-
const version = "4.
|
|
5395
|
+
const version = "4.2.5";
|
|
5394
5396
|
const PresetColors = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
5395
5397
|
const genControlHeight = (token2) => {
|
|
5396
5398
|
const {
|
|
@@ -6185,46 +6187,21 @@ function statisticToken(token2) {
|
|
|
6185
6187
|
flush
|
|
6186
6188
|
};
|
|
6187
6189
|
}
|
|
6188
|
-
function toReactive(objectRef) {
|
|
6189
|
-
if (!isRef(objectRef))
|
|
6190
|
-
return reactive(objectRef);
|
|
6191
|
-
const proxy = new Proxy({}, {
|
|
6192
|
-
get(_2, p, receiver) {
|
|
6193
|
-
return Reflect.get(objectRef.value, p, receiver);
|
|
6194
|
-
},
|
|
6195
|
-
set(_2, p, value) {
|
|
6196
|
-
objectRef.value[p] = value;
|
|
6197
|
-
return true;
|
|
6198
|
-
},
|
|
6199
|
-
deleteProperty(_2, p) {
|
|
6200
|
-
return Reflect.deleteProperty(objectRef.value, p);
|
|
6201
|
-
},
|
|
6202
|
-
has(_2, p) {
|
|
6203
|
-
return Reflect.has(objectRef.value, p);
|
|
6204
|
-
},
|
|
6205
|
-
ownKeys() {
|
|
6206
|
-
return Object.keys(objectRef.value);
|
|
6207
|
-
},
|
|
6208
|
-
getOwnPropertyDescriptor() {
|
|
6209
|
-
return {
|
|
6210
|
-
enumerable: true,
|
|
6211
|
-
configurable: true
|
|
6212
|
-
};
|
|
6213
|
-
}
|
|
6214
|
-
});
|
|
6215
|
-
return reactive(proxy);
|
|
6216
|
-
}
|
|
6217
6190
|
const defaultTheme = createTheme(derivative);
|
|
6218
6191
|
const defaultConfig = {
|
|
6219
6192
|
token: defaultSeedToken,
|
|
6220
6193
|
hashed: true
|
|
6221
6194
|
};
|
|
6222
6195
|
const DesignTokenContextKey = Symbol("DesignTokenContext");
|
|
6223
|
-
const globalDesignTokenApi =
|
|
6196
|
+
const globalDesignTokenApi = shallowRef();
|
|
6224
6197
|
const useDesignTokenProvider = (value) => {
|
|
6225
6198
|
provide(DesignTokenContextKey, value);
|
|
6226
|
-
|
|
6227
|
-
globalDesignTokenApi.value = value;
|
|
6199
|
+
watch(value, () => {
|
|
6200
|
+
globalDesignTokenApi.value = unref(value);
|
|
6201
|
+
triggerRef(globalDesignTokenApi);
|
|
6202
|
+
}, {
|
|
6203
|
+
immediate: true,
|
|
6204
|
+
deep: true
|
|
6228
6205
|
});
|
|
6229
6206
|
};
|
|
6230
6207
|
defineComponent({
|
|
@@ -6235,7 +6212,7 @@ defineComponent({
|
|
|
6235
6212
|
let {
|
|
6236
6213
|
slots
|
|
6237
6214
|
} = _ref;
|
|
6238
|
-
useDesignTokenProvider(
|
|
6215
|
+
useDesignTokenProvider(computed(() => props.value));
|
|
6239
6216
|
return () => {
|
|
6240
6217
|
var _a;
|
|
6241
6218
|
return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots);
|
|
@@ -6243,17 +6220,17 @@ defineComponent({
|
|
|
6243
6220
|
}
|
|
6244
6221
|
});
|
|
6245
6222
|
function useToken() {
|
|
6246
|
-
const designTokenContext = inject(DesignTokenContextKey, globalDesignTokenApi.value || defaultConfig);
|
|
6247
|
-
const salt = computed(() => `${version}-${designTokenContext.hashed || ""}`);
|
|
6248
|
-
const mergedTheme = computed(() => designTokenContext.theme || defaultTheme);
|
|
6249
|
-
const cacheToken = useCacheToken(mergedTheme, computed(() => [defaultSeedToken, designTokenContext.token]), computed(() => ({
|
|
6223
|
+
const designTokenContext = inject(DesignTokenContextKey, computed(() => globalDesignTokenApi.value || defaultConfig));
|
|
6224
|
+
const salt = computed(() => `${version}-${designTokenContext.value.hashed || ""}`);
|
|
6225
|
+
const mergedTheme = computed(() => designTokenContext.value.theme || defaultTheme);
|
|
6226
|
+
const cacheToken = useCacheToken(mergedTheme, computed(() => [defaultSeedToken, designTokenContext.value.token]), computed(() => ({
|
|
6250
6227
|
salt: salt.value,
|
|
6251
6228
|
override: _extends$1({
|
|
6252
|
-
override: designTokenContext.token
|
|
6253
|
-
}, designTokenContext.components),
|
|
6229
|
+
override: designTokenContext.value.token
|
|
6230
|
+
}, designTokenContext.value.components),
|
|
6254
6231
|
formatToken
|
|
6255
6232
|
})));
|
|
6256
|
-
return [mergedTheme, computed(() => cacheToken.value[0]), computed(() => designTokenContext.hashed ? cacheToken.value[1] : "")];
|
|
6233
|
+
return [mergedTheme, computed(() => cacheToken.value[0]), computed(() => designTokenContext.value.hashed ? cacheToken.value[1] : "")];
|
|
6257
6234
|
}
|
|
6258
6235
|
const responsiveArray = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"];
|
|
6259
6236
|
const getResponsiveMap = (token2) => ({
|
|
@@ -6533,7 +6510,8 @@ const localeValues = {
|
|
|
6533
6510
|
},
|
|
6534
6511
|
QRCode: {
|
|
6535
6512
|
expired: "QR code expired",
|
|
6536
|
-
refresh: "Refresh"
|
|
6513
|
+
refresh: "Refresh",
|
|
6514
|
+
scanned: "Scanned"
|
|
6537
6515
|
}
|
|
6538
6516
|
};
|
|
6539
6517
|
const defaultLocale = localeValues;
|
|
@@ -7015,8 +6993,6 @@ var __rest$1 = globalThis && globalThis.__rest || function(s2, e2) {
|
|
|
7015
6993
|
}
|
|
7016
6994
|
return t2;
|
|
7017
6995
|
};
|
|
7018
|
-
const defaultEmptyImg = createVNode(DefaultEmptyImg, null, null);
|
|
7019
|
-
const simpleEmptyImg = createVNode(SimpleEmptyImg, null, null);
|
|
7020
6996
|
const emptyProps = () => ({
|
|
7021
6997
|
prefixCls: String,
|
|
7022
6998
|
imageStyle: objectType(),
|
|
@@ -7044,11 +7020,13 @@ const Empty = defineComponent({
|
|
|
7044
7020
|
var _a, _b;
|
|
7045
7021
|
const prefixCls = prefixClsRef.value;
|
|
7046
7022
|
const _c = _extends$1(_extends$1({}, props), attrs), {
|
|
7047
|
-
image = ((_a = slots.image) === null || _a === void 0 ? void 0 : _a.call(slots)) ||
|
|
7023
|
+
image: mergedImage = ((_a = slots.image) === null || _a === void 0 ? void 0 : _a.call(slots)) || h$1(DefaultEmptyImg),
|
|
7048
7024
|
description = ((_b = slots.description) === null || _b === void 0 ? void 0 : _b.call(slots)) || void 0,
|
|
7049
7025
|
imageStyle,
|
|
7050
7026
|
class: className = ""
|
|
7051
7027
|
} = _c, restProps = __rest$1(_c, ["image", "description", "imageStyle", "class"]);
|
|
7028
|
+
const image = typeof mergedImage === "function" ? mergedImage() : mergedImage;
|
|
7029
|
+
const isNormal = typeof image === "object" && "type" in image && image.type.PRESENTED_IMAGE_SIMPLE;
|
|
7052
7030
|
return wrapSSR(createVNode(LocaleReceiver, {
|
|
7053
7031
|
"componentName": "Empty",
|
|
7054
7032
|
"children": (locale2) => {
|
|
@@ -7065,7 +7043,7 @@ const Empty = defineComponent({
|
|
|
7065
7043
|
}
|
|
7066
7044
|
return createVNode("div", _objectSpread2$1({
|
|
7067
7045
|
"class": classNames(prefixCls, className, hashId.value, {
|
|
7068
|
-
[`${prefixCls}-normal`]:
|
|
7046
|
+
[`${prefixCls}-normal`]: isNormal,
|
|
7069
7047
|
[`${prefixCls}-rtl`]: direction.value === "rtl"
|
|
7070
7048
|
})
|
|
7071
7049
|
}, restProps), [createVNode("div", {
|
|
@@ -7081,8 +7059,8 @@ const Empty = defineComponent({
|
|
|
7081
7059
|
};
|
|
7082
7060
|
}
|
|
7083
7061
|
});
|
|
7084
|
-
Empty.PRESENTED_IMAGE_DEFAULT =
|
|
7085
|
-
Empty.PRESENTED_IMAGE_SIMPLE =
|
|
7062
|
+
Empty.PRESENTED_IMAGE_DEFAULT = () => h$1(DefaultEmptyImg);
|
|
7063
|
+
Empty.PRESENTED_IMAGE_SIMPLE = () => h$1(SimpleEmptyImg);
|
|
7086
7064
|
const Empty$1 = withInstall(Empty);
|
|
7087
7065
|
const DefaultRenderEmpty = (props) => {
|
|
7088
7066
|
const {
|
|
@@ -7174,6 +7152,10 @@ const useConfigInject = (name, props) => {
|
|
|
7174
7152
|
var _a;
|
|
7175
7153
|
return (_a = props.csp) !== null && _a !== void 0 ? _a : configProvider.csp;
|
|
7176
7154
|
});
|
|
7155
|
+
const wave = computed(() => {
|
|
7156
|
+
var _a, _b;
|
|
7157
|
+
return (_a = props.wave) !== null && _a !== void 0 ? _a : (_b = configProvider.wave) === null || _b === void 0 ? void 0 : _b.value;
|
|
7158
|
+
});
|
|
7177
7159
|
return {
|
|
7178
7160
|
configProvider,
|
|
7179
7161
|
prefixCls,
|
|
@@ -7194,7 +7176,8 @@ const useConfigInject = (name, props) => {
|
|
|
7194
7176
|
csp,
|
|
7195
7177
|
iconPrefixCls,
|
|
7196
7178
|
disabled,
|
|
7197
|
-
select: configProvider.select
|
|
7179
|
+
select: configProvider.select,
|
|
7180
|
+
wave
|
|
7198
7181
|
};
|
|
7199
7182
|
};
|
|
7200
7183
|
const canUseDocElement = () => canUseDom() && window.document.documentElement;
|
|
@@ -7270,6 +7253,9 @@ const genGridRowStyle = (token2) => {
|
|
|
7270
7253
|
"&-space-around ": {
|
|
7271
7254
|
justifyContent: "space-around"
|
|
7272
7255
|
},
|
|
7256
|
+
"&-space-evenly ": {
|
|
7257
|
+
justifyContent: "space-evenly"
|
|
7258
|
+
},
|
|
7273
7259
|
// Align at the top
|
|
7274
7260
|
"&-top": {
|
|
7275
7261
|
alignItems: "flex-start"
|
|
@@ -9084,6 +9070,7 @@ const triggerProps = () => ({
|
|
|
9084
9070
|
onPopupVisibleChange: Function,
|
|
9085
9071
|
afterPopupVisibleChange: PropTypes$1.func.def(noop$1),
|
|
9086
9072
|
popup: PropTypes$1.any,
|
|
9073
|
+
arrow: PropTypes$1.bool.def(true),
|
|
9087
9074
|
popupStyle: {
|
|
9088
9075
|
type: Object,
|
|
9089
9076
|
default: void 0
|
|
@@ -9211,6 +9198,10 @@ const innerProps = {
|
|
|
9211
9198
|
zIndex: Number,
|
|
9212
9199
|
destroyPopupOnHide: Boolean,
|
|
9213
9200
|
forceRender: Boolean,
|
|
9201
|
+
arrow: {
|
|
9202
|
+
type: Boolean,
|
|
9203
|
+
default: true
|
|
9204
|
+
},
|
|
9214
9205
|
// Legacy Motion
|
|
9215
9206
|
animation: [String, Object],
|
|
9216
9207
|
transitionName: String,
|
|
@@ -9231,6 +9222,9 @@ const innerProps = {
|
|
|
9231
9222
|
getClassNameFromAlign: {
|
|
9232
9223
|
type: Function
|
|
9233
9224
|
},
|
|
9225
|
+
onAlign: {
|
|
9226
|
+
type: Function
|
|
9227
|
+
},
|
|
9234
9228
|
onMouseenter: {
|
|
9235
9229
|
type: Function
|
|
9236
9230
|
},
|
|
@@ -11386,7 +11380,7 @@ const PopupInner = defineComponent({
|
|
|
11386
11380
|
"class": `${prefixCls}-content`
|
|
11387
11381
|
}, [childNode]);
|
|
11388
11382
|
}
|
|
11389
|
-
const mergedClassName = classNames(prefixCls, attrs.class, alignedClassName.value);
|
|
11383
|
+
const mergedClassName = classNames(prefixCls, attrs.class, alignedClassName.value, !props.arrow && `${prefixCls}-arrow-hidden`);
|
|
11390
11384
|
const hasAnimate = visible.value || !props.visible;
|
|
11391
11385
|
const transitionProps = hasAnimate ? getTransitionProps(motion.value.name, motion.value) : {};
|
|
11392
11386
|
return createVNode(Transition, _objectSpread2$1(_objectSpread2$1({
|
|
@@ -11744,6 +11738,7 @@ const Portal = defineComponent({
|
|
|
11744
11738
|
const container = shallowRef();
|
|
11745
11739
|
const componentRef = shallowRef();
|
|
11746
11740
|
const rafId = shallowRef();
|
|
11741
|
+
const triggerUpdate = shallowRef(1);
|
|
11747
11742
|
const defaultContainer = canUseDom() && document.createElement("div");
|
|
11748
11743
|
const removeCurrentContainer = () => {
|
|
11749
11744
|
var _a, _b;
|
|
@@ -11788,7 +11783,6 @@ const Portal = defineComponent({
|
|
|
11788
11783
|
setWrapperClassName();
|
|
11789
11784
|
attachToParent();
|
|
11790
11785
|
});
|
|
11791
|
-
const instance = getCurrentInstance();
|
|
11792
11786
|
useScrollLocker(computed(() => {
|
|
11793
11787
|
return props.autoLock && props.visible && canUseDom() && (container.value === document.body || container.value === defaultContainer);
|
|
11794
11788
|
}));
|
|
@@ -11821,7 +11815,7 @@ const Portal = defineComponent({
|
|
|
11821
11815
|
nextTick(() => {
|
|
11822
11816
|
if (!attachToParent()) {
|
|
11823
11817
|
rafId.value = wrapperRaf(() => {
|
|
11824
|
-
|
|
11818
|
+
triggerUpdate.value += 1;
|
|
11825
11819
|
});
|
|
11826
11820
|
}
|
|
11827
11821
|
});
|
|
@@ -11846,7 +11840,7 @@ const Portal = defineComponent({
|
|
|
11846
11840
|
getOpenCount: () => openCount,
|
|
11847
11841
|
getContainer: getContainer2
|
|
11848
11842
|
};
|
|
11849
|
-
if (forceRender || visible || componentRef.value) {
|
|
11843
|
+
if (triggerUpdate.value && (forceRender || visible || componentRef.value)) {
|
|
11850
11844
|
portal = createVNode(Portal$1, {
|
|
11851
11845
|
"getContainer": getContainer2,
|
|
11852
11846
|
"ref": componentRef,
|
|
@@ -12017,7 +12011,9 @@ const Trigger = defineComponent({
|
|
|
12017
12011
|
if (e2 && e2.relatedTarget && !e2.relatedTarget.setTimeout && contains((_a = this.popupRef) === null || _a === void 0 ? void 0 : _a.getElement(), e2.relatedTarget)) {
|
|
12018
12012
|
return;
|
|
12019
12013
|
}
|
|
12020
|
-
this.
|
|
12014
|
+
if (this.isMouseLeaveToHide()) {
|
|
12015
|
+
this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
|
|
12016
|
+
}
|
|
12021
12017
|
const {
|
|
12022
12018
|
vcTriggerContext = {}
|
|
12023
12019
|
} = this;
|
|
@@ -12198,6 +12194,7 @@ const Trigger = defineComponent({
|
|
|
12198
12194
|
stretch,
|
|
12199
12195
|
alignPoint: alignPoint2,
|
|
12200
12196
|
mobile,
|
|
12197
|
+
arrow,
|
|
12201
12198
|
forceRender
|
|
12202
12199
|
} = this.$props;
|
|
12203
12200
|
const {
|
|
@@ -12206,6 +12203,7 @@ const Trigger = defineComponent({
|
|
|
12206
12203
|
} = this.$data;
|
|
12207
12204
|
const popupProps2 = _extends$1(_extends$1({
|
|
12208
12205
|
prefixCls,
|
|
12206
|
+
arrow,
|
|
12209
12207
|
destroyPopupOnHide,
|
|
12210
12208
|
visible: sPopupVisible,
|
|
12211
12209
|
point: alignPoint2 ? point : null,
|
|
@@ -12665,7 +12663,11 @@ const Tooltip$1 = defineComponent({
|
|
|
12665
12663
|
default: void 0
|
|
12666
12664
|
},
|
|
12667
12665
|
onVisibleChange: Function,
|
|
12668
|
-
onPopupAlign: Function
|
|
12666
|
+
onPopupAlign: Function,
|
|
12667
|
+
arrow: {
|
|
12668
|
+
type: Boolean,
|
|
12669
|
+
default: true
|
|
12670
|
+
}
|
|
12669
12671
|
},
|
|
12670
12672
|
setup(props, _ref) {
|
|
12671
12673
|
let {
|
|
@@ -12680,10 +12682,10 @@ const Tooltip$1 = defineComponent({
|
|
|
12680
12682
|
tipId,
|
|
12681
12683
|
overlayInnerStyle
|
|
12682
12684
|
} = props;
|
|
12683
|
-
return [createVNode("div", {
|
|
12685
|
+
return [!!props.arrow ? createVNode("div", {
|
|
12684
12686
|
"class": `${prefixCls}-arrow`,
|
|
12685
12687
|
"key": "arrow"
|
|
12686
|
-
}, [getPropsSlot(slots, props, "arrowContent")]), createVNode(Content, {
|
|
12688
|
+
}, [getPropsSlot(slots, props, "arrowContent")]) : null, createVNode(Content, {
|
|
12687
12689
|
"key": "content",
|
|
12688
12690
|
"prefixCls": prefixCls,
|
|
12689
12691
|
"id": tipId,
|
|
@@ -12759,6 +12761,7 @@ const Tooltip$1 = defineComponent({
|
|
|
12759
12761
|
onPopupVisibleChange: props.onVisibleChange || noop,
|
|
12760
12762
|
onPopupAlign: props.onPopupAlign || noop,
|
|
12761
12763
|
ref: triggerDOM,
|
|
12764
|
+
arrow: !!props.arrow,
|
|
12762
12765
|
popup: getPopupElement()
|
|
12763
12766
|
});
|
|
12764
12767
|
return createVNode(Trigger, triggerProps2, {
|
|
@@ -12789,10 +12792,15 @@ const abstractTooltipProps = () => ({
|
|
|
12789
12792
|
mouseEnterDelay: Number,
|
|
12790
12793
|
mouseLeaveDelay: Number,
|
|
12791
12794
|
getPopupContainer: Function,
|
|
12795
|
+
/**@deprecated Please use `arrow={{ pointAtCenter: true }}` instead. */
|
|
12792
12796
|
arrowPointAtCenter: {
|
|
12793
12797
|
type: Boolean,
|
|
12794
12798
|
default: void 0
|
|
12795
12799
|
},
|
|
12800
|
+
arrow: {
|
|
12801
|
+
type: [Boolean, Object],
|
|
12802
|
+
default: true
|
|
12803
|
+
},
|
|
12796
12804
|
autoAdjustOverflow: {
|
|
12797
12805
|
type: [Boolean, Object],
|
|
12798
12806
|
default: void 0
|
|
@@ -13317,22 +13325,22 @@ function getArrowStyle(token2, options) {
|
|
|
13317
13325
|
// =========================== Offset ============================
|
|
13318
13326
|
// Offset the popover to account for the dropdown arrow
|
|
13319
13327
|
// >>>>> Top
|
|
13320
|
-
[connectArrowCls([`&-placement-topLeft`, `&-placement-top`, `&-placement-topRight`], showArrowCls)]: {
|
|
13328
|
+
[connectArrowCls([`&-placement-topLeft`, `&-placement-top`, `&-placement-topRight`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
|
13321
13329
|
paddingBottom: dropdownArrowDistance
|
|
13322
13330
|
},
|
|
13323
13331
|
// >>>>> Bottom
|
|
13324
|
-
[connectArrowCls([`&-placement-bottomLeft`, `&-placement-bottom`, `&-placement-bottomRight`], showArrowCls)]: {
|
|
13332
|
+
[connectArrowCls([`&-placement-bottomLeft`, `&-placement-bottom`, `&-placement-bottomRight`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
|
13325
13333
|
paddingTop: dropdownArrowDistance
|
|
13326
13334
|
},
|
|
13327
13335
|
// >>>>> Left
|
|
13328
|
-
[connectArrowCls([`&-placement-leftTop`, `&-placement-left`, `&-placement-leftBottom`], showArrowCls)]: {
|
|
13336
|
+
[connectArrowCls([`&-placement-leftTop`, `&-placement-left`, `&-placement-leftBottom`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
|
13329
13337
|
paddingRight: {
|
|
13330
13338
|
_skip_check_: true,
|
|
13331
13339
|
value: dropdownArrowDistance
|
|
13332
13340
|
}
|
|
13333
13341
|
},
|
|
13334
13342
|
// >>>>> Right
|
|
13335
|
-
[connectArrowCls([`&-placement-rightTop`, `&-placement-right`, `&-placement-rightBottom`], showArrowCls)]: {
|
|
13343
|
+
[connectArrowCls([`&-placement-rightTop`, `&-placement-right`, `&-placement-rightBottom`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
|
13336
13344
|
paddingLeft: {
|
|
13337
13345
|
_skip_check_: true,
|
|
13338
13346
|
value: dropdownArrowDistance
|
|
@@ -13561,13 +13569,19 @@ const ToolTip = defineComponent({
|
|
|
13561
13569
|
}
|
|
13562
13570
|
});
|
|
13563
13571
|
const tooltipPlacements = computed(() => {
|
|
13572
|
+
var _a;
|
|
13564
13573
|
const {
|
|
13565
13574
|
builtinPlacements,
|
|
13566
|
-
|
|
13567
|
-
|
|
13575
|
+
autoAdjustOverflow: autoAdjustOverflow2,
|
|
13576
|
+
arrow,
|
|
13577
|
+
arrowPointAtCenter
|
|
13568
13578
|
} = props;
|
|
13579
|
+
let mergedArrowPointAtCenter = arrowPointAtCenter;
|
|
13580
|
+
if (typeof arrow === "object") {
|
|
13581
|
+
mergedArrowPointAtCenter = (_a = arrow.pointAtCenter) !== null && _a !== void 0 ? _a : arrowPointAtCenter;
|
|
13582
|
+
}
|
|
13569
13583
|
return builtinPlacements || getPlacements({
|
|
13570
|
-
arrowPointAtCenter,
|
|
13584
|
+
arrowPointAtCenter: mergedArrowPointAtCenter,
|
|
13571
13585
|
autoAdjustOverflow: autoAdjustOverflow2
|
|
13572
13586
|
});
|
|
13573
13587
|
});
|
|
@@ -13664,6 +13678,7 @@ const ToolTip = defineComponent({
|
|
|
13664
13678
|
const arrowContentStyle = colorInfo.value.arrowStyle;
|
|
13665
13679
|
const vcTooltipProps = _extends$1(_extends$1(_extends$1({}, attrs), props), {
|
|
13666
13680
|
prefixCls: prefixCls.value,
|
|
13681
|
+
arrow: !!props.arrow,
|
|
13667
13682
|
getPopupContainer: getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer.value,
|
|
13668
13683
|
builtinPlacements: tooltipPlacements.value,
|
|
13669
13684
|
visible: tempVisible,
|
|
@@ -14964,7 +14979,7 @@ const FormItem = defineComponent({
|
|
|
14964
14979
|
"class": [itemClassName.value, withHelp ? `${prefixCls.value}-item-with-help` : "", attrs.class],
|
|
14965
14980
|
"ref": itemRef
|
|
14966
14981
|
}, [createVNode(Row, _objectSpread2$1(_objectSpread2$1({}, attrs), {}, {
|
|
14967
|
-
"class": `${prefixCls.value}-row`,
|
|
14982
|
+
"class": `${prefixCls.value}-item-row`,
|
|
14968
14983
|
"key": "row"
|
|
14969
14984
|
}), {
|
|
14970
14985
|
default: () => {
|
|
@@ -15263,11 +15278,11 @@ function useForm$1(modelRef) {
|
|
|
15263
15278
|
return Promise.reject([]);
|
|
15264
15279
|
}).catch((results) => {
|
|
15265
15280
|
const errorList = results.filter((result) => result && result.errors.length);
|
|
15266
|
-
return Promise.reject({
|
|
15281
|
+
return errorList.length ? Promise.reject({
|
|
15267
15282
|
values,
|
|
15268
15283
|
errorFields: errorList,
|
|
15269
15284
|
outOfDate: lastValidatePromise !== summaryPromise
|
|
15270
|
-
});
|
|
15285
|
+
}) : Promise.resolve(values);
|
|
15271
15286
|
});
|
|
15272
15287
|
returnPromise.catch((e2) => e2);
|
|
15273
15288
|
return returnPromise;
|
|
@@ -16047,7 +16062,10 @@ const useFormData = (initFormData) => {
|
|
|
16047
16062
|
};
|
|
16048
16063
|
const useFormRef = () => {
|
|
16049
16064
|
const formRef = ref();
|
|
16050
|
-
|
|
16065
|
+
const setFormRef = (val) => {
|
|
16066
|
+
formRef.value = val;
|
|
16067
|
+
};
|
|
16068
|
+
return { formRef, setFormRef };
|
|
16051
16069
|
};
|
|
16052
16070
|
const useForm = (initFormData = {}, initFields = []) => {
|
|
16053
16071
|
return {
|
|
@@ -16469,11 +16487,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16469
16487
|
}
|
|
16470
16488
|
return (_ctx, _cache) => {
|
|
16471
16489
|
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
16472
|
-
component:
|
|
16490
|
+
component: mergedAttrs.value.componentContainer,
|
|
16473
16491
|
path: _ctx.path
|
|
16474
16492
|
}, {
|
|
16475
16493
|
default: withCtx(() => [
|
|
16476
|
-
(openBlock(), createBlock(resolveDynamicComponent(is.value), mergeProps({ key: forceUpdateKey.value }, mergedAttrs.value, {
|
|
16494
|
+
(openBlock(), createBlock(resolveDynamicComponent(is.value), mergeProps({ key: forceUpdateKey.value }, unref(omit$1)(mergedAttrs.value, "componentContainer"), {
|
|
16477
16495
|
ref: setComponentRef,
|
|
16478
16496
|
[modelName.value]: value.value,
|
|
16479
16497
|
["onUpdate:" + modelName.value]: _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
@@ -16500,7 +16518,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16500
16518
|
};
|
|
16501
16519
|
}
|
|
16502
16520
|
});
|
|
16503
|
-
const
|
|
16521
|
+
const index_vue_vue_type_style_index_0_scoped_5475a3b8_lang = "";
|
|
16504
16522
|
const _export_sfc = (sfc, props) => {
|
|
16505
16523
|
const target = sfc.__vccOpts || sfc;
|
|
16506
16524
|
for (const [key, val] of props) {
|
|
@@ -16508,7 +16526,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
16508
16526
|
}
|
|
16509
16527
|
return target;
|
|
16510
16528
|
};
|
|
16511
|
-
const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
16529
|
+
const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-5475a3b8"]]);
|
|
16512
16530
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
16513
16531
|
...{
|
|
16514
16532
|
name: "ContainerFragment",
|
|
@@ -16614,7 +16632,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16614
16632
|
});
|
|
16615
16633
|
const formInstanceRef = ref(null);
|
|
16616
16634
|
onMounted(() => {
|
|
16635
|
+
var _a;
|
|
16617
16636
|
Object.assign(exposed, formInstanceRef.value);
|
|
16637
|
+
if (props.form) {
|
|
16638
|
+
if (props.form.setFormRef && !((_a = props.form.formRef) == null ? void 0 : _a.value)) {
|
|
16639
|
+
props.form.setFormRef(exposed);
|
|
16640
|
+
}
|
|
16641
|
+
}
|
|
16618
16642
|
});
|
|
16619
16643
|
provide(FORM_DATA, _formData);
|
|
16620
16644
|
provide(UPDATE_FORM_DATA, updateFormData);
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-
|
|
1
|
+
import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-46e84b2b.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
import "../component-provider/index.js";
|