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
+64
View File
@@ -0,0 +1,64 @@
import { type PropType, type ComputedRef, type InjectionKey, type ExtractPropTypes } from 'vue';
export type RowSpaces = {
left?: number;
right: number;
}[];
export type RowProvide = {
spaces: ComputedRef<RowSpaces>;
};
export declare const ROW_KEY: InjectionKey<RowProvide>;
export type RowAlign = 'top' | 'center' | 'bottom';
export type RowJustify = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
export declare const rowProps: {
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
wrap: {
type: BooleanConstructor;
default: true;
};
align: PropType<RowAlign>;
gutter: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
justify: PropType<RowJustify>;
};
export type RowProps = ExtractPropTypes<typeof rowProps>;
declare const _default: import("vue").DefineComponent<{
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
wrap: {
type: BooleanConstructor;
default: true;
};
align: PropType<RowAlign>;
gutter: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
justify: PropType<RowJustify>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
wrap: {
type: BooleanConstructor;
default: true;
};
align: PropType<RowAlign>;
gutter: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
justify: PropType<RowJustify>;
}>>, {
tag: keyof HTMLElementTagNameMap;
wrap: boolean;
gutter: string | number;
}>;
export default _default;
+92
View File
@@ -0,0 +1,92 @@
import { createVNode as _createVNode } from "vue";
import { computed, defineComponent } from "vue";
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
import { useChildren } from "@vant/use";
const [name, bem] = createNamespace("row");
const ROW_KEY = Symbol(name);
const rowProps = {
tag: makeStringProp("div"),
wrap: truthProp,
align: String,
gutter: makeNumericProp(0),
justify: String
};
var stdin_default = defineComponent({
name,
props: rowProps,
setup(props, {
slots
}) {
const {
children,
linkChildren
} = useChildren(ROW_KEY);
const groups = computed(() => {
const groups2 = [[]];
let totalSpan = 0;
children.forEach((child, index) => {
totalSpan += Number(child.span);
if (totalSpan > 24) {
groups2.push([index]);
totalSpan -= 24;
} else {
groups2[groups2.length - 1].push(index);
}
});
return groups2;
});
const spaces = computed(() => {
const gutter = Number(props.gutter);
const spaces2 = [];
if (!gutter) {
return spaces2;
}
groups.value.forEach((group) => {
const averagePadding = gutter * (group.length - 1) / group.length;
group.forEach((item, index) => {
if (index === 0) {
spaces2.push({
right: averagePadding
});
} else {
const left = gutter - spaces2[item - 1].right;
const right = averagePadding - left;
spaces2.push({
left,
right
});
}
});
});
return spaces2;
});
linkChildren({
spaces
});
return () => {
const {
tag,
wrap,
align,
justify
} = props;
return _createVNode(tag, {
"class": bem({
[`align-${align}`]: align,
[`justify-${justify}`]: justify,
nowrap: !wrap
})
}, {
default: () => {
var _a;
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
}
});
};
}
});
export {
ROW_KEY,
stdin_default as default,
rowProps
};
+1
View File
@@ -0,0 +1 @@
.van-row{display:flex;flex-wrap:wrap}.van-row--nowrap{flex-wrap:nowrap}.van-row--justify-center{justify-content:center}.van-row--justify-end{justify-content:flex-end}.van-row--justify-space-between{justify-content:space-between}.van-row--justify-space-around{justify-content:space-around}.van-row--align-center{align-items:center}.van-row--align-bottom{align-items:flex-end}
+43
View File
@@ -0,0 +1,43 @@
export declare const Row: import("../utils").WithInstall<import("vue").DefineComponent<{
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
wrap: {
type: BooleanConstructor;
default: true;
};
align: import("vue").PropType<import("./Row").RowAlign>;
gutter: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
justify: import("vue").PropType<import("./Row").RowJustify>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
wrap: {
type: BooleanConstructor;
default: true;
};
align: import("vue").PropType<import("./Row").RowAlign>;
gutter: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
justify: import("vue").PropType<import("./Row").RowJustify>;
}>>, {
tag: keyof HTMLElementTagNameMap;
wrap: boolean;
gutter: string | number;
}>>;
export default Row;
export { rowProps } from './Row';
export type { RowProps, RowAlign, RowJustify } from './Row';
declare module 'vue' {
interface GlobalComponents {
VanRow: typeof Row;
}
}
+10
View File
@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _Row from "./Row.mjs";
const Row = withInstall(_Row);
var stdin_default = Row;
import { rowProps } from "./Row.mjs";
export {
Row,
stdin_default as default,
rowProps
};
+1
View File
@@ -0,0 +1 @@
export {};
+2
View File
@@ -0,0 +1,2 @@
import "../../style/base.css";
import "../index.css";