@tplc/business 0.3.7 → 0.3.9

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.3.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.55...v0.3.9) (2025-01-23)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * docs ([900d1fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/900d1fefb37d6c1dbeb8b5d7640b191ae45f8aa7))
11
+ * input-number 支持重写 ([f117837](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f1178374db3091157005890b6407db445ab1dd3e))
12
+ * input-number 默认不触发change ([0e5bf05](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e5bf05516748d09ba647280eb43114fdda4fc22))
13
+ * 新增文档 ([13e339a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13e339a31dd3e12f3ddc0e5270fb88676cd676f3))
14
+ * 新增配置 ([22fa600](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fa6000042103d54e709a40eeed1438739e8c7b))
15
+
16
+ ### [0.3.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.6...v0.3.8) (2025-01-19)
17
+
18
+
19
+ ### ✨ Features | 新功能
20
+
21
+ * picker 支持button ([2ce0e83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2ce0e8382e22114cbed52d95d6dabd10946ce2fb))
22
+ * preview ([a25cfd5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a25cfd57cd7da7608755c0f31b66dbca690bbcce))
23
+ * update search ([83ea1bd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/83ea1bd6d4318628cb0a9d771c663554b5547976))
24
+ * 定位2天过期时间 ([3c9b7cf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3c9b7cf506d55d60ff748ab11b20d5781c73b10f))
25
+ * 新增action ([a81d53a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a81d53a501f088dad9e906bc62b89cb8f3685706))
26
+
5
27
  ### [0.3.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.5...v0.3.6) (2025-01-15)
6
28
 
7
29
  ### [0.3.5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.4...v0.3.5) (2025-01-15)
@@ -6,6 +6,7 @@
6
6
  @getphonenumber="getPhoneNumber"
7
7
  @chooseavatar="onChooseAvatar"
8
8
  :class="customClass"
9
+ :style="customStyle"
9
10
  >
10
11
  <slot />
11
12
  </button>
@@ -2,6 +2,8 @@ export type LcbActionViewProps = {
2
2
  /** 跳转路径 */
3
3
  jumpUrl?: string
4
4
  urlParams?: string
5
+ customClass?: string
6
+ customStyle?: string
5
7
  } & (
6
8
  | {
7
9
  /**
@@ -35,7 +37,6 @@ export type LcbActionViewProps = {
35
37
  jumpAppid?: string
36
38
  /** 手机号 */
37
39
  phoneNumber?: string
38
- customClass?: string
39
40
  /** 弹窗文案 */
40
41
  content?: string
41
42
  /** 弹窗标题 */
@@ -63,7 +63,6 @@ import LcbCityLetter from './components/lcb-city-letter/index.vue'
63
63
  import LcbCityList from './components/lcb-city-list/index.vue'
64
64
  import { LcbCitySelectProps } from './types'
65
65
  import { debounce } from '@tplc/wot/components/common/util'
66
- import qs from 'qs'
67
66
  defineOptions({
68
67
  name: 'LcbCitySelect',
69
68
  options: {
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <lcb-action-view
3
+ v-bind="$props.link"
4
+ custom-class="!fixed !z-2 flex items-center overflow-hidden !text-center justify-center flex-col box-border shadow break-after-all"
5
+ :customStyle="customStyle"
6
+ >
7
+ <wd-icon
8
+ v-if="type === 'icon' && icon"
9
+ :name="icon"
10
+ class-prefix="lcb"
11
+ :color="color"
12
+ :size="transformValueUnit(fontSize)"
13
+ />
14
+ <template v-else>{{ text }}</template>
15
+ </lcb-action-view>
16
+ </template>
17
+
18
+ <script setup lang="ts">
19
+ import { LcbFabProps } from './types'
20
+ import { transformValueUnit } from '../..//utils/transform'
21
+ import { computed } from 'vue'
22
+ defineOptions({
23
+ name: 'LcbFab',
24
+ options: {
25
+ addGlobalClass: true,
26
+ virtualHost: true,
27
+ styleIsolation: 'shared',
28
+ },
29
+ })
30
+ const props = withDefaults(defineProps<LcbFabProps>(), {})
31
+ const customStyle = computed(() => {
32
+ const {
33
+ right,
34
+ bottom,
35
+ link,
36
+ width,
37
+ borderRadius,
38
+ backgroundColor,
39
+ backgroundImage,
40
+ fontSize,
41
+ padding,
42
+ ...reset
43
+ } = props
44
+ return {
45
+ ...reset,
46
+ right: transformValueUnit(right),
47
+ bottom: transformValueUnit(bottom),
48
+ width: transformValueUnit(width),
49
+ borderRadius: transformValueUnit(borderRadius),
50
+ backgroundColor,
51
+ backgroundImage: `url(${backgroundImage})`,
52
+ height: transformValueUnit(width),
53
+ fontSize: transformValueUnit(fontSize),
54
+ padding: `0 ${transformValueUnit(padding)}`,
55
+ }
56
+ })
57
+ </script>
58
+
59
+ <style lang="scss" scoped></style>
@@ -0,0 +1,18 @@
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+
3
+ export interface LcbFabProps {
4
+ right: number
5
+ bottom: number
6
+ backgroundColor?: string
7
+ backgroundImage?: string
8
+ width: number
9
+ borderRadius: number
10
+ text?: string
11
+ padding?: number
12
+ color?: string
13
+ fontSize?: number
14
+ fontWeight?: number
15
+ type?: 'icon' | 'text'
16
+ icon?: string
17
+ link?: LcbActionViewProps
18
+ }
package/global.d.ts CHANGED
@@ -13,6 +13,7 @@ declare module 'vue' {
13
13
  'lcb-calendar-search': (typeof import('@tplc/business/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
14
14
  'lcb-city-select': (typeof import('@tplc/business/components/lcb-city-select/lcb-city-select.vue'))['default']
15
15
  'lcb-dynamic-data': (typeof import('@tplc/business/components/lcb-dynamic-data/lcb-dynamic-data.vue'))['default']
16
+ 'lcb-fab': (typeof import('@tplc/business/components/lcb-fab/lcb-fab.vue'))['default']
16
17
  'lcb-gap': (typeof import('@tplc/business/components/lcb-gap/lcb-gap.vue'))['default']
17
18
  'lcb-grid': (typeof import('@tplc/business/components/lcb-grid/lcb-grid.vue'))['default']
18
19
  'lcb-home-search': (typeof import('@tplc/business/components/lcb-home-search/lcb-home-search.vue'))['default']
@@ -21,6 +21,12 @@ const useLocation = () => {
21
21
 
22
22
  // 引导用户前往设置页面重新授权
23
23
  function navigateToSettings() {
24
+ /** 48小时提醒一次 */
25
+ const lastTime = uni.getStorageSync('location_last_time')
26
+ if (lastTime && new Date().getTime() - lastTime < 48 * 60 * 60 * 1000) {
27
+ return
28
+ }
29
+ uni.setStorageSync('location_last_time', new Date().getTime())
24
30
  uni.showModal({
25
31
  title: translate('定位权限申请'),
26
32
  content: translate('您尚未开启定位权限,无法正常使用该功能,请前往设置页面开启。'),
@@ -1,9 +1,9 @@
1
1
  @font-face {
2
2
  font-family: 'lcb'; /* Project id 4710234 */
3
3
  src:
4
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.woff2?t=1735307783373') format('woff2'),
5
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.woff?t=1735307783373') format('woff'),
6
- url('//at.alicdn.com/t/c/font_4710234_0cmn6exn7ocb.ttf?t=1735307783373') format('truetype');
4
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.woff2?t=1737644309894') format('woff2'),
5
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.woff?t=1737644309894') format('woff'),
6
+ url('//at.alicdn.com/t/c/font_4710234_8zhj9giis9n.ttf?t=1737644309894') format('truetype');
7
7
  }
8
8
 
9
9
  .lcb {
@@ -14,6 +14,106 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .lcb-xinzeng:before {
18
+ content: '\e6c1';
19
+ }
20
+
21
+ .lcb-xiyiqusong-suo:before {
22
+ content: '\e6b0';
23
+ }
24
+
25
+ .lcb-jianshenfang-suo:before {
26
+ content: '\e6b1';
27
+ }
28
+
29
+ .lcb-chenxinchenyi-suo:before {
30
+ content: '\e6b2';
31
+ }
32
+
33
+ .lcb-zhuanshukefu-suo:before {
34
+ content: '\e6b3';
35
+ }
36
+
37
+ .lcb-zaocandabao-suo:before {
38
+ content: '\e6b4';
39
+ }
40
+
41
+ .lcb-kafeiquan-suo:before {
42
+ content: '\e6b5';
43
+ }
44
+
45
+ .lcb-mianfeijiesong:before {
46
+ content: '\e6b6';
47
+ }
48
+
49
+ .lcb-zaocandabao:before {
50
+ content: '\e6b7';
51
+ }
52
+
53
+ .lcb-huiyuanzhuanxiangquan-suo:before {
54
+ content: '\e6b8';
55
+ }
56
+
57
+ .lcb-yaoqingtequan:before {
58
+ content: '\e6b9';
59
+ }
60
+
61
+ .lcb-huiyuanzhuanxiangquan:before {
62
+ content: '\e6ba';
63
+ }
64
+
65
+ .lcb-xiyifang:before {
66
+ content: '\e6bb';
67
+ }
68
+
69
+ .lcb-xiyiqusong:before {
70
+ content: '\e6bc';
71
+ }
72
+
73
+ .lcb-mianfeijiesong-suo:before {
74
+ content: '\e6bd';
75
+ }
76
+
77
+ .lcb-kafeiquan:before {
78
+ content: '\e6be';
79
+ }
80
+
81
+ .lcb-xiyifang-suo:before {
82
+ content: '\e6bf';
83
+ }
84
+
85
+ .lcb-jianshenfang:before {
86
+ content: '\e6c0';
87
+ }
88
+
89
+ .lcb-yaoqingtequan-suo:before {
90
+ content: '\e6a9';
91
+ }
92
+
93
+ .lcb-shengfangquan:before {
94
+ content: '\e6aa';
95
+ }
96
+
97
+ .lcb-zhuanshukefu:before {
98
+ content: '\e6ab';
99
+ }
100
+
101
+ .lcb-shengfangquan-suo:before {
102
+ content: '\e6ac';
103
+ }
104
+
105
+ .lcb-shunfengbaoyou:before {
106
+ content: '\e6ad';
107
+ }
108
+
109
+ .lcb-shunfengbaoyou-suo:before {
110
+ content: '\e6ae';
111
+ }
112
+
113
+ .lcb-chenxinchenyi:before {
114
+ content: '\e6af';
115
+ }
116
+
17
117
  .lcb-ditu:before {
18
118
  content: '\e6a8';
19
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.53"
14
+ "@tplc/wot": "0.1.56"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -2,6 +2,8 @@ export type LcbActionViewProps = {
2
2
  /** 跳转路径 */
3
3
  jumpUrl?: string
4
4
  urlParams?: string
5
+ customClass?: string
6
+ customStyle?: string
5
7
  } & (
6
8
  | {
7
9
  /**
@@ -34,7 +36,6 @@ export type LcbActionViewProps = {
34
36
  jumpAppid?: string
35
37
  /** 手机号 */
36
38
  phoneNumber?: string
37
- customClass?: string
38
39
  /** 弹窗文案 */
39
40
  content?: string
40
41
  /** 弹窗标题 */
@@ -0,0 +1,42 @@
1
+ import { LcbFabProps } from './types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_WithDefaults<__VLS_TypePropsToOption<LcbFabProps>, {}>,
4
+ {},
5
+ unknown,
6
+ {},
7
+ {},
8
+ import('vue').ComponentOptionsMixin,
9
+ import('vue').ComponentOptionsMixin,
10
+ {},
11
+ string,
12
+ import('vue').PublicProps,
13
+ Readonly<
14
+ import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbFabProps>, {}>>
15
+ >,
16
+ {},
17
+ {}
18
+ >
19
+ export default _default
20
+ type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
22
+ ? __VLS_Prettify<
23
+ P[K] & {
24
+ default: D[K]
25
+ }
26
+ >
27
+ : P[K]
28
+ }
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K]
31
+ } & {}
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K>
35
+ ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
37
+ }
38
+ : {
39
+ type: import('vue').PropType<T[K]>
40
+ required: true
41
+ }
42
+ }
@@ -0,0 +1,17 @@
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+ export interface LcbFabProps {
3
+ right: number
4
+ bottom: number
5
+ backgroundColor?: string
6
+ backgroundImage?: string
7
+ width: number
8
+ borderRadius: number
9
+ text?: string
10
+ padding?: number
11
+ color?: string
12
+ fontSize?: number
13
+ fontWeight?: number
14
+ type?: 'icon' | 'text'
15
+ icon?: string
16
+ link?: LcbActionViewProps
17
+ }
@@ -59,13 +59,13 @@ declare const _default: import('vue').DefineComponent<
59
59
  lineWidth: number
60
60
  marginHorizontal: number
61
61
  fontSize: number
62
+ fontWeight: number
62
63
  justify:
63
64
  | 'justify-start'
64
65
  | 'justify-end'
65
66
  | 'justify-center'
66
67
  | 'justify-between'
67
68
  | 'justify-around'
68
- fontWeight: number
69
69
  hintColor: string
70
70
  hintFontSize: number
71
71
  hintVerticalAlign: 'end' | 'center'