1.3.1 • Published 5 months ago
children-scale v1.3.1
安装
插件依赖element-ui、vue-awesome-swiper、pdfjs-dist,vue-awesome-swiper需要指定3.1.3版本,pdfjs-dist需要指定2.0.943
npm install element-ui
npm install vue-awesome-swiper@3.1.3
npm install pdfjs-dist@2.0.943
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>
1.3.1
5 months ago
1.3.0
6 months ago
1.2.9
6 months ago
1.2.8
7 months ago
1.2.7
7 months ago
1.2.6
7 months ago
1.2.5
7 months ago
1.2.4
7 months ago
1.2.3
7 months ago
1.2.2
7 months ago
1.2.1
8 months ago
1.1.8
8 months ago
1.1.7
8 months ago
1.1.6
8 months ago
1.1.5
8 months ago
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.1
8 months ago
1.1.0
8 months ago
1.0.9
8 months ago
1.0.8
8 months ago
1.0.7
8 months ago
1.0.6
9 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago