quasar-ui-sellmate-ui-kit 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
- import { defineComponent, ref, watch } from 'vue';
46
+ import { defineComponent, ref, watch, computed } from 'vue';
47
47
  import { extend, QCard, QCardSection, QDialog, QEditor, QInput, useQuasar } from 'quasar';
48
48
 
49
49
  export default defineComponent({
@@ -391,12 +391,6 @@
391
391
  options: ['size1', 'size2', 'size3', 'size4', 'size5', 'size6'],
392
392
  };
393
393
 
394
- const toolbarDefinitions = props.useImgUpload
395
- ? [...props.toolbar, ['upload']]
396
- : [...props.toolbar].map(group =>
397
- group.map(item => (item === 'fontSizes' ? fontSizes : item)),
398
- );
399
-
400
394
  function onOkClick() {
401
395
  value.value.split('\n').forEach((el, idx) => {
402
396
  if (el === '') return;
@@ -446,7 +440,10 @@
446
440
  }
447
441
 
448
442
  return {
449
- toolbarDefinitions,
443
+ toolbarDefinitions: computed(() => {
444
+ const bar = props.useImgUpload ? [...props.toolbar, ['upload']] : props.toolbar;
445
+ return bar.map(group => group.map(item => (item === 'fontSizes' ? fontSizes : item)));
446
+ }),
450
447
  toolDefinitions,
451
448
  isOpened,
452
449
  model,