Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1005 Bytes

README-zh_CN.md

File metadata and controls

51 lines (37 loc) · 1005 Bytes

leaf-collapse-component-vue

简体中文 | 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; // 内容
}>();

👐 issues

https://github.com/yyyz1011/leaf_collapse_component/issues