-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
close #555 --------- Co-authored-by: Kia King Ishii <[email protected]>
- Loading branch information
Showing
5 changed files
with
96 additions
and
5 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
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,52 @@ | ||
<script setup lang="ts"> | ||
import SDesc from 'sefirot/components/SDesc.vue' | ||
import SDescItem from 'sefirot/components/SDescItem.vue' | ||
import SDescLabel from 'sefirot/components/SDescLabel.vue' | ||
import SDescText from 'sefirot/components/SDescText.vue' | ||
const title = 'Components / SDesc / 04. Text' | ||
const docs = '/components/desc' | ||
function state() { | ||
return { | ||
lineClamp: 10, | ||
preWrap: false, | ||
linkify: true | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<Story :title="title" :init-state="state" source="Not available" auto-props-disabled> | ||
<template #controls="{ state }"> | ||
<HstNumber | ||
title="lineClamp" | ||
v-model="state.lineClamp" | ||
/> | ||
<HstCheckbox | ||
title="preWrap" | ||
v-model="state.preWrap" | ||
/> | ||
<HstCheckbox | ||
title="linkify" | ||
v-model="state.linkify" | ||
/> | ||
</template> | ||
|
||
<template #default="{ state }"> | ||
<Board :title="title" :docs="docs"> | ||
<SDesc cols="2" gap="24"> | ||
<SDescItem span="2"> | ||
<SDescLabel>Label</SDescLabel> | ||
<SDescText | ||
:line-clamp="state.lineClamp" | ||
:pre-wrap="state.preWrap" | ||
:linkify="state.linkify" | ||
:value="'By specifying the `:linkify`, you can enable the automatic conversion of URLs such as https://globalbrains.com and emails such as [email protected] inside text to clickable links. It will only convert plain URLs and any other Markdown syntax such as [link](https://globalbrains.com) and **Strong Text** will not be parsed.\nWhen enabling `preWrap`, this sentence should have a line break.'" | ||
/> | ||
</SDescItem> | ||
</SDesc> | ||
</Board> | ||
</template> | ||
</Story> | ||
</template> |
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