-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 🔥 新增组件 - [新增引导组件](/v2/doc/guide) - [新增悬浮按钮组件](/v2/doc/floatButton) - [新增骨架屏组件](/v2/doc/skeleton) - 新增组合式 API - [新增 useScroll](/v2/doc/composable) - 🔥 新增开发指南(/v2/doc/develop) - ⚙️ 更新 - 手风琴组件 MeAccordionItem 增加 `slot=label` 插槽 - 更新组件的使用文档 - 优化项目在使用组件或组合式 API 时由 getCurrentInstance 中获取改为直接从组件库获取的体验 - 更新项目依赖版本 - 组合式 API `useVisible` 增加初始化参数 - 简化文档里的按需引入方式 - 优化单元测试获取节点 - 更新依赖 `vue-tsc` 由 `1.x` 升级为 `2.x` - 🐞 修复已知 BUG - 修复 MeLoading 组件设置大小不生效问题 - 修复移动端点击出现蓝色背景问题 Co-authored-by: biaov2017 <biao2017@qq.com> Co-authored-by: biaov2018 <biaov2017@qq.com>
- Loading branch information
1 parent
6824c23
commit 59ece4f
Showing
185 changed files
with
2,245 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
/* 推荐扩展 */ | ||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] | ||
"recommendations": ["Vue.volar"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 开发指南 | ||
|
||
--- | ||
|
||
## 介绍 | ||
|
||
- 这个一个关于技术分享的 UI 组件库 | ||
- 代码注意一下其中的规范 | ||
- 提交 PR 代码时注意尽量保持你的 PR 足够小,最小不限制,哪怕只有一个字母 | ||
- 开发时请注意代码的可读性,可维护性,可测试性,保证代码的稳定 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# floatButton 悬浮按钮 `v2.8.0` | ||
|
||
--- | ||
|
||
## 按需引入 | ||
|
||
::: CopyCode | ||
|
||
```js | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
import { MeFloatButton } from 'mine-h5-ui' | ||
import 'mine-h5-ui/styles/MeFloatButton.css' | ||
|
||
createApp(App).use(MeFloatButton).mount('#app') | ||
``` | ||
|
||
::: | ||
|
||
## 提示 | ||
|
||
- 如果你觉得重新编写 HTML 结构麻烦,可以直接复制下面的代码。 | ||
|
||
## 代码演示 | ||
|
||
### 基础用法 | ||
|
||
- 通过属性 `style` 来设置组件的位置。 | ||
|
||
::: CopyCode | ||
|
||
```html | ||
<me-float-button :style="{ right: '20px', top: '100px'}">按钮</me-float-button> | ||
``` | ||
|
||
::: | ||
|
||
### 按钮形状 | ||
|
||
- 通过属性 `style` 来设置组件的按钮形状。 | ||
|
||
::: CopyCode | ||
|
||
```html | ||
<me-float-button :style="{ right: '20px', top: '100px', borderRadius: '4px'}">按钮</me-float-button> | ||
``` | ||
|
||
### 自定义颜色 | ||
|
||
- 通过属性 `style` 来设置组件的自定义颜色。 | ||
|
||
::: CopyCode | ||
|
||
```html | ||
<me-float-button :style="{ right: '20px', top: '100px', background: '#f60'}">按钮</me-float-button> | ||
``` | ||
|
||
### 自定义大小 | ||
|
||
- 通过属性 `style` 来设置组件的自定义大小。 | ||
|
||
::: CopyCode | ||
|
||
```html | ||
<me-float-button :style="{ right: '20px', top: '100px', width: '40px', height: '40rpx'}">按钮</me-float-button> | ||
``` | ||
|
||
### 设置按钮类型 | ||
|
||
- 通过属性 `type` 来设置组件的类型,默认值为 `default`。 | ||
|
||
::: CopyCode | ||
|
||
```html | ||
<me-float-button type="backTop" :style="{ right: '20px', top: '100px'}">按钮</me-float-button> | ||
``` | ||
|
||
::: | ||
|
||
## API | ||
|
||
### 参数 | ||
|
||
- 支持透传 | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 版本 | | ||
| ---------- | ------------------ | ------- | ----------------- | --------------- | ------ | | ||
| type | 按钮类型 | string | default / backTop | default | v2.8.0 | | ||
| scrollTop | 滚动开始显示的距离 | number | -- | 0 | v2.8.0 | | ||
| scrollNode | 有滚动条的节点 | Element | -- | `document.body` | v2.8.0 | | ||
|
||
### Slots | ||
|
||
| 具名插槽 | 说明 | scopedSlots | 版本 | | ||
| -------- | -------- | ----------- | ------ | | ||
| default | 默认名称 | -- | v2.8.0 | | ||
|
||
#### 方法 | ||
|
||
| 方法名 | 说明 | 回调参数 | 版本 | | ||
| ------ | -------------------- | ----------------- | ------ | | ||
| click | 点击组件时触发的事件 | event: MouseEvent | v2.8.0 | |
Oops, something went wrong.