简体中文 | English
# 使用 npm
npm install leaf-collapse-component-vue
# 使用 yarn
yarn add leaf-collapse-component-vue
// main.ts
import LeafCollapseComponentVue from "leaf-collapse-component-vue";
import "leaf-collapse-component-vue/lib/style.css";
app.use(LeafCollapseComponentVue);
const content = 'test content'
<leaf-collapse-textarea :content="content"></leaf-collapse-textarea>
const {
width = "100%",
lineHeight = 20,
defaultCollapseLine = 3,
content,
} = defineProps<{
width?: string | number; // 组件宽度
lineHeight?: number; // 行高
defaultCollapseLine?: number; // 默认展示行数
content: string; // 内容
}>();