-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<script setup lang="ts"> | ||
import { useAutoHeight } from '@/utils/others'; | ||
import { useAutoHeight, useAutoWidth } from '@/utils/others'; | ||
// 页面: 输入框, 输入后解析当前选择器的结构 | ||
useAutoHeight(); | ||
useAutoWidth(); | ||
const text = shallowRef(''); | ||
</script> | ||
<template> | ||
<div flex flex-col items-center p-8px> | ||
<input /> | ||
<div v-for="i in 60" :key="i"> | ||
{{ Math.random() }} | ||
</div> | ||
<NInput | ||
v-model:value="text" | ||
type="textarea" | ||
placeholder="请输入选择器" | ||
class="gkd_code" | ||
/> | ||
</div> | ||
</template> |