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
+29
View File
@@ -0,0 +1,29 @@
import { type ExtractPropTypes } from 'vue';
export declare const cellGroupProps: {
title: StringConstructor;
inset: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
};
export type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>;
declare const _default: import("vue").DefineComponent<{
title: StringConstructor;
inset: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
title: StringConstructor;
inset: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
}>>, {
border: boolean;
inset: boolean;
}>;
export default _default;
+44
View File
@@ -0,0 +1,44 @@
import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
import { defineComponent } from "vue";
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from "../utils/index.mjs";
const [name, bem] = createNamespace("cell-group");
const cellGroupProps = {
title: String,
inset: Boolean,
border: truthProp
};
var stdin_default = defineComponent({
name,
inheritAttrs: false,
props: cellGroupProps,
setup(props, {
slots,
attrs
}) {
const renderGroup = () => {
var _a;
return _createVNode("div", _mergeProps({
"class": [bem({
inset: props.inset
}), {
[BORDER_TOP_BOTTOM]: props.border && !props.inset
}]
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
};
const renderTitle = () => _createVNode("div", {
"class": bem("title", {
inset: props.inset
})
}, [slots.title ? slots.title() : props.title]);
return () => {
if (props.title || slots.title) {
return _createVNode(_Fragment, null, [renderTitle(), renderGroup()]);
}
return renderGroup();
};
}
});
export {
cellGroupProps,
stdin_default as default
};
+1
View File
@@ -0,0 +1 @@
:root{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
+27
View File
@@ -0,0 +1,27 @@
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
title: StringConstructor;
inset: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
title: StringConstructor;
inset: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
}>>, {
border: boolean;
inset: boolean;
}>>;
export default CellGroup;
export { cellGroupProps } from './CellGroup';
export type { CellGroupProps } from './CellGroup';
export type { CellGroupThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanCellGroup: typeof CellGroup;
}
}
+10
View File
@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _CellGroup from "./CellGroup.mjs";
const CellGroup = withInstall(_CellGroup);
var stdin_default = CellGroup;
import { cellGroupProps } from "./CellGroup.mjs";
export {
CellGroup,
cellGroupProps,
stdin_default as default
};
+1
View File
@@ -0,0 +1 @@
export {};
+2
View File
@@ -0,0 +1,2 @@
import "../../style/base.css";
import "../index.css";
+10
View File
@@ -0,0 +1,10 @@
export type CellGroupThemeVars = {
cellGroupBackground?: string;
cellGroupTitleColor?: string;
cellGroupTitlePadding?: string;
cellGroupTitleFontSize?: string;
cellGroupTitleLineHeight?: number | string;
cellGroupInsetPadding?: string;
cellGroupInsetRadius?: string;
cellGroupInsetTitlePadding?: string;
};
View File