0.0.45 • Published 6 months ago
rk-component v0.0.45
rk-component
环境-node v12.22.0
一、使用方式
1、安装
npm install rk-component@latest -registry=http://172.16.10.210:4873/
2、在项目中的
main.js
文件中引入import RkComponent from 'rk-component'; import 'rk-component/lib/rk-component.css'; Vue.use(RkComponent);
3、组件中使用-举例
<rk-button :type="type" size="mini" @click="click" ></rk-button>
export default { data () { return { type: 'primary' } }, methods: { click: function () { console.log('cilck me!!!') } } };
二、主要的API
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
size | String | 按钮尺寸 | 'mini' |
type | String | 按钮类型 | 'primary' |
click | Function | 点击事件 |
##npm库(http://172.16.10.210:4873/)