Skip to content

Commit

Permalink
feat: 修改组件介绍和代码注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinhone committed Nov 17, 2023
1 parent 6829bce commit a8903f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface ExtraOptionsPanelInitData {
}
}

// 当使用 ExtraOptionsPanel 组件时,如果不传入 initData 所使用的默认数据
export const defaultInitData: ExtraOptionsPanelInitData = {
header: {
title: {
Expand Down
7 changes: 7 additions & 0 deletions registry/lib/components/style/custom-font-family/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。

当组件被启用后,几乎所有的元素会立即应用组件提供的字体设置。

`覆盖*` 选项相当于一个白名单,使用了特殊字体的元素会被加入其中。默认情况下这些元素不会应用组件提供的字体设置,只有在启用对应的 `覆盖*` 选项后才会应用。

字体设置写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family)、默认设置与设置说明。
6 changes: 0 additions & 6 deletions registry/lib/components/style/custom-font-family/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ const name = camelName

const displayName = '自定义字体'

const description = {
'zh-CN':
'使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。字体设置写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family) 、默认设置与设置说明',
}

const tags = [componentsTags.style, componentsTags.general]

const entry = () => {
Expand Down Expand Up @@ -123,7 +118,6 @@ const author = {
export const component = defineComponentMetadata({
name,
displayName,
description,
tags,
entry,
options,
Expand Down

0 comments on commit a8903f9

Please sign in to comment.