mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-11 17:32:50 +00:00
feat
This commit is contained in:
parent
2a66dff0e0
commit
d2d056abd5
@ -86,6 +86,13 @@ export default function CodeEditor() {
|
|||||||
saveAs(file);
|
saveAs(file);
|
||||||
}, [htmlContent]);
|
}, [htmlContent]);
|
||||||
|
|
||||||
|
const downloadcss = useCallback(() => {
|
||||||
|
const file = new File([htmlContent], `${Date.now()}.html`, {
|
||||||
|
type: "text/css;charset=utf-8",
|
||||||
|
});
|
||||||
|
saveAs(file);
|
||||||
|
}, [htmlContent]);
|
||||||
|
|
||||||
// 快捷键保存
|
// 快捷键保存
|
||||||
useHotkeys(
|
useHotkeys(
|
||||||
"ctrl+s",
|
"ctrl+s",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user