Skip to content

Commit 0f9fe4e

Browse files
committed
[+]创建方法:增加说明文字
1 parent 240d19d commit 0f9fe4e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/views/base/2-fn/index.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<template>
22
<!-- 2-创建方法 -->
3-
<el-button type="primary" @click="handleBtn">点我试试</el-button>
3+
<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+
当使用 &lt;script setup&gt; 的时候,任何在 &lt;script setup&gt; 声明的顶层的绑定 (包括变量,函数声明,以及
10+
<span class="underline">import 引入的内容</span>
11+
) 都能在模板中直接使用。
12+
</p>
13+
</div>
14+
</div>
415

516
<div v-highlight class="mt-8" style="width: 660px">
617
<p class="font-bold">组件代码:</p>

0 commit comments

Comments
 (0)