1.2.5 • Published 5 years ago
ym-components v1.2.5
example
example
Build Setup
# install dependencies
npm install ym-components
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
使用
# Button组件使用 type可使用primary、warning...
<Button type="primary" buttonText="点我" @getDialog="getDialog"></Button>
# $dialog方法使用 当type为input时可输入
this.$dialog({
title: '标题',
text: '内容',
showCancelBtn: false,
confirmText: '确认',
confirm () {
}
})
# $loading方法使用
this.$loading.show({ tip: '正在加载中' })
this.$loading.hide()
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).