quasar-ui-sellmate-ui-kit 3.5.2 → 3.5.3
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 +9 -5
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SEditor.vue +7 -3
package/package.json
CHANGED
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
type: Boolean,
|
|
132
132
|
default: false,
|
|
133
133
|
},
|
|
134
|
+
imgResizable: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
134
138
|
},
|
|
135
139
|
setup(props, { emit }) {
|
|
136
140
|
const model = ref(props.modelValue);
|
|
@@ -190,6 +194,7 @@
|
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
onMounted(() => {
|
|
197
|
+
if (!props.imgResizable) return;
|
|
193
198
|
const contentEl = editorRef.value.getContentEl();
|
|
194
199
|
if (contentEl) {
|
|
195
200
|
addImageClickListener();
|
|
@@ -474,10 +479,9 @@
|
|
|
474
479
|
function onOkClick() {
|
|
475
480
|
imgValue.value.split('\n').forEach((el, idx) => {
|
|
476
481
|
if (el === '') return;
|
|
477
|
-
model.value += `<p><img style="max-width:100
|
|
482
|
+
model.value += `<p style="max-width: 100%"><img style="max-width: 100%" src=${el} :alt="image${idx}" /></p>`;
|
|
478
483
|
});
|
|
479
|
-
|
|
480
|
-
addImageClickListener();
|
|
484
|
+
if (props.imgResizable) addImageClickListener();
|
|
481
485
|
imgValue.value = '';
|
|
482
486
|
}
|
|
483
487
|
// Toolbar End
|