lint & format
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
<script>
|
||||
// This template uses https://vuejs.org/guide/extras/render-function.html to
|
||||
// create DOM elements from properties
|
||||
import { h } from 'vue'
|
||||
import { h } from "vue";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
summary: { type: String, default: "<h2>Summary Should go here</h2>" }
|
||||
},
|
||||
setup(props) {
|
||||
|
||||
// return the render function
|
||||
return () => h('div', { class: 'bar', innerHTML: props.summary })
|
||||
}
|
||||
}
|
||||
props: {
|
||||
summary: { type: String, default: "<h2>Summary Should go here</h2>" },
|
||||
},
|
||||
setup(props) {
|
||||
// return the render function
|
||||
return () => h("div", { class: "bar", innerHTML: props.summary });
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
span.customer {
|
||||
color: #ff0000;
|
||||
font-weight: bold;
|
||||
color: #ff0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.iva {
|
||||
color: #0000a0;
|
||||
font-weight: bold;
|
||||
color: #0000a0;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
|
||||
<script setup>
|
||||
// eslint-disable-next-line
|
||||
const props = defineProps(["label", "value"]);
|
||||
const rows = Math.ceil(props.value.length/18);
|
||||
const rows = Math.ceil(props.value.length / 18);
|
||||
</script>
|
||||
<template>
|
||||
<div class="vertical-layout-cell">
|
||||
<div class="GTTextLabel GTRTextLabel" :title="label" style="">{{ label }}</div>
|
||||
</div>
|
||||
<div class="vertical-layout-cell">
|
||||
<textarea
|
||||
:value="value" class="GTTextField read-only" :title="label" type="textarea" readonly="" :rows="rows"
|
||||
maxlength="1024" />
|
||||
<div class="vertical-layout-cell">
|
||||
<div class="GTTextLabel GTRTextLabel" :title="label" style="">
|
||||
{{ label }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="vertical-layout-cell">
|
||||
<textarea
|
||||
:value="value"
|
||||
class="GTTextField read-only"
|
||||
:title="label"
|
||||
type="textarea"
|
||||
readonly=""
|
||||
:rows="rows"
|
||||
maxlength="1024"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<style></style>
|
||||
<style></style>
|
||||
|
||||
Reference in New Issue
Block a user