fix(collapse): 方向图标根据展开状态变化

This commit is contained in:
就眠仪式 2021-10-11 16:40:38 +08:00
parent 71e07cb0ac
commit fd5286bafe
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "0.0.17",
"version": "0.0.18",
"description": "a component library for Vue 3 base on layui-vue",
"main": "lib/layui-vue.umd.js",
"module": "lib/layui-vue.es.js",

View File

@ -5,7 +5,10 @@
</template>
<script setup name="LayBreadcrumb" lang="ts">
import { defineProps, provide, withDefaults } from 'vue'
import { defineProps, provide, withDefaults, useSlots } from 'vue'
const slot = useSlots()
const slots = slot.default && slot.default()
const props = withDefaults(
defineProps<{

View File

@ -1,7 +1,7 @@
<template>
<div class="layui-colla-item">
<h2 class="layui-colla-title" @click="showHandle">
{{ title }}<i class="layui-icon layui-colla-icon"></i>
{{ title }}<i class="layui-icon layui-colla-icon">{{ isShow ? "":"" }}</i>
</h2>
<div class="layui-colla-content" :class="isShow ? 'layui-show':''">
<p>