赵匡胤 发表于 2021-10-16 20:45:17

DZ 拷贝 VUE 和 ElementUI 并在插件开发中调用

1. 找到拷贝 VUE 和 ElementUI 相关文件;

    VUE 的文件在我们刚才的安装目录:
    D:\d123\node_modules\vue\dist\
    文件仅有这一个 -> vue.global.js

    Element 在我们刚才的安装目录这:
    D:\d123\node_modules\element-plus\dist
    文件有两个 -> index.css 和 index.full.js
    D:\d123\node_modules\element-plus\dist\fonts
    里面的两个字体文件 element-icons.ttf 和 element-icons.woff

2. 拷贝到插件开发文件夹下;
   
    只要将文件拷贝进入CSS文件夹 , 建立如下结构然后准备调用即可;

   

   

3. 在文件中调用;

    <link rel="stylesheet" href="source/plugin/zgxsh_legend/template/css/element/index.css" />
<script src="source/plugin/zgxsh_legend/template/css/vue.global.js" charset="utf-8"></script>
<script src="source/plugin/zgxsh_legend/template/css/element/index.full.js" charset="utf-8"></script>

赵匡胤 发表于 2021-10-16 20:54:50

返回主教程

DiscuzX开发中VUE3+ElementUI安装攻略
http://www.zgxsh.com/forum.php?mod=viewthread&tid=71320
(出处: http://www.zgxsh.com/)
页: [1]
查看完整版本: DZ 拷贝 VUE 和 ElementUI 并在插件开发中调用