feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -1200,7 +1200,7 @@ export default function ModelCostSettings() {
|
||||
sorter: (a, b) => a.model_name.localeCompare(b.model_name),
|
||||
render: (text, row) => (
|
||||
<div className='flex flex-col gap-1'>
|
||||
<Text copyable={{ content: text }} strong className='!text-[13px]'>
|
||||
<Text copyable={{ text: text }} strong className='!text-[13px]'>
|
||||
{text}
|
||||
</Text>
|
||||
<div className='flex flex-wrap gap-1'>
|
||||
|
||||
@@ -919,7 +919,7 @@ export default function ModelOfficialPriceSettings(props) {
|
||||
render: (text, record) => (
|
||||
<div className='flex flex-col gap-1'>
|
||||
<Typography.Text
|
||||
copyable={{ content: text }}
|
||||
copyable={{ text: text }}
|
||||
strong
|
||||
className='!text-[13px]'
|
||||
>
|
||||
@@ -1140,7 +1140,6 @@ export default function ModelOfficialPriceSettings(props) {
|
||||
/>
|
||||
<RadioGroup
|
||||
type='button'
|
||||
buttonSize='small'
|
||||
value={fillFilter}
|
||||
onChange={(e) => {
|
||||
setFillFilter(e.target.value);
|
||||
|
||||
@@ -53,7 +53,7 @@ export default function ModelSettingsVisualEditor(props) {
|
||||
const [pricingSubMode, setPricingSubMode] = useState('ratio'); // 'ratio' or 'token-price'
|
||||
const [conflictOnly, setConflictOnly] = useState(false);
|
||||
const formRef = useRef(null);
|
||||
const pageSize = 10;
|
||||
const [pageSize, setPageSize] = useState(10);
|
||||
const _quotaPerUnit = getQuotaPerUnit();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -498,8 +498,12 @@ export default function ModelSettingsVisualEditor(props) {
|
||||
pageSize: pageSize,
|
||||
total: filteredModels.length,
|
||||
onPageChange: (page) => setCurrentPage(page),
|
||||
onPageSizeChange: (size) => {
|
||||
setPageSize(size);
|
||||
setCurrentPage(1);
|
||||
},
|
||||
showTotal: true,
|
||||
showSizeChanger: false,
|
||||
showSizeChanger: true,
|
||||
}}
|
||||
/>
|
||||
</Space>
|
||||
|
||||
Reference in New Issue
Block a user