rayyy-vue-table-components 2.0.30 → 2.0.31

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": "rayyy-vue-table-components",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -26,6 +26,10 @@
26
26
  .sub-title {
27
27
  @apply pb-2 font-bold text-base;
28
28
  }
29
+ .sub-title_border {
30
+ @apply border-b mb-4 border-b-text-border/10 border-solid;
31
+ @apply border-t-0 border-x-0;
32
+ }
29
33
  }
30
34
 
31
35
 
@@ -3,6 +3,7 @@ import { computed } from 'vue'
3
3
  import { useI18n } from 'vue-i18n'
4
4
  import { useWindowSize } from '@vueuse/core'
5
5
  import BaseBtn from './BaseBtn.vue'
6
+ import _ from 'lodash'
6
7
 
7
8
  const { t } = useI18n()
8
9
 
@@ -80,7 +81,7 @@ const handleSubmit = () => {
80
81
  <div
81
82
  class="sub-title"
82
83
  :class="{
83
- 'border-b mb-4': typeof subTitle == 'string',
84
+ 'sub-title_border': !_.isEmpty(subTitle),
84
85
  }"
85
86
  >
86
87
  {{ subTitle }}