@appscode/design-system 2.17.63 → 2.17.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,8 +33,8 @@ function hideAlert() {
|
|
|
33
33
|
<p v-if="message">{{ message }}</p>
|
|
34
34
|
<slot name="custom-text"></slot>
|
|
35
35
|
</div>
|
|
36
|
-
<slot name="buttons"></slot>
|
|
37
36
|
<slot name="custom-code"></slot>
|
|
37
|
+
<slot name="buttons"></slot>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<button v-if="hasCrossIcon" class="button is-text" @click="hideAlert">
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
downloadBtn?: boolean;
|
|
9
9
|
code?: string;
|
|
10
10
|
copyBtn?: boolean;
|
|
11
|
+
whiteSpaceClass?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -15,6 +16,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
15
16
|
downloadBtn: false,
|
|
16
17
|
code: "",
|
|
17
18
|
copyBtn: true,
|
|
19
|
+
whiteSpaceClass: "is-whitespace-normal",
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
const source = computed(() => props.code);
|
|
@@ -24,7 +26,7 @@ const { copy, copied } = useClipboard({ source, legacy: true });
|
|
|
24
26
|
|
|
25
27
|
<template>
|
|
26
28
|
<div class="code-container p-0">
|
|
27
|
-
<pre class="ac-hscrollbar" :class="spacing">{{ source }}</pre>
|
|
29
|
+
<pre class="ac-hscrollbar" :class="[spacing, whiteSpaceClass]">{{ source }}</pre>
|
|
28
30
|
<div class="buttons">
|
|
29
31
|
<ac-button v-if="downloadBtn" modifier-classes="is-primary small-button" icon-class="download" />
|
|
30
32
|
<ac-button
|