debug
This commit is contained in:
parent
ba50661840
commit
34d6e014ae
1 changed files with 5 additions and 1 deletions
|
@ -133,11 +133,15 @@ const EmojiPicker = {
|
|||
methods: {
|
||||
updateEmojiSize () {
|
||||
const css = window.getComputedStyle(this.$refs.popover.$el)
|
||||
console.log(css)
|
||||
console.log('CSS', css)
|
||||
const emojiSize = css.getPropertyValue('--emojiSize')
|
||||
console.log('CSS', emojiSize)
|
||||
const emojiSizeUnit = emojiSize.replace(/[0-9,.]+/, '')
|
||||
console.log('CSS', emojiSizeUnit)
|
||||
const emojiSizeValue = Number(emojiSize.replace(/[^0-9,.]+/, ''))
|
||||
console.log('CSS', emojiSizeValue)
|
||||
const fontSize = Number(emojiSize.replace(css.getPropertyValue('font-size').replace(/[^0-9,.]+/, '')))
|
||||
console.log('CSS', fontSize)
|
||||
|
||||
let emojiSizeReal
|
||||
if (emojiSizeUnit.endsWith('em')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue