zydx-plus 1.10.36 → 1.10.37
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
|
@@ -254,14 +254,20 @@ const Editable = defineComponent({
|
|
|
254
254
|
});
|
|
255
255
|
// placeholder
|
|
256
256
|
watch(() => opts.editable.config.placeholder, (nv) => {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
let target = null;
|
|
258
|
+
if(rootRef.value){
|
|
259
|
+
target = rootRef.value.querySelector('.w-e-text-placeholder')
|
|
260
|
+
}
|
|
259
261
|
if (target instanceof HTMLElement)
|
|
260
262
|
target.innerHTML = nv || '';
|
|
261
263
|
});
|
|
262
264
|
// scroll
|
|
263
265
|
watch(() => opts.editable.config.scroll, (nv) => {
|
|
264
|
-
const target = rootRef.value?.querySelector('.w-e-scroll');
|
|
266
|
+
// const target = rootRef.value?.querySelector('.w-e-scroll');
|
|
267
|
+
let target = null
|
|
268
|
+
if(rootRef.value){
|
|
269
|
+
target = rootRef.value.querySelector('.w-e-scroll')
|
|
270
|
+
}
|
|
265
271
|
if (target instanceof HTMLElement)
|
|
266
272
|
target.style.overflowY = nv ? 'auto' : '';
|
|
267
273
|
});
|