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", "name": "@layui/layui-vue",
"version": "0.0.17", "version": "0.0.18",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",
"main": "lib/layui-vue.umd.js", "main": "lib/layui-vue.umd.js",
"module": "lib/layui-vue.es.js", "module": "lib/layui-vue.es.js",

View File

@ -5,7 +5,10 @@
</template> </template>
<script setup name="LayBreadcrumb" lang="ts"> <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( const props = withDefaults(
defineProps<{ defineProps<{

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="layui-colla-item"> <div class="layui-colla-item">
<h2 class="layui-colla-title" @click="showHandle"> <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> </h2>
<div class="layui-colla-content" :class="isShow ? 'layui-show':''"> <div class="layui-colla-content" :class="isShow ? 'layui-show':''">
<p> <p>