mpzj-sell-lib
v0.1.29
Published
> 基于vue2.7版本 和 element-ui
Downloads
65
Readme
使用说明
基于vue2.7版本 和 element-ui
关于打包
尽量使用webpack进行打包,可减少打包体积 不再使用dist中打包好的结果做为引入目标,直接使用
/components/lib
目录,此处不再打包,由最终项目中的webpack自动打包
添加指令 clickoutside
import Clickoutside from 'element-ui/lib/utils/clickoutside';
Vue.directive('clickoutside', Clickoutside);
引入样式
import 'mpzj-sell-lib/dist/css/index.css'; // 废弃,使用下一种
引入样式(应用主题颜色,需使用scss)
// 后续补充其它主题色
$--color-primary: #428DFA;
$--color-danger: #ff3769;
@import '~mpzj-sell-lib/components/css/index.scss';
两种引入样式方式2选1 (建议第二种)
组件列表:
EpCascader
依赖el-popover、el-button、el-scrollbar
Button
点击后取消聚焦状态
Pager
分页组件
CommonDialogComp
公共弹窗组件
LRWidthDragAutoChangeComp
左右可拖动组件
FormulaPanelElementSelectDialog
属性选择弹窗组件
ResultFormulaTableComp
条件数据表格 提供2个方法:setup 和 remove
ContionCommonComp
条件设置组件
ADAreaDialogSelector
产品、地址弹窗选择组件
PropertyClass
导出的属性设置相关类
SearchInputComp
搜索关键词组件
其余组件后面慢慢补充
组件参数
参数后面补充(或添加d.ts文件)
关于依赖
默认去掉全部依赖库,放置到package copy.json文件中,需要用时修改文件名称然后进行安装(不再使用打包好的结果做为引入目标,不再需要打包)