layui/src/module/rate/index.vue

30 lines
728 B
Vue
Raw Normal View History

2021-10-04 00:06:19 +00:00
<template>
<ul class="layui-rate">
<li class="layui-inline">
<i class="layui-icon layui-icon-rate-solid"></i>
</li>
<li class="layui-inline">
<i class="layui-icon layui-icon-rate-solid"></i>
</li>
<li class="layui-inline"><i class="layui-icon layui-icon-rate"></i></li>
<li class="layui-inline"><i class="layui-icon layui-icon-rate"></i></li>
<li class="layui-inline"><i class="layui-icon layui-icon-rate"></i></li>
</ul>
</template>
<script setup lang="ts">
import { defineProps, ref, withDefaults } from 'vue'
const rate = ref([])
const props = withDefaults(
defineProps<{
length?: number
modelValue?: number
}>(),
{
length: 5,
modelValue: 0
}
)
</script>