mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-24 19:29:17 +08:00
feat(form): label 标签的title属性配置
This commit is contained in:
parent
8e18336fa3
commit
e272370fea
@ -42,7 +42,7 @@
|
|||||||
:label-width="itemLabelWidth"
|
:label-width="itemLabelWidth"
|
||||||
:rules="rule"
|
:rules="rule"
|
||||||
>
|
>
|
||||||
<template #label><span v-html="type === 'checkbox' ? '' : text"></span></template>
|
<template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
|
||||||
<TMagicTooltip v-if="tooltip">
|
<TMagicTooltip v-if="tooltip">
|
||||||
<component
|
<component
|
||||||
:key="key(config)"
|
:key="key(config)"
|
||||||
@ -99,7 +99,7 @@
|
|||||||
:rules="rule"
|
:rules="rule"
|
||||||
style="background: #f7dadd"
|
style="background: #f7dadd"
|
||||||
>
|
>
|
||||||
<template #label><span v-html="type === 'checkbox' ? '' : text"></span></template>
|
<template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
|
||||||
<TMagicTooltip v-if="tooltip">
|
<TMagicTooltip v-if="tooltip">
|
||||||
<component
|
<component
|
||||||
:key="key(config)"
|
:key="key(config)"
|
||||||
@ -148,7 +148,7 @@
|
|||||||
:rules="rule"
|
:rules="rule"
|
||||||
style="background: #def7da"
|
style="background: #def7da"
|
||||||
>
|
>
|
||||||
<template #label><span v-html="type === 'checkbox' ? '' : text"></span></template>
|
<template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
|
||||||
<TMagicTooltip v-if="tooltip">
|
<TMagicTooltip v-if="tooltip">
|
||||||
<component
|
<component
|
||||||
:key="key(config)"
|
:key="key(config)"
|
||||||
|
@ -66,6 +66,8 @@ export interface FormItem {
|
|||||||
__key?: string | number;
|
__key?: string | number;
|
||||||
/** 表单域标签的的宽度,例如 '50px'。支持 auto。 */
|
/** 表单域标签的的宽度,例如 '50px'。支持 auto。 */
|
||||||
labelWidth?: string;
|
labelWidth?: string;
|
||||||
|
/** label 标签的title属性 */
|
||||||
|
labelTitle?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
/** 表单组件类型 */
|
/** 表单组件类型 */
|
||||||
type?: string | TypeFunction;
|
type?: string | TypeFunction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user