@propelinc/citrus-ui 0.3.8 → 0.3.10
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/dist/citrus-ui.common.js +86 -82
- package/dist/citrus-ui.common.js.map +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/citrus-ui.umd.js +86 -82
- package/dist/citrus-ui.umd.js.map +1 -1
- package/dist/citrus-ui.umd.min.js +3 -3
- package/dist/citrus-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CButton.vue +1 -1
- package/src/components/CCard.vue +12 -1
- package/src/components/CTextField.vue +3 -1
package/package.json
CHANGED
package/src/components/CCard.vue
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-card
|
|
2
|
+
<v-card
|
|
3
|
+
flat
|
|
4
|
+
:ripple="false"
|
|
5
|
+
class="card"
|
|
6
|
+
:class="{ 'card--divided': divided }"
|
|
7
|
+
:to="to"
|
|
8
|
+
:href="href"
|
|
9
|
+
:color="color"
|
|
10
|
+
>
|
|
3
11
|
<c-card-header v-if="title">
|
|
4
12
|
{{ title }}
|
|
5
13
|
</c-card-header>
|
|
@@ -10,6 +18,7 @@
|
|
|
10
18
|
|
|
11
19
|
<script lang="ts">
|
|
12
20
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
21
|
+
import { RawLocation } from 'vue-router';
|
|
13
22
|
|
|
14
23
|
import CCardHeader from '@/components/CCardHeader.vue';
|
|
15
24
|
|
|
@@ -20,6 +29,8 @@ export default class CCard extends Vue {
|
|
|
20
29
|
@Prop({ type: Boolean, default: false }) divided!: boolean;
|
|
21
30
|
/** Sets background color */
|
|
22
31
|
@Prop(String) color?: string;
|
|
32
|
+
@Prop([Object, String]) to?: RawLocation;
|
|
33
|
+
@Prop(String) href?: string;
|
|
23
34
|
}
|
|
24
35
|
</script>
|
|
25
36
|
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
:value="value"
|
|
17
17
|
:rules="rules"
|
|
18
18
|
validate-on-blur
|
|
19
|
-
:hide-details="rules.length === 0"
|
|
20
19
|
v-on="$listeners"
|
|
21
20
|
>
|
|
22
21
|
<template #append>
|
|
@@ -32,6 +31,9 @@
|
|
|
32
31
|
</button>
|
|
33
32
|
</slot>
|
|
34
33
|
</template>
|
|
34
|
+
<template #message>
|
|
35
|
+
<slot name="message" />
|
|
36
|
+
</template>
|
|
35
37
|
</v-text-field>
|
|
36
38
|
</form-field>
|
|
37
39
|
</template>
|