jvs-draw 1.0.7 → 1.0.9
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 +12 -2
- package/dist/jvs-draw.css +1 -1
- package/dist/jvs-draw.es.js +4390 -4320
- package/dist/jvs-draw.umd.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,12 +36,12 @@ import App from './App.vue';
|
|
|
36
36
|
import ElementPlus from 'element-plus';
|
|
37
37
|
import 'element-plus/dist/index.css';
|
|
38
38
|
|
|
39
|
-
//
|
|
39
|
+
// 引入相关外部依赖样式(图标和颜色选择器等)
|
|
40
40
|
import 'remixicon/fonts/remixicon.css';
|
|
41
41
|
import jvsPickerColorV3 from 'jvs-picker-color-v3';
|
|
42
42
|
import 'jvs-picker-color-v3/lib/jvs-picker-color-v3.css';
|
|
43
43
|
|
|
44
|
-
// 引入 jvs-draw
|
|
44
|
+
// 引入 jvs-draw 的核心样式和自建字体库 CSS
|
|
45
45
|
import 'jvs-draw/jvs-draw.css';
|
|
46
46
|
|
|
47
47
|
const app = createApp(App);
|
|
@@ -53,6 +53,16 @@ app.use(jvsPickerColorV3);
|
|
|
53
53
|
app.mount('#app');
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
> [!IMPORTANT]
|
|
57
|
+
> **关于自定义 SVG 图标库导入说明:**
|
|
58
|
+
>
|
|
59
|
+
> 组件包默认已将 CSS 字体 (`iconfont.css`) 打包到 `jvs-draw.css` 中。但如果你项目中使用了需要 `SVG` 多色支持的特性 (如内置的高级图形菜单图标),你需要引入对应的 `iconfont.js`。
|
|
60
|
+
> 组件发行包 (dist) 内部包含了这些文件,你需要手动在你的项目的 `index.html` 中引入这两个脚本,或者将它们放到你项目的 `public` 目录下:
|
|
61
|
+
> ```html
|
|
62
|
+
> <script src="/[你的静态目录]/icon-fonts/iconfont.js"></script>
|
|
63
|
+
> <script src="/[你的静态目录]/public-fonts/iconfont.js"></script>
|
|
64
|
+
> ```
|
|
65
|
+
|
|
56
66
|
### 2. 作为全局组件使用 (可选)
|
|
57
67
|
|
|
58
68
|
您可以在 `main.ts` 中全局注册它:
|