@tplc/wot 0.1.72 → 0.1.74

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,28 @@
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.74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.26...v0.1.74) (2025-03-27)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.27 ([1eab1d7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1eab1d78e8764e97f0a32b965a3fe914e1af7730))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * lcb-city-select 自动清空额外字段 ([229b530](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/229b530f93fe237a9674a48c1248cae955fa9006))
16
+ * search 焦点 ([76a175f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/76a175ff3fc3f91c66bedf39af6780f11d0cb686))
17
+ * 修改数据 ([e068701](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e0687014bb0d3fef33658acc50f742326d60a783))
18
+ * 初始化字段 ([2bb232b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2bb232bcf514bb880e92ebe2e1c78c424f5a22b6))
19
+ * 同步city ([155266f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/155266f0e8dd302b5e974968552146e6d8448f5d))
20
+ * 字段同步 ([5395b64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5395b6415bbb5d7ef7396fbc949940ce0ccab2a5))
21
+ * 支持img ([508b7f9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/508b7f97b40f3c473e8a4528814db54b74e8b919))
22
+ * 暂时完善数据同步 ([66af8a1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/66af8a18e04913c407ccae7e1463a19b6aa584c3))
23
+ * 样式 ([5e4039c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5e4039ca29a673da67790e424cf2e7fc35fa1d1d))
24
+
25
+ ### [0.1.73](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.15...v0.1.73) (2025-03-25)
26
+
5
27
  ### [0.1.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.89...v0.1.72) (2025-03-20)
6
28
 
7
29
 
@@ -1,4 +1,10 @@
1
- import { baseProps, makeNumberProp, makeRequiredProp, makeStringProp } from '../common/props'
1
+ import {
2
+ baseProps,
3
+ makeBooleanProp,
4
+ makeNumberProp,
5
+ makeRequiredProp,
6
+ makeStringProp,
7
+ } from '../common/props'
2
8
 
3
9
  export const backtopProps = {
4
10
  ...baseProps,
@@ -34,4 +40,10 @@ export const backtopProps = {
34
40
  * 距离屏幕右边距离
35
41
  */
36
42
  right: makeNumberProp(20),
43
+
44
+ // 一直显示
45
+ alwaysShow: makeBooleanProp(false),
46
+
47
+ // 距离屏幕左边距离 优先级更高
48
+ left: makeNumberProp(0),
37
49
  }
@@ -2,7 +2,7 @@
2
2
  <wd-transition :show="show" name="fade">
3
3
  <view
4
4
  :class="`wd-backtop ${customClass} is-${shape}`"
5
- :style="`z-index: ${zIndex}; bottom: ${bottom}px; right: ${right}px; ${customStyle}`"
5
+ :style="`z-index: ${zIndex}; bottom: ${bottom}px; ${left ? `left: ${left}px;` : `right: ${right}px;`} ${customStyle}`"
6
6
  @click="handleBacktop"
7
7
  >
8
8
  <slot v-if="$slots.default"></slot>
@@ -34,7 +34,7 @@ import { onPageScroll } from '@dcloudio/uni-app'
34
34
  const scrollTop = ref(0)
35
35
  const props = defineProps(backtopProps)
36
36
 
37
- const show = computed(() => scrollTop.value > props.top)
37
+ const show = computed(() => scrollTop.value > props.top || props.alwaysShow)
38
38
  onPageScroll((e) => {
39
39
  scrollTop.value = e.scrollTop
40
40
  })
@@ -89,6 +89,20 @@
89
89
  @include lineEllipsis;
90
90
  }
91
91
 
92
+ @include e(item-title-dot) {
93
+ height: 24rpx;
94
+ width: 24rpx;
95
+ border-radius: 50%;
96
+ background-color: $-color-theme;
97
+ color: #fff;
98
+ display: flex;
99
+ align-items: center;
100
+ justify-content: center;
101
+ margin-left: 4rpx;
102
+ font-size: 14rpx;
103
+ line-height: 24rpx;
104
+ }
105
+
92
106
  @include edeep(arrow) {
93
107
  // position: absolute;
94
108
  // top: 0;
@@ -97,4 +111,4 @@
97
111
  transition: transform 0.3s;
98
112
  // transform: scale(0.6);
99
113
  }
100
- }
114
+ }
@@ -17,6 +17,9 @@
17
17
  >
18
18
  <view class="wd-drop-menu__item-title">
19
19
  <view class="wd-drop-menu__item-title-text">{{ getDisplayTitle(child) }}</view>
20
+ <view class="wd-drop-menu__item-title-dot" v-if="child.$.exposed!.getDot()">
21
+ {{ child.$.exposed!.getDot() }}
22
+ </view>
20
23
  <wd-icon :name="child.icon" :size="child.iconSize" custom-class="wd-drop-menu__arrow" />
21
24
  </view>
22
25
  </view>
@@ -1,5 +1,11 @@
1
1
  import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'
2
- import { baseProps, makeArrayProp, makeBooleanProp, makeStringProp } from '../common/props'
2
+ import {
3
+ baseProps,
4
+ makeArrayProp,
5
+ makeBooleanProp,
6
+ makeNumberProp,
7
+ makeStringProp,
8
+ } from '../common/props'
3
9
 
4
10
  export type DropMenuItemBeforeToggleOption = {
5
11
  // 操作状态:true 打开下拉菜单,false 关闭下拉菜单
@@ -65,6 +71,10 @@ export const dorpMenuItemProps = {
65
71
  */
66
72
  tipKey: makeStringProp('tip'),
67
73
  selected: makeBooleanProp(false),
74
+ /**
75
+ * 选项对象中,选项说明对应的 key
76
+ */
77
+ dot: makeNumberProp(0),
68
78
  }
69
79
 
70
80
  export type DropMenuItemProps = ExtractPropTypes<typeof dorpMenuItemProps>
@@ -75,6 +85,7 @@ export type DropMenuItemExpose = {
75
85
  close: () => void
76
86
  toggle: () => void
77
87
  getSelected: () => boolean
88
+ getDot: () => number
78
89
  }
79
90
 
80
91
  export type DropMenuItemInstance = ComponentPublicInstance<DropMenuItemProps>
@@ -137,6 +137,10 @@ function getShowPop() {
137
137
  return showPop.value
138
138
  }
139
139
 
140
+ function getDot() {
141
+ return props.dot
142
+ }
143
+
140
144
  function getSelected() {
141
145
  return props.selected
142
146
  }
@@ -230,7 +234,7 @@ function beforeLeave() {
230
234
  emit('close')
231
235
  }
232
236
 
233
- defineExpose<DropMenuItemExpose>({ getShowPop, open, close, toggle, getSelected })
237
+ defineExpose<DropMenuItemExpose>({ getShowPop, open, close, toggle, getSelected, getDot })
234
238
  </script>
235
239
 
236
240
  <style lang="scss" scoped>
@@ -7,7 +7,8 @@
7
7
  :mode="mode"
8
8
  :lazy-load="lazyLoad"
9
9
  />
10
- <image
10
+ <!-- #ifdef H5 -->
11
+ <img
11
12
  :class="`wd-img__image coverImg ${customImage}`"
12
13
  :src="wrapPhoto({ photo: src, width, type: 1 })"
13
14
  :mode="mode"
@@ -18,8 +19,17 @@
18
19
  display: status === 'success' ? 'block' : 'none',
19
20
  }"
20
21
  />
21
- <slot v-if="status === 'loading'" name="loading"></slot>
22
- <slot v-if="status === 'error'" name="error"></slot>
22
+ <!-- #endif -->
23
+ <!-- #ifndef H5 -->
24
+ <image
25
+ :class="`wd-img__image coverImg ${customImage}`"
26
+ :src="wrapPhoto({ photo: src, width, type: 1 })"
27
+ :mode="mode"
28
+ :lazy-load="lazyLoad"
29
+ @load="handleLoad"
30
+ @error="handleError"
31
+ />
32
+ <!-- #endif -->
23
33
  </view>
24
34
  </template>
25
35
  <script lang="ts">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.72",
4
+ "version": "0.1.74",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -55,6 +55,14 @@ export declare const backtopProps: {
55
55
  type: NumberConstructor
56
56
  default: number
57
57
  }
58
+ alwaysShow: {
59
+ type: BooleanConstructor
60
+ default: boolean
61
+ }
62
+ left: {
63
+ type: NumberConstructor
64
+ default: number
65
+ }
58
66
  customStyle: {
59
67
  type: import('vue').PropType<string>
60
68
  default: string
@@ -33,6 +33,14 @@ declare const _default: __VLS_WithTemplateSlots<
33
33
  type: NumberConstructor
34
34
  default: number
35
35
  }
36
+ alwaysShow: {
37
+ type: BooleanConstructor
38
+ default: boolean
39
+ }
40
+ left: {
41
+ type: NumberConstructor
42
+ default: number
43
+ }
36
44
  customStyle: {
37
45
  type: import('vue').PropType<string>
38
46
  default: string
@@ -85,6 +93,14 @@ declare const _default: __VLS_WithTemplateSlots<
85
93
  type: NumberConstructor
86
94
  default: number
87
95
  }
96
+ alwaysShow: {
97
+ type: BooleanConstructor
98
+ default: boolean
99
+ }
100
+ left: {
101
+ type: NumberConstructor
102
+ default: number
103
+ }
88
104
  customStyle: {
89
105
  type: import('vue').PropType<string>
90
106
  default: string
@@ -106,6 +122,8 @@ declare const _default: __VLS_WithTemplateSlots<
106
122
  iconStyle: string
107
123
  shape: string
108
124
  right: number
125
+ alwaysShow: boolean
126
+ left: number
109
127
  },
110
128
  {}
111
129
  >,
@@ -91,6 +91,13 @@ export declare const dorpMenuItemProps: {
91
91
  type: BooleanConstructor
92
92
  default: boolean
93
93
  }
94
+ /**
95
+ * 选项对象中,选项说明对应的 key
96
+ */
97
+ dot: {
98
+ type: NumberConstructor
99
+ default: number
100
+ }
94
101
  customStyle: {
95
102
  type: PropType<string>
96
103
  default: string
@@ -107,5 +114,6 @@ export type DropMenuItemExpose = {
107
114
  close: () => void
108
115
  toggle: () => void
109
116
  getSelected: () => boolean
117
+ getDot: () => number
110
118
  }
111
119
  export type DropMenuItemInstance = ComponentPublicInstance<DropMenuItemProps>
@@ -48,6 +48,10 @@ declare const _default: __VLS_WithTemplateSlots<
48
48
  type: BooleanConstructor
49
49
  default: boolean
50
50
  }
51
+ dot: {
52
+ type: NumberConstructor
53
+ default: number
54
+ }
51
55
  customStyle: {
52
56
  type: import('vue').PropType<string>
53
57
  default: string
@@ -63,6 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<
63
67
  close: () => void
64
68
  toggle: () => void
65
69
  getSelected: () => boolean
70
+ getDot: () => number
66
71
  },
67
72
  unknown,
68
73
  {},
@@ -128,6 +133,10 @@ declare const _default: __VLS_WithTemplateSlots<
128
133
  type: BooleanConstructor
129
134
  default: boolean
130
135
  }
136
+ dot: {
137
+ type: NumberConstructor
138
+ default: number
139
+ }
131
140
  customStyle: {
132
141
  type: import('vue').PropType<string>
133
142
  default: string
@@ -159,6 +168,7 @@ declare const _default: __VLS_WithTemplateSlots<
159
168
  tipKey: string
160
169
  customTitle: string
161
170
  customIcon: string
171
+ dot: number
162
172
  },
163
173
  {}
164
174
  >,
@@ -1,6 +1,54 @@
1
- declare const _default: __VLS_WithTemplateSlots<
2
- import('vue').DefineComponent<
3
- {
1
+ declare const _default: import('vue').DefineComponent<
2
+ {
3
+ customImage: {
4
+ type: import('vue').PropType<string>
5
+ default: string
6
+ }
7
+ src: StringConstructor
8
+ round: {
9
+ type: BooleanConstructor
10
+ default: boolean
11
+ }
12
+ mode: {
13
+ type: import('vue').PropType<import('./types').ImageMode>
14
+ default: import('./types').ImageMode
15
+ }
16
+ lazyLoad: {
17
+ type: BooleanConstructor
18
+ default: boolean
19
+ }
20
+ width: (NumberConstructor | StringConstructor)[]
21
+ height: (NumberConstructor | StringConstructor)[]
22
+ radius: (NumberConstructor | StringConstructor)[]
23
+ enablePreview: {
24
+ type: BooleanConstructor
25
+ default: boolean
26
+ }
27
+ lazyPlaceWidth: (NumberConstructor | StringConstructor)[]
28
+ customStyle: {
29
+ type: import('vue').PropType<string>
30
+ default: string
31
+ }
32
+ customClass: {
33
+ type: import('vue').PropType<string>
34
+ default: string
35
+ }
36
+ },
37
+ {},
38
+ unknown,
39
+ {},
40
+ {},
41
+ import('vue').ComponentOptionsMixin,
42
+ import('vue').ComponentOptionsMixin,
43
+ {
44
+ click: (...args: any[]) => void
45
+ error: (...args: any[]) => void
46
+ load: (...args: any[]) => void
47
+ },
48
+ string,
49
+ import('vue').PublicProps,
50
+ Readonly<
51
+ import('vue').ExtractPropTypes<{
4
52
  customImage: {
5
53
  type: import('vue').PropType<string>
6
54
  default: string
@@ -34,80 +82,21 @@ declare const _default: __VLS_WithTemplateSlots<
34
82
  type: import('vue').PropType<string>
35
83
  default: string
36
84
  }
37
- },
38
- {},
39
- unknown,
40
- {},
41
- {},
42
- import('vue').ComponentOptionsMixin,
43
- import('vue').ComponentOptionsMixin,
44
- {
45
- click: (...args: any[]) => void
46
- error: (...args: any[]) => void
47
- load: (...args: any[]) => void
48
- },
49
- string,
50
- import('vue').PublicProps,
51
- Readonly<
52
- import('vue').ExtractPropTypes<{
53
- customImage: {
54
- type: import('vue').PropType<string>
55
- default: string
56
- }
57
- src: StringConstructor
58
- round: {
59
- type: BooleanConstructor
60
- default: boolean
61
- }
62
- mode: {
63
- type: import('vue').PropType<import('./types').ImageMode>
64
- default: import('./types').ImageMode
65
- }
66
- lazyLoad: {
67
- type: BooleanConstructor
68
- default: boolean
69
- }
70
- width: (NumberConstructor | StringConstructor)[]
71
- height: (NumberConstructor | StringConstructor)[]
72
- radius: (NumberConstructor | StringConstructor)[]
73
- enablePreview: {
74
- type: BooleanConstructor
75
- default: boolean
76
- }
77
- lazyPlaceWidth: (NumberConstructor | StringConstructor)[]
78
- customStyle: {
79
- type: import('vue').PropType<string>
80
- default: string
81
- }
82
- customClass: {
83
- type: import('vue').PropType<string>
84
- default: string
85
- }
86
- }>
87
- > & {
88
- onLoad?: ((...args: any[]) => any) | undefined
89
- onError?: ((...args: any[]) => any) | undefined
90
- onClick?: ((...args: any[]) => any) | undefined
91
- },
92
- {
93
- customStyle: string
94
- customClass: string
95
- round: boolean
96
- customImage: string
97
- mode: import('./types').ImageMode
98
- lazyLoad: boolean
99
- enablePreview: boolean
100
- },
101
- {}
102
- >,
85
+ }>
86
+ > & {
87
+ onLoad?: ((...args: any[]) => any) | undefined
88
+ onError?: ((...args: any[]) => any) | undefined
89
+ onClick?: ((...args: any[]) => any) | undefined
90
+ },
103
91
  {
104
- loading?(_: {}): any
105
- error?(_: {}): any
106
- }
92
+ customStyle: string
93
+ customClass: string
94
+ round: boolean
95
+ customImage: string
96
+ mode: import('./types').ImageMode
97
+ lazyLoad: boolean
98
+ enablePreview: boolean
99
+ },
100
+ {}
107
101
  >
108
102
  export default _default
109
- type __VLS_WithTemplateSlots<T, S> = T & {
110
- new (): {
111
- $slots: S
112
- }
113
- }
@@ -69,8 +69,8 @@ declare const _default: __VLS_WithTemplateSlots<
69
69
  customStyle: string
70
70
  customClass: string
71
71
  vertical: boolean
72
- active: number
73
72
  dot: boolean
73
+ active: number
74
74
  alignCenter: boolean
75
75
  },
76
76
  {}