index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/mock.en-US.md | `````
Arco Pro
# Mock Data
Intercept ajax and return simulated data
`````
*Auto translate by google.*
## Solution
Parallel development of front and back ends means that the front end needs to be developed without interface data. In this case, if the function of simulating data requests can be provided, our data re... | 6,100 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/mock.zh-CN.md | `````
Arco Pro
# 模拟数据
拦截 ajax 并返回模拟的数据
`````
## 解决方案
前后端并行开发意味着前端需要在没有接口数据的情况下进行开发,在这种情况下如果能提供模拟数据请求的功能,我们的数据请求代码就能正常书写,pro 采用了 Mock.js 来实现这个功能。
Mock.js 会拦截 ajax 请求,如果有匹配的 mock 规则,就不会将 ajax 发出去,而是返回 mock 的数据。Mock.js 有着丰富的模拟数据生成方法,建议先读一下文档,文档写的很清晰易懂 [MockJs 文档](http://mockjs.com/).
```js
import Mock from 'mockjs';... | 6,101 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/permission.en-US.md | `````
Arco Pro
# Permission Control
Permission control is a very common basic function in middle and background scenarios. In `v2.1.0`, the permission control function is integrated into Arco Design Pro
`````
*Auto translate by google.*
## Applicable scene
The common front-end permission control in the middle and b... | 6,102 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/permission.zh-CN.md | `````
Arco Pro
# 权限控制
权限控制是中后台场景非常常见的基础功能,在 `v2.1.0` 将权限控制功能集成至 Arco Design Pro
`````
## 适用场景
中后台常见的前端权限控制大概可概括为以下场景:
1. 菜单权限控制,针对**某个菜单/页面**进行权限管理,有则能看到此页面,否则将展示无权限。
2. **针对某页面中的某触发器**进行权限管理,例如对列表页的某一条数据进行删除操作。有权限情况下则展示删除按钮。
3. **针对某页面、某对象的某触发器**进行权限管理,例如列表页且内容体裁为图文的数据的删除操作。在有权限情况下对这条数据展示删除按钮。
Arco Design Pro 在... | 6,103 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/routes-and-menu.en-US.md | `````
Arco Pro
# Routing and menu
Route and menu generation.
`````
*Auto translate by google.*
Routing is usually tied to the menu. In order to reduce the amount of maintenance, we directly generate the menu through the routing table.
## Routing
First of all, you need to understand the routing table configuration... | 6,104 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/routes-and-menu.zh-CN.md | `````
Arco Pro
# 路由与菜单
路由和菜单的生成。
`````
路由通常都和菜单绑定在一起,为了减少维护的量,我们直接通过路由表生成了菜单。
## 路由
首先,需要先了解一下路由表的配置
```js
// src/routes.ts
export const routes = [
{
name: 'menu.dashboard', // 菜单名,locale['menu.dashboard']
key: 'dashboard', // 菜单项 key,也是菜单 path
children: [
... | 6,105 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/start.en-US.md | `````
Arco Pro
# Quick start
Please follow the steps below to create Arco Design Pro
`````
*Auto translate by google.*
## Environment
Before starting development, please make sure that `node`, `git` and `arco cli >= 1.24.0` are installed in the local environment.
Among them, `arco cli` is a tool for installing pr... | 6,106 |
0 | petrpan-code/arco-design/arco-design/site/docs | petrpan-code/arco-design/arco-design/site/docs/pro/start.zh-CN.md | `````
Arco Pro
# 快速开始
请跟随以下步骤创建 Arco Design Pro
`````
## 环境
开始开发之前,请确认本地环境中安装好了 `node`, `git` 和 `arco cli >= 1.24.0`。
其中 `arco cli` 是安装项目模版的工具,请运行以下命令安装:
```
npm i -g arco-cli
```
## 技术栈
本项目的技术栈为 `React` + `ES2015+` + `TypeScript` + `bizcharts` 和 `Arco Design`,提前学习和了解这些知识将帮助你更好地上手我们的项目。
同时实现多架构创新方式,支持输出多种架构的 `... | 6,107 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/introduce.en-US.md | `````
ArcoDesign
# Introduction
Upgraded from Byte Design, a comprehensive enterprise-level product design system.
`````
## How does ArcoDesign come into being
**ArcoDesign** is short for a set of design system.
- The objective of ArcoDesign is to solve the experience problems occurred when using a product with ... | 6,108 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/introduce.zh-CN.md | `````
ArcoDesign
# 介绍
基于 Byte Design 升级而来,能力全面的企业级产品设计系统。
`````
## ArcoDesign 的诞生
**ArcoDesign** 是一套设计系统的简称。
- ArcoDesign 的目标, 即通过通用的设计系统去解决产品中的体验问题, 并为产品设计提供指导原则解决业务问题,同时它能够促进设计部门和研发部门之间协作, 成为开发者之间沟通的语言。
- ArcoDesign 主要服务于字节跳动旗下中后台产品的体验设计和技术实现,主要由UED设计和开发同学共同构建及维护。
## 设计语言 - 务实的浪漫主义
<img src="https://p1-arco.by... | 6,109 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/philosophy.en-US.md | `````
ArcoDesign
# Design Philosophy
Design philosophy is equivalent to the rhetoric in the entire language system.
`````
Pragmatic romanticism is the description of design language, and it also represents the working mode that ArcoDesign is trying to establish.
Romanticism and pragmatism is not contradictory but c... | 6,110 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/philosophy.zh-CN.md | `````
ArcoDesign
# 设计原则
设计原则相当于整个语言体系中的修辞手法。
`````
务实的浪漫主义是对设计语言的形容,它也代表着ArcoDesign试图建立的工作模式。
浪漫与务实并非矛盾对立, 它们相辅相成,引导设计方向。通过对务实与浪漫的定义得出设计语言的价值观, 这贯穿着整个设计系统。
清晰与一致的价值观意味着务实的方向, 清晰的效率提升是务实的基础, 品牌的一致性是务实的目的。
韵律与开放的价值观意味着浪漫的方向, 推敲设计的韵律是Bytedancer的浪漫, 包容开放的体系才能浪漫地解决问题。
设计原则相当于整个语言体系中的修辞手法, 在实际的词语组成中给我们提供模式化的思考结构。它让整个语言... | 6,111 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/style-guideline.en-US.md | `````
ArcoDesign
# Style Guideline
In-depth design details from all style aspects.
`````
## Color
Color has a very important influence on the visual communication of products and the carrying of multi-dimensional information. Good products should clearly and accurately convey effective information and brand sense i... | 6,112 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/docs_spec/style-guideline.zh-CN.md | `````
ArcoDesign
# 样式指南
从形色质构字全方面深入页面细节。
`````
## 色彩
色彩对产品的视觉传达和多维度信息的承载有着很重要的影响,好的产品在色彩配置上应当清晰,准确的传达有效信息和品牌感。按照颜色类型和功能的不同,arco将色彩分为主色、中性色、功能色和遮罩色。
### 主色
主色是一个产品的代表颜色,一般与品牌色相关联。常用于主要按钮和文字、重点操作状态、高亮提醒、空状态等。arco的默认主色为#165DFF,同时根据使用场景的不同,基于主色衍生出了点击态、悬浮态等不同状态下的颜色。
** :可以在警告提示的文字前添加图标,用以明示当前信息状态;
2. **提示文字(必选)** :提示的内容,建议不要超过1行;
3. **辅助性文字(可选)** :当内容比较长时,可通过辅助性文字进行补充提示;
4. **链接(可选)** :可以在警告提示的文字后添加链接;
5. **叉号(可选)** :点击后关闭警告提示;
 | 支持三种类型组成图片:图片、ICON 以及字符,其中 ICON 和字符型可以自定义图标颜色及背景色 |
|... | 6,119 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/badge.en-US.md | `````
Component / Data Display
# Badge
Badge normally appears in the upper right corner of the icon or text to prompt important information.
`````
## Basic Properties
### Definition
It usually appears in the upper right corner of the icon, avatar, and copy, and is used to display the number of messages that need t... | 6,120 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/badge.zh-CN.md | `````
组件 / 数据展示
# 徽标数 Badge
一般出现在图标或文字的右上角。提供及时、重要的信息提示。
`````
## 基本属性
### 组件定义
一般出现在图标或文字的右上角。提供及时、重要的信息提示。
### 构成
| 构成元素 | 说明 |
| :--------- | :--------------------------------------------------- |
| 1.背景容器 | 用来承载内容的容器。 |
| 2.内容 ... | 6,121 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/breadcrumb.en-US.md | `````
Component / Navigation
# Breadcrumb
Used to display the location of the current page and quickly return to the history page.
`````
## Basic Properties
### Definition
Breadcrumbs are auxiliary navigation components that help user locate their current position and allow them to return upwards.
### Anatomy
... | 6,122 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/breadcrumb.zh-CN.md | `````
组件 / 导航
# 面包屑 Breadcrumb
面包屑是辅助导航模式,用于识别页面在层次结构内的位置,并根据需要向上返回。
`````
## 基本属性
### 组件定义
面包屑是辅助导航组件,帮助用户定位当前位置,允许用户向上返回。
### 组件构成
面包屑组件由文字标签、分隔符组成。
| 构成元素 | 说明 |
| :------ | :---- |
| 1. 文字标签 | 用以表示页面名称。文字标签可替换为图标。 |
| 2. 分隔符 | 用以分隔每级页面,默认分隔符为(/)。可以将面包屑的默认分隔符替换为其他具有分隔或指示作用的元素,如:向右箭头(>)、实心圆点(·)等 |
 | ... | 6,128 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/comment.zh-CN.md | `````
组件 / 数据展示
# 评论 Comment
展示评论信息
`````
## 基本属性
### 组件定义
对内容的反馈、评价和讨论。
### 组件构成
| 构成元素 | 说明 |
| ---------- | --------------------------- |
| 1.头像(必有) | 可以是系统默认头像,也可以是用户自定义头像。 |
| 2.作者名(必有) | 一般为用户自定义的账号。 |
| 3.时间(必有) | 显示评论发表时间。 |
| 4.评论... | 6,129 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/config-provider.en-US.md | `````
Component / Other
# ConfigProvider
Configure in the outermost layer of the application to set global params.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
Provide a unified global configuration for components, set once, and take effect globally.
### Component type
Global c... | 6,130 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/config-provider.zh-CN.md | `````
组件 / 其他
# 全局配置 ConfigProvider
在应用的最外层进行配置,一次设置,全局生效。一般用于设置国际化语言等功能。
`````
## 基本属性
### 组件定义
为组件提供统一的全局化配置,一次设置,全局生效。
### 组件类型
全局配置可通过不同类型的组件去实现,常用的组件类型有:开关、标签页、筛选框等。
| 类型 | 说明 |
| ------- | -------------- |
| 1、开关形式 | 用于两个配置选项之间来回切换 |
| 2、标签页形式 | 有多个配置选项时使用 |
| 3、筛选框形式 | 有多个配置选项时使用 ... | 6,131 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/descriptions.en-US.md | `````
Component / Data Display
# Descriptions
Generally used to display information on the detail page.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
Display multiple read-only fields in groups, which are generally used to display information on the detail page.
### Component com... | 6,132 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/descriptions.zh-CN.md | `````
组件 / 数据展示
# 描述列表 Descriptions
一般用于详情页的信息展示。
`````
## 基本属性
### 组件定义
成组展示多个只读字段,一般用于详情页的信息展示。
### 组件构成
| 构成元素 | 说明 |
| -------- | ------------- |
| 1、标题(可选) | 概括描述列表的信息内容 |
| 2、内容(必选) | 内容文字可展示为一行或多行 |
| 3、边框(可选) | 描述列表可带边框和背景颜色 |
** :纯文字标题;
2. **正文((必有)** :可包含文字描述、表单、表格、步骤条、通知;
3. **行动按钮(可选)** :一般为两个按钮(一般是“确定、取消”);
4. **叉号(可选)** :点击可关闭弹窗;
5. **黑色蒙层(可选)** :黑色蒙层覆盖全页面,蒙层下方的页面内容不响应滚动和点击;
:** 菜单项是为了传达用户当前选择的内容或操作。
2. **下拉项(可选):** 展示其他菜单项。
3. **搜索(可选):** 搜索允许用户快捷查找备选菜单项。
** :符合当前场景的图片或图标。
2. **文字(可选)** :对当前状态的一个简单说明介绍,也可用于指导用户行为。
3. **按钮/文字链(可选)** :对改变当前状态的的一个引导性操作。

5. **水槽宽度G** :指每个水槽的宽度(Gutter)
6. **边距**:指第一个栅格距离页面边框的距离(Margin)
** :承载文本内容的容器,通过包裹文本并与文本在颜色上形成对比来提高输入区域的可发现性。容器边缘的颜色和粗细变化用于指示当前输入框的状态(如:激活、报错、成功);
2. **标签文字(建议有)** :容器顶部或左侧的简短说明文字,用于说明需要输入的内容,尽量不超过6个汉字。建议标签文字始终展示,仅当... | 6,143 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/layout.en-US.md | `````
Component / Layout
# Layout
The basic layout framework which is often nested with components to build the overall layout of the page.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
The basic layout framework of the page is often nested with components to form the overall layo... | 6,144 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/layout.zh-CN.md | `````
组件 / 布局
# 布局 Layout
页面的基础布局框架,常与组件嵌套使用,构建页面整体布局。
`````
## 基本属性
### 组件定义
页面的基础布局框架,常与组件嵌套使用,构成页面整体布局。
### 组件构成
1. **顶部导航** **(可选)** :可嵌套组件和元素,常与搭配使用的有logo/标签/输入框/按钮/头像等。
2. **侧边栏(可选)** :可嵌套组件和元素,常与搭配使用的有树选择器/输入框等。
3. **内容部分(必选)** :可嵌套组件和元素,常与搭配使用有卡片 / 折叠面板 / 空状态 / 列表 / 数值显示 / 标签页等。
4. **页面底部(可选)** :可嵌套组件和元素... | 6,145 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/link.en-US.md | `````
Component / General
# Link
Basic style of link.
`````
## Basic Properties
### Component definition
A link is a text with navigation properties, which jumps to a certain page when clicked.
### Component composition
The link component consists of text labels and icons.
| Constituent elements | Description ... | 6,146 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/link.zh-CN.md | `````
组件 / 通用
# 链接 Link
链接的基本样式。
`````
## 基本属性
### 组件定义
链接是具有导航属性的文本,点击后跳转到某个页面。
### 组件构成
链接组件由文本标签和图标构成。
| 构成元素 | 说明 |
| :------------- | :----------------------------- |
| 1.图标(可选) | 使用图标可传达更多含义。 |
| 2.文本标签 | 简洁清晰准确的传达链接的内容。 |
** :如图标/图片,帮助用户更容易定位到需要找到的信息;
2. **正文内容(必选)** :主要内容,文字可展示为一行或多行;
3. **行动按钮(可选)** :图标按钮或文字按钮,对本行列表内容进行操作;
组成。
| 构成元素 | 说明 |
| :---- | :---- |
| 文本标签 | 文本标签是菜单的主要元素,表明了菜单项链接的功能模块 |
| 图标 | 图标可辅助说明文本标签,图形化的表达形式可以提高用户识别菜单项的效率 |
 | 提供成功、警告和错误等反馈信息,允许增加文字链接 |
| 2、图标(可选) | 可提供成功、警告和错误等图标,与文本搭配使用 |
| 3、按钮(可选) | 根据业务需要,选择是否有关闭按钮 |
** :可以是纯文字,也可以在文字前带有icon来明示状态;
2. **正文(可选)** :可包含文字描述、表单、表格、步骤条、通知;
3. **行动按钮(可选)** :通知类弹窗一般只包含两个按钮,确认或信息录入弹窗一般为两个按钮(一般是“确定、取消”);
4. **... | 6,155 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/notification.en-US.md | `````
Component / Feedback
# Notification
Display a notification message globally.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
Used to feed back important warning prompts and notification messages to users.
### Component composition
1. **Title (required)**: Deliver core inform... | 6,156 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/notification.zh-CN.md | `````
组件 / 反馈
# 通知提醒框 Notification
全局展示通知提醒,将信息及时有效的传达给用户。
`````
## 基本属性
### 组件定义
用于向用户反馈重要的警告提示和通知消息。
### 组件构成
1. **标题(必有)** :传递核心信息,为用户提供通知的快速概览或直接结果。
2. **通知文本(可选)** :用于描述额外的细节或可操作的步骤,通知的正文中可包含[链接](/docs/spec/Link),这些链接可定向到后续步骤中。
3. **行动按钮(可选)** :允许用户处理通知或将他们导航到包含更多详细信息的页面。
4. **关闭按钮(可选)** :关闭通知提醒框。
5. **图标(可... | 6,157 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/popconfirm.en-US.md | `````
Component / Data Feedback
# Popconfirm
A simple confirmation box of an action.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
Click the trigger and a bubble confirmation box will pop up.
### Component composition
It is composed of 1. flip-flop and 2. floating layer.
| **Co... | 6,158 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/popconfirm.zh-CN.md | `````
组件 / 反馈
# 气泡确认框 Popconfirm
点击元素,弹出气泡式的确认框。
`````
## 基本属性
### 组件定义
点击触发器,弹出气泡式的确认框。
### 组件构成
由 1. 触发器和 2.浮层 构成。
| **构成** | **说明** |
| ------ | ----------------------------- |
| 触发器 | 点击触发器将唤起气泡确认框,触发器一般为按钮或链接 |
| 浮层 | 浮层为确认框容器,其中包含了提示性文字和需要用户确认的操作 |
** :气泡卡片的背景。
**2、内容** **(必选)** :气泡卡片的内容(如标题、段落、链接、按钮等)。
** :实时展示已完成的进度,颜色与总进程颜色形成强烈对比来展示当前进度情况。
2. **总进度(必有)** :表示需要完成的总进度,建议颜色不带有色彩倾向。
3. **进度描述(建议有)** :对当前进度的简短说明,可以是百分数、图标或者其他自定义字段。
:** 描述选项组或提供选择指南。
2. **单选按钮(必有):** 按钮通常为一个圆圈,代表数据输入、任务设置。默认情况下会选择一个选项,指示当前状态。
3. **选项文本标签(必有):** 描述要选择或取消选择的信息,除描述之外,还可以作为操作热区,当用户点击标签,对应的单选框就会被选中。

### 组件类型
| 类型 | 说明 |
| ---- | ---------------- |
| 水平间距 | 相邻组件的水平间距。 |
| 垂直间距 | 相邻组件的垂直... | 6,171 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/table.en-US.md | `````
Component / Data Display
# Table
Used for data collection, display, analysis, and processing.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
A table is a structured display of information in the form of rows and columns; it is convenient for users to view and analyze data.
#... | 6,172 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/table.zh-CN.md | `````
组件 / 数据展示
# 表格 Table
用于数据收集展示、分析整理、操作处理。
`````
## 基本属性
### 组件定义
表格是用行列的形式,结构化展示信息的组件;方便用户查看、分析数据。
### 组件构成
1. **表头 (必有**):说明这一列的信息类别,也可以在表头放置一些排序、筛选等操作按钮。
2. **单元格(必有)** :表格的主体由多个单元格组成,单元格内支持文字、图标、按钮、标签、单选框、复选框等元素。
3. **行列分割线(非必有**):从视觉上分隔信息。
** :简短的文字描述(必要时可附带图标),用于总结相应视图中的内容,同时作为切换视图的按钮,建议每个标签不超过4个汉字,一次展示不超过7个标签;
2. **内容区域(必有)** :展示选中标签对应的内容,内容形式不限,区域大小根据内容量和页面布局而定;
3. **滑动按钮(可选... | 6,175 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/tooltip.en-US.md | `````
Component / Data Display
# Tooltip
A simple text popup tip.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
When the mouse is hovered or the keyboard is focused on a UI element (such as a button, icon, etc.), a simple text prompt pops up around the element to display the auxil... | 6,176 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/tooltip.zh-CN.md | `````
组件 / 数据展示
# 文字气泡 Tooltip
鼠标悬停、聚焦或点击在某个组件时,弹出的文字提示。
`````
## 基本属性
### 组件定义
鼠标悬停或键盘聚焦在一个UI元素(如按钮、图标等)上时,在元素周围弹出的简单文字提示,用于展示该元素的辅助信息。
### 组件构成
1. **气泡框(必有)** :承载文字的容器,让文字能够更清晰的展示。建议带箭头,箭头指向目标元素。
2. **文字(必有)** :简单的描述性文字,作为目标元素的辅助信息。建议不超过4行,每行文字不超过20个汉字。
** :位于组件左侧的容器,用于承载待选的数据列表;
2. **选中框(必有)** :位于组件右侧的容器,用于承载已选的数据列表
3. **数据列表(必有)** :位于待选框和选中框内的数据内容,内容形式根据不同场景可以为多选、树选择和表格;
4. **选择按钮(必有)** :位于待选框和选中框中间的按... | 6,179 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/typography.en-US.md | `````
Component / General
# Typography
Used to display titles, paragraphs, and text content.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
It is used to display the basic format of headings, paragraphs, and text content to express hierarchical structure and brand image.
### Compo... | 6,180 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/typography.zh-CN.md | `````
组件 / 通用
# 排版 Typography
用于展示标题、段落、文本内容。
`````
## 基本属性
### 组件定义
用于展示标题、段落、文本内容的基本格式,表达层次结构和品牌形象。
### 组件构成
| 构成元素 | 说明 |
| ---------- | --------------------------- |
| 1、标题(可选) | 标题用于显示内容层次结构,对于改善用户的阅读体验很重要 |
| 2、文本(必选) | 有不同样式的文本以及超链接组件 |
| 3、段落(可选) | 可形成文本段落... | 6,181 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/upload.en-US.md | `````
Component / Data Entry
# Upload
Upload file by selecting or dragging.
`````
*Auto translate by google.*
## Basic attributes
### Component definition
Users can transfer files or submit corresponding content.
### Component composition
| Components | Description |
| ----------- | ----------------------------... | 6,182 |
0 | petrpan-code/arco-design/arco-design/site/docs_spec | petrpan-code/arco-design/arco-design/site/docs_spec/components/upload.zh-CN.md | `````
组件 / 数据输入
# 上传 Upload
用户可传输文件或提交相应的内容。
`````
## 基本属性
### 组件定义
用户可传输文件或提交相应的内容。
### 组件构成
| 构成元素 | 说明 |
| ----------- | ----------------------------- |
| 1、上传触发器(必选) | 点击上传触发器打开本地文件夹,用以选择要上传的文件或文件夹 |
| 2、上传内容(必选) | 上传后的展示形式有文本、图片列表、图片墙、自定义样式等 |
| 3、删除按钮(可选) | 用于删除上传过程中或者... | 6,183 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/public/index.ejs | <!DOCTYPE html>
<html lang="<%= lang %>">
<head>
<meta charset="UTF-8" />
<link
rel="shortcut icon"
type="image/x-icon"
href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<m... | 6,184 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/App.js | import React, { useContext, useEffect, useRef } from 'react';
import { Route, Switch, useHistory } from 'react-router-dom';
import Navbar from '@arco-materials/site-navbar-new';
import {
PageDurationTracker,
teaLog,
ModuleDurationTracker,
Module,
} from '@arco-materials/site-utils';
import AOS from 'aos';
impor... | 6,185 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/context.js | import { createContext } from 'react';
export const GlobalContext = createContext({});
export const GlobalNoticeContext = createContext({});
| 6,186 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/declaration.d.ts | declare module '*.svg' {
const ReactComponent: any;
export default ReactComponent;
}
declare module '*.png' {
const src: any;
export default src;
}
declare module '*.jpg' {
const src: any;
export default src;
}
declare module '*.less' {
const classes: { [className: string]: string };
export defaul... | 6,187 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/getRoutes.js | import routes from './r';
import lazyLoad from './utils/lazyload';
import { toPascalCase } from './utils/case';
function isArray(obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
}
function getRoutes(lang = 'zh', t) {
const suffix = lang === 'zh-CN' ? '.zh-CN' : '.en-US';
const newRoutes ... | 6,188 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/index-en.js | import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import axios from 'axios';
import Navbar from '@arco-materials/site-navbar-new';
import { ConfigProvider } from '@arco-design/web-react';
import enUS from '@arco-design/web-react/es/lo... | 6,189 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/index.js | import React, { useEffect, useState } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import axios from 'axios';
import Navbar from '@arco-materials/site-navbar-new';
import { ConfigProvider } from '@arco-design/web-react';
import zhCN from '@arco-design/web-react/es/lo... | 6,190 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/page.js | import React, { useState, useEffect, useCallback, useContext, useMemo } from 'react';
import { BackTop, Button } from '@arco-design/web-react';
import { IconUp, IconLeft } from '@arco-design/web-react/icon';
import Footer from '@arco-materials/site-footer';
import { useHistory } from 'react-router-dom';
import getRoute... | 6,191 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/r.js | export default [
{
name: 'development-guide',
module: 'react',
type: 'docs',
dir: '../docs',
map: {
dark: './pages/dark',
palette: './pages/palette',
changelog: './pages/changelog/v2',
overview: './pages/overview',
},
children: [
'start',
'dark',
'... | 6,192 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/routes.js | import lazyLoad from './utils/lazyload';
const DarkMode = lazyLoad(() => import('./pages/dark'));
const Palette = lazyLoad(() => import('./pages/palette'));
const Version = lazyLoad(() => import('./pages/changelog/v2'));
const Icon = lazyLoad(() => import('./pages/icon'));
const OverView = lazyLoad(() => import('./pag... | 6,193 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/serviceWorker.js | import { clientsClaim } from 'workbox-core';
import { precacheAndRoute, createHandlerBoundToURL } from 'workbox-precaching';
import { registerRoute } from 'workbox-routing';
clientsClaim();
const manifest = self.__WB_MANIFEST;
const _manifest = manifest.map((item) => {
const { revision, url } = item;
// html won... | 6,194 |
0 | petrpan-code/arco-design/arco-design/site | petrpan-code/arco-design/arco-design/site/src/serviceWorkerRegistration.js | import React from 'react';
import { Notification, Button } from '@arco-design/web-react';
let refreshing;
function invokeServiceWorkerUpdateFlow(config, registration) {
const id = 'notification';
// there is a new service worker available, show the notification
Notification.info({
id,
closable: true,
... | 6,195 |
0 | petrpan-code/arco-design/arco-design/site/src | petrpan-code/arco-design/arco-design/site/src/assets/arco-logo.svg | <?xml version="1.0" encoding="UTF-8"?>
<svg width="143px" height="24px" viewBox="0 0 143 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>编组 6备份</title>
<g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="画板" transform... | 6,196 |
0 | petrpan-code/arco-design/arco-design/site/src/assets | petrpan-code/arco-design/arco-design/site/src/assets/logo/logo_ArcoPro.svg | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 21.0001C15.5834 21.0001 21 14.977 21 7.80908L16 7.80908C16 12.4034 12.6368 15.9981 8 15.9981L8 21.0001Z" fill="#16D2AC"/>
<path d="M3 3H8V16.0052H3V3Z" fill="#165DFF"/>
<pa... | 6,197 |
0 | petrpan-code/arco-design/arco-design/site/src/assets | petrpan-code/arco-design/arco-design/site/src/assets/logo/logo_DesignLab.svg | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 16.2632C14.3545 16.2632 16.2632 14.3545 16.2632 12C16.2632... | 6,198 |
0 | petrpan-code/arco-design/arco-design/site/src/assets | petrpan-code/arco-design/arco-design/site/src/assets/logo/logo_IconBox.svg | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 16H21V21H3V16Z" fill="#175EFF"/>
<path d="M8 12V21H3V12H8Z" fill="#175EFF"/>
<path d="M21 12V21H16V12H21Z" fill="#175EFF"/>
<path d="M8.77112 5.91203L14.428 11.3386L11.6569 14L6 8.5734L8.77112 5.91203Z" fill="#16... | 6,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.