Commit 8fa33570 authored by JingChao's avatar JingChao

field组件

parent 7f91df80
<template> <template>
<div :class="type" class="function" @touchstart="itemClick">{{ text }}</div> <div :class="type" class="function" @click="itemClick">{{ text }}</div>
</template> </template>
<script> <script>
...@@ -23,7 +23,6 @@ export default { ...@@ -23,7 +23,6 @@ export default {
}, },
methods: { methods: {
itemClick (e) { itemClick (e) {
e.preventDefault()
this.$parent && this.$parent.reset() this.$parent && this.$parent.reset()
}, },
}, },
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
</template> </template>
<script> <script>
import optionButton from './OptionButton' import optionButton from './OptionButton'
export default { export default {
name: 'ItemOption', name: 'ItemOption',
components: {optionButton}, components: {optionButton},
props: { props: {
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
} }
}, },
}, },
} }
</script> </script>
<style lang="less" scoped type="text/less"> <style lang="less" scoped type="text/less">
......
...@@ -45,7 +45,6 @@ export default { ...@@ -45,7 +45,6 @@ export default {
methods: { methods: {
deleteFun (index) { deleteFun (index) {
this.colors.remove(index) this.colors.remove(index)
// this.$refs.option[index].reset()
this.colors.sort() 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