Commit 8fa33570 authored by JingChao's avatar JingChao

field组件

parent 7f91df80
<template>
<div :class="type" class="function" @touchstart="itemClick">{{ text }}</div>
<div :class="type" class="function" @click="itemClick">{{ text }}</div>
</template>
<script>
......@@ -23,7 +23,6 @@ export default {
},
methods: {
itemClick (e) {
e.preventDefault()
this.$parent && this.$parent.reset()
},
},
......
......@@ -13,9 +13,9 @@
</template>
<script>
import optionButton from './OptionButton'
import optionButton from './OptionButton'
export default {
export default {
name: 'ItemOption',
components: {optionButton},
props: {
......@@ -113,7 +113,7 @@
}
},
},
}
}
</script>
<style lang="less" scoped type="text/less">
......
......@@ -45,7 +45,6 @@ export default {
methods: {
deleteFun (index) {
this.colors.remove(index)
// this.$refs.option[index].reset()
this.colors.sort()
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment