mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix: type & vue3
This commit is contained in:
committed by
Herrington Darkholme
parent
7ede28cbe5
commit
c1c4121014
@@ -14,14 +14,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
import { defineComponent } from 'vue'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Basic',
|
||||
methods: {
|
||||
handleClick() {
|
||||
alert('click')
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const handleClick = () => alert('click')
|
||||
return {
|
||||
handleClick,
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -13,7 +13,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
import { defineComponent } from 'vue'
|
||||
|
||||
interface IDividerProps {
|
||||
direction: string,
|
||||
contentPosition: string
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ElDivider',
|
||||
props: {
|
||||
direction: {
|
||||
@@ -31,5 +38,5 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user