azs-doc-editor 1.0.1 → 1.0.3
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/README.md +26 -3
- package/dist/azs-doc-editor.es.js +1131 -1122
- package/dist/azs-doc-editor.umd.js +16 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,26 @@
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install
|
|
16
|
+
npm install azs-doc-editor
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 重要:样式导入
|
|
20
|
+
|
|
21
|
+
**必须在你的项目中导入以下样式,否则编辑器的按钮和图标将不显示:**
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
// main.ts 或 main.js
|
|
25
|
+
import 'element-plus/dist/index.css'
|
|
26
|
+
import 'remixicon/fonts/remixicon.css'
|
|
27
|
+
import 'azs-doc-editor/style.css'
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
或者在你的 HTML 中引入:
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<link rel="stylesheet" href="node_modules/element-plus/dist/index.css">
|
|
34
|
+
<link rel="stylesheet" href="node_modules/remixicon/fonts/remixicon.css">
|
|
35
|
+
<link rel="stylesheet" href="node_modules/azs-doc-editor/dist/style.css">
|
|
17
36
|
```
|
|
18
37
|
|
|
19
38
|
## 前置要求
|
|
@@ -36,8 +55,12 @@ npm install vue-document-editor
|
|
|
36
55
|
|
|
37
56
|
```typescript
|
|
38
57
|
import { createApp } from 'vue'
|
|
39
|
-
import DocumentConverter from '
|
|
40
|
-
|
|
58
|
+
import DocumentConverter from 'azs-doc-editor'
|
|
59
|
+
|
|
60
|
+
// 必须导入这些样式
|
|
61
|
+
import 'element-plus/dist/index.css'
|
|
62
|
+
import 'remixicon/fonts/remixicon.css'
|
|
63
|
+
import 'azs-doc-editor/style.css'
|
|
41
64
|
|
|
42
65
|
const app = createApp(App)
|
|
43
66
|
app.use(DocumentConverter)
|