This commit is contained in:
oneao committed 2026-10-09 22:05:02 +08:00
1 parent 0be0b0767a
commit 5f28a10d89
852 files changed
+8962 -111755

No files matched your search

@@ -1,5 +1,5 @@
<script setup lang="ts">
// allowClear:有值时 hover / 聚焦出现清除按钮;clear 事件通知清空动作
// clearable:有值时 hover / 聚焦出现清除按钮;clear 事件通知清空动作
import { ref } from 'vue'
import { G3Input, G3Message } from '@g3soft/ui'
@@ -10,7 +10,7 @@ const keyword = ref('g3soft')
<div style="width: 260px">
<G3Input
v-model="keyword"
allow-clear
clearable
placeholder="输入后 hover 可见清除按钮"
@clear="G3Message.info('已清空')"
/>
@@ -8,7 +8,7 @@ const inputRef = ref<InstanceType<typeof G3Input> | null>(null)
</script>
<template>
<G3Space direction="vertical" :size="12" style="display: flex; width: 320px">
<G3Space vertical :size="12" style="display: flex; width: 320px">
<G3Input ref="inputRef" v-model="value" />
<G3Space :size="8">
<!-- cursor: 'all' 聚焦后全选内容 -->
@@ -9,7 +9,7 @@ const weight = ref('72')
</script>
<template>
<G3Space direction="vertical" :size="12" style="display: flex; width: 280px">
<G3Space vertical :size="12" style="display: flex; width: 280px">
<G3Input v-model="keyword" placeholder="搜索">
<template #prefix><Search /></template>
</G3Input>
@@ -8,7 +8,7 @@ const host = ref('localhost')
</script>
<template>
<G3Space direction="vertical" :size="12" style="display: flex; width: 280px">
<G3Space vertical :size="12" style="display: flex; width: 280px">
<G3Input v-model="email" status="error" placeholder="邮箱格式不正确" />
<G3Input v-model="host" status="warning" placeholder="可能存在风险" />
<G3Input model-value="正常状态" />
@@ -8,7 +8,7 @@ const remark = ref('只读文本')
</script>
<template>
<G3Space direction="vertical" :size="16" style="display: flex; width: 320px">
<G3Space vertical :size="16" style="display: flex; width: 320px">
<G3Input
v-model="description"
type="textarea"