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/dist/index.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +6 -8
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SEditor.vue +5 -8
package/package.json
CHANGED
|
@@ -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,
|