mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(form): time value改成HH:mm:ss字符串,支持配置
This commit is contained in:
parent
52fc452823
commit
4fe45eb36d
@ -6,7 +6,7 @@
|
|||||||
:placeholder="config.placeholder"
|
:placeholder="config.placeholder"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:format="config.format"
|
:format="config.format"
|
||||||
:value-format="config.format || 'YYYY-MM-DD HH:mm:ss'"
|
:value-format="config.valueFormat || 'YYYY-MM-DD HH:mm:ss'"
|
||||||
@change="changeHandler"
|
@change="changeHandler"
|
||||||
></TMagicDatePicker>
|
></TMagicDatePicker>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<TMagicTimePicker
|
<TMagicTimePicker
|
||||||
v-model="model[name]"
|
v-model="model[name]"
|
||||||
|
:value-format="config.valueFormat || 'HH:mm:ss'"
|
||||||
|
:format="config.format || 'HH:mm:ss'"
|
||||||
:size="size"
|
:size="size"
|
||||||
:placeholder="config.placeholder"
|
:placeholder="config.placeholder"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
@ -348,6 +348,7 @@ export interface HiddenConfig extends FormItem {
|
|||||||
export interface DateConfig extends FormItem, Input {
|
export interface DateConfig extends FormItem, Input {
|
||||||
type: 'date';
|
type: 'date';
|
||||||
format?: 'YYYY-MM-dd HH:mm:ss' | string;
|
format?: 'YYYY-MM-dd HH:mm:ss' | string;
|
||||||
|
valueFormat?: 'YYYY-MM-dd HH:mm:ss' | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -365,6 +366,8 @@ export interface DateTimeConfig extends FormItem, Input {
|
|||||||
*/
|
*/
|
||||||
export interface TimeConfig extends FormItem, Input {
|
export interface TimeConfig extends FormItem, Input {
|
||||||
type: 'time';
|
type: 'time';
|
||||||
|
format?: 'HH:mm:ss' | string;
|
||||||
|
valueFormat?: 'HH:mm:ss' | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user