Skip to content

fix: Markdown-列表语法导致的样式错乱 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/devui-vue/docs/components/avatar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,17 @@
### 头像显示基本规则

- `中文开头`:取传入字符串的最后两个字符

- `英文开头`:取传入字符串的前面两个字符

- `多个英文名连用`:取传入字符串的前两个英文名首字母

- `非中英文开头`:取传入字符串的前两个字符

### 头像特殊显示规则

- 未传入`name`,`customText`,`imgSrc`,视为使用该头像的用户不存在

- 传入`name`,`customText`,`imgSrc`的值为空,视为使用该头像的用户无昵称,使用默认头像

### 显示优先级排序
Expand Down
18 changes: 13 additions & 5 deletions packages/devui-vue/docs/components/form/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,14 @@ export default defineComponent({
>
> 待支持国际化词条配置

当前DevUI支持的内置校验器有:`required`、`minlength`、`maxlength`、`min`、`max`、`requiredTrue`、`email`、`pattern`、`whitespace`。<br>
当前DevUI支持的内置校验器有:`required`、`minlength`、`maxlength`、`min`、`max`、`requiredTrue`、`email`、`pattern`、`whitespace`。

- 若需限制用户输入不能全为空格,可使用`whitespace`内置校验器

- 若需限制用户输入长度,将最大限制设置为实际校验值`+1`是一个好的办法。

- 除`pattern`外,其他内置校验器我们也提供了内置的错误提示信息,在你未自定义提示消息时,我们将使用默认的提示信息。

- 若需限制用户输入不能全为空格,可使用`whitespace`内置校验器<br>
- 若需限制用户输入长度,将最大限制设置为实际校验值`+1`是一个好的办法。<br>
- 除`pattern`外,其他内置校验器我们也提供了内置的错误提示信息,在你未自定义提示消息时,我们将使用默认的提示信息。<br>
- message配置支持string与object两种形式(支持国际化词条配置,如`'zh-cn'`,默认将取`'default'`)。

:::demo
Expand Down Expand Up @@ -846,8 +849,11 @@ export default defineComponent({
配置`messageShowType`可选择消息自动提示的方式,默认为`popover`。

- 设置为`popover`错误信息将在元素聚焦时以`popover`形式呈现。
- 设置为`text`错误信息将自动以文本方式显示在元素下方(需要与表单控件容器配合使用)。

- 设置为`text`错误信息将自动以文本方式显示在元素下方(需要与表单控件容器配合使用)。

- 设置为`none`错误信息将不会自动呈现到视图, 可在模板中获取`message`或通过监听`messageChange`事件获取错误`message`, 或在模板中直接通过引用获取。

- 在 `options`中配置 `popPosition`可在消息提示方式为`popover`时,自定义`popover`内容弹出方向, 默认为`['right', 'bottom']`。更多取值参考popover组件。

:::demo
Expand Down Expand Up @@ -1639,7 +1645,9 @@ export default defineComponent({

- options支持以下字段
- errorStrategy,错误更新策略:`dirty`(默认)、`prestine`

- updateOn,校验时机,可选值有:`change`(默认)、 `blur`、 `input`

- popPosition,自定义`popover`内容弹出方向。 默认为`['right', 'bottom']`,更多取值参考popover组件。


Expand Down
3 changes: 3 additions & 0 deletions packages/devui-vue/docs/components/gantt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
### 基本用法

- d-gantt-scale(时间轴)容器作为时间轴标线的定位父级元素,须设置 position 或者是 table、td、th、body 元素。

- d-gantt-scale(时间轴)容器和 d-gantt-bar(时间条)容器宽度须通过 GanttService 提供的方法根据起止时间计算后设置,初始化之后还须订阅 ganttScaleConfigChange 动态设置。

- 时间条 move、resize 事件会改变该时间条起止时间和时间轴的起止时间,订阅时间条 resize、move 事件和 ganttScaleConfigChange 来记录变化。

- 响应时间条 move、resize 事件调整最外层容器的滚动以获得更好的体验。

:::demo
Expand Down
3 changes: 2 additions & 1 deletion packages/devui-vue/docs/components/input-icon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineComponent({
console.log(eventValue.value = val)
alert('AHHHH~!! InputIcon!!!!')
}

return {
eventValue,
handleIconClick,
Expand Down Expand Up @@ -45,6 +45,7 @@ export default defineComponent({
### 属性 `icon-color` `icon-bg-color`

- `icon-color` 定义`icon`颜色。

- `icon-bg-color` 定义`icon`区域的背景色。

由于字体图标本身有点布局偏移,加上背景可以有效抑制这种视觉偏移影响。
Expand Down