component_ryl_v3 1.1.5 → 1.1.6

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.
@@ -662,7 +662,9 @@ const _sfc_main$4 = {
662
662
  }),
663
663
  createElementVNode("div", _hoisted_7, [
664
664
  createElementVNode("div", _hoisted_8, [
665
- renderSlot(_ctx.$slots, "content")
665
+ createElementVNode("div", null, [
666
+ renderSlot(_ctx.$slots, "content")
667
+ ])
666
668
  ]),
667
669
  showFooter.value ? (openBlock(), createElementBlock("div", {
668
670
  key: 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "component_ryl_v3",
3
3
  "private": false,
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
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
@@ -4,6 +4,7 @@
4
4
  collapse
5
5
  :defaultActive="menuActive"
6
6
  :menuList="menuList"
7
+ ref="menuRef"
7
8
  >
8
9
  <template #headElseTitle>
9
10
  <div style="color:#fff;text-align:center;font-size:20px;">
@@ -31,6 +32,7 @@
31
32
  </ul>
32
33
  </template>
33
34
  <template #content>
35
+ <div class="lll">
34
36
  <h6>Tab</h6>
35
37
  <hand-tab :list="[{ label: '全部', value: 'all' }, { label: '待处理是的', value: 'pending' }, { label: '已处理', value: 'processed' }]" @getStatus="getStatus" />
36
38
  <h6>图片预览</h6>
@@ -40,6 +42,7 @@
40
42
  <div>
41
43
  <hand-paging :currentPage="handPagingRef.page" :total="handPagingRef.total" :pageSize="handPagingRef.pageSize" :size="handPagingRef.size" @page-change="handlePageChange" />
42
44
  </div>
45
+ <!-- <div v-for="(item,index) in 100">{{index}}</div> -->
43
46
  <h6>空数据提示</h6>
44
47
  <hand-no-data title="暂无数据" />
45
48
  <h6>弹窗</h6>
@@ -69,12 +72,13 @@
69
72
  <el-input v-model="inputNumber" v-number="{max:100}" placeholder="请输入"></el-input>
70
73
  <span>复制</span><br>
71
74
  <el-button v-copy="['这是复制的内容',copyBack]">点击复制</el-button>
75
+ </div>
72
76
  </template>
73
77
  </hand-header>
74
78
  </template>
75
79
 
76
80
  <script setup>
77
- import { ref } from 'vue'
81
+ import { ref, onMounted } from 'vue'
78
82
  import HandHeader from './packages/handHeader/handHeader.vue'
79
83
  import HandTab from './packages/handTab/handTab.vue'
80
84
  import HandSeeImg from './packages/handSeeImg/handSeeImg.vue'
@@ -214,6 +218,11 @@ const copyBack = (err, success) => {
214
218
  }
215
219
  }
216
220
  //#endregion 自定义指令
217
-
221
+ //#region 菜单组件
222
+ const menuRef = ref(null)
223
+ onMounted(() => {
224
+ menuRef.value.getMainHeight()
225
+ })
226
+ //#endregion 菜单组件
218
227
  const inputNumber = ref('')
219
228
  </script>
@@ -64,7 +64,9 @@
64
64
  <div class="content_mar">
65
65
  <div class="content inner_content">
66
66
  <!-- 内容展示区域 -->
67
- <slot name="content"></slot>
67
+ <div>
68
+ <slot name="content"></slot>
69
+ </div>
68
70
  </div>
69
71
  <div class="footer flex flex_col inner_footer" v-html="userInfo.copyRight" v-if="showFooter"></div>
70
72
  </div>