ilaw-element-plus
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

开始使用

npm i @dafenqi/element-plus

文档地址

element-plus 原有组件文档

二次封装组件文档

请按照 element-plus 文档编写规则进行编写, 包括属性、事件、方法及插槽说明, 具体格式请参考 docs/en-US/component/**.md

el-dropdown

  • 新增el-dropdown-group组件,用来支持分组,组件不成熟,如果不符合大佬们的需要,请自行再封装🤝
    • title属性:string
<el-dropdown-menu>
  <el-dropdown-group title="分组1">
    <el-dropdown-item command="e">Action 1</el-dropdown-item>
    <el-dropdown-item command="f">Action 2</el-dropdown-item>
  </el-dropdown-group>
  <el-dropdown-item command="e">Action 1</el-dropdown-item>
  <el-dropdown-item command="f">Action 2</el-dropdown-item>
  <el-dropdown-item command="g">Action 3</el-dropdown-item>
</el-dropdown-menu>
  • 新增el-dropdown-sub-menu组件,用来支持二级(目前只支持到二级),组件不成熟,如果不符合大佬们的需要,请自行再封装🤝
    • 在使用el-dropdown-sub-menu时,最外层的el-dropdown只能使用click方法
    • title属性:string
<el-dropdown-sub-menu title="文档权限">
  <el-dropdown-item command="aa">Action 1</el-dropdown-item>
  <el-dropdown-item command="bb">Action 2</el-dropdown-item>
  <el-dropdown-item command="cc">Action 3</el-dropdown-item>
  <el-dropdown-item command="dd" disabled>Action 4</el-dropdown-item>
  <el-dropdown-item command="ee" divided>Action 5</el-dropdown-item>
</el-dropdown-sub-menu>

input输入框

新增属性

Name Description Type Default Required
specialTagInput 根据ui组件新增属性,主要是为了控制标签输入框的样式, primary表示两侧标签有背景色,transparent表示两侧标签无背景色 ^[primary | transparent] null No

empty

新增属性

  • status
    • 取值:'no-permission' | 'no-data' | 'no-mind' | 'no-message' | 'no-search'

Package Sidebar

Install

npm i ilaw-element-plus

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

84.9 MB

Total Files

6458

Last publish

Collaborators

  • wenjinglin