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;
+74
View File
@@ -0,0 +1,74 @@
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, {
couponCellProps: () => couponCellProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_vue2 = require("vue");
var import_utils = require("../utils");
var import_cell = require("../cell");
const [name, bem, t] = (0, import_utils.createNamespace)("coupon-cell");
const couponCellProps = {
title: String,
border: import_utils.truthProp,
editable: import_utils.truthProp,
coupons: (0, import_utils.makeArrayProp)(),
currency: (0, import_utils.makeStringProp)("\xA5"),
chosenCoupon: (0, import_utils.makeNumericProp)(-1)
};
function formatValue({
coupons,
chosenCoupon,
currency
}) {
const coupon = coupons[+chosenCoupon];
if (coupon) {
let value = 0;
if ((0, import_utils.isDef)(coupon.value)) {
({
value
} = coupon);
} else if ((0, import_utils.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 = (0, import_vue2.defineComponent)({
name,
props: couponCellProps,
setup(props) {
return () => {
const selected = props.coupons[+props.chosenCoupon];
return (0, import_vue.createVNode)(import_cell.Cell, {
"class": bem(),
"value": formatValue(props),
"title": props.title || t("title"),
"border": props.border,
"isLink": props.editable,
"valueClass": bem("value", {
selected
})
}, null);
};
}
});
+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;
}
}
+39
View 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, {
CouponCell: () => CouponCell,
couponCellProps: () => import_CouponCell2.couponCellProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_CouponCell = __toESM(require("./CouponCell"));
var import_CouponCell2 = require("./CouponCell");
const CouponCell = (0, import_utils.withInstall)(import_CouponCell.default);
var stdin_default = CouponCell;
+1
View File
@@ -0,0 +1 @@
export {};
+5
View File
@@ -0,0 +1,5 @@
require("../../style/base.css");
require("../../badge/index.css");
require("../../icon/index.css");
require("../../cell/index.css");
require("../index.css");
+3
View File
@@ -0,0 +1,3 @@
export type CouponCellThemeVars = {
couponCellSelectedTextColor?: string;
};
+15
View File
@@ -0,0 +1,15 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
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 = {};
module.exports = __toCommonJS(stdin_exports);