bianjiang 1 rok pred
rodič
commit
ef72fb036b

+ 6 - 1
src/modules/resource/actions/collection.tsx

@@ -13,7 +13,12 @@ export const collectionAction = ResourceModule.action({
 
   async createOrUpdateCollection(record: any) {
     const data = await this.showModal(
-      <this.components.CollectionEditModal record={record} />
+      <this.components.CollectionEditModal record={record} />,
+      {
+        width: "500px",
+        maskClosable: false,
+        title: record && record._id ? "编辑作品集" : "新增作品集",
+      }
     );
     if (record && record._id) {
       await this.https.updateCollection(data);

+ 3 - 2
src/modules/resource/components/Collection/CollectionEditModal.tsx

@@ -158,7 +158,7 @@ export default defineComponent({
         <div class={ModalStyle}>
           <Form {...layout} onSubmit={submit}>
             <Form.Item {...validateInfos.cover} wrapperCol={{ span: 24 }}>
-              <div class={"w-full h-180px pt-20px"}>
+              <div class={"w-full h-180px"}>
                 <ImageUploader
                   data={formState.cover}
                   text="请选择封面图"
@@ -278,6 +278,7 @@ export default defineComponent({
             </Form.Item>
             <Form.Item label="征集日期">
               <RangePicker
+                class={"w-full"}
                 locale={dateLocal}
                 ranges={pickerRanges()}
                 value={time}
@@ -365,7 +366,7 @@ const ImageStyle = css`
 `;
 
 const ModalStyle = css`
-  width: 480px;
+  width: 100%;
   .ant-input-group.ant-input-group-compact {
     display: flex;
   }