Skip to content

Commit

Permalink
docs(collapse-transition): improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Jan 11, 2024
1 parent 4bbbaeb commit f63ce95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/varlet-ui/src/collapse-transition/docs/en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const expand = ref(true)
</script>

<template>
<var-switch v-model="expand"></var-switch>
<var-switch v-model="expand" />
<var-divider />
<var-collapse-transition :expand="expand">
Do not go gentle into that good night, Old age should burn and rave at close of day; Rage, rage against the dying of the light. Though wise men at their end know dark is right, Because their words had forked no lightning they Do not go gentle into that good night. Good men, the last wave by, crying how bright Their frail deeds might have danced in a green bay, Rage, rage against the dying of the light.
</var-collapse-transition>
Expand Down
3 changes: 2 additions & 1 deletion packages/varlet-ui/src/collapse-transition/docs/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const expand = ref(true)
</script>

<template>
<var-switch v-model="expand"></var-switch>
<var-switch v-model="expand" />
<var-divider />
<var-collapse-transition :expand="expand">
不要温和地走进那良夜,老年应当在日暮时燃烧咆哮;怒斥,怒斥光明的消逝。虽然智慧的人临终时懂得黑暗有理,因为他们的话没有迸发出闪电,他们 也并不温和地走进那个良夜。善良的人,当最后一浪过去,高呼他们脆弱的善行 可能曾会多么光辉地在绿色的海湾里舞蹈,怒斥,怒斥光明的消逝。
</var-collapse-transition>
Expand Down
3 changes: 2 additions & 1 deletion packages/varlet-ui/src/collapse-transition/example/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ watchDarkMode(Themes.dark)

<template>
<app-type>{{ pack.basicUsage }}</app-type>
<var-switch v-model="expand"></var-switch>
<var-switch v-model="expand" />
<var-divider />
<var-collapse-transition :expand="expand">
{{ pack.textContent }}
</var-collapse-transition>
Expand Down

0 comments on commit f63ce95

Please sign in to comment.