|
@@ -44,7 +44,7 @@ export const MySources = defineComponent({
|
|
|
: "materialVideoListCtrl"
|
|
|
];
|
|
|
return (
|
|
|
- <div class="space-y-20px -mt-10px">
|
|
|
+ <div class="space-y-20px -mt-10px flex flex-col overflow-hidden">
|
|
|
<Radio.Group
|
|
|
class={radioCls}
|
|
|
value={state.sourceType}
|
|
@@ -54,35 +54,36 @@ export const MySources = defineComponent({
|
|
|
<Radio.Button value="Image">图片</Radio.Button>
|
|
|
<Radio.Button value="Video">视频</Radio.Button>
|
|
|
</Radio.Group>
|
|
|
-
|
|
|
- <List data={control.state.list} columns={2} gap="20px">
|
|
|
- {{
|
|
|
- item(item: any) {
|
|
|
- return (
|
|
|
- <div
|
|
|
- style={{ aspectRatio: 1 }}
|
|
|
- onClick={() => clickToDesign(item.file.url)}
|
|
|
- >
|
|
|
- <Image
|
|
|
- class="w-full h-full"
|
|
|
- src={item.file.url}
|
|
|
- size={240}
|
|
|
+ <div class="scrollbar flex-1 -mr-15px pr-15px">
|
|
|
+ <List data={control.state.list} columns={2} gap="20px">
|
|
|
+ {{
|
|
|
+ item(item: any) {
|
|
|
+ return (
|
|
|
+ <div
|
|
|
+ style={{ aspectRatio: 1 }}
|
|
|
+ onClick={() => clickToDesign(item.file.url)}
|
|
|
+ >
|
|
|
+ <Image
|
|
|
+ class="w-full h-full"
|
|
|
+ src={item.file.url}
|
|
|
+ size={240}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ },
|
|
|
+ loadmore() {
|
|
|
+ return (
|
|
|
+ <Loadmore
|
|
|
+ class="mt-20px"
|
|
|
+ loading={control.state.loading}
|
|
|
+ canLoad={control.state.canLoadNext}
|
|
|
+ onChange={control.loadNextPage}
|
|
|
/>
|
|
|
- </div>
|
|
|
- );
|
|
|
- },
|
|
|
- loadmore() {
|
|
|
- return (
|
|
|
- <Loadmore
|
|
|
- class="mt-20px"
|
|
|
- loading={control.state.loading}
|
|
|
- canLoad={control.state.canLoadNext}
|
|
|
- onChange={control.loadNextPage}
|
|
|
- />
|
|
|
- );
|
|
|
- },
|
|
|
- }}
|
|
|
- </List>
|
|
|
+ );
|
|
|
+ },
|
|
|
+ }}
|
|
|
+ </List>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
);
|
|
|
};
|