@varlet/cli 3.3.2-alpha.1718701627164 → 3.3.3

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": "@varlet/cli",
3
- "version": "3.3.2-alpha.1718701627164",
3
+ "version": "3.3.3",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -64,8 +64,8 @@
64
64
  "vite": "5.0.10",
65
65
  "vitest": "1.1.0",
66
66
  "vue": "3.4.21",
67
- "@varlet/shared": "3.3.2-alpha.1718701627164",
68
- "@varlet/vite-plugins": "3.3.2-alpha.1718701627164"
67
+ "@varlet/vite-plugins": "3.3.3",
68
+ "@varlet/shared": "3.3.3"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__core": "^7.20.1",
@@ -80,9 +80,9 @@
80
80
  "@types/semver": "^7.3.9",
81
81
  "@types/sharp": "0.31.1",
82
82
  "rimraf": "^5.0.1",
83
- "@varlet/icons": "3.3.2-alpha.1718701627164",
84
- "@varlet/touch-emulator": "3.3.2-alpha.1718701627164",
85
- "@varlet/ui": "3.3.2-alpha.1718701627164"
83
+ "@varlet/ui": "3.3.3",
84
+ "@varlet/touch-emulator": "3.3.3",
85
+ "@varlet/icons": "3.3.3"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@vitest/coverage-istanbul": "1.1.0",
@@ -94,9 +94,9 @@
94
94
  "lodash-es": "^4.17.21",
95
95
  "vue": "3.4.21",
96
96
  "vue-router": "4.2.0",
97
- "@varlet/icons": "3.3.2-alpha.1718701627164",
98
- "@varlet/ui": "3.3.2-alpha.1718701627164",
99
- "@varlet/touch-emulator": "3.3.2-alpha.1718701627164"
97
+ "@varlet/touch-emulator": "3.3.3",
98
+ "@varlet/ui": "3.3.3",
99
+ "@varlet/icons": "3.3.3"
100
100
  },
101
101
  "scripts": {
102
102
  "dev": "tsc --watch",
@@ -261,7 +261,7 @@ iframe {
261
261
  &-content {
262
262
  display: flex;
263
263
  background: var(--site-config-color-body);
264
- min-height: calc(100vh - 60px);
264
+ min-height: calc(100vh - 60px - var(--site-ad-height));
265
265
  }
266
266
 
267
267
  &-doc-container {
@@ -13,9 +13,16 @@ const ad = ref(config?.pc?.ad)
13
13
  const storageKey = `varlet-site-ad-closed-${ad.value?.id}`
14
14
  const isClose = ref(localStorage.getItem(storageKey) == 'true')
15
15
 
16
+ setSiteAddHeight()
17
+
18
+ function setSiteAddHeight() {
19
+ document.documentElement.style.setProperty('--site-ad-height', isClose.value || !ad.value ? '0px' : '52px')
20
+ }
21
+
16
22
  function handleClose() {
17
23
  localStorage.setItem(`varlet-site-ad-closed-${ad.value?.id}`, 'true')
18
24
  isClose.value = true
25
+ setSiteAddHeight()
19
26
  }
20
27
  </script>
21
28
 
@@ -24,8 +31,10 @@ function handleClose() {
24
31
  class="varlet-site-ad varlet-site-ad--animation"
25
32
  :href="ad?.link[language]"
26
33
  target="_blank"
27
- :class="{ 'varlet-site-ad--close': isClose || !ad }"
28
- :style="{ background: ad?.background, color: ad?.textColor }"
34
+ :style="{
35
+ background: ad?.background,
36
+ color: ad?.textColor,
37
+ }"
29
38
  >
30
39
  <img class="varlet-site-ad__logo" :style="{ height: ad?.logoHeight }" :src="ad.logo" v-if="ad.logo" />
31
40
  <div
@@ -49,7 +58,7 @@ function handleClose() {
49
58
  display: flex;
50
59
  align-items: center;
51
60
  justify-content: center;
52
- height: 52px;
61
+ height: var(--site-ad-height);
53
62
  color: #fff;
54
63
  text-decoration: unset;
55
64
  overflow: hidden;
@@ -88,10 +97,6 @@ function handleClose() {
88
97
  transform: translateY(-50%);
89
98
  }
90
99
 
91
- &--close {
92
- height: 0;
93
- }
94
-
95
100
  &--animation {
96
101
  &::after {
97
102
  content: '';
@@ -64,7 +64,7 @@ const changeRoute = (item: Menu) => {
64
64
  padding: 0 0 15px;
65
65
  position: sticky;
66
66
  width: 246px;
67
- height: 100vh;
67
+ height: calc(100vh - 60px - 15px);
68
68
  top: 60px;
69
69
  z-index: 6;
70
70
  overflow-y: scroll;