UNPKG

@cmstops/pro-compo

Version:

[物料平台文档中心](https://arco.design/docs/material/guide)

39 lines (38 loc) 1.54 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); var vue = require("vue"); const rateOptions = vue.ref([ { label: "16:9", value: "16:9" }, { label: "4:3", value: "4:3" }, { label: "4:1", value: "4:1" }, { label: "3:4", value: "3:4" }, { label: "\u5176\u4ED6", value: "others" } ]); const keywordsSelection = vue.ref([ { name: "\u5168\u90E8\u7ED3\u679C", value: "" }, { name: "\u6807\u9898", value: "alias" }, { name: "\u624B\u52A8\u6807\u7B7E", value: "tags" }, { name: "\u4EBA\u8138", value: "ai_figure" }, { name: "\u573A\u666F", value: "ai_scenario" }, { name: "\u5B9E\u4F53(\u56FE\u50CF)", value: "ai_entity" }, { name: "Logo", value: "ai_logo" }, { name: "\u6587\u672C(OCR)", value: "ai_ocr_keywords" }, { name: "\u8BED\u97F3", value: "ai_speech_keywords" }, { name: "\u77E5\u8BC6\u56FE\u8C31", value: "ai_knowledge_graph" } ]); const timeFormat = vue.computed(() => { return (value) => { if (value === 0) return "--"; if (!value) return "--"; if (typeof value === "number" && String(value).length === 10) { value *= 1e3; } const date = new Date(value); return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`; }; }); exports.keywordsSelection = keywordsSelection; exports.rateOptions = rateOptions; exports.timeFormat = timeFormat;