@tplc/business 0.0.18 → 0.0.20

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +130 -0
  2. package/action.d.ts +8 -0
  3. package/components/lcb-action-view/lcb-action-view.vue +145 -0
  4. package/components/lcb-action-view/types.ts +13 -0
  5. package/components/lcb-banner/lcb-banner.vue +1 -6
  6. package/components/lcb-banner/types.ts +2 -4
  7. package/components/lcb-banner-block/lcb-banner-block.vue +6 -16
  8. package/components/lcb-block/lcb-block.vue +10 -23
  9. package/components/lcb-block/types.ts +23 -9
  10. package/components/lcb-grid/lcb-grid.vue +2 -8
  11. package/components/lcb-home-search/lcb-home-search.vue +44 -24
  12. package/components/lcb-home-search/types.ts +2 -2
  13. package/components/lcb-image/Image/index.vue +96 -0
  14. package/components/lcb-image/lcb-image.vue +88 -0
  15. package/components/lcb-image/types.ts +15 -0
  16. package/components/lcb-img-nav/lcb-img-nav.vue +37 -39
  17. package/components/lcb-img-nav/types.ts +2 -9
  18. package/components/lcb-title/lcb-title.vue +2 -3
  19. package/components/lcb-user-order/lcb-user-order.vue +59 -54
  20. package/components/lcb-user-order/types.ts +2 -2
  21. package/components/lcb-user-top/lcb-user-top.vue +96 -48
  22. package/components/lcb-user-top/types.ts +1 -0
  23. package/components/lcb-video/lcb-video.vue +33 -0
  24. package/components/lcb-video/types.ts +11 -0
  25. package/global.d.ts +3 -0
  26. package/package.json +1 -1
  27. package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +41 -0
  28. package/types/components/lcb-action-view/types.d.ts +13 -0
  29. package/types/components/lcb-banner/lcb-banner.vue.d.ts +1 -2
  30. package/types/components/lcb-banner/types.d.ts +2 -3
  31. package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +7 -3
  32. package/types/components/lcb-block/lcb-block.vue.d.ts +18 -25
  33. package/types/components/lcb-block/types.d.ts +21 -9
  34. package/types/components/lcb-grid/lcb-grid.vue.d.ts +4 -1
  35. package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +9 -0
  36. package/types/components/lcb-home-search/types.d.ts +2 -2
  37. package/types/components/lcb-image/Image/index.vue.d.ts +56 -0
  38. package/types/components/lcb-image/lcb-image.vue.d.ts +71 -0
  39. package/types/components/lcb-image/types.d.ts +13 -0
  40. package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +6 -12
  41. package/types/components/lcb-img-nav/types.d.ts +2 -9
  42. package/types/components/lcb-nav/lcb-nav.vue.d.ts +1 -1
  43. package/types/components/lcb-title/lcb-title.vue.d.ts +6 -0
  44. package/types/components/lcb-user-order/lcb-user-order.vue.d.ts +1 -1
  45. package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +3 -0
  46. package/types/components/lcb-user-top/types.d.ts +1 -0
  47. package/types/components/lcb-video/lcb-video.vue.d.ts +56 -0
  48. package/types/components/lcb-video/types.d.ts +10 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,130 @@
1
+ # Changelog
2
+
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
+
5
+ ### [0.0.20](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.19...v0.0.20) (2024-09-22)
6
+
7
+ ### 0.0.19 (2024-09-22)
8
+
9
+
10
+ ### ✅ Tests | 测试
11
+
12
+ * publish ([997689b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/997689bfc0c7d084bf97b6ae33de6f005c5e339a))
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.1.0 ([58e4098](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/58e40989c4fd125e3e32fdbd415fe394b76109ee))
18
+ * **release:** 0.1.0 ([eac1562](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/eac1562d90d27a259a9c7e0947669147d94115c6))
19
+ * **release:** 0.2.0 ([c1d8014](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c1d8014b0901e072ec65b73c76a66d08c55e9308))
20
+ * **release:** 0.3.0 ([26df4b1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/26df4b16caf4bbd3adebeb46244f23d82d618ff2))
21
+ * **release:** 1.0.1 ([ed7b9b2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ed7b9b23f0f9f8dc477acf8b26d4acf1f8eb2643))
22
+ * **release:** 1.1.0 ([1a2d46a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1a2d46adc756210c7aa6e0c0268f4aa1209243ac))
23
+ * **release:** 1.1.0 ([f555363](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f555363210427dff66838c24f8be0470e52ada06))
24
+ * **release:** 1.1.0 ([98a1ca0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/98a1ca001d7886907881919a813901bc6be09763))
25
+ * **release:** 1.2.0 ([af6d181](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/af6d181a78e1bc8b140b4a44e28bd1290e40e0c0))
26
+
27
+
28
+ ### 🐛 Bug Fixes | Bug 修复
29
+
30
+ * tag click ([71a0f68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/71a0f682d3fcc952e2488e62f5fccfcb9d77be19))
31
+ * 修复slider 无法拖动问题 ([5ed5da7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ed5da72dd52596768ea83a46d8db22cfa2dcce5))
32
+ * 修复多余事件 ([d7785de](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d7785de8b9304bbe96643ae588ac299839d48227))
33
+
34
+
35
+ ### ✨ Features | 新功能
36
+
37
+ * tagSelect ([9d68b93](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9d68b9344aecbb0ac658ef3983b610b5a19ffd80))
38
+ * 调整数据结构 ([d1d3341](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d1d3341ce1db32ceb2aceb022eb9ab7ff6694085))
39
+ * banner基本模式 ([ef55b77](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ef55b77283b6da1dddb2beed1770ba1a3a8b3cee))
40
+ * banner支持基础配置 ([23f0cec](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/23f0cec318aec67d026d8eaca78d33d1286e6f63))
41
+ * busness version ([a2e6840](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a2e684075dab93ee447b367fd6953b3997b2cf4d))
42
+ * card ([c1698ed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c1698edcda8607a08096f09afe999c3ad5d05545))
43
+ * commito ([dec9dec](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dec9dec549a81906373481f2a4f9460b861dc226))
44
+ * commito ([2018f1d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2018f1dfa0f3d692213847ae3de9bd193b3c7da3))
45
+ * day ([5ce96c0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ce96c02b131d8c763cfa918f76121b329c659de))
46
+ * disabled ([ab5ad53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ab5ad53dcf8c997473665a78071f7cd20f78706c))
47
+ * docs ([3a740b3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3a740b37689ad9a5da7b1dfed70aaaa505ba03c8))
48
+ * docs ([cf8c74e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cf8c74ef7a28b06cfa43b539fe4bfb64353c123e))
49
+ * docs ([3135252](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3135252b7fd5cd9170d7a971f41750e37abfd3cf))
50
+ * docs ([52e0301](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/52e0301ba921472ccfe462da3771ffbbbf2a6d45))
51
+ * engine 捕获子布局点击事件 ([5cb5a4d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5cb5a4d536c6347038792f41bab62a60c0ecf1f8))
52
+ * filter ([c302d1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c302d1caef2a57494cd8904f25224da1fd38128b))
53
+ * filter ([7d2806b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7d2806b91f3537dc0ad50b647548c2a35536334b))
54
+ * gap ([00c218a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/00c218ab7883f4e3b7e804cd924d921638a3938f))
55
+ * icon ([7cdac33](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7cdac336a18836491add9dae9a6f972cffd57d39))
56
+ * icon 细节拉满 ([1ae7d1b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1ae7d1be4e206528fecbb86a3a53a13bf63b859b))
57
+ * modei ([39af3c7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/39af3c7bd124924ead7773c4308d105bb9d3f2ec))
58
+ * monorepo ([312d296](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/312d296fef99f97409c99fb200c0e2438bc8dde5))
59
+ * nav ([a829c34](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a829c34c28203eaf017a81eac838e29607254694))
60
+ * nav 支持fixed ([4f28e06](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4f28e06d169e93108072b32f3feb23716666e8c1))
61
+ * public ([d8bc60c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d8bc60c01b7abd375ae6d0195338c0d7c2e837d4))
62
+ * select ([e3fa44e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e3fa44e9b44d1db404b62beafc1cc4e33c18a3d5))
63
+ * sliderView ([2307d32](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2307d329b3c0fb4df1a737c2e15cfcd292360957))
64
+ * tsc ([1d8b987](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1d8b98793fcf21940908142801a4de0c38e91ffe))
65
+ * update version ([2e533ab](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2e533ab0c0877b75b35a1e235217e65c5369bca6))
66
+ * wot ([8743bd6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8743bd6f92c634f4dc4e85b2406ad28a9c34f043))
67
+ * wot publish ([d4f87fa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d4f87fab773929761d1ecabf014bc302ba52c1a0))
68
+ * 九宫格 ([e10f22e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e10f22e9cb55e2d8685b657a1ad86185da29b8bb))
69
+ * 修改引擎接口 ([2273305](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22733056508ef8e88a107735a52aca2310216581))
70
+ * 修改版本号 ([0b8fe35](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0b8fe35424a492983c40f750057ce9a24786b4ca))
71
+ * 修改部分数据 ([71fbe56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/71fbe5656d4a74108cb33b40788c8412074045bd))
72
+ * 关联属性调整 ([8231933](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/823193370bf261a9c534c25576cb61c32a32a60d))
73
+ * 兼容engine页面 ([df2fbbc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/df2fbbc048720f6f05af56bbd8d0d314ef6c0d9f))
74
+ * 兼容pc展示 ([b5d6776](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b5d6776430f73adde56d0515d08f8067f6b1e791))
75
+ * 兼容图标 ([236a7ed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/236a7ed8a20de7dbc3aa2bee6efbc81e7a3e51aa))
76
+ * 删除多余导入 ([3d164ce](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3d164ce97e9175e050eda119ffc4db0e9c8a4e0a))
77
+ * 动态加载组件 ([30ecfae](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/30ecfae59d8816400cdedbbb81e556720bef330a))
78
+ * 变更nav ([0774c0d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0774c0d0f21a0049b8f47e6b3da842362ca1e5f2))
79
+ * 变更swiper类型 ([b0b170e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b0b170ea3d1e1f1edcea7e1247cc1c262cde558a))
80
+ * 变更wot 版本 ([afd4e50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/afd4e50ff8601ad7490ae359a6f490e5f5ee6671))
81
+ * 变更字段映射 ([232226f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/232226fa7e46dcfd704ad265ea3517c4cd42a86c))
82
+ * 变更组织 ([813540a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/813540a955358b41c10db8bb52809c6ce89c8398))
83
+ * 变更脚本 字体默认在业务组件库 ([cadf349](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cadf349021fd8017b5b9b636789bc2d91edd7a07))
84
+ * 同步字段 ([e4e2b67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e4e2b679f63c65b1d08034869d4f8c6b67756a8d))
85
+ * 同步布局 ([7812326](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7812326c1d99c9dd2a6bff070930d195a94cb815))
86
+ * 同步页面配置 ([10773fa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/10773fac899e67fd66e03848bc79670cc2990233))
87
+ * 图片尺寸 ([93ea161](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93ea16130e92b3d36dc4b6439e2dd0f0b4c1010a))
88
+ * 完成nav基础样式 ([a61750f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a61750f6b0fef5382bc236bcc493271e81ca665d))
89
+ * 完成基础基准 ([ca8efb2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ca8efb29a79753f00b272ceba7ceee5bca43095b))
90
+ * 已调整 ([dbbef0a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dbbef0a20ef06d3be21d84a0177235fded848026))
91
+ * 引擎动态加载 ([8aaa2bc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8aaa2bccf003854c7b67c567adc09c0a5e938d72))
92
+ * 指令合并 ([c2019f7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c2019f70fbabbfccdc6ffee7607501f950eeef3b))
93
+ * 支持remove del ([18a85a2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/18a85a27b775ab4324f8a6e729a6cc186a99c9e9))
94
+ * 支持修改标题 ([2b41983](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2b419839f40f242b01effa576d4f5be4a2ed3b19))
95
+ * 支持引擎网络请求 ([4e7b1af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4e7b1af12798e6b743203a7aa0462936f4bb3a65))
96
+ * 支持文件生成脚本 ([1422a77](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1422a77b5a06d4e205ac2e2687f54d55c54268ee))
97
+ * 支持沉浸式 ([78edbba](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/78edbba936a8a267524b86701fe66bea8ad7026d))
98
+ * 支持过滤器 ([28740a4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/28740a4e672e539ec01c9382bd1c0cecb045a3ad))
99
+ * 支撑pc排序 ([1c007df](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1c007df8263cea0da9b451f2619c5a13c4698f37))
100
+ * 新增action_view ([7bdfc3a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7bdfc3a400392a282525176c810b0dfd29b73ff9))
101
+ * 新增changelog ([a226af7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a226af765f5e6bff36bad7cf326f54c0c03fded9))
102
+ * 新增search-view ([3244af6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3244af61d3c977ad685da21f554361e2062498c1))
103
+ * 新增types ([caf7dc6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/caf7dc6a8e3041ef49f2f3d19b66fb102258de35))
104
+ * 新增version ([abe7e1a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/abe7e1afdc16793f4ade8b80b2b6d970135d9393))
105
+ * 新增校验 ([4c1b9e4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4c1b9e42736b8bd6097f26252793d31b5f9e4644))
106
+ * 新增案例 ([533cbba](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/533cbba3700c218a396f1154331bdecd56172653))
107
+ * 新增组件业务 ([1de1a0a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1de1a0ac41607db6be9efa459ff6c839c932e6a4))
108
+ * 新增组件脚本 及 global脚本 ([3bfa81b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3bfa81bf6689d1c55d730704490ce7521c69c9a7))
109
+ * 新增金刚区 ([a8ce320](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a8ce320c529510f45d7df8a1e56c8ff141137ed7))
110
+ * 新增防抖 200ms ([f618b04](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f618b04578e1b91be116710498c40b7f0ad468f7))
111
+ * 暂时完成部分filter ([8c2d9c6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8c2d9c63d5c3ad87f49b05f500f176fe6194a54d))
112
+ * 更新business ([b074411](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b07441144a5bee5fbc577dc0c2ef93b1f92e867d))
113
+ * 更新nav自适应 ([986348b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/986348bcc2858ea5aad8ebfb408b452c73e295f1))
114
+ * 更新组件库版本 ([b8c716b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b8c716b8bf242b028e1441e8393a91f70f71b751))
115
+ * 更新组件库版本 ([73d1d54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/73d1d54fb81002597231ae99c3e95df14248b985))
116
+ * 版本变更 ([141a426](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/141a4260f6742326d150137c5cb6d82381c6d6d7))
117
+ * 类型变更 ([485272c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/485272c19867af8d5c7e277379cf5475135b5558))
118
+ * 节假日 ([0f84d9e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0f84d9e286d98573b083f6e84df28a5e4ed51007))
119
+ * 调整nav 支持胶囊 ([64a8e15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/64a8e15d322a273331ea295a7e13230cb6a86113))
120
+ * 调整standard ([81b5f2a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/81b5f2a9ff5f957e580c0dc611268d12ac8f7a79))
121
+ * 调整基本 ([46211c5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/46211c5afdcf601f5bd4058438484265c106706e))
122
+ * 调整引用地址 ([643a9e1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/643a9e17293a94ca5c9d167a1b68c7a2beeeb399))
123
+ * 调整组件传参 ([a1c99af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a1c99af48ff6b95608bd085ca670bbf657f14524))
124
+ * 调整组件导入 ([ce1eaaa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ce1eaaa75cdb9f6c133d2067133092593c3740a7))
125
+ * 调整胶囊规则 ([1e20392](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1e20392ca2f6b73ff8295a20bbd38cdd84a6f290))
126
+ * 调整部分参数 ([f59beb5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f59beb5b235d285e8312d2675510dc95ba54a33d))
127
+ * 调整间距 ([178b398](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/178b398004c0e050710105f7fe920ff5104600fd))
128
+ * 重新跑 ([09b14ac](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/09b14acafc63cd5c34e3afedc6ceef968d23e57c))
129
+ * 预览 ([bd05b63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bd05b63ec6c923b76e7bebb7ff16bcd91dbc5286))
130
+ * 默认为link ([7e9e327](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7e9e3272b9549b591e100ec16244a17bff2c6571))
package/action.d.ts CHANGED
@@ -3,6 +3,14 @@ export interface ActionView {
3
3
  icon?: string
4
4
  link: string
5
5
  url?: string
6
+ mode: number
7
+ hotSpot?: {
8
+ x: number
9
+ y: number
10
+ width: number
11
+ height: number
12
+ urlObj: LcbActionViewProps
13
+ }[]
6
14
  }
7
15
  export type IResData<T> = {
8
16
  code: number
@@ -0,0 +1,145 @@
1
+ <template>
2
+ <button
3
+ @click="onActionClick"
4
+ class="lcb-action-btn"
5
+ :open-type="openType"
6
+ @getphonenumber="getPhoneNumber"
7
+ >
8
+ <slot />
9
+ </button>
10
+ </template>
11
+
12
+ <script setup lang="ts">
13
+ import { computed } from 'vue'
14
+ import { LcbActionViewProps } from './types'
15
+ defineOptions({
16
+ name: 'LcbActionView',
17
+ options: {
18
+ addGlobalClass: true,
19
+ virtualHost: true,
20
+ styleIsolation: 'shared',
21
+ },
22
+ })
23
+ const props = defineProps<LcbActionViewProps>()
24
+ const openType = computed(() => {
25
+ return { 88: 'getPhoneNumber', 12: 'contact' }[props.jumpType]
26
+ })
27
+ const onActionClick = () => {
28
+ const { jumpAppid, jumpPageUrl: url, jumpType, phoneNumber } = props
29
+ /**
30
+ * 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
31
+ * 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
32
+ * 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号
33
+ */
34
+ switch (jumpType) {
35
+ /** 网页 */
36
+ case 1:
37
+ if (url)
38
+ uni.navigateTo({
39
+ url: `/pages/webview/index?url=${encodeURIComponent(url)}`,
40
+ })
41
+ break
42
+ /** 小程序内页 */
43
+ case 2:
44
+ if (url) {
45
+ uni.navigateTo({
46
+ url,
47
+ })
48
+ }
49
+ break
50
+ /** 跳转小程序 */
51
+ case 10:
52
+ if (url && jumpAppid) {
53
+ uni.navigateToMiniProgram({
54
+ appId: jumpAppid,
55
+ path: url,
56
+ })
57
+ }
58
+ break
59
+ /** 跳转半屏小程序 */
60
+ case 11:
61
+ if (url && jumpAppid) {
62
+ uni.openEmbeddedMiniProgram({
63
+ appId: jumpAppid,
64
+ path: url,
65
+ })
66
+ }
67
+ break
68
+ /** 退出登录 */
69
+ case 13:
70
+ break
71
+ /** 小程序弹框 */
72
+ case 14:
73
+ break
74
+ /** 新窗口跳到页面 */
75
+ case 21:
76
+ if (url) {
77
+ uni.navigateTo({
78
+ url,
79
+ })
80
+ }
81
+ break
82
+ /** 切换TAB页 */
83
+ case 22:
84
+ if (url) {
85
+ uni.switchTab({
86
+ url,
87
+ })
88
+ }
89
+ break
90
+ /** 重启进入某页面 */
91
+ case 23:
92
+ if (url) {
93
+ uni.reLaunch({
94
+ url,
95
+ })
96
+ }
97
+ break
98
+ /** 回到上一层 */
99
+ case 24:
100
+ uni.navigateBack({})
101
+ break
102
+ /** 关闭当前页面 */
103
+ case 25:
104
+ uni.navigateBack({})
105
+ break
106
+ /** 关闭当前窗口 */
107
+ case 26:
108
+ if (url) {
109
+ uni.redirectTo({
110
+ url,
111
+ })
112
+ }
113
+ break
114
+ /** 拨打电话 */
115
+ case 30:
116
+ if (phoneNumber)
117
+ uni.makePhoneCall({
118
+ phoneNumber,
119
+ })
120
+ break
121
+ }
122
+ }
123
+ const getPhoneNumber = (e) => {
124
+ if (e.detail.errMsg === 'getPhoneNumber:ok') {
125
+ // 成功获取手机号,可以将 e.detail.encryptedData 和 e.detail.iv 发给后端解密
126
+ console.log('encryptedData:', e.detail.encryptedData)
127
+ console.log('iv:', e.detail.iv)
128
+ }
129
+ }
130
+ </script>
131
+
132
+ <style lang="scss" scoped>
133
+ .lcb-action-btn {
134
+ background-color: transparent;
135
+ border: none;
136
+ padding: 0;
137
+ margin: 0;
138
+ color: inherit;
139
+ font-size: inherit;
140
+ display: inline-block;
141
+ &::after {
142
+ border: none;
143
+ }
144
+ }
145
+ </style>
@@ -0,0 +1,13 @@
1
+ export interface LcbActionViewProps {
2
+ /**
3
+ * 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
4
+ * 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
5
+ * 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号
6
+ */
7
+ jumpType: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88
8
+ /** 跳转路径 */
9
+ jumpPageUrl?: string
10
+ /** 小程序appid */
11
+ jumpAppid?: string
12
+ phoneNumber?: string
13
+ }
@@ -1,11 +1,6 @@
1
1
  <template>
2
2
  <view class="lcb-banner">
3
- <lcb-block
4
- v-bind="{
5
- marginTop,
6
- marginBottom,
7
- }"
8
- >
3
+ <lcb-block v-bind="$props">
9
4
  <wd-swiper
10
5
  value-key="url"
11
6
  v-bind="{
@@ -1,7 +1,7 @@
1
1
  import { ActionView } from 'action'
2
- import { CSSProperties } from 'vue'
2
+ import { LcbBlockProps } from '../lcb-block/types'
3
3
 
4
- export interface LcbBannerProps {
4
+ export interface LcbBannerProps extends LcbBlockProps {
5
5
  items?: Partial<ActionView>[]
6
6
  imageWidth?: number
7
7
  /** 风格 1.平铺 2.卡片 */
@@ -47,6 +47,4 @@ export interface LcbBannerProps {
47
47
  indicator?: 'dots' | 'dots-bar' | 'fraction'
48
48
  /** 滑动样式 1平面 2立体 */
49
49
  slidingStyle?: 1 | 2
50
- marginTop?: number
51
- marginBottom?: number
52
50
  }
@@ -1,16 +1,5 @@
1
1
  <template>
2
- <lcb-block
3
- v-bind="{
4
- radius,
5
- marginTop,
6
- marginBottom,
7
- backgroundColor,
8
- marginLeft: 24,
9
- marginRight: 24,
10
- paddingBottom: styleGroup === 2 ? 0 : 24,
11
- }"
12
- card
13
- >
2
+ <lcb-block v-bind="$props">
14
3
  <view v-if="styleGroup === 1" class="pl-32rpx">
15
4
  <view class="py-42rpx pr-26rpx flex justify-between items-center" v-if="styleGroup === 1">
16
5
  <view class="flex-1 flex items-center">
@@ -22,7 +11,7 @@
22
11
  </view>
23
12
  <wd-icon class-prefix="iconfont" name="a-xingzhuang97" size="24rpx" color="#666666" />
24
13
  </view>
25
- <scroll-view scroll-x class="w-full whitespace-nowrap">
14
+ <scroll-view scroll-x class="w-full whitespace-nowrap pb-24rpx">
26
15
  <img
27
16
  v-for="(item, index) in items"
28
17
  :key="index"
@@ -36,7 +25,7 @@
36
25
  />
37
26
  </scroll-view>
38
27
  </view>
39
- <template v-if="styleGroup === 2">
28
+ <view v-if="styleGroup === 2">
40
29
  <lcb-banner
41
30
  v-bind="{
42
31
  ...bannerProps,
@@ -52,7 +41,7 @@
52
41
  <view>{{ title }}</view>
53
42
  <wd-icon class-prefix="iconfont" name="a-xingzhuang103" size="30rpx" color="#666" />
54
43
  </view>
55
- </template>
44
+ </view>
56
45
  </lcb-block>
57
46
  </template>
58
47
 
@@ -70,8 +59,9 @@ defineOptions({
70
59
  },
71
60
  })
72
61
  const props = withDefaults(defineProps<LcbBannerListProps>(), {
73
- borderRadius: 16,
62
+ radius: 16,
74
63
  imageRadius: 0,
64
+ marginHorizontal: 24,
75
65
  backgroundColor: '#ffffff',
76
66
  })
77
67
  const bannerProps = computed(() => {
@@ -1,16 +1,10 @@
1
1
  <template>
2
2
  <view
3
3
  :style="{
4
- marginTop: transformValueUnit(marginTop),
5
- marginBottom: transformValueUnit(marginBottom),
6
- marginLeft: transformValueUnit(marginLeft),
7
- marginRight: transformValueUnit(marginRight),
8
- padding: `
9
- ${transformValueUnit(paddingTop || 0)}
10
- ${transformValueUnit(paddingRight || 0)}
11
- ${transformValueUnit(paddingBottom || 0)}
12
- ${transformValueUnit(paddingLeft || 0)}
13
- `,
4
+ marginTop: transformValueUnit(-(floatUp || 0)),
5
+ marginLeft: transformValueUnit(marginHorizontal || 0),
6
+ marginRight: transformValueUnit(marginHorizontal || 0),
7
+ padding: `${transformValueUnit(paddingTop || paddingVertical || 0)} ${transformValueUnit(paddingRight || paddingHorizontal || 0)} ${transformValueUnit(paddingBottom || paddingVertical || 0)} ${transformValueUnit(paddingLeft || paddingHorizontal || 0)}`,
14
8
  borderRadius: transformValueUnit(radius),
15
9
  color,
16
10
  backgroundColor,
@@ -19,10 +13,8 @@
19
13
  backgroundPosition,
20
14
  backgroundSize,
21
15
  fontSize: transformValueUnit(fontSize),
22
- boxShadow,
23
- }"
24
- :class="{
25
- card,
16
+ boxShadow:
17
+ shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
26
18
  }"
27
19
  class="box-border overflow-hidden relative"
28
20
  >
@@ -31,7 +23,7 @@
31
23
  </template>
32
24
 
33
25
  <script setup lang="ts">
34
- import { LcbBlockProps } from './types'
26
+ import { LcbBlockInnerProps } from './types'
35
27
  import { transformValueUnit } from '../../utils/transform'
36
28
  defineOptions({
37
29
  name: 'LcbBlock',
@@ -42,14 +34,9 @@ defineOptions({
42
34
  },
43
35
  })
44
36
 
45
- withDefaults(defineProps<LcbBlockProps>(), {
46
- backgroundSize: 'cover',
37
+ withDefaults(defineProps<LcbBlockInnerProps>(), {
38
+ backgroundSize: '100% 100%',
47
39
  backgroundRepeat: 'no-repeat',
48
40
  backgroundPosition: `top center`,
49
- } as LcbBlockProps)
41
+ })
50
42
  </script>
51
- <style lang="scss" scoped>
52
- .card {
53
- box-shadow: 0px 4rpx 10rpx 0px rgba(51, 51, 51, 0.1);
54
- }
55
- </style>
@@ -1,22 +1,36 @@
1
1
  export interface LcbBlockProps {
2
- marginTop?: number
3
- marginBottom?: number
2
+ /** 左右外距 */
3
+ marginHorizontal?: number
4
+ /** 左右内距 */
5
+ paddingHorizontal?: number
6
+ /** 上下内距 */
7
+ paddingVertical?: number
8
+ /** 背景颜色 #ffffff */
4
9
  backgroundColor?: string
10
+ /** 背景图片 */
5
11
  backgroundImage?: string
12
+ /** 上浮距离 */
13
+ floatUp?: number
14
+ /** 阴影颜色 */
15
+ shadowColor?: string
16
+ /** 阴影大小 */
17
+ shadowSize?: number
18
+ /** 模糊大小 */
19
+ blurSize?: number
20
+
6
21
  paddingTop?: number
7
22
  paddingBottom?: number
23
+ paddingLeft?: number
24
+ paddingRight?: number
25
+
8
26
  color?: string
9
27
  fontSize?: number
10
- bold?: boolean
11
28
  radius?: number
12
29
  customClass?: string
13
- card?: boolean
14
- paddingLeft?: number
15
- paddingRight?: number
16
- marginLeft?: number
17
- marginRight?: number
18
30
  backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
19
31
  backgroundSize?: string
20
32
  backgroundPosition?: string
21
- boxShadow?: string
33
+ }
34
+ export interface LcbBlockInnerProps extends LcbBlockProps {
35
+ [key: string]: any
22
36
  }
@@ -1,12 +1,5 @@
1
1
  <template>
2
- <lcb-block
3
- v-bind="{
4
- marginTop,
5
- marginBottom,
6
- marginLeft: 24,
7
- marginRight: 24,
8
- }"
9
- >
2
+ <lcb-block v-bind="$props">
10
3
  <view
11
4
  class="grid gap-2"
12
5
  :style="{
@@ -37,6 +30,7 @@ defineOptions({
37
30
  },
38
31
  })
39
32
  withDefaults(defineProps<LcbGridProps>(), {
33
+ marginHorizontal: 24,
40
34
  height: 100,
41
35
  cols: 2,
42
36
  radius: 8,
@@ -1,12 +1,6 @@
1
1
  <template>
2
- <lcb-block
3
- :marginLeft="24"
4
- :marginRight="24"
5
- :radius="16"
6
- backgroundColor="#fff"
7
- :marginTop="-(marginTop || 0)"
8
- >
9
- <view class="flex w-full bg-#F5F6F9">
2
+ <lcb-block v-bind="$props">
3
+ <view class="flex w-full search-view overflow-hidden">
10
4
  <view
11
5
  v-for="(item, index) in tabs"
12
6
  :key="item"
@@ -14,6 +8,8 @@
14
8
  @click="current = index"
15
9
  :class="{
16
10
  active: current === index,
11
+ 'active-left': index === current - 1,
12
+ 'active-right': index === current + 1,
17
13
  }"
18
14
  >
19
15
  {{ item }}
@@ -22,14 +18,20 @@
22
18
  <view class="box-border px-3 leading-none">
23
19
  <view class="flex items-center justify-center mt-3 text-#333 gap-16rpx">
24
20
  <view class="text-30rpx font-bold">义乌</view>
25
- <wd-icon name="chevron-down-circle" size="30rpx"></wd-icon>
21
+ <img
22
+ class="w-30rpx h-30rpx"
23
+ mode="aspectFit"
24
+ src="https://ddll-lycs.oss-cn-hangzhou.aliyuncs.com/default/1/20240914164446/%E5%BD%A2%E7%8A%B6%2092%402x.png"
25
+ />
26
26
  <view class="h-42rpx w-1px bg-#F1F1F1"></view>
27
27
  <view class="text-#999 text-28rpx">{{ placeholder }}</view>
28
28
  <view class="flex-1"></view>
29
29
  <view class="justify-center flex flex-col items-center">
30
- <view>
31
- <wd-icon name="play-circle-stroke" size="30rpx"></wd-icon>
32
- </view>
30
+ <img
31
+ class="w-30rpx h-30rpx"
32
+ mode="aspectFit"
33
+ src="https://ddll-lycs.oss-cn-hangzhou.aliyuncs.com/default/1/20240914164707/%E5%BD%A2%E7%8A%B6%2095%402x.png"
34
+ />
33
35
  <view class="text-26rpx text-#333 mt-12rpx">当前位置</view>
34
36
  </view>
35
37
  </view>
@@ -73,23 +75,41 @@ defineOptions({
73
75
  },
74
76
  })
75
77
 
76
- withDefaults(defineProps<LcbHomeSearch>(), { placeholder: '位置|酒店|关键词' })
78
+ withDefaults(defineProps<LcbHomeSearch>(), {
79
+ marginHorizontal: 24,
80
+ backgroundColor: '#fff',
81
+ radius: 16,
82
+ placeholder: '位置|酒店|关键词',
83
+ })
77
84
  const tabs = ['全部', '酒店', '民宿']
78
85
  const current = ref(0)
79
86
  </script>
80
87
  <style lang="scss" scoped>
81
- .search-tab {
82
- flex: 1;
83
- text-align: center;
84
- font-size: 30rpx;
85
- padding: 24rpx 0;
86
- color: #999;
87
- }
88
- .active {
89
- background-color: #fff;
90
- color: #000;
91
- font-weight: bold;
88
+ .search-view {
89
+ border-radius: 16rpx;
90
+ .search-tab {
91
+ flex: 1;
92
+ text-align: center;
93
+ font-size: 30rpx;
94
+ padding: 24rpx 0;
95
+ color: #999;
96
+ background-color: #f5f6f9;
97
+ }
98
+ .active {
99
+ background-color: #fff;
100
+ color: #000;
101
+ font-weight: bold;
102
+ border-top-left-radius: 16rpx;
103
+ border-top-right-radius: 16rpx;
104
+ &-left {
105
+ border-bottom-right-radius: 16rpx;
106
+ }
107
+ &-right {
108
+ border-bottom-left-radius: 16rpx;
109
+ }
110
+ }
92
111
  }
112
+
93
113
  .title {
94
114
  font-weight: bold;
95
115
  font-size: 32rpx;
@@ -1,7 +1,7 @@
1
1
  import { ActionView } from 'action'
2
+ import { LcbBlockProps } from '../lcb-block/types'
2
3
 
3
- export interface LcbHomeSearch {
4
- marginTop?: number
4
+ export interface LcbHomeSearch extends LcbBlockProps {
5
5
  placeholder?: string
6
6
  items?: Partial<ActionView>[]
7
7
  }