@appscode/design-system 2.4.10 → 2.4.12
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { computed } from "vue";
|
|
3
3
|
import { useClipboard } from "@vueuse/core";
|
|
4
4
|
import AcButton from "../button/Button.vue";
|
|
5
5
|
|
|
@@ -17,15 +17,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
17
17
|
copyBtn: true,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
const source =
|
|
20
|
+
const source = computed(() => props.code);
|
|
21
21
|
|
|
22
22
|
const { copy, copied } = useClipboard({ source, legacy: true });
|
|
23
23
|
</script>
|
|
24
|
+
|
|
24
25
|
<template>
|
|
25
26
|
<div class="code-container p-0">
|
|
26
|
-
<pre class="ac-hscrollbar" :class="spacing">
|
|
27
|
-
{{ code }}
|
|
28
|
-
</pre>
|
|
27
|
+
<pre class="ac-hscrollbar" :class="spacing">{{ source }}</pre>
|
|
29
28
|
<div class="buttons">
|
|
30
29
|
<ac-button v-if="downloadBtn" modifier-classes="is-primary small-button" icon-class="download" />
|
|
31
30
|
<ac-button
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { computed } from "vue";
|
|
3
3
|
import { useClipboard } from "@vueuse/core";
|
|
4
4
|
import AcButton from "../button/Button.vue";
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
14
14
|
copyBtn: true,
|
|
15
15
|
code: "",
|
|
16
16
|
});
|
|
17
|
-
const source =
|
|
17
|
+
const source = computed(() => props.code);
|
|
18
18
|
const { copy, copied } = useClipboard({ source, legacy: true });
|
|
19
19
|
</script>
|
|
20
20
|
<template>
|
|
@@ -31,7 +31,7 @@ const { copy, copied } = useClipboard({ source, legacy: true });
|
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
33
|
<pre class="ac-hscrollbar is-border-none">
|
|
34
|
-
{{
|
|
34
|
+
{{ source }}
|
|
35
35
|
</pre>
|
|
36
36
|
</div>
|
|
37
37
|
</template>
|
|
@@ -7,35 +7,39 @@ interface Props {
|
|
|
7
7
|
name: string;
|
|
8
8
|
modifierClasses?: string;
|
|
9
9
|
errorMsg?: string;
|
|
10
|
+
isRow?: boolean;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
withDefaults(defineProps<Props>(), {
|
|
13
14
|
modifierClasses: "",
|
|
14
15
|
name: "radio",
|
|
15
16
|
errorMsg: "",
|
|
17
|
+
isRow: false,
|
|
16
18
|
});
|
|
17
19
|
const model = defineModel();
|
|
18
20
|
</script>
|
|
19
21
|
|
|
20
22
|
<template>
|
|
21
|
-
<div class="
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
23
|
+
<div class="is-flex gap-8" :class="!isRow ? 'is-flex-direction-column' : ''">
|
|
24
|
+
<div class="ac-radio mr-16" v-for="option in options" :key="name + option.label">
|
|
25
|
+
<input
|
|
26
|
+
v-model="model"
|
|
27
|
+
:class="modifierClasses"
|
|
28
|
+
:id="name + option.label"
|
|
29
|
+
type="radio"
|
|
30
|
+
:name="name"
|
|
31
|
+
l
|
|
32
|
+
:value="option.value"
|
|
33
|
+
/>
|
|
34
|
+
<label :for="name + option.label">{{ option.label }}</label>
|
|
35
|
+
<p v-show="errorMsg" class="is-danger">
|
|
36
|
+
<slot name="message" />
|
|
37
|
+
</p>
|
|
38
|
+
<p v-show="errorMsg" class="is-danger mb-16">
|
|
39
|
+
{{ errorMsg }}
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
35
42
|
</div>
|
|
36
|
-
<p v-show="errorMsg" class="is-danger mb-16">
|
|
37
|
-
{{ errorMsg }}
|
|
38
|
-
</p>
|
|
39
43
|
</template>
|
|
40
44
|
|
|
41
45
|
<style lang="scss">
|