image-scaling_tiaozai
v1.2.3
Published
Vue.js image scaling plug-in base on Element-UI framework
Downloads
3
Readme
Vue.js image scaling plug-in base on Element-UI framework
Installation
use npm : npm install image-scaling_tiaozai --save
prepare
1 install element-ui
npm install element-ui --save-dev
2 add element-ui to main.js or app.js
import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(ElementUI);
3 Usage
import Picture from "image-scaling_tiaozai";
<Picture :src="src"></Picture>
4 Attributes
| parameter | type | describe | Optional | default | |:--------: | :------: | :------: | :-----: | :----: | | src | String | 图片路径 | 必须 | --- | | msg | String | 组件说明 | 可选 | null | | showTip | Boolean |放大/缩小倍数是否显示| 可选| false|