提交 dc3bc90d 编写于 作者: KK's avatar KK

多数据引擎、组件调整

上级 35009c4d
......@@ -36,6 +36,14 @@ export default class AppVanSelect extends Vue {
*/
@Prop() public items?: any;
/**
* 搜索名
*
* @type {any}
* @memberof AppVanMenu
*/
@Prop() public name?: string;
/**
* 名称
*
......@@ -114,7 +122,8 @@ export default class AppVanSelect extends Vue {
if(this.selectItem.label){
this.showTitle = this.selectItem.label;
}
this.closeDropdown();
this.closeDropdown();
this.$emit('onConfirm',{[this.name]:this.selectItem.value})
}
}
......
......@@ -97,7 +97,7 @@ export default class MDViewEngineBase extends ViewEngine {
* @param {string} ctrlName
* @param {string} eventName
* @param {*} args
* @memberof GridViewEngine
* @memberof MDViewEngineBase
*/
public onCtrlEvent(ctrlName: string, eventName: string, args: any): void {
super.onCtrlEvent(ctrlName, eventName, args);
......@@ -106,6 +106,19 @@ export default class MDViewEngineBase extends ViewEngine {
}
}
/**
* 视图事件
*
* @param {string} tag
* @param {string} eventName
* @param {*} args
* @memberof MDViewEngineBase
*/
public onViewEvent(tag:string, eventName: string, args: any): void {
this.setViewState2({ tag: tag, action: 'load', viewdata: args });
}
/**
* 搜索表单事件
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册