Socket
Socket
Sign inDemoInstall

vant

Package Overview
Dependencies
Maintainers
7
Versions
565
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vant - npm Package Compare versions

Comparing version 4.6.2 to 4.6.3

13

es/address-list/AddressList.d.ts

@@ -18,2 +18,6 @@ import { type ExtractPropTypes } from 'vue';

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -42,2 +46,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -64,2 +72,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -84,3 +96,4 @@ defaultTagText: StringConstructor;

disabledList: AddressListAddress[];
showAddButton: boolean;
}, {}>;
export default _default;

@@ -16,2 +16,6 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").DefineComponent<{

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -38,2 +42,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -58,2 +66,3 @@ defaultTagText: StringConstructor;

disabledList: import("./AddressListItem").AddressListAddress[];
showAddButton: boolean;
}, {}>>;

@@ -60,0 +69,0 @@ export default AddressList;

15

es/checkbox-group/CheckboxGroup.d.ts
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
import type { CheckerDirection } from '../checkbox/Checker';
import type { CheckerShape, CheckerDirection } from '../checkbox/Checker';
import type { CheckboxGroupProvide } from './types';
export declare const checkboxGroupProps: {
max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -19,2 +23,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -30,2 +38,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -44,4 +56,5 @@ iconSize: (NumberConstructor | StringConstructor)[];

disabled: boolean;
shape: CheckerShape;
modelValue: unknown[];
}, {}>;
export default _default;
export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
max: (NumberConstructor | StringConstructor)[];
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;

@@ -13,2 +17,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;

@@ -27,2 +35,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

disabled: boolean;
shape: import("../checkbox/Checker").CheckerShape;
modelValue: unknown[];

@@ -29,0 +38,0 @@ }, {}>>;

36

es/checkbox/Checkbox.d.ts

@@ -1,16 +0,13 @@

import { type ExtractPropTypes } from 'vue';
import { type PropType, type ExtractPropTypes } from 'vue';
import { type CheckerShape } from './Checker';
export declare const checkboxProps: {
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -23,14 +20,11 @@ type: BooleanConstructor;

declare const _default: import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -41,14 +35,11 @@ type: BooleanConstructor;

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -63,3 +54,2 @@ type: BooleanConstructor;

disabled: boolean;
shape: CheckerShape;
labelDisabled: boolean;

@@ -66,0 +56,0 @@ bindGroup: boolean;

import { type PropType } from 'vue';
import { type Numeric } from '../utils';
import type { RadioShape } from '../radio';
export type CheckerShape = 'square' | 'round';

@@ -8,8 +9,9 @@ export type CheckerDirection = 'horizontal' | 'vertical';

props: {
max?: Numeric;
shape?: CheckerShape | RadioShape;
disabled?: boolean;
iconSize?: Numeric;
direction?: CheckerDirection;
modelValue?: unknown | unknown[];
checkedColor?: string;
modelValue?: unknown | unknown[];
max?: Numeric;
};

@@ -40,6 +42,3 @@ };

role: StringConstructor;
shape: {
type: PropType<"dot" | "round" | "square">;
default: "dot" | "round" | "square";
};
shape: PropType<"dot" | "round" | "square">;
parent: PropType<CheckerParent | null>;

@@ -65,6 +64,3 @@ checked: BooleanConstructor;

role: StringConstructor;
shape: {
type: PropType<"dot" | "round" | "square">;
default: "dot" | "round" | "square";
};
shape: PropType<"dot" | "round" | "square">;
parent: PropType<CheckerParent | null>;

@@ -82,3 +78,2 @@ checked: BooleanConstructor;

disabled: boolean;
shape: "dot" | "round" | "square";
labelDisabled: boolean;

@@ -85,0 +80,0 @@ bindGroup: boolean;

@@ -10,6 +10,3 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<{

} & {
shape: {
type: import("vue").PropType<import("./Checker").CheckerShape>;
default: import("./Checker").CheckerShape;
};
shape: import("vue").PropType<import("./Checker").CheckerShape>;
bindGroup: {

@@ -28,6 +25,3 @@ type: BooleanConstructor;

} & {
shape: {
type: import("vue").PropType<import("./Checker").CheckerShape>;
default: import("./Checker").CheckerShape;
};
shape: import("vue").PropType<import("./Checker").CheckerShape>;
bindGroup: {

@@ -42,3 +36,2 @@ type: BooleanConstructor;

disabled: boolean;
shape: import("./Checker").CheckerShape;
labelDisabled: boolean;

@@ -45,0 +38,0 @@ bindGroup: boolean;

@@ -61,4 +61,4 @@ export declare const FloatingBubble: import("../utils").WithInstall<import("vue").DefineComponent<{

interface GlobalComponents {
FloatingBubble: typeof FloatingBubble;
VanFloatingBubble: typeof FloatingBubble;
}
}

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.2";
export const version: "4.6.3";
export declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
shape: import("vue").PropType<import("..").RadioShape>;
disabled: BooleanConstructor;

@@ -8,2 +9,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
shape: import("vue").PropType<import("..").RadioShape>;
disabled: BooleanConstructor;

@@ -10,0 +12,0 @@ iconSize: (NumberConstructor | StringConstructor)[];

import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
import type { RadioShape } from '../radio';
import type { CheckerDirection } from '../checkbox/Checker';
export type RadioGroupDirection = CheckerDirection;
export declare const radioGroupProps: {
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -18,2 +20,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

declare const _default: import("vue").DefineComponent<{
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -25,2 +28,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -27,0 +31,0 @@ iconSize: (NumberConstructor | StringConstructor)[];

@@ -10,6 +10,3 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{

} & {
shape: {
type: import("vue").PropType<import("./Radio").RadioShape>;
default: import("./Radio").RadioShape;
};
shape: import("vue").PropType<import("./Radio").RadioShape>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{

@@ -24,6 +21,3 @@ name: import("vue").PropType<unknown>;

} & {
shape: {
type: import("vue").PropType<import("./Radio").RadioShape>;
default: import("./Radio").RadioShape;
};
shape: import("vue").PropType<import("./Radio").RadioShape>;
}>> & {

@@ -33,3 +27,2 @@ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;

disabled: boolean;
shape: import("./Radio").RadioShape;
labelDisabled: boolean;

@@ -36,0 +29,0 @@ }, {}>>;

@@ -1,17 +0,14 @@

import { type ExtractPropTypes } from 'vue';
import { type PropType, type ExtractPropTypes } from 'vue';
import { type CheckerShape, type CheckerLabelPosition } from '../checkbox/Checker';
export type RadioShape = CheckerShape | 'dot';
export declare const radioProps: {
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
};

@@ -21,27 +18,21 @@ export type RadioLabelPosition = CheckerLabelPosition;

declare const _default: import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
}>> & {

@@ -51,5 +42,4 @@ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;

disabled: boolean;
shape: RadioShape;
labelDisabled: boolean;
}, {}>;
export default _default;

@@ -12,2 +12,10 @@ import type { ComponentPublicInstance } from 'vue';

export type ComponentInstance = ComponentPublicInstance<{}, any>;
export declare const isObject: (val: unknown) => val is Record<any, any>;
export declare const isDef: <T>(val: T) => val is NonNullable<T>;
export declare const isFunction: (val: unknown) => val is Function;
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
export declare const isDate: (val: unknown) => val is Date;
export declare function isMobile(value: string): boolean;
export declare const isNumeric: (val: Numeric) => val is string;
export declare const isIOS: () => boolean;
export declare function get(object: any, path: string): any;

@@ -14,0 +22,0 @@ export type Writeable<T> = {

@@ -7,5 +7,4 @@ export * from './basic';

export * from './constant';
export * from './validate';
export * from './interceptor';
export * from './with-install';
export * from './closest';

@@ -18,2 +18,6 @@ import { type ExtractPropTypes } from 'vue';

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -42,2 +46,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -64,2 +72,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -84,3 +96,4 @@ defaultTagText: StringConstructor;

disabledList: AddressListAddress[];
showAddButton: boolean;
}, {}>;
export default _default;

@@ -47,2 +47,3 @@ var __create = Object.create;

disabledList: (0, import_utils.makeArrayProp)(),
showAddButton: import_utils.truthProp,
addButtonText: String,

@@ -89,3 +90,3 @@ defaultTagText: String,

};
const renderBottom = () => (0, import_vue.createVNode)("div", {
const renderBottom = () => props.showAddButton ? (0, import_vue.createVNode)("div", {
"class": [bem("bottom"), "van-safe-area-bottom"]

@@ -99,3 +100,3 @@ }, [(0, import_vue.createVNode)(import_button.Button, {

"onClick": () => emit("add")
}, null)]);
}, null)]) : void 0;
return () => {

@@ -102,0 +103,0 @@ var _a, _b;

@@ -16,2 +16,6 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").DefineComponent<{

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -38,2 +42,6 @@ defaultTagText: StringConstructor;

};
showAddButton: {
type: BooleanConstructor;
default: true;
};
addButtonText: StringConstructor;

@@ -58,2 +66,3 @@ defaultTagText: StringConstructor;

disabledList: import("./AddressListItem").AddressListAddress[];
showAddButton: boolean;
}, {}>>;

@@ -60,0 +69,0 @@ export default AddressList;

import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
import type { CheckerDirection } from '../checkbox/Checker';
import type { CheckerShape, CheckerDirection } from '../checkbox/Checker';
import type { CheckboxGroupProvide } from './types';
export declare const checkboxGroupProps: {
max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -19,2 +23,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -30,2 +38,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;

@@ -44,4 +56,5 @@ iconSize: (NumberConstructor | StringConstructor)[];

disabled: boolean;
shape: CheckerShape;
modelValue: unknown[];
}, {}>;
export default _default;

@@ -33,2 +33,3 @@ var __defProp = Object.defineProperty;

max: import_utils.numericProp,
shape: (0, import_utils.makeStringProp)("round"),
disabled: Boolean,

@@ -35,0 +36,0 @@ iconSize: import_utils.numericProp,

export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
max: (NumberConstructor | StringConstructor)[];
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;

@@ -13,2 +17,6 @@ iconSize: (NumberConstructor | StringConstructor)[];

max: (NumberConstructor | StringConstructor)[];
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;

@@ -27,2 +35,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

disabled: boolean;
shape: import("../checkbox/Checker").CheckerShape;
modelValue: unknown[];

@@ -29,0 +38,0 @@ }, {}>>;

@@ -1,16 +0,13 @@

import { type ExtractPropTypes } from 'vue';
import { type PropType, type ExtractPropTypes } from 'vue';
import { type CheckerShape } from './Checker';
export declare const checkboxProps: {
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -23,14 +20,11 @@ type: BooleanConstructor;

declare const _default: import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -41,14 +35,11 @@ type: BooleanConstructor;

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
shape: PropType<CheckerShape>;
bindGroup: {

@@ -63,3 +54,2 @@ type: BooleanConstructor;

disabled: boolean;
shape: CheckerShape;
labelDisabled: boolean;

@@ -66,0 +56,0 @@ bindGroup: boolean;

@@ -43,3 +43,3 @@ var __create = Object.create;

const checkboxProps = (0, import_utils.extend)({}, import_Checker.checkerProps, {
shape: (0, import_utils.makeStringProp)("round"),
shape: String,
bindGroup: import_utils.truthProp

@@ -46,0 +46,0 @@ });

import { type PropType } from 'vue';
import { type Numeric } from '../utils';
import type { RadioShape } from '../radio';
export type CheckerShape = 'square' | 'round';

@@ -8,8 +9,9 @@ export type CheckerDirection = 'horizontal' | 'vertical';

props: {
max?: Numeric;
shape?: CheckerShape | RadioShape;
disabled?: boolean;
iconSize?: Numeric;
direction?: CheckerDirection;
modelValue?: unknown | unknown[];
checkedColor?: string;
modelValue?: unknown | unknown[];
max?: Numeric;
};

@@ -40,6 +42,3 @@ };

role: StringConstructor;
shape: {
type: PropType<"dot" | "round" | "square">;
default: "dot" | "round" | "square";
};
shape: PropType<"dot" | "round" | "square">;
parent: PropType<CheckerParent | null>;

@@ -65,6 +64,3 @@ checked: BooleanConstructor;

role: StringConstructor;
shape: {
type: PropType<"dot" | "round" | "square">;
default: "dot" | "round" | "square";
};
shape: PropType<"dot" | "round" | "square">;
parent: PropType<CheckerParent | null>;

@@ -82,3 +78,2 @@ checked: BooleanConstructor;

disabled: boolean;
shape: "dot" | "round" | "square";
labelDisabled: boolean;

@@ -85,0 +80,0 @@ bindGroup: boolean;

@@ -41,3 +41,3 @@ var __defProp = Object.defineProperty;

role: String,
shape: (0, import_utils.makeStringProp)("round"),
shape: String,
parent: Object,

@@ -81,2 +81,5 @@ checked: Boolean,

});
const shape = (0, import_vue2.computed)(() => {
return props.shape || getParentProp("shape") || "round";
});
const onClick = (event) => {

@@ -97,3 +100,2 @@ const {

bem,
shape,
checked

@@ -104,7 +106,7 @@ } = props;

"ref": iconRef,
"class": bem("icon", [shape, {
"class": bem("icon", [shape.value, {
disabled: disabled.value,
checked
}]),
"style": shape !== "dot" ? {
"style": shape.value !== "dot" ? {
fontSize: (0, import_utils.addUnit)(iconSize)

@@ -119,3 +121,3 @@ } : {

disabled: disabled.value
}) : shape !== "dot" ? (0, import_vue.createVNode)(import_icon.Icon, {
}) : shape.value !== "dot" ? (0, import_vue.createVNode)(import_icon.Icon, {
"name": "success",

@@ -122,0 +124,0 @@ "style": iconStyle.value

@@ -10,6 +10,3 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<{

} & {
shape: {
type: import("vue").PropType<import("./Checker").CheckerShape>;
default: import("./Checker").CheckerShape;
};
shape: import("vue").PropType<import("./Checker").CheckerShape>;
bindGroup: {

@@ -28,6 +25,3 @@ type: BooleanConstructor;

} & {
shape: {
type: import("vue").PropType<import("./Checker").CheckerShape>;
default: import("./Checker").CheckerShape;
};
shape: import("vue").PropType<import("./Checker").CheckerShape>;
bindGroup: {

@@ -42,3 +36,2 @@ type: BooleanConstructor;

disabled: boolean;
shape: import("./Checker").CheckerShape;
labelDisabled: boolean;

@@ -45,0 +38,0 @@ bindGroup: boolean;

@@ -61,4 +61,4 @@ export declare const FloatingBubble: import("../utils").WithInstall<import("vue").DefineComponent<{

interface GlobalComponents {
FloatingBubble: typeof FloatingBubble;
VanFloatingBubble: typeof FloatingBubble;
}
}

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.2";
export const version: "4.6.3";

@@ -227,3 +227,3 @@ var __defProp = Object.defineProperty;

__reExport(stdin_exports, require("./watermark"), module.exports);
const version = "4.6.2";
const version = "4.6.3";
function install(app) {

@@ -230,0 +230,0 @@ const components = [

export declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
shape: import("vue").PropType<import("..").RadioShape>;
disabled: BooleanConstructor;

@@ -8,2 +9,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
shape: import("vue").PropType<import("..").RadioShape>;
disabled: BooleanConstructor;

@@ -10,0 +12,0 @@ iconSize: (NumberConstructor | StringConstructor)[];

import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
import type { RadioShape } from '../radio';
import type { CheckerDirection } from '../checkbox/Checker';
export type RadioGroupDirection = CheckerDirection;
export declare const radioGroupProps: {
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -18,2 +20,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

declare const _default: import("vue").DefineComponent<{
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -25,2 +28,3 @@ iconSize: (NumberConstructor | StringConstructor)[];

}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
shape: PropType<RadioShape>;
disabled: BooleanConstructor;

@@ -27,0 +31,0 @@ iconSize: (NumberConstructor | StringConstructor)[];

@@ -31,2 +31,3 @@ var __defProp = Object.defineProperty;

const radioGroupProps = {
shape: String,
disabled: Boolean,

@@ -33,0 +34,0 @@ iconSize: import_utils.numericProp,

@@ -10,6 +10,3 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{

} & {
shape: {
type: import("vue").PropType<import("./Radio").RadioShape>;
default: import("./Radio").RadioShape;
};
shape: import("vue").PropType<import("./Radio").RadioShape>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{

@@ -24,6 +21,3 @@ name: import("vue").PropType<unknown>;

} & {
shape: {
type: import("vue").PropType<import("./Radio").RadioShape>;
default: import("./Radio").RadioShape;
};
shape: import("vue").PropType<import("./Radio").RadioShape>;
}>> & {

@@ -33,3 +27,2 @@ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;

disabled: boolean;
shape: import("./Radio").RadioShape;
labelDisabled: boolean;

@@ -36,0 +29,0 @@ }, {}>>;

@@ -1,17 +0,14 @@

import { type ExtractPropTypes } from 'vue';
import { type PropType, type ExtractPropTypes } from 'vue';
import { type CheckerShape, type CheckerLabelPosition } from '../checkbox/Checker';
export type RadioShape = CheckerShape | 'dot';
export declare const radioProps: {
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
};

@@ -21,27 +18,21 @@ export type RadioLabelPosition = CheckerLabelPosition;

declare const _default: import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
name: import("vue").PropType<unknown>;
name: PropType<unknown>;
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
modelValue: PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelPosition: PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
} & {
shape: {
type: import("vue").PropType<RadioShape>;
default: RadioShape;
};
shape: PropType<RadioShape>;
}>> & {

@@ -51,5 +42,4 @@ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;

disabled: boolean;
shape: RadioShape;
labelDisabled: boolean;
}, {}>;
export default _default;

@@ -41,3 +41,3 @@ var __create = Object.create;

const radioProps = (0, import_utils.extend)({}, import_Checker.checkerProps, {
shape: (0, import_utils.makeStringProp)("round")
shape: String
});

@@ -44,0 +44,0 @@ const [name, bem] = (0, import_utils.createNamespace)("radio");

@@ -92,4 +92,4 @@ var __defProp = Object.defineProperty;

} = props;
parsedClass.value = titleClass ? (0, import_vue2.normalizeClass)(titleClass) : "";
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? (0, import_shared.stringifyStyle)((0, import_vue2.normalizeStyle)(titleStyle)) : titleStyle;
parsedClass.value = titleClass ? (0, import_shared.normalizeClass)(titleClass) : "";
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? (0, import_shared.stringifyStyle)((0, import_shared.normalizeStyle)(titleStyle)) : titleStyle;
});

@@ -96,0 +96,0 @@ const renderTitle = (onClickTab) => (0, import_vue.createVNode)(import_TabTitle.TabTitle, (0, import_vue.mergeProps)({

@@ -12,2 +12,10 @@ import type { ComponentPublicInstance } from 'vue';

export type ComponentInstance = ComponentPublicInstance<{}, any>;
export declare const isObject: (val: unknown) => val is Record<any, any>;
export declare const isDef: <T>(val: T) => val is NonNullable<T>;
export declare const isFunction: (val: unknown) => val is Function;
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
export declare const isDate: (val: unknown) => val is Date;
export declare function isMobile(value: string): boolean;
export declare const isNumeric: (val: Numeric) => val is string;
export declare const isIOS: () => boolean;
export declare function get(object: any, path: string): any;

@@ -14,0 +22,0 @@ export type Writeable<T> = {

@@ -23,2 +23,10 @@ var __defProp = Object.defineProperty;

inBrowser: () => inBrowser,
isDate: () => isDate,
isDef: () => isDef,
isFunction: () => isFunction,
isIOS: () => isIOS,
isMobile: () => isMobile,
isNumeric: () => isNumeric,
isObject: () => isObject,
isPromise: () => isPromise,
isSameValue: () => isSameValue,

@@ -30,3 +38,2 @@ noop: () => noop,

module.exports = __toCommonJS(stdin_exports);
var import_validate = require("./validate");
function noop() {

@@ -36,2 +43,13 @@ }

const inBrowser = typeof window !== "undefined";
const isObject = (val) => val !== null && typeof val === "object";
const isDef = (val) => val !== void 0 && val !== null;
const isFunction = (val) => typeof val === "function";
const isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch);
const isDate = (val) => Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
function isMobile(value) {
value = value.replace(/[^-|\d]/g, "");
return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
}
const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
const isIOS = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
function get(object, path) {

@@ -42,3 +60,3 @@ const keys = path.split(".");

var _a;
result = (0, import_validate.isObject)(result) ? (_a = result[key]) != null ? _a : "" : "";
result = isObject(result) ? (_a = result[key]) != null ? _a : "" : "";
});

@@ -48,10 +66,13 @@ return result;

function pick(obj, keys, ignoreUndefined) {
return keys.reduce((ret, key) => {
if (!ignoreUndefined || obj[key] !== void 0) {
ret[key] = obj[key];
}
return ret;
}, {});
return keys.reduce(
(ret, key) => {
if (!ignoreUndefined || obj[key] !== void 0) {
ret[key] = obj[key];
}
return ret;
},
{}
);
}
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
const toArray = (item) => Array.isArray(item) ? item : [item];

@@ -37,3 +37,2 @@ var __create = Object.create;

var import_format = require("./format");
var import_validate = require("./validate");
var import_locale = __toESM(require("../locale"));

@@ -45,3 +44,3 @@ function createTranslate(name) {

const message = (0, import_basic.get)(messages, prefix + path) || (0, import_basic.get)(messages, path);
return (0, import_validate.isFunction)(message) ? message(...args) : message;
return (0, import_basic.isFunction)(message) ? message(...args) : message;
};

@@ -48,0 +47,0 @@ }

@@ -23,10 +23,10 @@ var __defProp = Object.defineProperty;

module.exports = __toCommonJS(stdin_exports);
var import_validate = require("./validate");
var import_basic = require("./basic");
const { hasOwnProperty } = Object.prototype;
function assignKey(to, from, key) {
const val = from[key];
if (!(0, import_validate.isDef)(val)) {
if (!(0, import_basic.isDef)(val)) {
return;
}
if (!hasOwnProperty.call(to, key) || !(0, import_validate.isObject)(val)) {
if (!hasOwnProperty.call(to, key) || !(0, import_basic.isObject)(val)) {
to[key] = val;

@@ -33,0 +33,0 @@ } else {

@@ -23,5 +23,5 @@ var __defProp = Object.defineProperty;

module.exports = __toCommonJS(stdin_exports);
var import_validate = require("./validate");
var import_basic = require("./basic");
function deepClone(obj) {
if (!(0, import_validate.isDef)(obj)) {
if (!(0, import_basic.isDef)(obj)) {
return obj;

@@ -32,3 +32,3 @@ }

}
if ((0, import_validate.isObject)(obj)) {
if ((0, import_basic.isObject)(obj)) {
const to = {};

@@ -35,0 +35,0 @@ Object.keys(obj).forEach((key) => {

@@ -35,3 +35,3 @@ var __defProp = Object.defineProperty;

var import_vue = require("vue");
var import_validate = require("./validate");
var import_basic = require("./basic");
function getScrollTop(el) {

@@ -62,3 +62,3 @@ const top = "scrollTop" in el ? el.scrollTop : el.pageYOffset;

}
const isIOS = (0, import_validate.isIOS)();
const isIOS = (0, import_basic.isIOS)();
function resetScroll() {

@@ -65,0 +65,0 @@ if (isIOS) {

@@ -34,6 +34,6 @@ var __defProp = Object.defineProperty;

var import_dom = require("./dom");
var import_validate = require("./validate");
var import_basic2 = require("./basic");
function addUnit(value) {
if ((0, import_validate.isDef)(value)) {
return (0, import_validate.isNumeric)(value) ? `${value}px` : String(value);
if ((0, import_basic2.isDef)(value)) {
return (0, import_basic2.isNumeric)(value) ? `${value}px` : String(value);
}

@@ -43,3 +43,3 @@ return void 0;

function getSizeStyle(originSize) {
if ((0, import_validate.isDef)(originSize)) {
if ((0, import_basic2.isDef)(originSize)) {
if (Array.isArray(originSize)) {

@@ -46,0 +46,0 @@ return {

@@ -7,5 +7,4 @@ export * from './basic';

export * from './constant';
export * from './validate';
export * from './interceptor';
export * from './with-install';
export * from './closest';

@@ -23,5 +23,4 @@ var __defProp = Object.defineProperty;

__reExport(stdin_exports, require("./constant"), module.exports);
__reExport(stdin_exports, require("./validate"), module.exports);
__reExport(stdin_exports, require("./interceptor"), module.exports);
__reExport(stdin_exports, require("./with-install"), module.exports);
__reExport(stdin_exports, require("./closest"), module.exports);

@@ -24,3 +24,2 @@ var __defProp = Object.defineProperty;

var import_basic = require("./basic");
var import_validate = require("./validate");
function callInterceptor(interceptor, {

@@ -33,3 +32,3 @@ args = [],

const returnVal = interceptor.apply(null, args);
if ((0, import_validate.isPromise)(returnVal)) {
if ((0, import_basic.isPromise)(returnVal)) {
returnVal.then((value) => {

@@ -36,0 +35,0 @@ if (value) {

{
"name": "vant",
"version": "4.6.2",
"version": "4.6.3",
"description": "Mobile UI Components built on Vue",

@@ -5,0 +5,0 @@ "main": "lib/vant.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc