import Duration from "../../../src/core/Duration"; import { StoryObj } from "@storybook/react"; import React from "react"; /** * * Duration 组件 * * 用于展示持续时间(毫秒),支持多个时间单位的组合展示 * * 提供标准、缩写和自定义空值展示等功能 * * 继承自基础的 Units 系列组件 */ declare const meta: { title: string; component: React.FC; parameters: { docs: { description: { component: string; }; }; }; tags: string[]; }; export default meta; type Story = StoryObj; /** * 基础持续时间展示 * 展示最基本的持续时间,默认展示最多 2 个单位 */ export declare const Basic: Story; /** * 多单位展示 * 展示多个时间单位,如:1天 1小时 1分钟 */ export declare const MultipleUnits: Story; /** * 缩写形式展示 * 当需要节省空间时,可以使用缩写形式展示持续时间 */ export declare const Abbreviated: Story; /** * 指定最小单位 * 可以指定最小展示单位,小于该单位的时间会被忽略 */ export declare const WithMinUnit: Story; /** * 单单位展示 * 只展示一个时间单位 */ export declare const SingleUnit: Story; /** * 大数值展示 * 展示较大的持续时间,如:1年 1个月 */ export declare const LargeValue: Story; /** * 自定义空值展示 * 当没有有效值时的自定义展示 */ export declare const CustomEmpty: Story; /** * 零值展示 * 展示零值的情况 */ export declare const ZeroValue: Story; /** * 零值不带单位 * 当值为0时,可以选择不显示单位 */ export declare const ZeroWithoutUnit: Story; /** * 自定义样式 * 可以通过自定义类名来调整展示样式 */ export declare const CustomStyle: Story; /** * 自定义渲染 * 使用 contentRender 自定义渲染方式 */ export declare const CustomRender: Story; /** * 自定义渲染 - 简洁格式 * 使用自定义渲染函数展示更简洁的格式 */ export declare const CustomRenderCompact: Story; /** * 复杂场景组合 * 展示多个配置项的组合使用 */ export declare const Complex: Story;