提交 bfd5798d 编写于 作者: Shine-zwj's avatar Shine-zwj

导航视图搜索框提示可搜索字段名称

上级 08c6ce7e
...@@ -154,7 +154,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -154,7 +154,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>;
/** /**
* 搜索字段名称 * 搜索字段名称
* *
* *
* @type {(string)} * @type {(string)}
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class='search-container'> <div class='search-container'>
<i-input :search="true" <i-input :search="true"
@on-change="($event) => { this.searchText = $event.target.value; }" @on-change="($event) => { this.searchText = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch"> @on-search="onSearch">
</i-input> </i-input>
</div> </div>
...@@ -153,6 +154,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -153,6 +154,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
*/ */
public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>;
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public placeholder="<@getQuickSearchPlaceholder view />";
/** /**
* 搜素值 * 搜素值
* *
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<div class='search-container'> <div class='search-container'>
<i-input :search="true" <i-input :search="true"
@on-change="($event) => { this.searchText = $event.target.value; }" @on-change="($event) => { this.searchText = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch"> @on-search="onSearch">
</i-input> </i-input>
</div> </div>
...@@ -126,6 +127,15 @@ ...@@ -126,6 +127,15 @@
*/ */
public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()?c}<#else>0</#if>;
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public placeholder="<@getQuickSearchPlaceholder view />";
/** /**
* 搜素值 * 搜素值
* *
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<div class='search-content'> <div class='search-content'>
<i-input :search="true" <i-input :search="true"
@on-change="($event) => { this.srfnodefilter = $event.target.value; }" @on-change="($event) => { this.srfnodefilter = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch"> @on-search="onSearch">
</i-input> </i-input>
</div> </div>
...@@ -123,6 +124,15 @@ ...@@ -123,6 +124,15 @@
*/ */
public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()?c}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()?c}<#else>0</#if>;
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public placeholder="<@getQuickSearchPlaceholder view />";
/** /**
* 过滤值 * 过滤值
* *
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class='search-container'> <div class='search-container'>
<i-input :search="true" <i-input :search="true"
@on-change="($event) => { this.searchText = $event.target.value; }" @on-change="($event) => { this.searchText = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch"> @on-search="onSearch">
</i-input> </i-input>
</div> </div>
...@@ -160,6 +161,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -160,6 +161,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
*/ */
public selection: any = {}; public selection: any = {};
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public placeholder="<@getQuickSearchPlaceholder view />";
/** /**
* 搜素值 * 搜素值
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册