shenwu 8 tháng trước cách đây
mục cha
commit
9fd38c2bd1

+ 1 - 1
src/pages/MiniApp/BookManage/Long/tableConfig.tsx

@@ -332,7 +332,7 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
             dataIndex: 'wordCount',
             valueType: 'segmented',
             hideInTable: true,
-            fieldProps: { type: 'primary', style: { width: 'auto' } },
+            fieldProps: { type: 'primary', style: { width: 'auto' },block:true},
             colSize: 3,
             initialValue: '',
             valueEnum: {

+ 1 - 1
src/pages/MiniApp/BookManage/Short/tableConfig.tsx

@@ -344,7 +344,7 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
             dataIndex: 'wordCount',
             valueType: 'segmented',
             hideInTable: true,
-            fieldProps: { type: 'primary', style: { width: 'auto' } },
+            fieldProps: { type: 'primary', style: { width: 'auto' },block:true},
             colSize: 3,
             initialValue: '',
             valueEnum: {

+ 1 - 3
src/pages/MiniApp/ModuleConfig/index.tsx

@@ -92,7 +92,6 @@ const Page: React.FC = () => {
         }
         delete values.rechargeConfigList
         delete values.rechargeConfigList1
-        console.log(values)
         api.run({ ...values, ...publicData }).then(res => {
             if (res.code === 200) {
                 getList.refresh()
@@ -112,7 +111,6 @@ const Page: React.FC = () => {
             if (values) {
                 infoT.run(values.id).then(res => {
                     if (res.code === 200) {
-                        console.log(res.data)
                         let data = res.data
                         for (let item of data.rechargeConfigs) {
                             if (item.firstRecharge) {
@@ -172,7 +170,7 @@ const Page: React.FC = () => {
         <Row gutter={[20, 20]}>
             {
                 getList?.data?.data?.map((item: { id: Key | null | undefined; templateName: string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | null | undefined; rechargeConfigs: any[]; templateType: number; templateDescription: string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | null | undefined }) => {
-                    return <Col key={item.id} style={{ cursor: 'pointer' }} onClick={() => { switchTemplate(item.id) }}>
+                    return <Col key={item.id} style={{ cursor: 'pointer' }} onClick={() => { switchTemplate(item.id) }} xs={{span:24}} sm={{span:8}}>
                         <Card className={activeT === item.id ? styles.active : ""} style={{ background: activeT === item.id ? token.colorPrimaryBgHover : token.colorFillAlter }} hoverable>
                             <h3 style={{ fontSize: 16, fontWeight: 500, color: token.colorText, fontFamily: 'PingFang SC' }}>{item.templateName}</h3>
                             {

+ 1 - 1
src/pages/MiniApp/ModuleConfig/template.tsx

@@ -40,7 +40,7 @@ export function Template(params: { data: any, enmuList: any }) {
     });
     let { styles } = useStyles()
 
-    return <Card bordered={false} style={{ width: 420 }}>
+    return <Card bordered={false} >
         <Row gutter={[0, 15]}>
             {
                 rechargeConfigList?.map((item: any, index: any) => {