We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240d19d commit 0f9fe4eCopy full SHA for 0f9fe4e
src/views/base/2-fn/index.vue
@@ -1,6 +1,17 @@
1
<template>
2
<!-- 2-创建方法 -->
3
- <el-button type="primary" @click="handleBtn">点我试试</el-button>
+ <div class="flex justify-between">
4
+ <el-button type="primary" @click="handleBtn">点我试试</el-button>
5
+
6
+ <div class="italic text-sm font-semibold leading-6 mr-8" style="width: 500px">
7
+ <p>
8
+ <span class="text-xl">注:</span>
9
+ 当使用 <script setup> 的时候,任何在 <script setup> 声明的顶层的绑定 (包括变量,函数声明,以及
10
+ <span class="underline">import 引入的内容</span>
11
+ ) 都能在模板中直接使用。
12
+ </p>
13
+ </div>
14
15
16
<div v-highlight class="mt-8" style="width: 660px">
17
<p class="font-bold">组件代码:</p>
0 commit comments