Skip to content
On this page

Foo 组件示例

第一个示例:

基本使用
测试使用 Element Plus 组件
<template>
  <button>测试按钮</button>
</template>
<template>
  <button>测试按钮</button>
</template>

第二个示例:

special-demo-ui Foo

msg is: hello custom component

基本使用
测试使用自定义组件库组件
<template>
  <oop-foo :msg="msg"></oop-foo>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const msg = ref('hello custom component')
</script>
<template>
  <oop-foo :msg="msg"></oop-foo>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const msg = ref('hello custom component')
</script>

组件介绍

Last updated: