Initial commit: GamePortrait 竖屏版 - 深色豪华主题

This commit is contained in:
li
2026-01-16 17:47:53 +08:00
commit 40976e4b45
26611 changed files with 2843638 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
import { type ExtractPropTypes } from 'vue';
import { CheckerShape, CheckerLabelPosition } from '../checkbox/Checker';
export declare const radioProps: {
name: import("vue").PropType<unknown>;
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
};
export type RadioShape = CheckerShape;
export type RadioLabelPosition = CheckerLabelPosition;
export type RadioProps = ExtractPropTypes<typeof radioProps>;
declare const _default: import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
}, () => 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>;
shape: {
type: import("vue").PropType<CheckerShape>;
default: CheckerShape;
};
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
}>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
disabled: boolean;
shape: CheckerShape;
labelDisabled: boolean;
}>;
export default _default;
+43
View File
@@ -0,0 +1,43 @@
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
import { defineComponent } from "vue";
import { pick, createNamespace } from "../utils/index.mjs";
import { RADIO_KEY } from "../radio-group/RadioGroup.mjs";
import { useParent } from "@vant/use";
import Checker, { checkerProps } from "../checkbox/Checker.mjs";
const radioProps = checkerProps;
const [name, bem] = createNamespace("radio");
var stdin_default = defineComponent({
name,
props: checkerProps,
emits: ["update:modelValue"],
setup(props, {
emit,
slots
}) {
const {
parent
} = useParent(RADIO_KEY);
const checked = () => {
const value = parent ? parent.props.modelValue : props.modelValue;
return value === props.name;
};
const toggle = () => {
if (parent) {
parent.updateValue(props.name);
} else {
emit("update:modelValue", props.name);
}
};
return () => _createVNode(Checker, _mergeProps({
"bem": bem,
"role": "radio",
"parent": parent,
"checked": checked(),
"onToggle": toggle
}, props), pick(slots, ["default", "icon"]));
}
});
export {
stdin_default as default,
radioProps
};
+1
View File
@@ -0,0 +1 @@
:root{--van-radio-size: 20px;--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}
+40
View File
@@ -0,0 +1,40 @@
export declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{
name: import("vue").PropType<unknown>;
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("../checkbox/Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
}, () => 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<{
name: import("vue").PropType<unknown>;
shape: {
type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
default: import("../checkbox/Checker").CheckerShape;
};
disabled: BooleanConstructor;
iconSize: (NumberConstructor | StringConstructor)[];
modelValue: import("vue").PropType<unknown>;
checkedColor: StringConstructor;
labelPosition: import("vue").PropType<import("../checkbox/Checker").CheckerLabelPosition>;
labelDisabled: BooleanConstructor;
}>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
disabled: boolean;
shape: import("../checkbox/Checker").CheckerShape;
labelDisabled: boolean;
}>>;
export default Radio;
export { radioProps } from './Radio';
export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
export type { RadioThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanRadio: typeof Radio;
}
}
+10
View File
@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _Radio from "./Radio.mjs";
const Radio = withInstall(_Radio);
var stdin_default = Radio;
import { radioProps } from "./Radio.mjs";
export {
Radio,
stdin_default as default,
radioProps
};
+1
View File
@@ -0,0 +1 @@
export {};
+6
View File
@@ -0,0 +1,6 @@
import "../../style/base.css";
import "../../badge/index.css";
import "../../icon/index.css";
import "../../radio-group/index.css";
import "../../checkbox/index.css";
import "../index.css";
+11
View File
@@ -0,0 +1,11 @@
export type RadioThemeVars = {
radioSize?: string;
radioBorderColor?: string;
radioDuration?: string;
radioLabelMargin?: string;
radioLabelColor?: string;
radioCheckedIconColor?: string;
radioDisabledIconColor?: string;
radioDisabledLabelColor?: string;
radioDisabledBackground?: string;
};
View File