
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@das-fed/web-components
Advanced tools
das-web-components 是 DAS 前端体系的 Web 组件库,基于 Web Components 技术,支持 Vue、React、原生 JS 等多种框架集成,适用于企业级中后台系统的统一架构和快速开发。
das-web-components 是 DAS 前端体系的 Web 组件库,基于 Web Components 技术,支持 Vue、React、原生 JS 等多种框架集成,适用于企业级中后台系统的统一架构和快速开发。
createCeTabs('das-ce-tabs') 注册。options:页签配置数组,支持禁用、隐藏、插槽等。modelValue:当前激活页签 key。update:modelValue:切换页签时触发,返回新激活 key。tabClick:点击页签时触发,返回 key。tabDelete:删除页签时触发,返回 key。menuClick:右键菜单操作,返回操作项和页签对象。pageRefresh:点击刷新按钮时触发。toggleFullScreen:切换全屏。import { ref } from 'vue'
import { createCeTabs } from '@das-fed/web-components'
createCeTabs('das-ce-tabs')
const activeKey = ref(1)
const options = ref([
{ key: 1, tab: 'Tab 1' },
{ key: 2, tab: 'Tab 2', disabled: true },
{ key: 3, tab: 'Tab 3' },
])
<das-ce-tabs :modelValue="activeKey" :options="options" @menuClick="menuClick"></das-ce-tabs>
interface MenuListType {
key: string | number
name: string
hidden?: boolean | Function
disabled?: boolean | Function
}
createCeNav('das-ce-nav') 注册。modelValue:当前选中菜单 key。config:导航栏配置。logoUrl、searchConfig、userInfoConfig、projectTreeConfig、innerPagesConfig 等。handleTabClick、handleTabDelete、changeInnerPage、searchToPage、clearSearchList、deleteSearchItem、userCommandHandle、changeTreeHandle。import { createCeNav } from '@das-fed/web-components'
createCeNav('das-ce-nav')
<das-ce-nav
@update:modelValue="(event) => (activeKey = event.detail[0])"
:modelValue="activeKey"
:config="config"
:logoUrl="logoUrl"
:searchConfig="searchConfig"
:userInfoConfig="userInfoConfig"
:projectTreeConfig="projectTreeConfig"
:innerPagesConfig="innerPagesConfig"
></das-ce-nav>
| 属性名 | 描述 | 类型 | 是否必填 |
|---|---|---|---|
| modelValue | 当前选中菜单 | string/number | 是 |
| config | 导航栏配置 | object | 是 |
| logoUrl | logo 图片链接 | string | 否 |
| innerPagesConfig | 内置页面配置 | object | 否 |
| searchConfig | 搜索配置 | object | 否 |
| userInfoConfig | 用户信息配置 | object | 否 |
| projectTreeConfig | 项目树配置 | object | 否 |
| 事件 | 说明 | 回调参数 |
|---|---|---|
| handleTabClick | 切换应用 | function(value:any) |
| handleTabDelete | 删除应用 | function(value:any) |
| changeInnerPage | 切换内置页面 | function(value:any) |
| searchToPage | 搜索-选中菜单跳转 | function(value:any) |
| clearSearchList | 搜索-清空历史记录 | void |
| deleteSearchItem | 搜索-删除指定的历史记录 | function(value:any) |
| userCommandHandle | 用户信息-操作项 | function(value:any) |
| changeTreeHandle | 项目树-是否确定切换选中项目 | function(status:bool,value:any) |
createCeMenu('das-ce-menu') 注册。modelValue:当前选中菜单 key。data:菜单数据数组。collapse:菜单栏初始折叠状态。change:选中项改变时触发。collapse-change:菜单折叠状态改变时触发。changeCollapse:切换菜单折叠状态。import { createCeMenu } from '@das-fed/web-components'
createCeMenu('das-ce-menu')
<das-ce-menu
:data="menuData"
:modelValue.prop="currentVal"
@update:modelValue="(event) => (currentVal = event.detail[0])"
:collapse.prop="collapse"
@change="onChange"
@collapse-change="onCollapseChange"
></das-ce-menu>
详细属性、类型定义和事件请参考源码及注释。
customEvent.detail 获取返回值。如需详细 API 说明、组件开发指南,请参考源码及注释。
FAQs
das-web-components 是 DAS 前端体系的 Web 组件库,基于 Web Components 技术,支持 Vue、React、原生 JS 等多种框架集成,适用于企业级中后台系统的统一架构和快速开发。
The npm package @das-fed/web-components receives a total of 170 weekly downloads. As such, @das-fed/web-components popularity was classified as not popular.
We found that @das-fed/web-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.