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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.10.36",
3
+ "version": "1.10.37",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -254,14 +254,20 @@ const Editable = defineComponent({
254
254
  });
255
255
  // placeholder
256
256
  watch(() => opts.editable.config.placeholder, (nv) => {
257
- const target = rootRef.value?.querySelector('.w-e-text-placeholder');
258
- console.log(nv)
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
  });
package/src/index.js CHANGED
@@ -39,7 +39,7 @@ function install(app) {
39
39
  }
40
40
 
41
41
  export default {
42
- version: '1.10.36',
42
+ version: '1.10.37',
43
43
  install,
44
44
  Calendar,
45
45
  Message,