const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../../../locales/index.js");
let antd = require("antd");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
//#region src/components/table/Actions/component/ExportImport/utils/file.ts
const getFileDateName = () => {
	return "-" + (0, dayjs.default)().format("YYYY-MM-DD-HH-mm-ss");
};
/**
* @Title: 复制内容
* @Describe:
* @Author: Wzw
*/
const copyText = (text) => {
	let input = document.createElement("input");
	input.setAttribute("value", text);
	document.body.appendChild(input);
	input.select();
	document.execCommand("copy");
	document.body.removeChild(input);
	antd.message.success(require_index.getText("table-action-export-import-table-success-copy"));
};
//#endregion
exports.copyText = copyText;
exports.getFileDateName = getFileDateName;
