Commit ac34005e authored by Tình Trương's avatar Tình Trương

update

parent e1bdae7b
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
<q-card-section> <q-card-section>
<div class="row q-col-gutter-sm"> <div class="row q-col-gutter-sm">
<div class="col-12"> <div class="col-12">
<div align="right">
<UploadImage
v-if="urlFileLocal.length !== 0"
:isButton="false"
:tooltipMessageStory="true"
@selectedFile="uploadStory"
></UploadImage>
</div>
<q-card v-if="urlFileLocal" flat> <q-card v-if="urlFileLocal" flat>
<div align="center"> <div align="center">
<q-img <q-img
...@@ -30,9 +38,8 @@ ...@@ -30,9 +38,8 @@
</q-card> </q-card>
<UploadImage <UploadImage
v-if="urlFileLocal.length === 0"
@selectedFile="uploadStory" @selectedFile="uploadStory"
class="q-mt-md"
:isBtn="true"
></UploadImage> ></UploadImage>
<q-input <q-input
......
import { defineComponent, Ref, ref, watch } from 'vue';
export default defineComponent({
// name: 'ComponentName'
props: {
isOpenDialogEmbed: {
type: Boolean,
required: true,
},
socialEmbedded: { type: String, required: true },
},
setup(props, context) {
const newSocialEmbed: Ref<string | null> = ref(null);
watch(
() => props.isOpenDialogEmbed,
(value) => {
if (value) {
newSocialEmbed.value = props.socialEmbedded;
}
}
);
const confirmEditEmbed = () => {
context.emit('uploadEmbed', newSocialEmbed.value);
};
return { newSocialEmbed, confirmEditEmbed };
},
emits: [
'update:isOpenDialogEmbed',
'click:CloseBtn',
'update:socialEmbedded',
'uploadEmbed',
],
});
...@@ -53,4 +53,37 @@ ...@@ -53,4 +53,37 @@
</q-dialog> </q-dialog>
</template> </template>
<script lang="ts" src="./UploadEmbedDialog.ts"></script> <script lang="ts">
import { defineComponent, Ref, ref, watch } from 'vue';
export default defineComponent({
// name: 'ComponentName'
props: {
isOpenDialogEmbed: {
type: Boolean,
required: true,
},
socialEmbedded: { type: String, required: true },
},
setup(props, context) {
const newSocialEmbed: Ref<string | null> = ref(null);
watch(
() => props.isOpenDialogEmbed,
(value) => {
if (value) {
newSocialEmbed.value = props.socialEmbedded;
}
}
);
const confirmEditEmbed = () => {
context.emit('uploadEmbed', newSocialEmbed.value);
};
return { newSocialEmbed, confirmEditEmbed };
},
emits: [
'update:isOpenDialogEmbed',
'click:CloseBtn',
'update:socialEmbedded',
'uploadEmbed',
],
});
</script>
// app global css in SCSS form // app global css in SCSS form
.sticky-header-table { .sticky-header-table {
// / height or max-height is important / // / height or max-height is important /
max-height: calc(100vh - 13rem); max-height: calc(100vh - 13.5rem);
// max-width: 100vw; // max-width: 100vw;
.q-table__top, .q-table__top,
.q-table__bottom, .q-table__bottom,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment