表格组件bug修改
This commit is contained in:
		
							parent
							
								
									f374d4f529
								
							
						
					
					
						commit
						8a4a73f19e
					
				| @ -12,7 +12,8 @@ export struct Table { | |||||||
|   @Provide("column") private selfColumn: Array<Column> = [] |   @Provide("column") private selfColumn: Array<Column> = [] | ||||||
|   @Prop @Watch("setup") data: Array<object> = [] |   @Prop @Watch("setup") data: Array<object> = [] | ||||||
|   @Provide("data") private selfData: Array<object> = [] |   @Provide("data") private selfData: Array<object> = [] | ||||||
|   @Provide("total") total: number = 1 |   @Prop @Watch("setup") total: number = 1 | ||||||
|  |   @Provide("total") selfTotal: number = 1 | ||||||
|   @Provide("currentPage") @Watch("setupCurrentPage") private selfCurrentPage: number = 1 |   @Provide("currentPage") @Watch("setupCurrentPage") private selfCurrentPage: number = 1 | ||||||
|   @Provide("pageSize") @Watch("setupPageSize") private selfPageSize: number = 10 |   @Provide("pageSize") @Watch("setupPageSize") private selfPageSize: number = 10 | ||||||
|   @Provide("pageSizes") @Watch("setupPageSizes") private selfPageSizes: number[] = [10, 20, 30, 50] |   @Provide("pageSizes") @Watch("setupPageSizes") private selfPageSizes: number[] = [10, 20, 30, 50] | ||||||
| @ -27,12 +28,14 @@ export struct Table { | |||||||
|     this.selfCurrentPage = this.currentPage |     this.selfCurrentPage = this.currentPage | ||||||
|     this.selfPageSize = this.pageSize |     this.selfPageSize = this.pageSize | ||||||
|     this.selfPageSizes = this.pageSizes |     this.selfPageSizes = this.pageSizes | ||||||
|  |     this.selfTotal = this.total | ||||||
|     this.setup() |     this.setup() | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   setup() { |   setup() { | ||||||
|     this.selfColumn = this.column |     this.selfColumn = this.column | ||||||
|     this.selfData = this.data |     this.selfData = this.data | ||||||
|  |     this.selfTotal = this.total | ||||||
|     this.selfCurrentPage = this.currentPage |     this.selfCurrentPage = this.currentPage | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user