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

fix:

parent 8146c7dd
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.0.1", "version": "6.0.2",
"description": "6.0.1 描述控件修复", "description": "6.0.2 台账控件优化",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -29,7 +29,7 @@ const TablePack = (props, ref) => { ...@@ -29,7 +29,7 @@ const TablePack = (props, ref) => {
fileColumns, 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 { accountFieids, webShowFieldGroup, formJson, parent } = config
const [fieldResize, setFieldResize] = useState({}) const [fieldResize, setFieldResize] = useState({})
const [filteredInfo, setFilteredInfo] = useState({}) const [filteredInfo, setFilteredInfo] = useState({})
...@@ -560,6 +560,7 @@ const TablePack = (props, ref) => { ...@@ -560,6 +560,7 @@ const TablePack = (props, ref) => {
pagination={parent === '关联表单' ? { total: dataSource.length, showTotal: (value) => `总计 ${value} 条` } : false} pagination={parent === '关联表单' ? { total: dataSource.length, showTotal: (value) => `总计 ${value} 条` } : false}
scroll={{ x: '100%', y: 'calc(100% - 61px)' }} scroll={{ x: '100%', y: 'calc(100% - 61px)' }}
onChange={onChange} onChange={onChange}
locale={locale}
components={{ components={{
header: { header: {
cell: ResizeableTitle cell: ResizeableTitle
......
...@@ -72,6 +72,7 @@ const Account = (props, ref) => { ...@@ -72,6 +72,7 @@ const Account = (props, ref) => {
const [params, setParams] = useState(initParams); const [params, setParams] = useState(initParams);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [dataSource, setDataSource] = useState([]); const [dataSource, setDataSource] = useState([]);
const [locale, setLocale] = useState({ emptyText: '数据加载中...' })
const [dataList, setDataList] = useState([]); const [dataList, setDataList] = useState([]);
const [config, setConfig] = useState(initConfig); const [config, setConfig] = useState(initConfig);
const [configLoading, setConfigLoading] = useState(true); const [configLoading, setConfigLoading] = useState(true);
...@@ -329,6 +330,7 @@ const Account = (props, ref) => { ...@@ -329,6 +330,7 @@ const Account = (props, ref) => {
setDataList([]); setDataList([]);
message.error(msg); message.error(msg);
} }
setLocale('')
setLoading(false); setLoading(false);
}; };
...@@ -571,6 +573,7 @@ const Account = (props, ref) => { ...@@ -571,6 +573,7 @@ const Account = (props, ref) => {
loading={loading} loading={loading}
notUse={notUse} notUse={notUse}
config={config} config={config}
locale={locale}
dataSource={dataSource} dataSource={dataSource}
rowSelection={{ rowSelection={{
type: 'checkbox', 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