|
@@ -17,6 +17,7 @@ import PageCustom from "@/components/page-custom/index";
|
|
|
|
|
|
import IconVoiceColor from "@/components/icon/icon-voice-color";
|
|
import IconVoiceColor from "@/components/icon/icon-voice-color";
|
|
import TabBarButtons from "@/components/wemeta-tabs/TabBarButtons";
|
|
import TabBarButtons from "@/components/wemeta-tabs/TabBarButtons";
|
|
|
|
+import WemetaTabs from "@/components/wemeta-tabs/index";
|
|
import CardList from "@/components/list/card-list";
|
|
import CardList from "@/components/list/card-list";
|
|
import CardListItem from "@/components/list/card-list-item";
|
|
import CardListItem from "@/components/list/card-list-item";
|
|
import IconPeopleColor from "@/components/icon/icon-people-color";
|
|
import IconPeopleColor from "@/components/icon/icon-people-color";
|
|
@@ -28,6 +29,8 @@ import WemetaSwitch from "@/components/wemeta-switch";
|
|
import { useState } from "react";
|
|
import { useState } from "react";
|
|
import IconArrow from "@/components/icon/icon-arrow";
|
|
import IconArrow from "@/components/icon/icon-arrow";
|
|
|
|
|
|
|
|
+import Popup from "@/components/popup/popup";
|
|
|
|
+
|
|
export default function Index() {
|
|
export default function Index() {
|
|
const [tabIndex, setTabIndex] = useState("1");
|
|
const [tabIndex, setTabIndex] = useState("1");
|
|
|
|
|
|
@@ -52,6 +55,9 @@ export default function Index() {
|
|
// onSwitchChanged && onSwitchChanged(checked);
|
|
// onSwitchChanged && onSwitchChanged(checked);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+
|
|
|
|
+ const [showPopup, setShowPopup] = useState(false);
|
|
|
|
+
|
|
const IconArrowRight = () => {
|
|
const IconArrowRight = () => {
|
|
return (
|
|
return (
|
|
<View className="flex items-center">
|
|
<View className="flex items-center">
|
|
@@ -60,6 +66,27 @@ export default function Index() {
|
|
);
|
|
);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ const dataLibTabList = [
|
|
|
|
+ {
|
|
|
|
+ key: "1",
|
|
|
|
+ label: "个人知识",
|
|
|
|
+ children: <>
|
|
|
|
+ <View>
|
|
|
|
+ hello
|
|
|
|
+ </View>
|
|
|
|
+ </>
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: "2",
|
|
|
|
+ label: "企业知识",
|
|
|
|
+ children: <>
|
|
|
|
+ <View>
|
|
|
|
+ world
|
|
|
|
+ </View>
|
|
|
|
+ </>
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<PageCustom>
|
|
<PageCustom>
|
|
<NavBarNormal backText="创建"></NavBarNormal>
|
|
<NavBarNormal backText="创建"></NavBarNormal>
|
|
@@ -190,6 +217,16 @@ export default function Index() {
|
|
</View>
|
|
</View>
|
|
</CardList>
|
|
</CardList>
|
|
</View>
|
|
</View>
|
|
|
|
+
|
|
|
|
+ <View className="rounded-button-big" onClick={()=> setShowPopup(true)}>拉起弹层</View>
|
|
|
|
+
|
|
|
|
+ <Popup setShow={setShowPopup} show={showPopup} title="知识库-图片/视频">
|
|
|
|
+ <View>你好啊世界</View>
|
|
|
|
+ <WemetaTabs current="1" list={dataLibTabList}>
|
|
|
|
+
|
|
|
|
+ </WemetaTabs>
|
|
|
|
+ </Popup>
|
|
|
|
+
|
|
</View>
|
|
</View>
|
|
</PageCustom>
|
|
</PageCustom>
|
|
);
|
|
);
|