component_ryl_v3 1.1.14 → 1.1.20

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/README.md CHANGED
@@ -27,7 +27,7 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
27
27
  * 暴露方法(通过 ref 调用)
28
28
  {Function} getMenu() - 处理传入的导航菜单
29
29
  {Function} setMenuActive(path) - 设置菜单选中状态,参数 path 为菜单路径
30
- {boolean} isNormal - 判断是否在 content inner_content 类名上添加 normal 类名, 用法:menuRef.value.isNormal = true
30
+ {Function} setNormal(value) - 判断是否在 content inner_content 类名上添加 normal 类名
31
31
  {Function} loadImg(content) - 等待图片加载完成后获取主容器高度,参数 content 为 HTML 内容
32
32
  {Function} getMainHeight(flag) - 获取内容模块的滚动条状态,参数 flag 为是否跳过滚动条置顶
33
33
 
@@ -516,6 +516,9 @@ const _sfc_main$4 = {
516
516
  localDefaultActive.value = path;
517
517
  });
518
518
  };
519
+ const setNormal = (value) => {
520
+ isNormal.value = value;
521
+ };
519
522
  const outSystem = () => {
520
523
  emit("exitSystem");
521
524
  };
@@ -542,9 +545,9 @@ const _sfc_main$4 = {
542
545
  });
543
546
  });
544
547
  __expose({
545
- isNormal,
546
548
  getMenu,
547
549
  setMenuActive,
550
+ setNormal,
548
551
  loadImg,
549
552
  getMainHeight
550
553
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "component_ryl_v3",
3
3
  "private": false,
4
- "version": "1.1.14",
4
+ "version": "1.1.20",
5
5
  "type": "module",
6
6
  "description": "Vue3 login form component with Element Plus",
7
7
  "main": "./dist/component_ryl_v3.js",
package/src/App.vue CHANGED
@@ -231,7 +231,6 @@ const copyBack = (err, success) => {
231
231
  const menuRef = ref(null)
232
232
  onMounted(() => {
233
233
  menuRef.value.getMainHeight()
234
- menuRef.value.isNormal = true
235
234
  })
236
235
  //#endregion 菜单组件
237
236
  const inputNumber = ref('')
@@ -322,6 +322,13 @@ const setMenuActive = (path) => {
322
322
  })
323
323
  }
324
324
 
325
+ /**
326
+ * 判断是否在 content inner_content 类名上添加 normal 类名
327
+ */
328
+ const setNormal = (value) => {
329
+ isNormal.value = value
330
+ }
331
+
325
332
  /**
326
333
  * 退出系统
327
334
  */
@@ -370,9 +377,9 @@ onMounted(() => {
370
377
  * 暴露方法给父组件调用
371
378
  */
372
379
  defineExpose({
373
- isNormal,
374
380
  getMenu,
375
381
  setMenuActive,
382
+ setNormal,
376
383
  loadImg,
377
384
  getMainHeight
378
385
  })