@mptw/skylens-ui 1.4.60 → 1.4.62

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/app.vue CHANGED
@@ -1,5 +1,6 @@
1
1
  <template lang="pug">
2
2
  SLProfileButton(
3
- username='Sherwin'
3
+ username='Sherwin',
4
+ git-tag='1.0.1'
4
5
  )
5
6
  </template>
@@ -7,15 +7,15 @@
7
7
  href="javascript:;"
8
8
  @click="onClickedToggle"
9
9
  ref="toggle"
10
- ).toggle-button
11
- .date-range
12
- SLIcon(icon="calendar")
13
- span.divider
14
- span.date-range {{ dateRange1 }}
15
- span.range-days(v-if='dateRange1Days') {{ dateRange1Days }} 天
16
- .compare-date-range(v-if="dateRange2 && showCompareSwitch")
17
- span v.s.
18
- span {{ dateRange2 }}
10
+ ).toggle-button
11
+ .date-range
12
+ SLIcon(icon="calendar")
13
+ span.divider
14
+ span.date-range {{ dateRange1 }}
15
+ span.range-days(v-if='dateRange1Days') {{ dateRange1Days }} 天
16
+ .compare-date-range(v-if="dateRange2 && showCompareSwitch")
17
+ span v.s.
18
+ span {{ dateRange2 }}
19
19
  ClientOnly
20
20
  Teleport(to="body")
21
21
  SLCalendarPopup(
@@ -30,7 +30,7 @@
30
30
  @compare:change="onCompareChanged"
31
31
  @update:modelValue="onInputed"
32
32
  ref="popup"
33
- )
33
+ )
34
34
  </template>
35
35
 
36
36
  <script lang="ts">
@@ -1,26 +1,27 @@
1
1
  <template lang="pug">
2
2
  .profile-button(ref='el')
3
3
  a(
4
- href="javascript:;"
5
- :class='{ active: isShowPopup }'
6
- @click.stop.prevent="onClickedToggle"
7
- ref="toggleEl"
8
- ).btn.toggle-button {{ title }}
9
- ClientOnly
10
- Teleport(to="body")
11
- .profile-nav-popup(ref="popupEl")
12
- .profile-nav-popup-body
13
- a(
4
+ href="javascript:;"
5
+ :class='{ active: isShowPopup }'
6
+ @click.stop.prevent="onClickedToggle"
7
+ ref="toggleEl"
8
+ ).btn.toggle-button {{ title }}
9
+ ClientOnly
10
+ Teleport(to="body")
11
+ .profile-nav-popup(ref="popupEl")
12
+ .profile-nav-popup-body
13
+ a(
14
14
  v-if="showEditProfile"
15
15
  href="javascript:;"
16
16
  @click="onClickedEdit"
17
17
  ).profile-nav-item
18
- SLIcon(icon="person-cog")
19
- span 個人資料維護
20
- .profile-nav-divider(v-if="showEditProfile")
21
- a(href="javascript:;" @click="onClickedLogout").profile-nav-item
22
- SLIcon(icon="sign-out-alt")
23
- span 登出
18
+ SLIcon(icon="person-cog")
19
+ span 個人資料維護
20
+ .profile-nav-divider(v-if="showEditProfile")
21
+ a(href="javascript:;" @click="onClickedLogout").profile-nav-item
22
+ SLIcon(icon="sign-out-alt")
23
+ span 登出
24
+ .app-version(v-if='gitTag') {{ gitTag }}
24
25
  </template>
25
26
 
26
27
  <script lang="ts">
@@ -35,6 +36,10 @@ export default defineComponent({
35
36
  type: String,
36
37
  default: "SKYLENS",
37
38
  },
39
+ gitTag: {
40
+ type: String,
41
+ default: '',
42
+ },
38
43
  },
39
44
  emits: ["edit", "logout"],
40
45
  setup(props, { emit }) {
@@ -192,4 +197,7 @@ export default defineComponent({
192
197
 
193
198
  .profile-nav-divider
194
199
  @apply w-full h-px bg-primary-600
200
+
201
+ .app-version
202
+ @apply text-xs text-primary-600 text-right
195
203
  </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.60",
4
+ "version": "1.4.62",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",