feat: 本次提交更新内容如下
新建朋友存一版2025年7月23日15:02:51
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nkebao-base",
|
||||
"name": "cunkebao",
|
||||
"license": "MIT",
|
||||
"version": "0.1.0",
|
||||
"version": "3.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^5.6.1",
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
getMomentsSyncDetail,
|
||||
} from "./api";
|
||||
import DeviceSelection from "@/components/DeviceSelection";
|
||||
import ContentLibrarySelection from "@/components/ContentLibrarySelection";
|
||||
|
||||
const steps = [
|
||||
{ id: 1, title: "基础设置", subtitle: "基础设置" },
|
||||
@@ -160,7 +161,6 @@ const NewMomentsSync: React.FC = () => {
|
||||
<div className={style.formLabel}>每日同步数量</div>
|
||||
<div className={style.counterRow}>
|
||||
<button
|
||||
type="button"
|
||||
className={style.counterBtn}
|
||||
onClick={() =>
|
||||
updateForm({ syncCount: Math.max(1, formData.syncCount - 1) })
|
||||
@@ -170,7 +170,6 @@ const NewMomentsSync: React.FC = () => {
|
||||
</button>
|
||||
<span className={style.counterValue}>{formData.syncCount}</span>
|
||||
<button
|
||||
type="button"
|
||||
className={style.counterBtn}
|
||||
onClick={() =>
|
||||
updateForm({ syncCount: formData.syncCount + 1 })
|
||||
@@ -186,14 +185,12 @@ const NewMomentsSync: React.FC = () => {
|
||||
<div className={style.formLabel}>账号类型</div>
|
||||
<div className={style.accountTypeRow}>
|
||||
<button
|
||||
type="button"
|
||||
className={`${style.accountTypeBtn} ${formData.accountType === "business" ? style.accountTypeActive : ""}`}
|
||||
onClick={() => updateForm({ accountType: "business" })}
|
||||
>
|
||||
业务号
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className={`${style.accountTypeBtn} ${formData.accountType === "personal" ? style.accountTypeActive : ""}`}
|
||||
onClick={() => updateForm({ accountType: "personal" })}
|
||||
>
|
||||
@@ -249,12 +246,13 @@ const NewMomentsSync: React.FC = () => {
|
||||
return (
|
||||
<div className={style.formStep}>
|
||||
<div className={style.formItem}>
|
||||
<Input
|
||||
placeholder="选择内容库"
|
||||
prefix={<span className={style.searchIcon}>Q</span>}
|
||||
className={style.searchInput}
|
||||
onClick={() => message.info("这里应弹出内容库选择器")}
|
||||
readOnly
|
||||
<div className={style.formLabel}>选择内容库</div>
|
||||
<ContentLibrarySelection
|
||||
selectedLibraries={formData.selectedLibraries}
|
||||
onSelect={(libs) => updateForm({ selectedLibraries: libs })}
|
||||
placeholder="请选择内容库"
|
||||
showSelectedList={true}
|
||||
selectedListMaxHeight={200}
|
||||
/>
|
||||
{formData.selectedLibraries.length > 0 && (
|
||||
<div className={style.selectedTip}>
|
||||
|
||||
Reference in New Issue
Block a user