children-scale
v1.4.53
Published
插件依赖element-ui、vue-awesome-swiper、pdfjs-dist,vue-awesome-swiper需要指定3.1.3版本,pdfjs-dist需要指定2.0.943 ```bash npm install element-ui npm install [email protected] npm install [email protected] npm install children-scale ``` # 引入 在 main.js 中写入以下内容: ```j
Downloads
563
Readme
安装
插件依赖element-ui、vue-awesome-swiper、pdfjs-dist,vue-awesome-swiper需要指定3.1.3版本,pdfjs-dist需要指定2.0.943
npm install element-ui
npm install [email protected]
npm install [email protected]
npm install children-scale
引入
在 main.js 中写入以下内容:
import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import ChildrenScale from 'children-scale'
Vue.use(ElementUI);
Vue.use(ChildrenScale)
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
使用
<template>
<div>
<SF007 :scaleData="sData" @submit="submit" @goBack="goBack" />
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
sData: {} // 量表数据
}
},
-
methods: {
// 评估按钮的回调
submit() {
console.log('submit');
},
// 关闭按钮的回调
goBack() {
console.log('goBack');
}
}
}
</script>