u
This commit is contained in:
1 parent
445b0ad4d8
commit
e5861c0530
243 files changed
+32256
-179
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
const items = Array.from({ length: 10 }, (_, i) => ({
|
||||
prefix: `图标${i + 1}`,
|
||||
content: `这是内容${i + 1}`,
|
||||
suffix: `操作${i + 1}`,
|
||||
}))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="main">
|
||||
<AList header="列表 Header" footer="列表 Footer" style="width: 1000px;height:400px">
|
||||
<AListItem v-for="(item, index) in items" :key="index">
|
||||
<template #prefix>
|
||||
{{ item.prefix }}
|
||||
</template>
|
||||
{{ item.content }}
|
||||
<template #suffix>
|
||||
{{ item.suffix }}
|
||||
</template>
|
||||
</AListItem>
|
||||
</AList>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.main {
|
||||
height: 800px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #eeeeee;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
</style>
|
||||
@@ -65,4 +65,13 @@ $list-prefix: '#{$prefix}-list';
|
||||
background: $separator-color;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$list-prefix}-load {
|
||||
background: $bg-color-container;
|
||||
text-align: center;
|
||||
line-height: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
@@ -143,6 +143,11 @@ export default defineComponent({
|
||||
return content ? <div class={`${prefixCls}-footer`}>{content}</div> : null
|
||||
}
|
||||
|
||||
// TODO:暂时想不到什么好的设计方案
|
||||
const renderLoad = () => {
|
||||
<div class={`${prefixCls}-load`}></div>
|
||||
}
|
||||
|
||||
return () => (
|
||||
<div
|
||||
class={[
|
||||
|
||||
Reference in new issue
Block a user