component_ryl_v3 1.1.7 → 1.1.8
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 +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,12 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
|
|
|
25
25
|
{number} width - 侧边栏宽度
|
|
26
26
|
{number} contentWidth - 内容模块宽度
|
|
27
27
|
{boolean} showDefaltOpen - 是否默认展开所有菜单项
|
|
28
|
+
* 暴露方法(通过 ref 调用)
|
|
29
|
+
{Function} getMenu() - 处理传入的导航菜单
|
|
30
|
+
{Function} setMenuActive(path) - 设置菜单选中状态,参数 path 为菜单路径
|
|
31
|
+
{Function} isAddNormal() - 判断是否在 content inner_content 类名上添加 normal 类名
|
|
32
|
+
{Function} loadImg(content) - 等待图片加载完成后获取主容器高度,参数 content 为 HTML 内容
|
|
33
|
+
{Function} getMainHeight(flag) - 获取内容模块的滚动条状态,参数 flag 为是否跳过滚动条置顶
|
|
28
34
|
|
|
29
35
|
|
|
30
36
|
# 询问窗口组件
|
|
@@ -116,8 +122,8 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
|
|
|
116
122
|
const openPreview = (imageSrc) => {
|
|
117
123
|
handSeeImgRef.value.openPreview(imageSrc)
|
|
118
124
|
}
|
|
119
|
-
*
|
|
120
|
-
{
|
|
125
|
+
* 暴露方法(通过 ref 调用)
|
|
126
|
+
{Function} openPreview(imageSrc) - 打开图片预览
|
|
121
127
|
|
|
122
128
|
# Tab组件
|
|
123
129
|
# 使用方法
|
|
@@ -128,6 +134,8 @@ Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://
|
|
|
128
134
|
}
|
|
129
135
|
* 组件属性定义
|
|
130
136
|
{array} list - Tab列表,每个元素为{ label: '标签', value: '值' }
|
|
137
|
+
* 暴露方法(通过 ref 调用)
|
|
138
|
+
{Function} setIndex(index) - 设置当前选中的标签索引,参数 index 为要选中的标签索引
|
|
131
139
|
|
|
132
140
|
|
|
133
141
|
|