@cniot/mdd-render-pc-ftp
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@cniot/mdd-render-pc-ftp", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "模型驱动FTP渲染组件", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -13,1 +13,4 @@ export const TABLE_MODULE_NAME = '$TABLE'; | ||
export const FILTER_DOT = `${FILTER_MODULE_NAME}.`; | ||
// tabledata数据请求结束事件 | ||
export const TABLE_DATA_FETCH_FINISH_EVENT = '$TABLE_DATA_FETCH_FINISH'; |
@@ -67,3 +67,3 @@ import React from 'react'; | ||
React.useEffect(() => { | ||
console.log('field.getValues()', field.getValues()); | ||
// console.log('field.getValues()', field.getValues()); | ||
filterModel.setMergeValues(field.getValues()); | ||
@@ -70,0 +70,0 @@ // engine.setModule(FILTER_MODULE_NAME, filterModel); |
import React, { useEffect, useState, useRef, useMemo } from 'react'; | ||
import CNTable from '@alife/cn-table'; | ||
import { Message } from 'cn-next'; | ||
import { FILTER_SUBMIT, PARENT_REFRESH, TABLE_MODULE_NAME, FILTER_MODULE_NAME } from './event-const'; | ||
import { | ||
FILTER_SUBMIT, | ||
PARENT_REFRESH, | ||
TABLE_MODULE_NAME, | ||
FILTER_MODULE_NAME, | ||
TABLE_DATA_FETCH_FINISH_EVENT, | ||
} from './event-const'; | ||
import TableModule from './TableModule'; | ||
@@ -265,2 +271,4 @@ import FormatRender from '../components/format-render'; | ||
tableModel.setTableData(result.dataSource).setTotalCount(result.total); | ||
engine.emit(TABLE_DATA_FETCH_FINISH_EVENT, tableModel); | ||
return result; | ||
@@ -267,0 +275,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
730321
11649