ai-word-editor 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-word-editor.css +1 -1
- package/dist/index.js +1302 -1302
- package/package.json +1 -1
- package/src/App.vue +7 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
|
|
138
138
|
<script setup>
|
|
139
139
|
import { ref, onMounted, onUnmounted, watch, createApp, h } from 'vue'
|
|
140
|
-
import
|
|
140
|
+
import * as FileSaverNS from 'file-saver'
|
|
141
141
|
import CommentPanel from './components/CommentPanel.vue'
|
|
142
142
|
import CommentAddDialog from './components/CommentAddDialog.vue'
|
|
143
143
|
import { CommentMark } from './extensions/CommentMark.js'
|
|
@@ -167,6 +167,12 @@ const props = defineProps({
|
|
|
167
167
|
},
|
|
168
168
|
})
|
|
169
169
|
|
|
170
|
+
// 兼容 file-saver 在 ESM/UMD 下导出差异(此处为纯 JS,不使用 TypeScript 断言)
|
|
171
|
+
const saveAs =
|
|
172
|
+
FileSaverNS.saveAs ||
|
|
173
|
+
FileSaverNS.default ||
|
|
174
|
+
FileSaverNS
|
|
175
|
+
|
|
170
176
|
// ——— 文档标题与保存状态(单文档模式) ———
|
|
171
177
|
const currentDocTitle = ref('')
|
|
172
178
|
const saving = ref(false)
|