This commit is contained in:
dap
2025-11-07 14:39:42 +08:00
147 changed files with 516 additions and 418 deletions

View File

@@ -64,7 +64,7 @@ const handleClick = (point: CaptchaPoint) => {
/>
<div class="ml-8 flex w-96 items-center">
<Switch
v-model:checked="params.showHintImage"
v-model="params.showHintImage"
:checked-children="$t('examples.captcha.hintImage')"
:un-checked-children="$t('examples.captcha.hintText')"
class="mr-4 w-40"
@@ -82,7 +82,7 @@ const handleClick = (point: CaptchaPoint) => {
</div>
<Switch
v-model:checked="params.showConfirm"
v-model="params.showConfirm"
:checked-children="$t('examples.captcha.showConfirm')"
:un-checked-children="$t('examples.captcha.hideConfirm')"
class="ml-8 w-28"

View File

@@ -115,7 +115,7 @@ function onFinished() {
</Col>
<Col :span="8">
<FormItem label="禁用动画" name="disabled">
<Switch v-model:checked="props.disabled" />
<Switch v-model="props.disabled" />
</FormItem>
</Col>
<Col :span="8">

View File

@@ -94,7 +94,7 @@ async function handleMergeSubmit() {
<Card title="基础示例">
<template #extra>
<Switch
v-model:checked="needMerge"
v-model="needMerge"
checked-children="开启字段合并"
class="mr-4"
un-checked-children="关闭字段合并"

View File

@@ -132,10 +132,7 @@ async function fillPartialData() {
<Card title="功能测试">
<template #extra>
<div class="flex items-center gap-2">
<Switch
v-model:checked="scrollEnabled"
@change="toggleScrollToError"
/>
<Switch v-model="scrollEnabled" @change="toggleScrollToError" />
<span>启用滚动到错误字段</span>
</div>
</template>

View File

@@ -68,12 +68,10 @@ const leftMaxWidth = ref(props.leftMaxWidth || 100);
<Card class="ml-2" title="基本使用">
<div class="flex flex-col gap-2">
<div class="flex gap-2">
<Checkbox v-model:checked="props.resizable">可拖动调整宽度</Checkbox>
<Checkbox v-model:checked="props.splitLine">显示拖动分隔线</Checkbox>
<Checkbox v-model:checked="props.splitHandle">显示拖动手柄</Checkbox>
<Checkbox v-model:checked="props.leftCollapsible">
左侧可折叠
</Checkbox>
<Checkbox v-model="props.resizable">可拖动调整宽度</Checkbox>
<Checkbox v-model="props.splitLine">显示拖动分隔线</Checkbox>
<Checkbox v-model="props.splitHandle">显示拖动手柄</Checkbox>
<Checkbox v-model="props.leftCollapsible"> 左侧可折叠 </Checkbox>
</div>
<div class="flex items-center gap-2">
<span>左侧最小宽度百分比</span>

View File

@@ -95,7 +95,7 @@ const [Grid] = useVbenVxeGrid({ gridOptions });
<Image :src="row.imageUrl" height="30" width="30" />
</template>
<template #open="{ row }">
<Switch v-model:checked="row.open" />
<Switch v-model="row.open" />
</template>
<template #status="{ row }">
<Tag :color="row.color">{{ row.status }}</Tag>