f-docx-editor 0.1.0 → 0.1.2

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 CHANGED
@@ -8,6 +8,41 @@
8
8
  npm install f-docx-editor
9
9
  ```
10
10
 
11
+ 项目结构
12
+
13
+ f-docx-editor/
14
+ ├── src/
15
+ │ ├── FDocxEditor.vue # 核心组件
16
+ │ ├── index.js # 组件导出入口
17
+ │ ├── App.vue # 开发测试用 App
18
+ │ └── main.js # 开发入口
19
+ ├── example/ # 示例代码
20
+ ├── scripts/
21
+ │ └── prepare-package.mjs # 打包脚本
22
+ ├── public/
23
+ │ └── index.html
24
+ ├── package.json
25
+ ├── vue.config.js
26
+ └── README.md
27
+
28
+ 使用方式
29
+
30
+ 开发测试
31
+
32
+ cd /Users/fang/Documents/f-docx-editor
33
+ npm install
34
+ npm run serve
35
+
36
+ 构建库
37
+
38
+ npm run build:lib
39
+
40
+ 发布到 npm
41
+
42
+ npm run build:lib
43
+ cd dist
44
+ npm publish --access public
45
+
11
46
  ```js
12
47
  import FDocxEditor from 'f-docx-editor'
13
48
  import 'f-docx-editor/FDocxEditor.css'