fix(collapse): 方向图标根据展开状态变化
This commit is contained in:
parent
71e07cb0ac
commit
fd5286bafe
@ -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",
|
||||
|
@ -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<{
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user