HTML Editor go on

This commit is contained in:
Surya Paolo
2022-11-13 22:39:25 +01:00
parent 5076d72523
commit 711f1b515d
35 changed files with 3684 additions and 1663 deletions

View File

@@ -0,0 +1,40 @@
import { defineComponent, ref, toRef, watch } from 'vue'
import { tools } from '@src/store/Modules/tools'
import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { toolsext } from '@store/Modules/toolsext'
export default defineComponent({
name: 'CSelectFontSize',
emits: ['update:modelValue'],
props: {
modelValue: {
type: String,
required: true,
},
title: {
type: String,
required: false,
default: '',
},
},
components: {},
setup(props, { emit }) {
const $q = useQuasar()
const { t } = useI18n();
const classfont = toRef(props, 'modelValue')
function updateValue(str: string) {
emit('update:modelValue', str)
}
return {
tools,
toolsext,
updateValue,
classfont,
}
},
})

View File

@@ -0,0 +1,40 @@
<template>
<q-select
rounded
outlined
v-model="classfont"
@update:model-value="updateValue"
:options="tools.SelectListFontSize"
dense
:label="title"
emit-value
map-options
>
<template v-slot:selected>
<q-chip
dense
square
color="white"
class="q-my-none q-ml-xs q-mr-none"
>
<span :class="classfont">{{ classfont }}</span>
</q-chip>
</template>
<template v-slot:option="scope">
<q-item v-bind="scope.itemProps">
<q-item-section>
<q-item-label :class="scope.opt.value">{{
scope.opt.label
}}</q-item-label>
</q-item-section>
</q-item>
</template>
</q-select>
</template>
<script lang="ts" src="./CSelectFontSize.ts">
</script>
<style lang="scss" scoped>
@import './CSelectFontSize.scss';
</style>

View File

@@ -0,0 +1 @@
export {default as CSelectFontSize} from './CSelectFontSize.vue'