Skip to content

Commit fcfa6ce

Browse files
committed
demo: bracket type
1 parent 5ba418a commit fcfa6ce

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

demo/VueRoughNotation.vue

+17-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
<RoughNotation
4141
:type="item.type"
4242
:color="item.color"
43+
:stroke-width="item.strokeWidth"
4344
:is-show="item.show"
45+
:tag="item.tag"
4446
>{{ item.content.draw }}</RoughNotation>
4547
{{ '' }} {{ item.content.p2 }}
4648
</p>
@@ -229,14 +231,28 @@ export default {
229231
{
230232
show: false,
231233
type: "crossed-off",
232-
bg: "#fffde7",
234+
bg: "#e0f2f1",
233235
color: "#f57f17",
234236
content: {
235237
title: "crossed-off",
236238
p1: "To symbolize rejection, use a",
237239
draw: "crossed-off",
238240
p2: "effect on an element."
239241
}
242+
},
243+
{
244+
show: false,
245+
type: "bracket",
246+
bg: "#fffde7",
247+
color: "red",
248+
strokeWidth: 2,
249+
tag: 'div',
250+
content: {
251+
title: "bracket",
252+
p1: "Create a hand-drawn bracket around a block (like a paragraph of text) on one or multiple sides of the block.",
253+
draw: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nisi hendrerit augue molestie tempus. Phasellus purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl, placerat molestie mauris luctus id. Fusce dapibus non libero nec lobortis. Nullam iaculis nisl ac eros consequat, sit amet placerat massa vulputate.",
254+
p2: ""
255+
}
240256
}
241257
],
242258
showMultilines: false,

0 commit comments

Comments
 (0)