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
+78
View File
@@ -0,0 +1,78 @@
import { type ExtractPropTypes } from 'vue';
import type { CouponInfo } from '../coupon';
export declare const couponCellProps: {
title: StringConstructor;
border: {
type: BooleanConstructor;
default: true;
};
editable: {
type: BooleanConstructor;
default: true;
};
coupons: {
type: import("vue").PropType<CouponInfo[]>;
default: () => never[];
};
currency: {
type: import("vue").PropType<string>;
default: string;
};
chosenCoupon: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
};
export type CouponCellProps = ExtractPropTypes<typeof couponCellProps>;
declare const _default: import("vue").DefineComponent<{
title: StringConstructor;
border: {
type: BooleanConstructor;
default: true;
};
editable: {
type: BooleanConstructor;
default: true;
};
coupons: {
type: import("vue").PropType<CouponInfo[]>;
default: () => never[];
};
currency: {
type: import("vue").PropType<string>;
default: string;
};
chosenCoupon: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
title: StringConstructor;
border: {
type: BooleanConstructor;
default: true;
};
editable: {
type: BooleanConstructor;
default: true;
};
coupons: {
type: import("vue").PropType<CouponInfo[]>;
default: () => never[];
};
currency: {
type: import("vue").PropType<string>;
default: string;
};
chosenCoupon: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
}>>, {
border: boolean;
currency: string;
editable: boolean;
coupons: CouponInfo[];
chosenCoupon: string | number;
}>;
export default _default;
+55
View File
@@ -0,0 +1,55 @@
import { createVNode as _createVNode } from "vue";
import { defineComponent } from "vue";
import { isDef, truthProp, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
import { Cell } from "../cell/index.mjs";
const [name, bem, t] = createNamespace("coupon-cell");
const couponCellProps = {
title: String,
border: truthProp,
editable: truthProp,
coupons: makeArrayProp(),
currency: makeStringProp("\xA5"),
chosenCoupon: makeNumericProp(-1)
};
function formatValue({
coupons,
chosenCoupon,
currency
}) {
const coupon = coupons[+chosenCoupon];
if (coupon) {
let value = 0;
if (isDef(coupon.value)) {
({
value
} = coupon);
} else if (isDef(coupon.denominations)) {
value = coupon.denominations;
}
return `-${currency} ${(value / 100).toFixed(2)}`;
}
return coupons.length === 0 ? t("noCoupon") : t("count", coupons.length);
}
var stdin_default = defineComponent({
name,
props: couponCellProps,
setup(props) {
return () => {
const selected = props.coupons[+props.chosenCoupon];
return _createVNode(Cell, {
"class": bem(),
"value": formatValue(props),
"title": props.title || t("title"),
"border": props.border,
"isLink": props.editable,
"valueClass": bem("value", {
selected
})
}, null);
};
}
});
export {
couponCellProps,
stdin_default as default
};
+1
View File
@@ -0,0 +1 @@
:root{--van-coupon-cell-selected-text-color: var(--van-text-color)}.van-coupon-cell__value--selected{color:var(--van-coupon-cell-selected-text-color)}
+60
View File
@@ -0,0 +1,60 @@
export declare const CouponCell: import("../utils").WithInstall<import("vue").DefineComponent<{
title: StringConstructor;
border: {
type: BooleanConstructor;
default: true;
};
editable: {
type: BooleanConstructor;
default: true;
};
coupons: {
type: import("vue").PropType<import("..").CouponInfo[]>;
default: () => never[];
};
currency: {
type: import("vue").PropType<string>;
default: string;
};
chosenCoupon: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
}, () => 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;
border: {
type: BooleanConstructor;
default: true;
};
editable: {
type: BooleanConstructor;
default: true;
};
coupons: {
type: import("vue").PropType<import("..").CouponInfo[]>;
default: () => never[];
};
currency: {
type: import("vue").PropType<string>;
default: string;
};
chosenCoupon: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
}>>, {
border: boolean;
currency: string;
editable: boolean;
coupons: import("..").CouponInfo[];
chosenCoupon: string | number;
}>>;
export default CouponCell;
export { couponCellProps } from './CouponCell';
export type { CouponCellProps } from './CouponCell';
export type { CouponCellThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanCouponCell: typeof CouponCell;
}
}
+10
View File
@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _CouponCell from "./CouponCell.mjs";
const CouponCell = withInstall(_CouponCell);
var stdin_default = CouponCell;
import { couponCellProps } from "./CouponCell.mjs";
export {
CouponCell,
couponCellProps,
stdin_default as default
};
+1
View File
@@ -0,0 +1 @@
export {};
+5
View File
@@ -0,0 +1,5 @@
import "../../style/base.css";
import "../../badge/index.css";
import "../../icon/index.css";
import "../../cell/index.css";
import "../index.css";
+3
View File
@@ -0,0 +1,3 @@
export type CouponCellThemeVars = {
couponCellSelectedTextColor?: string;
};
View File