New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

f2c-workbench

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

f2c-workbench

f2c-workbench 是基于浏览器的工作台前端框架组件,提供可拖拽的分割面板、以及工作台的基本结构和样式

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

f2c-workbench

f2c-workbench 是基于浏览器的工作台前端框架组件,提供可拖拽的分割面板、以及工作台的基本结构和样式

在线预览网址:https://fit2cloud-ui.github.io/workbench

安装

推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。

npm install f2c-workbench

因为需要使用scss,所以需要安装sass,(sass-loader要求11以下)

npm install -D sass-loader@10.1.0 sass@1.43.4

引入

import Workbench from "f2c-workbench"
import "f2c-workbench/src/styles/index.scss";

Vue.use(Workbench);

使用

<workbench ref="workbench" :title="title">

</workbench>

API 文档

Attributes

参数说明类型可选值默认值
title头部标题String--
app-menu头部导航Array--
logo头部LogoString--
sidebar左侧侧边栏导航Array--
footerClass定义footer ClassNameString--
footerStyle定义footer StyleObject--
:visible-bottom-panel内容面板是否显示bottom面板(终端面板)Boolean-false
contextmenu内容面板右键tab时菜单Array--

Events

事件名说明参数
changeSidebar左侧侧边栏菜单切换时触发的事件当前菜单的实例
actived内容面板标签被激活时触发{ id, name, icon, iconClass, closable }
deleted内容面板标签被删除时触发{ id, name, icon, iconClass, closable }
onContextmenu如果使用contextmenu属性时,内容面板标签被右键时触发id
drop内容面板使用draggable时,当拖到内容面板区域并释放时触发-

Methods

方法名说明参数
activate激活内容面板某个标签(需使用ref)id

Slot

name说明
——内容面板的内容
sidebar左侧侧边栏的内容
sidebar-components左侧侧边栏展开后的内容
footerfooter的内容
bottom-panel内容面板中bottom面板的内容(终端面板)

app-menu Attributes

参数说明类型可选值默认值
name菜单名称String--
icon图标(class)String--
submenu子菜单Array--

submenu Attributes

参数说明类型可选值默认值
name菜单名称String--
submenu子菜单(如果有hotkey,该属性失效)Array--
hotkey快捷键(如果有submenu,该属性失效)String--
divided分割线Boolean-false
isSet是否已选择Boolean-false

submenu Events

事件名说明参数
click子菜单点击事件当前子菜单的实例

Sidebar Attributes

参数说明类型可选值默认值
name名称String--
icon图标(class)String--
hotkey快捷键String--
location位置Stringtop / bottomtop
component要展开的组件String--
...(component)component组件里的所有属性和事件---
type触发后的方式Stringpopover / --
submenu子菜单(如果是popover方式时使用)Array(同头部子菜单属性)-

contextmenu Attributes

参数说明类型可选值默认值
id唯一idString--
label名称String--
key快捷键String--
type设置分割线(设置该属性,其他属性都失效)Stringdivided-
iconClass图标(class)String--

contextmenu Events

事件名说明参数
execute回调-

文件 Widgets Attributes

(*激活文件时,交互的属性)
参数说明类型可选值默认值
id文件唯一idString--
name文件显示名称String--
iconClass图标(class)String--
components文件(文件名)String--

FAQs

Package last updated on 14 Mar 2022

Did you know?

Socket

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.

Install

Related posts