feat: 使用新的应用名称和新的图标
This commit is contained in:
parent
84275806d9
commit
85bb507f98
16
README.md
16
README.md
@ -1,12 +1,3 @@
|
||||
# Tauri + Vue 3
|
||||
|
||||
This template should help get you started developing with Tauri + Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
||||
|
||||
|
||||
# tauri-markdown
|
||||
|
||||
使用 tauri 开发一款 Markdown Editor
|
||||
@ -62,3 +53,10 @@ This template should help get you started developing with Tauri + Vue 3 in Vite.
|
||||
1. MarkdownEditor 加载完成后,重新自适应高度
|
||||
2. 监听 Split 的数值变化,调整 MarkdownEditor 的宽度
|
||||
3. 监听窗口 resize 事件,调整 MarkdownEditor 的高度和宽度
|
||||
|
||||
## 调试和打包应用
|
||||
|
||||
- 开发调试:`npm run tauri dev`
|
||||
- 打包应用:`npm run tauri build`
|
||||
|
||||
> 通过执行 `npm run tauri icon app-icon.png` 可以使用 app-icon.png 生成新的应用图标。
|
||||
|
||||
BIN
src-tauri/icons/new-app-icon.png
Normal file
BIN
src-tauri/icons/new-app-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 508 KiB |
@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "tauri-markdown",
|
||||
"productName": "markdown-editor",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.tauri-markdown.app",
|
||||
"identifier": "com.markdown-editor.app",
|
||||
"build": {
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"devUrl": "http://localhost:1420",
|
||||
@ -12,7 +12,7 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "tauri-markdown",
|
||||
"title": "markdown-editor",
|
||||
"width": 800,
|
||||
"height": 600
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ async function writeFileContent() {
|
||||
</template>
|
||||
<template #right>
|
||||
<div ref="splitRight" class="split-right">
|
||||
<MarkdownEditor ref="markdownRef" width="100%" height="100%" markdownCode="# hello tauri"
|
||||
<MarkdownEditor ref="markdownRef" width="100%" height="100%" markdownCode="# Hello Markdown"
|
||||
:imageUpload="true" :imageUploadURL="imageUploadURLOfEditor"
|
||||
:imageUploadURLChange="changeImageUploadURL" :onload="reloadEditorHeight"
|
||||
:onfullscreenExit="handleWindowResize" @update:markdownCode="writeFileContent" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user