@dafenqi/element-plus
TypeScript icon, indicating that this package has built-in type declarations

0.0.47 • 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

el-dafenqi-empty

属性

  • type
    • 取值:'no-data' | 'no-search' | 'no-msg' | 'no-permission' | 'no-contract' | 'no-todo'
    • 对应:暂无数据 | 暂无搜索结果 | 暂无消息 | 暂无权限 | 暂无合同 | 您暂无待办信息数据哦~

el-screening

属性

  • screeningData: Array<any>
  • valueKey: string, 默认为value
  • labelKey: string, 默认为label
  • 请使用v-model,且需要传入初始值

事件

  • click,参数item

el-screening

el-dafenqi-tabs

属性

  • filterList: Array<any>
  • valueKey: string, 默认为value
  • labelKey: string, 默认为label
  • 请使用v-model:activeKey,且需要传入初始值

el-dafenqi-tabs

Package Sidebar

Install

npm i @dafenqi/element-plus

Weekly Downloads

6

Version

0.0.47

License

MIT

Unpacked Size

87.1 MB

Total Files

6692

Last publish

Collaborators

  • shaojingli6
  • zhenyu_li
  • zhangyifan0001
  • whosmeya
  • shiningning
  • wenjinglin
  • pxcoder