leaf-collapse-component-vue
v2.0.6
Published
<img src="https://img.shields.io/badge/vue-%5E3.2.45-green">
Downloads
4
Readme
leaf-collapse-component-vue
English | 简体中文
🔥 Install
# with npm
npm install leaf-collapse-component-vue
# with yarn
yarn add leaf-collapse-component-vue
👍 Usage
// 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>
📌 Props
const {
width = "100%",
lineHeight = 20,
defaultCollapseLine = 3,
content,
} = defineProps<{
width?: string | number; // component width
lineHeight?: number; // line-height
defaultCollapseLine?: number; // default line
content: string; // content
}>();
👐 issues
https://github.com/yyyz1011/leaf_collapse_component/issues