first commit
This commit is contained in:
39
node_modules/vant/lib/radio-group/RadioGroup.d.ts
generated
vendored
Normal file
39
node_modules/vant/lib/radio-group/RadioGroup.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
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;
|
||||
iconSize: (NumberConstructor | StringConstructor)[];
|
||||
direction: PropType<RadioGroupDirection>;
|
||||
modelValue: PropType<unknown>;
|
||||
checkedColor: StringConstructor;
|
||||
};
|
||||
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
||||
export type RadioGroupProvide = {
|
||||
props: RadioGroupProps;
|
||||
updateValue: (value: unknown) => void;
|
||||
};
|
||||
export declare const RADIO_KEY: InjectionKey<RadioGroupProvide>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
shape: PropType<RadioShape>;
|
||||
disabled: BooleanConstructor;
|
||||
iconSize: (NumberConstructor | StringConstructor)[];
|
||||
direction: PropType<RadioGroupDirection>;
|
||||
modelValue: PropType<unknown>;
|
||||
checkedColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
shape: PropType<RadioShape>;
|
||||
disabled: BooleanConstructor;
|
||||
iconSize: (NumberConstructor | StringConstructor)[];
|
||||
direction: PropType<RadioGroupDirection>;
|
||||
modelValue: PropType<unknown>;
|
||||
checkedColor: StringConstructor;
|
||||
}>> & Readonly<{
|
||||
onChange?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
disabled: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
64
node_modules/vant/lib/radio-group/RadioGroup.js
generated
vendored
Normal file
64
node_modules/vant/lib/radio-group/RadioGroup.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name2 in all)
|
||||
__defProp(target, name2, { get: all[name2], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
RADIO_KEY: () => RADIO_KEY,
|
||||
default: () => stdin_default,
|
||||
radioGroupProps: () => radioGroupProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_use = require("@vant/use");
|
||||
const [name, bem] = (0, import_utils.createNamespace)("radio-group");
|
||||
const radioGroupProps = {
|
||||
shape: String,
|
||||
disabled: Boolean,
|
||||
iconSize: import_utils.numericProp,
|
||||
direction: String,
|
||||
modelValue: import_utils.unknownProp,
|
||||
checkedColor: String
|
||||
};
|
||||
const RADIO_KEY = Symbol(name);
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: radioGroupProps,
|
||||
emits: ["change", "update:modelValue"],
|
||||
setup(props, {
|
||||
emit,
|
||||
slots
|
||||
}) {
|
||||
const {
|
||||
linkChildren
|
||||
} = (0, import_use.useChildren)(RADIO_KEY);
|
||||
const updateValue = (value) => emit("update:modelValue", value);
|
||||
(0, import_vue.watch)(() => props.modelValue, (value) => emit("change", value));
|
||||
linkChildren({
|
||||
props,
|
||||
updateValue
|
||||
});
|
||||
(0, import_use.useCustomFieldValue)(() => props.modelValue);
|
||||
return () => {
|
||||
var _a;
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem([props.direction]),
|
||||
"role": "radiogroup"
|
||||
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
||||
};
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/radio-group/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/radio-group/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.van-radio-group--horizontal{display:flex;flex-wrap:wrap}
|
||||
28
node_modules/vant/lib/radio-group/index.d.ts
generated
vendored
Normal file
28
node_modules/vant/lib/radio-group/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
export declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
shape: import("vue").PropType<import("..").RadioShape>;
|
||||
disabled: BooleanConstructor;
|
||||
iconSize: (NumberConstructor | StringConstructor)[];
|
||||
direction: import("vue").PropType<import("./RadioGroup").RadioGroupDirection>;
|
||||
modelValue: import("vue").PropType<unknown>;
|
||||
checkedColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
shape: import("vue").PropType<import("..").RadioShape>;
|
||||
disabled: BooleanConstructor;
|
||||
iconSize: (NumberConstructor | StringConstructor)[];
|
||||
direction: import("vue").PropType<import("./RadioGroup").RadioGroupDirection>;
|
||||
modelValue: import("vue").PropType<unknown>;
|
||||
checkedColor: StringConstructor;
|
||||
}>> & Readonly<{
|
||||
onChange?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
disabled: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default RadioGroup;
|
||||
export { radioGroupProps } from './RadioGroup';
|
||||
export type { RadioGroupProps, RadioGroupDirection } from './RadioGroup';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanRadioGroup: typeof RadioGroup;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/radio-group/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/radio-group/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
RadioGroup: () => RadioGroup,
|
||||
default: () => stdin_default,
|
||||
radioGroupProps: () => import_RadioGroup2.radioGroupProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_RadioGroup = __toESM(require("./RadioGroup"));
|
||||
var import_RadioGroup2 = require("./RadioGroup");
|
||||
const RadioGroup = (0, import_utils.withInstall)(import_RadioGroup.default);
|
||||
var stdin_default = RadioGroup;
|
||||
1
node_modules/vant/lib/radio-group/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/radio-group/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
2
node_modules/vant/lib/radio-group/style/index.js
generated
vendored
Normal file
2
node_modules/vant/lib/radio-group/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
require("../../style/base.css");
|
||||
require("../index.css");
|
||||
Reference in New Issue
Block a user