feat: 本次提交更新内容如下

新建朋友存一版2025年7月23日15:02:51
This commit is contained in:
笔记本里的永平
2025-07-23 15:02:53 +08:00
parent f73c0c279f
commit 63f95c8bfa
2 changed files with 10 additions and 12 deletions

View File

@@ -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",

View File

@@ -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}>