Commit 65442b32 authored by 田翔's avatar 田翔

fix:

parent 8146c7dd
{
"name": "panda-xform",
"version": "6.0.1",
"description": "6.0.1 描述控件修复",
"version": "6.0.2",
"description": "6.0.2 台账控件优化",
"keywords": [
"panda-xform"
],
......
......@@ -29,7 +29,7 @@ const TablePack = (props, ref) => {
fileColumns,
}))
const { notUse, config, fieldList, loading, dataSource, sourceChange, rowSelection, onRow, tableChange, btnsClick, isEdit } = props
const { notUse, locale, config, fieldList, loading, dataSource, sourceChange, rowSelection, onRow, tableChange, btnsClick, isEdit } = props
const { accountFieids, webShowFieldGroup, formJson, parent } = config
const [fieldResize, setFieldResize] = useState({})
const [filteredInfo, setFilteredInfo] = useState({})
......@@ -560,6 +560,7 @@ const TablePack = (props, ref) => {
pagination={parent === '关联表单' ? { total: dataSource.length, showTotal: (value) => `总计 ${value} 条` } : false}
scroll={{ x: '100%', y: 'calc(100% - 61px)' }}
onChange={onChange}
locale={locale}
components={{
header: {
cell: ResizeableTitle
......
......@@ -72,6 +72,7 @@ const Account = (props, ref) => {
const [params, setParams] = useState(initParams);
const [loading, setLoading] = useState(false);
const [dataSource, setDataSource] = useState([]);
const [locale, setLocale] = useState({ emptyText: '数据加载中...' })
const [dataList, setDataList] = useState([]);
const [config, setConfig] = useState(initConfig);
const [configLoading, setConfigLoading] = useState(true);
......@@ -329,6 +330,7 @@ const Account = (props, ref) => {
setDataList([]);
message.error(msg);
}
setLocale('')
setLoading(false);
};
......@@ -571,6 +573,7 @@ const Account = (props, ref) => {
loading={loading}
notUse={notUse}
config={config}
locale={locale}
dataSource={dataSource}
rowSelection={{
type: 'checkbox',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment