@tplc/business 0.1.15 → 0.2.2

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,15 @@
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.2.2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.42...v0.2.2) (2024-11-27)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.1.16 ([53b5a85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/53b5a8587e924c2d12388a21fd475a35013809f2))
11
+
12
+ ### [0.1.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.42...v0.1.16) (2024-11-27)
13
+
5
14
  ### [0.0.80](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.78...v0.0.80) (2024-11-26)
6
15
 
7
16
 
@@ -106,10 +106,6 @@ const onClear = () => {
106
106
  margin-bottom: 12rpx;
107
107
  }
108
108
  }
109
-
110
- .text-light {
111
- color: $-color-theme;
112
- }
113
109
  }
114
110
 
115
111
  .history-tag {
@@ -16,8 +16,8 @@
16
16
  :width="`${styleGroup == 3 ? transformValueUnit(imageSize) : '100%'}`"
17
17
  :src="item.url"
18
18
  :enable-preview="enablePreview"
19
- mode="widthFix"
20
- height="auto"
19
+ :mode="imageHeight ? 'scaleToFill' : 'widthFix'"
20
+ :height="imageHeight ? transformValueUnit(imageHeight) : 'auto'"
21
21
  :custom-class="`${styleGroup == 3 ? 'overflow-hidden' : 'overflow-hidden block'}`"
22
22
  :style="{
23
23
  borderRadius: transformValueUnit(imageRadius),
@@ -92,6 +92,7 @@ const imageProps = computed(() => {
92
92
  marginHorizontal: props.marginHorizontal,
93
93
  enablePreview: props.enablePreview,
94
94
  styleGroup: props.styleGroup,
95
+ imageHeight: props.imageHeight,
95
96
  }
96
97
  })
97
98
 
@@ -12,4 +12,5 @@ export interface LcbImageProps {
12
12
  imageSize?: number
13
13
  floatUp?: number
14
14
  marginBottom?: number
15
+ imageHeight?: number
15
16
  }
@@ -6,7 +6,7 @@
6
6
  title,
7
7
  marginHorizontal: 0,
8
8
  paddingHorizontal: titlePadding,
9
- paddingBottom: 25,
9
+ paddingBottom: titleBottom,
10
10
  fontSize,
11
11
  fontWeight,
12
12
  color,
@@ -111,6 +111,7 @@ withDefaults(defineProps<LcbImgNavProps>(), {
111
111
  titleKey: 'title',
112
112
  itemFlexMode: 'column',
113
113
  itemGap: 24,
114
+ titleBottom: 40,
114
115
  })
115
116
  </script>
116
117
 
@@ -33,6 +33,7 @@ export interface LcbImgNavProps extends LcbBlockProps {
33
33
  textSize?: number
34
34
  urlKey?: string
35
35
  titleKey?: string
36
+ titleBottom?: number
36
37
 
37
38
  itemBgColor?: string
38
39
  itemRadius?: number
@@ -49,7 +49,7 @@
49
49
  <template v-else-if="back">
50
50
  <wd-icon
51
51
  class-prefix="lcb"
52
- :name="isLastPage() ? 'shouye_home-two' : 'zuo_left'"
52
+ :name="isLastPage() ? 'shouye_home' : 'zuo_left'"
53
53
  @click="toBack"
54
54
  :color="contentColor"
55
55
  size="24px"
@@ -94,25 +94,25 @@
94
94
  v-if="valuesCard == true"
95
95
  v-bind="$props"
96
96
  title="储值卡"
97
- @click="$lcb.navigateTo('/pages-sub/walletAccount/index')"
97
+ @click="navigateTo('/pages-sub/walletAccount/index')"
98
98
  />
99
99
  <Nums
100
100
  v-if="coupons == true"
101
101
  v-bind="$props"
102
102
  title="优惠券"
103
- @click="$lcb.navigateTo('/pages-sub/mine/coupon')"
103
+ @click="navigateTo('/pages-sub/mine/coupon')"
104
104
  />
105
105
  <Nums
106
106
  v-if="presales == true"
107
107
  v-bind="$props"
108
108
  title="预售券"
109
- @click="$lcb.navigateTo('/pages-sub/mine/advanceTicket')"
109
+ @click="navigateTo('/pages-sub/mine/advanceTicket')"
110
110
  />
111
111
  <Nums
112
112
  v-if="memberPoints == true"
113
113
  v-bind="$props"
114
114
  title="会员积分"
115
- @click="$lcb.navigateTo('/pages-sub/vip/points')"
115
+ @click="navigateTo('/pages-sub/vip/points')"
116
116
  />
117
117
  </view>
118
118
  </lcb-block>
@@ -124,7 +124,6 @@ import { transformValueUnit } from '../../utils/transform'
124
124
  import Nums from './Nums/index.vue'
125
125
  import { computed } from 'vue'
126
126
  import { addUnit } from '@tplc/wot/components/common/util'
127
- import { $lcb } from 'index'
128
127
 
129
128
  const { statusBarHeight } = uni.getSystemInfoSync()
130
129
  defineOptions({
@@ -172,6 +171,11 @@ const toEdit = () => {
172
171
  url: '/pages/user/edit',
173
172
  })
174
173
  }
174
+ const navigateTo = (url) => {
175
+ uni.navigateTo({
176
+ url,
177
+ })
178
+ }
175
179
  </script>
176
180
  <style lang="scss" scoped>
177
181
  .userPlace {
package/package.json CHANGED
@@ -1,26 +1,17 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.1.15",
3
+ "version": "0.2.2",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
7
7
  "type": "module",
8
- "scripts": {
9
- "pub": "pnpm dts && pnpm publish --no-git-checks",
10
- "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
11
- "release-major": "standard-version --release-as major ",
12
- "release-minor": "standard-version --release-as minor",
13
- "release-patch": "standard-version --release-as patch ",
14
- "generateComponent": "node ./scripts/createComponent.mjs",
15
- "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
16
- },
17
8
  "publishConfig": {
18
9
  "access": "public",
19
10
  "registry": "https://registry.npmjs.org/"
20
11
  },
21
12
  "peerDependencies": {
22
- "@tplc/wot": "workspace:*",
23
- "vue": ">=3.2.47"
13
+ "vue": ">=3.2.47",
14
+ "@tplc/wot": "0.1.42"
24
15
  },
25
16
  "engines": {
26
17
  "node": ">=18",
@@ -33,5 +24,14 @@
33
24
  },
34
25
  "devDependencies": {
35
26
  "standard-version": "^9.5.0"
27
+ },
28
+ "scripts": {
29
+ "pub": "pnpm dts && pnpm publish --no-git-checks",
30
+ "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
31
+ "release-major": "standard-version --release-as major ",
32
+ "release-minor": "standard-version --release-as minor",
33
+ "release-patch": "standard-version --release-as patch ",
34
+ "generateComponent": "node ./scripts/createComponent.mjs",
35
+ "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
36
36
  }
37
- }
37
+ }
@@ -10,4 +10,5 @@ export interface LcbImageProps {
10
10
  imageSize?: number
11
11
  floatUp?: number
12
12
  marginBottom?: number
13
+ imageHeight?: number
13
14
  }
@@ -16,6 +16,7 @@ declare const _default: import('vue').DefineComponent<
16
16
  titleKey: string
17
17
  itemFlexMode: string
18
18
  itemGap: number
19
+ titleBottom: number
19
20
  }
20
21
  >,
21
22
  {},
@@ -47,6 +48,7 @@ declare const _default: import('vue').DefineComponent<
47
48
  titleKey: string
48
49
  itemFlexMode: string
49
50
  itemGap: number
51
+ titleBottom: number
50
52
  }
51
53
  >
52
54
  >
@@ -65,6 +67,7 @@ declare const _default: import('vue').DefineComponent<
65
67
  textSize: number
66
68
  urlKey: string
67
69
  titleKey: string
70
+ titleBottom: number
68
71
  itemGap: number
69
72
  itemFlexMode: 'row' | 'column'
70
73
  },
@@ -30,6 +30,7 @@ export interface LcbImgNavProps extends LcbBlockProps {
30
30
  textSize?: number
31
31
  urlKey?: string
32
32
  titleKey?: string
33
+ titleBottom?: number
33
34
  itemBgColor?: string
34
35
  itemRadius?: number
35
36
  itemVerticalPadding?: number
@@ -24,10 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<
24
24
  imageRadius: number
25
25
  items: Record<string, any>[]
26
26
  imageWidth: number
27
+ imageHeight: number
27
28
  listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
28
29
  imageWidthPercent: number
29
30
  imageHeightPercent: number
30
- imageHeight: number
31
31
  itemHeight: number
32
32
  },
33
33
  {}
package/types/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { LcbGlobal } from './action'
2
- export declare const $lcb: LcbGlobal
3
- declare const _default: {
4
- install: (Vue: any) => void
5
- }
6
- export default _default