提交 7ea4769d 编写于 作者: WodahsOrez's avatar WodahsOrez

add: 时间范围选择器

上级 c1640d72
<#if editor?? && editor.render??>
${editor.render.code}
<#else>
<app-date-range
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
style="min-width: 150px;${editor.getEditorCssStyle()}
<#if editor.getEditorParam('startField','')??>startField="${editor.getEditorParam('startField','')}"</#if>"
<#if editor.getEditorParam('endField','')??>endField="${editor.getEditorParam('endField','')}"</#if>"
@on-change="(name, val) => { this.data[name] = val }">
</app-date-range>
</#if>
\ No newline at end of file
<#if editor?? && editor.render??>
${editor.render.code}
<#else>
<date-picker
type="date"
:transfer="true"
format="yyyy-MM-dd"
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
:disabled="getColumnDisabled(row,column.property)"
:value="row[column.property]"
style="${item.getEditorCssStyle()}<#if item.getEditorParam('width','') == 'auto'>width:100%;</#if>"
@on-change="(val1, val2) => { row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</#if>
\ No newline at end of file
<#if editor?? && editor.render??>
${editor.render.code}
<#else>
<date-picker
type="date"
format="yyyy-MM-dd"
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
:transfer="true"
:value="layoutData.${editor.name}"
:disabled="layoutModelDetails.${editor.name}.disabled"
style="min-width: 150px;${editor.getEditorCssStyle()}<#if editor.getEditorParam('width','') == 'auto'>width:100%;</#if>"
@on-change="(value, val2) => handleValueChange({ name: '${editor.name}', value})">
</date-picker>
</#if>
\ No newline at end of file
EDITORTYPE=DATERANGE
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册