@tplc/wot 0.1.14 → 0.1.16

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.30...v0.1.16) (2024-10-19)
6
+
7
+ ### [0.1.15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.29...v0.1.15) (2024-10-19)
8
+
5
9
  ### [0.1.14](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.28...v0.1.14) (2024-10-19)
6
10
 
7
11
  ### [0.1.13](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.27...v0.1.13) (2024-10-10)
@@ -31,6 +31,7 @@ import { STICKY_BOX_KEY } from '../wd-sticky-box/types'
31
31
  const props = defineProps(stickyProps)
32
32
  const styckyId = ref<string>(`wd-sticky${uuid()}`)
33
33
  const observerList = ref<UniApp.IntersectionObserver[]>([])
34
+ const emits = defineEmits(['sticky'])
34
35
 
35
36
  const stickyState = reactive({
36
37
  position: 'absolute',
@@ -159,11 +160,13 @@ function handleRelativeTo({ boundingClientRect }: any) {
159
160
  stickyState.boxLeaved = false
160
161
  stickyState.position = 'fixed'
161
162
  stickyState.top = innerOffsetTop.value
163
+ emits('sticky', true)
162
164
  } else {
163
165
  stickyState.state = 'normal'
164
166
  stickyState.boxLeaved = false
165
167
  stickyState.position = 'absolute'
166
168
  stickyState.top = 0
169
+ emits('sticky', false)
167
170
  }
168
171
  }
169
172
 
@@ -99,6 +99,7 @@
99
99
  @include lineEllipsis();
100
100
 
101
101
  @include when(active) {
102
+ color: $-tabs-nav-active-color;
102
103
  font-weight: 600;
103
104
  }
104
105
 
@@ -118,6 +119,16 @@
118
119
  border-radius: calc($-tabs-nav-line-height / 2);
119
120
  }
120
121
 
122
+ @include e(semicircle) {
123
+ background-color: transparent;
124
+ height: 8rpx;
125
+ width: 36rpx;
126
+ background-image: url("./semicircle.svg");
127
+ background-size: cover 100%;
128
+ background-repeat: no-repeat;
129
+ }
130
+
131
+
121
132
  @include e(container) {
122
133
  overflow: hidden;
123
134
  }
@@ -277,4 +288,4 @@
277
288
  .wd-tabs__map-nav-btn {
278
289
  width: 90px;
279
290
  }
280
- }
291
+ }
@@ -0,0 +1,10 @@
1
+ <svg width="18" height="4" viewBox="0 0 18 4" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Frame 112" clip-path="url(#clip0_313_2391)">
3
+ <path class="st0" id="Line 1" d="M2 1C2 1 5 2.5 9 2.5C13 2.5 16 1 16 1" stroke="#1167F2" stroke-width="2" stroke-linecap="round"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_313_2391">
7
+ <rect width="18" height="4" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -15,6 +15,7 @@ export type TabsProvide = {
15
15
  }
16
16
 
17
17
  export const TABS_KEY: InjectionKey<TabsProvide> = Symbol('wd-tabs')
18
+ export type TagsMode = 'semicircle' | 'default'
18
19
 
19
20
  export const tabsProps = {
20
21
  ...baseProps,
@@ -66,6 +67,7 @@ export const tabsProps = {
66
67
  * 切换动画过渡时间,单位毫秒
67
68
  */
68
69
  duration: makeNumberProp(300),
70
+ mode: makeStringProp<TagsMode>('default'),
69
71
  }
70
72
 
71
73
  export type TabsProps = ExtractPropTypes<typeof tabsProps>
@@ -139,7 +139,7 @@
139
139
  {{ item.title }}
140
140
  </view>
141
141
  <!--下划线-->
142
- <view class="wd-tabs__line" :style="state.lineStyle"></view>
142
+ <view class="wd-tabs__line" :style="state.lineStyle" :class="`wd-tabs__${mode}`" />
143
143
  </view>
144
144
  </scroll-view>
145
145
  </view>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.14",
4
+ "version": "0.1.16",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -35,7 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<
35
35
  {},
36
36
  import('vue').ComponentOptionsMixin,
37
37
  import('vue').ComponentOptionsMixin,
38
- {},
38
+ {
39
+ sticky: (...args: any[]) => void
40
+ },
39
41
  string,
40
42
  import('vue').PublicProps,
41
43
  Readonly<
@@ -57,7 +59,9 @@ declare const _default: __VLS_WithTemplateSlots<
57
59
  default: string
58
60
  }
59
61
  }>
60
- >,
62
+ > & {
63
+ onSticky?: ((...args: any[]) => any) | undefined
64
+ },
61
65
  {
62
66
  zIndex: number
63
67
  customStyle: string
@@ -5,6 +5,7 @@ export type TabsProvide = {
5
5
  }
6
6
  }
7
7
  export declare const TABS_KEY: InjectionKey<TabsProvide>
8
+ export type TagsMode = 'semicircle' | 'default'
8
9
  export declare const tabsProps: {
9
10
  /**
10
11
  * 绑定值
@@ -84,6 +85,10 @@ export declare const tabsProps: {
84
85
  type: NumberConstructor
85
86
  default: number
86
87
  }
88
+ mode: {
89
+ type: import('vue').PropType<TagsMode>
90
+ default: TagsMode
91
+ }
87
92
  customStyle: {
88
93
  type: import('vue').PropType<string>
89
94
  default: string
@@ -43,6 +43,10 @@ declare const _default: __VLS_WithTemplateSlots<
43
43
  type: NumberConstructor
44
44
  default: number
45
45
  }
46
+ mode: {
47
+ type: import('vue').PropType<import('./types').TagsMode>
48
+ default: import('./types').TagsMode
49
+ }
46
50
  customStyle: {
47
51
  type: import('vue').PropType<string>
48
52
  default: string
@@ -114,6 +118,10 @@ declare const _default: __VLS_WithTemplateSlots<
114
118
  type: NumberConstructor
115
119
  default: number
116
120
  }
121
+ mode: {
122
+ type: import('vue').PropType<import('./types').TagsMode>
123
+ default: import('./types').TagsMode
124
+ }
117
125
  customStyle: {
118
126
  type: import('vue').PropType<string>
119
127
  default: string
@@ -135,6 +143,7 @@ declare const _default: __VLS_WithTemplateSlots<
135
143
  customStyle: string
136
144
  customClass: string
137
145
  color: string
146
+ mode: import('./types').TagsMode
138
147
  sticky: boolean
139
148
  inactiveColor: string
140
149
  offsetTop: number