feat: 产品选择列表
This commit is contained in:
1 parent
a55a6d3586
commit
dfadf3a8f0
25 files changed
+351
-54
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="w-full h-[135px] bg-white shadow-cell-group rounded-xl flex flex-col justify-center items-center gap-[5px] text-xs text-disabled">
|
||||
<image src="@/static/icons/plus-circle-2.svg" class="w-[47px] h-[47px]" />
|
||||
添加
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
const props = withDefaults(defineProps<{
|
||||
disabled: boolean
|
||||
type: 'primary' | 'default'
|
||||
}>(), {
|
||||
disabled: false,
|
||||
type: 'primary',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button
|
||||
class="px-[60px] py-[5px] bg-primary border-none outline-none text-white rounded-3xl flex items-center justify-center text-lg disabled:bg-[red] after:border-none"
|
||||
:disabled="disabled"
|
||||
:class="{
|
||||
'!bg-disabled !text-white': disabled,
|
||||
'bg-primary': !disabled && type === 'primary',
|
||||
}"
|
||||
>
|
||||
<slot />
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user