Skip to content

Commit 1cc0dd9

Browse files
kagolgitee-org
authored andcommitted
!107 fix(overlay): overlay 改名为遮罩层
Merge pull request !107 from Zcating/overlay
2 parents 66ef99d + 5ae0d0c commit 1cc0dd9

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

devui/overlay/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FixedOverlay.install = function(app: App) {
1313
export { FlexibleOverlay, FixedOverlay }
1414

1515
export default {
16-
title: 'Overlay 浮层',
16+
title: 'Overlay 遮罩层',
1717
category: '通用',
1818
install(app: App): void {
1919
app.use(FixedOverlay as any);

devui/overlay/src/flexible-overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function getOriginRect(origin: Origin): ClientRect {
274274
}
275275

276276
/**
277-
* 获取浮层的左上角坐标
277+
* 获取遮罩层的左上角坐标
278278
* @param {Point} originPoint
279279
* @param {DOMRect} rect
280280
* @param {ConnectionPosition} position

sites/.vitepress/config/sidebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const sidebar = {
1212
{ text: 'Search 搜索框', link: '/components/search/', status: '已完成' },
1313
{ text: 'Status 状态', link: '/components/status/', status: '已完成' },
1414
{ text: 'Sticky 便贴', link: '/components/sticky/' },
15-
{ text: 'Overlay 浮层', link: '/components/overlay/'}
15+
{ text: 'Overlay 遮罩层', link: '/components/overlay/'}
1616
]
1717
},
1818
{

sites/components/overlay/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## 浮层
2-
浮层属于基础组件,用于构建独立于当前页面布局的组件。
1+
## 遮罩层
2+
遮罩层属于基础组件,用于构建独立于当前页面布局的组件。
33
### 何时使用
44
当你需要全局弹窗,或者需要元素跟随功能,便可以使用该组件。
5-
### 固定浮层
5+
### 固定遮罩层
66

77
:::demo 使用`sm``''``lg`来定义`Search`基本类型
88

@@ -24,7 +24,7 @@ export default defineComponent({
2424
const origin = ref();
2525
const visible = ref(false);
2626
const handleClick = () => visible.value = !visible.value;
27-
const title = computed(() => visible.value ? '隐藏' : '显示固定浮层' );
27+
const title = computed(() => visible.value ? '隐藏' : '显示固定遮罩层' );
2828
return {
2929
visible,
3030
handleClick,
@@ -37,7 +37,7 @@ export default defineComponent({
3737
:::
3838

3939

40-
### 弹性浮层
40+
### 弹性遮罩层
4141

4242
:::demo
4343
```vue
@@ -172,27 +172,27 @@ export default defineComponent({
172172
### API
173173
d-fixed-overlay 参数
174174

175-
| 参数 | 类型 | 默认 | 说明 |
176-
| :--------------: | :------------------------: | :---: | :---------------------------------------------------------------- |
177-
| visible | `boolean` | false | 可选,浮层是否可见 |
178-
| onUpdate:visible | `(value: boolean) => void` | -- | 可选,浮层取消可见事件 |
179-
| backgroundBlock | `boolean` | false | 可选,如果为 true,背景不能滚动 |
180-
| backgroundClass | `string` | -- | 可选,背景的样式类 |
181-
| hasBackdrop | `boolean` | true | 可选,如果为false,背景后下的内容将可以触发 |
182-
| backdropClick | `() => void` | -- | 可选,点击背景触发的事件 |
183-
| backdropClose | `boolean` | false | 可选,如果为true,点击背景将触发 `onUpdate:visible`参数是 false |
184-
| overlayStyle | `CSSProperties` | -- | 可选,浮层的样式 |
175+
| 参数 | 类型 | 默认 | 说明 |
176+
| :--------------: | :------------------------: | :---: | :-------------------------------------------------------------------- |
177+
| visible | `boolean` | false | 可选,遮罩层是否可见 |
178+
| onUpdate:visible | `(value: boolean) => void` | -- | 可选,遮罩层取消可见事件 |
179+
| backgroundBlock | `boolean` | false | 可选,如果为 true,背景不能滚动 |
180+
| backgroundClass | `string` | -- | 可选,背景的样式类 |
181+
| hasBackdrop | `boolean` | true | 可选,如果为false,背景后下的内容将可以触发 |
182+
| backdropClick | `() => void` | -- | 可选,点击背景触发的事件 |
183+
| backdropClose | `boolean` | false | 可选,如果为true,点击背景将触发 `onUpdate:visible`默认参数是 false |
184+
| overlayStyle | `CSSProperties` | -- | 可选,遮罩层的样式 |
185185

186186
d-flexible-overlay 参数
187187

188188
| 参数 | 类型 | 默认 | 说明 |
189189
| :--------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---: | :---------------------------------------------------------------- |
190-
| visible | `boolean` | false | 可选,浮层是否可见 |
191-
| onUpdate:visible | `(value: boolean) => void` | -- | 可选,浮层取消可见事件 |
190+
| visible | `boolean` | false | 可选,遮罩层是否可见 |
191+
| onUpdate:visible | `(value: boolean) => void` | -- | 可选,遮罩层取消可见事件 |
192192
| backgroundBlock | `boolean` | false | 可选,如果为 true,背景不能滚动 |
193193
| backgroundClass | `string` | -- | 可选,背景的样式类 |
194194
| hasBackdrop | `boolean` | true | 可选,如果为false,背景后下的内容将可以触发 |
195195
| backdropClick | `() => void` | -- | 可选,点击背景触发的事件 |
196196
| backdropClose | `boolean` | false | 可选,如果为true,点击背景将触发 `onUpdate:visible`,参数是 false |
197-
| origin | `Element \| ComponentPublicInstance \| { x: number, y: number, width?: number, height?: number }` | false | 必选,你必须指定起点元素才能让浮层与该元素连接在一起 |
198-
| position | `{originX: HorizontalPos, originY: VerticalPos, overlayX: HorizontalPos, overlayY: VerticalPos } (type HorizontalPos = 'left' \| 'center' \| 'right') ( type VerticalPos = 'top' \| 'center' \| 'bottom')` | false | 可选,指定浮层与原点的连接点 |
197+
| origin | `Element \| ComponentPublicInstance \| { x: number, y: number, width?: number, height?: number }` | false | 必选,你必须指定起点元素才能让遮罩层与该元素连接在一起 |
198+
| position | `{originX: HorizontalPos, originY: VerticalPos, overlayX: HorizontalPos, overlayY: VerticalPos } (type HorizontalPos = 'left' \| 'center' \| 'right') ( type VerticalPos = 'top' \| 'center' \| 'bottom')` | false | 可选,指定遮罩层与原点的连接点 |

0 commit comments

Comments
 (0)