component_ryl_v3 1.1.12 → 1.1.14

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
- {Function} setNormal() - 判断是否在 content inner_content 类名上添加 normal 类名,参数默认是true,可传可不传
30
+ {boolean} isNormal - 判断是否在 content inner_content 类名上添加 normal 类名, 用法:menuRef.value.isNormal = true
31
31
  {Function} loadImg(content) - 等待图片加载完成后获取主容器高度,参数 content 为 HTML 内容
32
32
  {Function} getMainHeight(flag) - 获取内容模块的滚动条状态,参数 flag 为是否跳过滚动条置顶
33
33
 
@@ -516,9 +516,6 @@ const _sfc_main$4 = {
516
516
  localDefaultActive.value = path;
517
517
  });
518
518
  };
519
- const setNormal = (value) => {
520
- isNormal.value = value || true;
521
- };
522
519
  const outSystem = () => {
523
520
  emit("exitSystem");
524
521
  };
@@ -545,9 +542,9 @@ const _sfc_main$4 = {
545
542
  });
546
543
  });
547
544
  __expose({
545
+ isNormal,
548
546
  getMenu,
549
547
  setMenuActive,
550
- setNormal,
551
548
  loadImg,
552
549
  getMainHeight
553
550
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "component_ryl_v3",
3
3
  "private": false,
4
- "version": "1.1.12",
4
+ "version": "1.1.14",
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,7 @@ const copyBack = (err, success) => {
231
231
  const menuRef = ref(null)
232
232
  onMounted(() => {
233
233
  menuRef.value.getMainHeight()
234
- menuRef.value.setNormal()
234
+ menuRef.value.isNormal = true
235
235
  })
236
236
  //#endregion 菜单组件
237
237
  const inputNumber = ref('')
@@ -322,13 +322,6 @@ const setMenuActive = (path) => {
322
322
  })
323
323
  }
324
324
 
325
- /**
326
- * 判断是否在 content inner_content 类名上添加 normal 类名
327
- */
328
- const setNormal = (value) => {
329
- isNormal.value = value || true
330
- }
331
-
332
325
  /**
333
326
  * 退出系统
334
327
  */
@@ -377,9 +370,9 @@ onMounted(() => {
377
370
  * 暴露方法给父组件调用
378
371
  */
379
372
  defineExpose({
373
+ isNormal,
380
374
  getMenu,
381
375
  setMenuActive,
382
- setNormal,
383
376
  loadImg,
384
377
  getMainHeight
385
378
  })