{"version":3,"file":"time-ago.mjs","sources":["../../../../../../packages/components/time-ago/src/time-ago.ts"],"sourcesContent":["import { buildProps } from '@lit-element/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type TimeAgo from './time-ago.vue'\n\nexport const timeAgoProps = buildProps({\n  /**\n   * @description 时间\n   */\n  datetimes: {\n    type: [Array, String, Number] as PropType<\n      Array<number | string> | string | number\n    >,\n    default: () => Date.now(),\n  },\n  /**\n   * @description 更新时间的间隔（毫秒）\n   */\n  interval: {\n    type: Number as PropType<number>,\n    default: 10000, // 默认值为 10 秒\n  },\n} as const)\n\nexport type TimeAgoProps = ExtractPropTypes<typeof timeAgoProps>\nexport type TimeAgoPropsInstance = InstanceType<typeof TimeAgo>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;AACjC,IAAI,OAAO,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE;AAC7B,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC;;;;"}