automated_uniapp/uni_modules/cool-ui/components/cl-list/cl-list.vue
2025-01-09 16:16:11 +08:00

34 lines
562 B
Vue

<template>
<view class="cl-list" :style="[baseStyle]">
<slot></slot>
</view>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import { type PropType } from "vue";
import { useStyle } from "../../hooks";
export default defineComponent({
name: "cl-list",
props: {
// 水平布局方式
justify: String as PropType<"start" | "end" | "center">,
// 是否禁用
disabled: Boolean,
// 是否带有下边框
border: {
type: Boolean,
default: true,
},
},
setup() {
return {
...useStyle(),
};
},
});
</script>