HTML Editor go on
This commit is contained in:
40
src/components/CSelectFontSize/CSelectFontSize.ts
Executable file
40
src/components/CSelectFontSize/CSelectFontSize.ts
Executable 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,
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user