4.3.2 • Published 5 years ago
tooth-selector v4.3.2
tooth-selector
github : https://github.com/lcylichenyi/tooth-selector
used to select tooth(牙位选择器)
使用方法:
import toothSelector from 'toothSelector'
export default {
components: {
toothSelector
}
}
父组件接收传出值: v-model = ""
父组件传入值: historyProp
例:
// 组件
<toothSelector v-show='isShow' :historyProp=test v-model='teeth'/>
// 属性
test: { "d1": [ "La", "D" ], "d2": [], "a1": [ "P" ], "a4": [ "F" ], "d<6|7>": [ "" ] }
传入传出值key是由 位置信息 + 牙齿信息 组成, value 表示 附带属性。(牙缝不允许有value)
例如左上方第一颗门牙,为a1,正上方牙缝,为e<1|1>
位置信息:a:左上角,b:右上角,c:左下角,d:右下角,e:中间正上方牙缝,f:中间正下方牙缝
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# test
npm run test
For detailed explanation on how things work, consult the docs for vue-loader.