sadais-piui 1.0.178 → 1.0.182

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 ADDED
@@ -0,0 +1,243 @@
1
+ ## 1.0.181 (2021-09-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * eslint报错 ([cb657f8](https://github.com/sadais-org/piui/commit/cb657f8901d3a67c5aba07997336d8e58218db3c))
7
+ * listitem 右侧类型不匹配bug fix ([1f160df](https://github.com/sadais-org/piui/commit/1f160df3e6dfe282207bf22471a8aa2ab040ef77))
8
+ * listitem右侧图标配置不生效的问题 ([847c509](https://github.com/sadais-org/piui/commit/847c509fbef3e27d636c7b0f9f277e47033159f1))
9
+ * marqueebug ([250a05d](https://github.com/sadais-org/piui/commit/250a05d5cd6a53686a0f00c075666e1e07e9b532))
10
+ * marquee滚动间隙问题、暂停问题 ([c5e2d09](https://github.com/sadais-org/piui/commit/c5e2d098b18add81adceb2533eb8bf21a26a4be1))
11
+ * Marquee组件name改为直接写 ([786bcbe](https://github.com/sadais-org/piui/commit/786bcbe43e00fdaf3a3f21517a7e60d6c7af9e3d))
12
+ * pi-marquee兼容性问题、更新speed无效的问题 ([06550be](https://github.com/sadais-org/piui/commit/06550be19bb06e6639286ab70b50d60acbcd03b1))
13
+ * pi-marquee动画暂停 ([aa48fd7](https://github.com/sadais-org/piui/commit/aa48fd78e38b101f32e2af40dce8eb0a9a3c178c))
14
+ * pi-marquee速度改为每秒移动多少像素 ([45f83ae](https://github.com/sadais-org/piui/commit/45f83aef9e60a6a8f8f259cf0e1439336eb16cf3))
15
+ * pi-tabs代码优化 ([e94072f](https://github.com/sadais-org/piui/commit/e94072fcb6c3303b3e45fc9d37a7bfefa187f409))
16
+ * radio注释 ([4e795dd](https://github.com/sadais-org/piui/commit/4e795ddef2971454a652a15de3dbb14a8fd7e907))
17
+ * stepper允许直接输入(不完善) ([024d776](https://github.com/sadais-org/piui/commit/024d776b07c529578a7c411da9e24c94a5762bd3))
18
+ * tslint报错 ([68eda20](https://github.com/sadais-org/piui/commit/68eda20c5ac5787682bd4417d3a8dfd6a8577050))
19
+ * xx ([a72fca0](https://github.com/sadais-org/piui/commit/a72fca046348a5f9eb0ad712b61435338e847de3))
20
+ * 修复calendar拼写错误 ([1c30c21](https://github.com/sadais-org/piui/commit/1c30c215a34a3120b97aed3351c1840c0491c25c))
21
+ * 修复date-picker 12 月选不中的问题 ([afd5f17](https://github.com/sadais-org/piui/commit/afd5f17232834aafd4bf1855bf8d070e9b201d7f))
22
+ * 修复decodeParams返回数据格式错误问题 ([c746df2](https://github.com/sadais-org/piui/commit/c746df27d2098b8b526f58eb178b8be82643dfe2))
23
+ * 修复navi.js转换失败问题 ([73804df](https://github.com/sadais-org/piui/commit/73804df9b70686c7a15a1662aa6334e1512d82d7))
24
+ * 修复pi-line-progress进度过少时显示不正常 ([719177f](https://github.com/sadais-org/piui/commit/719177fed405ac51f1c5dbb9510255f1aedd65f1))
25
+ * 修复pi-list 属性设置无效的问题 ([1565626](https://github.com/sadais-org/piui/commit/156562683e2615e9310319ba2990055a7316bcd4))
26
+ * 修复pi-loading设置文字尺寸和文字样式无效问题 ([557bf0e](https://github.com/sadais-org/piui/commit/557bf0e995ce44d51659137fdb01af5e723b1ddd))
27
+ * 修复pi-marquee无法滚动的问题 ([6f827ce](https://github.com/sadais-org/piui/commit/6f827ceef2bd309d4116ecbc6b0ff0da368c183e))
28
+ * 修复pi-modal点击事件bug ([3ffcbdc](https://github.com/sadais-org/piui/commit/3ffcbdc36bc6be8b6391f6beae4ac82aa4dea1b7))
29
+ * 修复pi-search不能清空的问题 ([5d872b1](https://github.com/sadais-org/piui/commit/5d872b1e22e9efb9f8799f7b67b5b163482552c3))
30
+ * 修复pi-search动态style在小程序不生效的问题 ([31b93ad](https://github.com/sadais-org/piui/commit/31b93add3eabe00ffa6ff8ad444b33434dfd8ead))
31
+ * 修复pi-search搜索清空无效的问题 ([41f1f71](https://github.com/sadais-org/piui/commit/41f1f71256fe6540ca7038b8e5446731213b13e3))
32
+ * 修复pi-select height属性无效的问题 ([5ba5695](https://github.com/sadais-org/piui/commit/5ba56959cae9b452ae40734bb5351154aef489dd))
33
+ * 修复pi-select单选取消选择不生效问题 ([9a19615](https://github.com/sadais-org/piui/commit/9a196156c636aa5f73a42a97fe6e401449800eef))
34
+ * 修复pi-select单选模式下取消选择返回默认值的问题 ([f5db4b3](https://github.com/sadais-org/piui/commit/f5db4b396079212e23e196512f8f461b625061d1))
35
+ * 修复pi-select取消勾选项返回数据错乱问题 ([b8d00cb](https://github.com/sadais-org/piui/commit/b8d00cbf2ae4e6fd65ed9f8de9a3d80430e405a8))
36
+ * 修复pi-tabs下标超长报错 ([893b5a7](https://github.com/sadais-org/piui/commit/893b5a7e0b0f3a2fecfda4caf4adcafd8b1cbe77))
37
+ * 修复pi-webview更改url无法触发加载的问题 ([b5dacf9](https://github.com/sadais-org/piui/commit/b5dacf90d3ad5cba349b6fbe4e3cd7e3799310df))
38
+ * 修复piui宫格布局边框无法设定的问题 ([8a87337](https://github.com/sadais-org/piui/commit/8a873373d0948294dee3a1e1931bc542d89a2dff))
39
+ * 修复searchIcon部分属性无效bug, 完善注释 ([fcd257d](https://github.com/sadais-org/piui/commit/fcd257d113322a7bf4e8c64675d58e5d057c890a))
40
+ * 修复section & tabs 隐藏sliderbar无效的问题 ([2174c6a](https://github.com/sadais-org/piui/commit/2174c6af72a461602e865c7d13144f5f80f74575))
41
+ * 修复storage获取失败的问题 ([6d1c546](https://github.com/sadais-org/piui/commit/6d1c546fc16e74a5617a3cd90050cbd404e9daa7))
42
+ * 修复事件在支付宝和头条小程序无法触发的问题 ([ba807cb](https://github.com/sadais-org/piui/commit/ba807cbb9c95cfe08357dc14e9ce9ab7447eb5ba))
43
+ * 修复倒计时样式不居中的问题 ([99074c3](https://github.com/sadais-org/piui/commit/99074c393bb47a30654d24bc5ff29740c78f39af))
44
+ * 修复列表事件无法上报的问题 ([eeadf15](https://github.com/sadais-org/piui/commit/eeadf154bc136f0a2a996790db89bff7d88318f0))
45
+ * 修复初始化地址显示错误 ([54295ac](https://github.com/sadais-org/piui/commit/54295acdd5d3ac119f20e33397074b179a1083f1))
46
+ * 修复图片高度不对 ([e3d9bdc](https://github.com/sadais-org/piui/commit/e3d9bdc04fcfc303bdd94dc360bbe51a15928762))
47
+ * 修复地区选择控件位置计算错误问题 ([c05a41c](https://github.com/sadais-org/piui/commit/c05a41c0013f422f02fadcf3aa7c9087ce35167c))
48
+ * 修复导航在小程序平台显示不正常的问题 ([a9cec7d](https://github.com/sadais-org/piui/commit/a9cec7d40a677b7543ab521346e2c7c773578160))
49
+ * 修复小程序中还没滚动结束就点确定,导致选择出错 ([672a694](https://github.com/sadais-org/piui/commit/672a694281373011a99c3e1bbca00f35fa0fbcfb))
50
+ * 修复弹窗中点击事件问题 ([8e125be](https://github.com/sadais-org/piui/commit/8e125be438046b45effbe28709cad45b5d2f716a))
51
+ * 修复弹窗圆角效果失效的问题 ([22e3a89](https://github.com/sadais-org/piui/commit/22e3a892b3d9b98b001e152bb90f738c43b60b15))
52
+ * 修复按钮自定义样式不生效的问题 ([6c1e4d9](https://github.com/sadais-org/piui/commit/6c1e4d99de9f3fd07850f07670d7a1a3ddb2771e))
53
+ * 修复按钮行号不一致的问题 ([b2d0aeb](https://github.com/sadais-org/piui/commit/b2d0aeb5f38b010a3c1d140c8c5f86467adf1403))
54
+ * 修复按钮触发两次的问题 ([475fd03](https://github.com/sadais-org/piui/commit/475fd03b35112b93ed835e29de64ff97407e33ba))
55
+ * 修复支付宝小程序pi-tabs滚动无效的问题 ([441c2fb](https://github.com/sadais-org/piui/commit/441c2fb47e0aa82521dd2e52502d5cf0d3f5da17))
56
+ * 修复文案错误以及判断优化 ([1c5236d](https://github.com/sadais-org/piui/commit/1c5236d13c1e156654ad2c097a89d81547198a0d))
57
+ * 修复日期控件格式化问题 ([7ccc77d](https://github.com/sadais-org/piui/commit/7ccc77d2f6ee5099a96a142cf6721632e3ac61ee))
58
+ * 修复样式问题 ([547a639](https://github.com/sadais-org/piui/commit/547a639e274a60aecbea594b0f20f534e89e7c07))
59
+ * 修复组件报错 ([0c12ddf](https://github.com/sadais-org/piui/commit/0c12ddfd00804467aa506d5a4170e216f960046f))
60
+ * 修复自定义样式在组件上不生效的问题 ([8376f12](https://github.com/sadais-org/piui/commit/8376f1284716b9e746941dcf8f8aa145f8cf9d75))
61
+ * 修复进度条默认动态展示的效果 ([2ef00c6](https://github.com/sadais-org/piui/commit/2ef00c659645c7894d1cfd0722634e90b716048a))
62
+ * 修复错误 ([451b5db](https://github.com/sadais-org/piui/commit/451b5db400165bdca7043bec7edec01274ab6ff3))
63
+ * 修改extraStyle无效问题 ([0baf5ef](https://github.com/sadais-org/piui/commit/0baf5ef33d390fcae3609781ca8e4684d76a9b93))
64
+ * 修改pi-loading组件注释 ([f745235](https://github.com/sadais-org/piui/commit/f7452353a0736e6323819bd80e65d1fca5f4f7db))
65
+ * 修改pi-regions-select顶部操作条样式 ([8f22882](https://github.com/sadais-org/piui/commit/8f22882ad3815d3e5359a93840d9a27715d7217c))
66
+ * 修改pi-search注释 ([3b205e9](https://github.com/sadais-org/piui/commit/3b205e9485264cdfe8e83dc3e04d2cea647367a7))
67
+ * 修改导航栏配置文件 状态栏背景色默认白色 ([bb03776](https://github.com/sadais-org/piui/commit/bb03776833b5aee0e0819fa11b409d2873b7941a))
68
+ * 去除pi-marquee中itemStyle ([98fbf9a](https://github.com/sadais-org/piui/commit/98fbf9a97f5a98ab5900a4ad68a6c27585fd8b6d))
69
+ * 合并修复switch组件size属性的bug ([86c30cd](https://github.com/sadais-org/piui/commit/86c30cdb6dc8fe4e1aaf4217f930216ecd993208))
70
+ * 完善fix: 完善pi-picker注释 ([73df9d9](https://github.com/sadais-org/piui/commit/73df9d9e652e9bda28a4485c16cc0b1e979c2104))
71
+ * 完善pi-grid-item最后一列的判断 ([12afd9a](https://github.com/sadais-org/piui/commit/12afd9aff8a3112a5f44cf62a9921683f4bed9fd))
72
+ * 完善pi-list-item注释 ([87904b8](https://github.com/sadais-org/piui/commit/87904b854571c3123acff68b84ec6deea91eead1))
73
+ * 完善pi-mask注释 ([3a0b937](https://github.com/sadais-org/piui/commit/3a0b93735dce3a1fe318f67b74fe4ac0f63297cf))
74
+ * 完善pi-navbar注释 ([7f6e68e](https://github.com/sadais-org/piui/commit/7f6e68e0479060d89dc26607f85ef967b3ed4bb5))
75
+ * 完善pi-navbar注释 ([654f619](https://github.com/sadais-org/piui/commit/654f619e4354f93f84301d02f1bee2c8a1028599))
76
+ * 完善pi-radio-group ([79af01c](https://github.com/sadais-org/piui/commit/79af01cdaee172c98f3d9a3b08ae2e08bfcda4c8))
77
+ * 完善pi-radio-group注释 ([96a9e6f](https://github.com/sadais-org/piui/commit/96a9e6fc6a9d4d7f69e66e39b88a936fd67e317a))
78
+ * 完善pi-radio注释 ([36730d2](https://github.com/sadais-org/piui/commit/36730d23c70a976c753a28ed8e0b09a04eb63016))
79
+ * 完善pi-select注释 ([4b1dd71](https://github.com/sadais-org/piui/commit/4b1dd714fc981dcf13851e0bafef9beb12d2d414))
80
+ * 完善switch组件的注释 ([156f7d8](https://github.com/sadais-org/piui/commit/156f7d82bbed2fff06f62dbfddcf6568260beb18))
81
+ * 所有组件的duration支持:500 '500ms' '0.5s' 3中格式 ([4386b57](https://github.com/sadais-org/piui/commit/4386b575e3a0bd13aae12b5721ac0ed31d27070d))
82
+ * 更新code-input事件注释 ([3a683c6](https://github.com/sadais-org/piui/commit/3a683c64eb0f7cbf86a3f0993cc2c39a6db927e6))
83
+ * 更新duration解析日志输出 ([08dbeb2](https://github.com/sadais-org/piui/commit/08dbeb227ea4c11aa147e1d8d3b04d1fecd2e283))
84
+ * 更新pi-marquee注释 ([7726ed4](https://github.com/sadais-org/piui/commit/7726ed4894651ac080c113a2462c26d33642c55c))
85
+ * 更新pi-swiper路径引用错误 ([d3d6ccf](https://github.com/sadais-org/piui/commit/d3d6ccfcb5aaa3ec3c139e3536de2ab827e00b07))
86
+ * 更新版本号 ([9262eb4](https://github.com/sadais-org/piui/commit/9262eb41a4998fdce01ac85194f50d983c15c706))
87
+ * 更新跑马灯 ([5055af0](https://github.com/sadais-org/piui/commit/5055af098a06a87d700a3b5a99f2eb5136fb884b))
88
+ * 格式化&重命名marquee ([5a83a1e](https://github.com/sadais-org/piui/commit/5a83a1ef42841e546d787b3ed7b7b0edcd12cbdd))
89
+ * 模态窗点击报错 ([00f5190](https://github.com/sadais-org/piui/commit/00f5190149db5da3754b82621ea55705cec4b89f))
90
+ * 禁止marquee鼠标滚动 ([375edb5](https://github.com/sadais-org/piui/commit/375edb53e7e5ffebef6bc2c10d9fbd170a74cf58))
91
+ * 组件名加上Pi前缀 ([196cbf2](https://github.com/sadais-org/piui/commit/196cbf2ff64de0aee6f62a58a786484c0c9741d4))
92
+ * 跑马灯兼容微信小程序 ([ae56945](https://github.com/sadais-org/piui/commit/ae569457ed892607bbbbc54c51a73b2cd1f7cebc))
93
+ * 跑马灯禁止鼠标滚动 ([8b831b4](https://github.com/sadais-org/piui/commit/8b831b4eb7a1a62d86805a67eff53ea747f7d44a))
94
+ * 部分组件需要事件上报 ([b059436](https://github.com/sadais-org/piui/commit/b059436c91ff420b5e1a58210a33bd06c838d262))
95
+ * 重构pi-marquee ([825706a](https://github.com/sadais-org/piui/commit/825706aaa4d85280adf412e590821ec261ab5963))
96
+
97
+
98
+ ### Features
99
+
100
+ * 1.0.6版本发布 ([704fb77](https://github.com/sadais-org/piui/commit/704fb7786219f1928b9ebb7fd4678f0f8f9f3e2b))
101
+ * 1.0.7发布 ([60f6d63](https://github.com/sadais-org/piui/commit/60f6d63a5d341b1224cf58351b13f5020bb8419a))
102
+ * checkbox增加只读模式 ([437ee11](https://github.com/sadais-org/piui/commit/437ee1155873c3cbde4deaa075e03671f437c11d))
103
+ * codeinput新增autoFocusDelay属性 ([2e94186](https://github.com/sadais-org/piui/commit/2e941868740a52bf31e9a39433eea739053597a0))
104
+ * divider增加contentPosition属性处理 ([0081938](https://github.com/sadais-org/piui/commit/0081938764ced74f7cd60e7b340f9242c2c90ffe))
105
+ * divider组件完成 ([58207ea](https://github.com/sadais-org/piui/commit/58207ea58a628b41e7a32a29bebdc507826b720d))
106
+ * loading默认设置mask ([e0792d9](https://github.com/sadais-org/piui/commit/e0792d9cfd4849599b9a95844e625a569fa3d5ad))
107
+ * pi-icon增加dot-radius红点半径属性 ([207868f](https://github.com/sadais-org/piui/commit/207868f13c41e7cc34abab7b2ba0858ab80ed5ef))
108
+ * pi-img加上红点和徽章 ([1d6d005](https://github.com/sadais-org/piui/commit/1d6d00598ac50ed4ea19e25d6c4144a0cb9e1622))
109
+ * pi-img添加点击事件&validate添加密码校验方法 ([baf9052](https://github.com/sadais-org/piui/commit/baf90521f9084918f0b412c5b2effa67335af206))
110
+ * pi-line-progress增加width属性 ([d995337](https://github.com/sadais-org/piui/commit/d995337245ea022435a80b797cf9a03616268c7d))
111
+ * pi-marquee跑马灯组件 ([2c5130d](https://github.com/sadais-org/piui/commit/2c5130d326a3f43d21f036e810268f18b5b48873))
112
+ * pi-navbar支持默认显示 ([d597495](https://github.com/sadais-org/piui/commit/d597495aa1f60734150e6aea9261f96c3015f606))
113
+ * pi-search 增加设置icon的位置 ([602cc7a](https://github.com/sadais-org/piui/commit/602cc7a28b69163aaecac80751d963d5ffe91272))
114
+ * pi-select选项增加disabled属性 ([fc0ea1a](https://github.com/sadais-org/piui/commit/fc0ea1ad6425cc9026fb375a6c6a88d10cadc737))
115
+ * pi-stepper优化 ([e5a4942](https://github.com/sadais-org/piui/commit/e5a4942da4cc5736cf52dad3188adde8cc106017))
116
+ * piui grid及tabs组件bug修复 ([0802680](https://github.com/sadais-org/piui/commit/0802680e69bf0fb9e680c5ac3fa43b8472651969))
117
+ * piui 代码精简,优化 ([9c4750b](https://github.com/sadais-org/piui/commit/9c4750bcd3156e0f40c7cd380af7eb3dedd4a696))
118
+ * piui优化 ([e72b861](https://github.com/sadais-org/piui/commit/e72b86160ecf03078da880f8806b80325a22483f))
119
+ * piui配置支持继承合并 ([d19c890](https://github.com/sadais-org/piui/commit/d19c890d0f3afefedbed65f02f0ba341f9c303ec))
120
+ * regions-select组件修改弹出窗默认值 ([064ed93](https://github.com/sadais-org/piui/commit/064ed934bf07451f3289ecdf2c9ccc21b42feabe))
121
+ * swiper增加imgField字段 ([ae34c75](https://github.com/sadais-org/piui/commit/ae34c7575c985db95b8fb449d836d079c8407521))
122
+ * tabs增加配置项 ([ef3c50e](https://github.com/sadais-org/piui/commit/ef3c50e629b1fbc0743f87b7ef8e50e91eb7d754))
123
+ * 代码格式化 ([f1285f8](https://github.com/sadais-org/piui/commit/f1285f88cae10f6a206a099a2eceab5995b5e6b3))
124
+ * 优化pi-search组件 ([d4126e6](https://github.com/sadais-org/piui/commit/d4126e6482d4febf26df658976a2f05bb0e279c7))
125
+ * 优化piui install console.log ([e7afc37](https://github.com/sadais-org/piui/commit/e7afc37ce46f9064d074045440ff9402d501a51e))
126
+ * 优化piui-listitem右侧图标展示方式 ([a732210](https://github.com/sadais-org/piui/commit/a73221038b0192de7f4bf8e69f123b1ff5e13bfb))
127
+ * 优化piui转场动画 ([447a076](https://github.com/sadais-org/piui/commit/447a0767d95b819fc7ffa9215aa88203883afbf6))
128
+ * 优化prop ([73fa737](https://github.com/sadais-org/piui/commit/73fa7373f8ec520c079f48a090b380fdd388e19f))
129
+ * 优化动画执行函数 ([c8ee39d](https://github.com/sadais-org/piui/commit/c8ee39de5d2a13f6338739a0c2b3a097c8dcac6b))
130
+ * 优化导航栏和状态栏 ([75b5bef](https://github.com/sadais-org/piui/commit/75b5bef168fe8b36ca3f2269867b4954c571b6e8))
131
+ * 优化微信授权 ([a38c6af](https://github.com/sadais-org/piui/commit/a38c6af9675cdffba5e7861c17145f0bd17ee09e))
132
+ * 优化打印日志 ([d91bf43](https://github.com/sadais-org/piui/commit/d91bf43ae094063927a32a2efddd028c3ef8454d))
133
+ * 优化日期选择当前pickerValue显示 ([546fd21](https://github.com/sadais-org/piui/commit/546fd21fa0fa7dbfecbea1a48c9f440c1a31c6ef))
134
+ * 优化样式动态绑定过长的问题 ([ab73b14](https://github.com/sadais-org/piui/commit/ab73b14e9e27b117f477afc681ae37a747ee1588))
135
+ * 优化界面展示 ([b5d4e2e](https://github.com/sadais-org/piui/commit/b5d4e2e39136ba70043e86bbb2bb0c910684d2dd))
136
+ * 修复pi-tabs宽度问题 ([2f0aa7d](https://github.com/sadais-org/piui/commit/2f0aa7d02ef3284c88887296c1168d1308d251df))
137
+ * 修复pigrid父子组件无法联动问题 ([1b05321](https://github.com/sadais-org/piui/commit/1b05321b428259116b9c9e0f7f7ada438f2a2e28))
138
+ * 修复tabs组件延时问题 ([5b47d8b](https://github.com/sadais-org/piui/commit/5b47d8beae99c3d5c47d14082c394699ae53d587))
139
+ * 修复倒计时文字不居中的问题 ([89643a3](https://github.com/sadais-org/piui/commit/89643a35346b3cb5d64ab41e8aaafd8c509229ec))
140
+ * 修复搜索框无法清空的问题 ([774a47a](https://github.com/sadais-org/piui/commit/774a47af2b11174fefab2c95f541db1f1d86bcaf))
141
+ * 修复进度条文字不居中的问题 ([6b4e9ad](https://github.com/sadais-org/piui/commit/6b4e9ad7ade5ffd2e21fa7b3b68de4e710f4b89a))
142
+ * 修改readme ([573f376](https://github.com/sadais-org/piui/commit/573f376a2ac99bff743f701e4301c5eed2985176))
143
+ * 修改列表按下默认hover时间 ([2356bf3](https://github.com/sadais-org/piui/commit/2356bf3317d2e272bf32a0f2b6f9d232e550d51d))
144
+ * 修改默认配置 ([aa0b6ea](https://github.com/sadais-org/piui/commit/aa0b6ead2f2545a03981e93ab6c4908b8a397fcf))
145
+ * 倒计时设置默认字体大小 ([8ce6761](https://github.com/sadais-org/piui/commit/8ce6761cc3982d2a3d135a2ccbf8152208d8730d))
146
+ * 兼容支付宝小程序 ([c1043bf](https://github.com/sadais-org/piui/commit/c1043bffb2e85be5ec4baa595583c9b1e1eb730c))
147
+ * 初始化swiper组件 ([c93523b](https://github.com/sadais-org/piui/commit/c93523bd1bde05a7faedc2204c32287100f41c4a))
148
+ * 初始化倒计时组件 ([6a140a5](https://github.com/sadais-org/piui/commit/6a140a54e98a7ba892382e8ecb578a0a9cebb5f1))
149
+ * 初始化多选组件 ([e4a35c8](https://github.com/sadais-org/piui/commit/e4a35c872ef24d09eec2094a924a3f130b8a066d))
150
+ * 初始化多选组件 ([cf59550](https://github.com/sadais-org/piui/commit/cf59550ae20783e433829c6a1e649805e38293d8))
151
+ * 初始化提交 ([f4abca2](https://github.com/sadais-org/piui/commit/f4abca29115aeb7460dbb63d4bf3c99268dabc80))
152
+ * 初始化日历界面 ([b26e8ca](https://github.com/sadais-org/piui/commit/b26e8ca61cad3e2065112bb822cc07fd440b0acf))
153
+ * 初始化预设样式 ([95e77f9](https://github.com/sadais-org/piui/commit/95e77f919a11f578f0e0cb896cd1349f6b3c64f0))
154
+ * 初步完成图片组件 ([34de056](https://github.com/sadais-org/piui/commit/34de05668d07c3179c8716a6bd64b29c050a57e7))
155
+ * 初步完成日历组件 ([91a877f](https://github.com/sadais-org/piui/commit/91a877fd101d8e8c7403fe20fe410d30a4569ea7))
156
+ * 初步完成表单校验 ([a65afbb](https://github.com/sadais-org/piui/commit/a65afbbb3d990be475974675f9a87fa43c410d72))
157
+ * 初步完成骨架屏组件 ([d4515ac](https://github.com/sadais-org/piui/commit/d4515ac2e16481c64cb4827a04e78001dcdb6993))
158
+ * 删除旧组件代码 ([1185726](https://github.com/sadais-org/piui/commit/11857267af1575835da7c5b51b57681804705e0a))
159
+ * 去掉customClass重复引用 ([9c2ab50](https://github.com/sadais-org/piui/commit/9c2ab5020f896647b9a6e5dbd0efb802ab1a6a4c))
160
+ * 去掉样式!important修饰 ([a55475e](https://github.com/sadais-org/piui/commit/a55475e9b5ae5dc0099e7a87823e29e983247f50))
161
+ * 发布npm ([b9a1137](https://github.com/sadais-org/piui/commit/b9a11370b112a7c9fde3f4a34a626eb117156e5b))
162
+ * 变量和样式的一些重构 ([ea0bfaa](https://github.com/sadais-org/piui/commit/ea0bfaacfd140b7a4c5755fb8ae5ad2c80fa33c0))
163
+ * 同步点击态时间 ([d816c1c](https://github.com/sadais-org/piui/commit/d816c1c5566cb22376785b3039d86f60017827ef))
164
+ * 增加$pi.native的uniapi调用能力 ([aaeddd6](https://github.com/sadais-org/piui/commit/aaeddd660c2b915f290c9203632f7eacb83b92be))
165
+ * 增加iconfont注释 ([ee05141](https://github.com/sadais-org/piui/commit/ee05141aac40b58d324bf25f9ff42b3ba3f614b0))
166
+ * 增加loading组件 ([ba5d108](https://github.com/sadais-org/piui/commit/ba5d1084706b686af569560c3ca9fdfe7b6edc8e))
167
+ * 增加pi-gap间隔槽插件 ([22ab4fe](https://github.com/sadais-org/piui/commit/22ab4fe28e5c58bee2b548897d771f01facc3f1a))
168
+ * 增加popup关闭按钮 ([7919dc4](https://github.com/sadais-org/piui/commit/7919dc45ca70ab5e3e82545a698ba3a78f622137))
169
+ * 增加section的样式 ([51c522f](https://github.com/sadais-org/piui/commit/51c522fe791e31f0b4381c177ddb68b203904060))
170
+ * 增加toast表单校验方式 ([e609dfc](https://github.com/sadais-org/piui/commit/e609dfc17a209bccbe5fef38520336c23c09d480))
171
+ * 增加webview组件 ([bb40e63](https://github.com/sadais-org/piui/commit/bb40e6386d2952335566b0f16e3c819b34fd0124))
172
+ * 增加工具库 ([3882fbd](https://github.com/sadais-org/piui/commit/3882fbd4e98226556c25fd8e4c34723cfd8e7ad5))
173
+ * 增加文档说明 ([446013f](https://github.com/sadais-org/piui/commit/446013ffbe9326e6ddba56416731cf8ce31dd35c))
174
+ * 增加新特性 ([28fe3cc](https://github.com/sadais-org/piui/commit/28fe3cc7d61f2e0ddf28ff1fe4d1c0c7ed0dd2d1))
175
+ * 增加组件全局的样式自定义mixin ([fdbe685](https://github.com/sadais-org/piui/commit/fdbe685daa7482545f369b667d282477d4ede87e))
176
+ * 增加设置激活颜色 ([8b4407b](https://github.com/sadais-org/piui/commit/8b4407b473f41c5153a9e07d7a13c54b856882a7))
177
+ * 增加转场效果 ([226216d](https://github.com/sadais-org/piui/commit/226216d94b3d51fd0b274b3e53a71a6247d482ed))
178
+ * 增加轮播图组件 ([72da085](https://github.com/sadais-org/piui/commit/72da0859d340910293d89d36929e290a7219bde1))
179
+ * 完事date-picker ([fd7a8c2](https://github.com/sadais-org/piui/commit/fd7a8c274a2ed1ecd38f2ef9299e2a9e382856ec))
180
+ * 完善form校验 ([ce35016](https://github.com/sadais-org/piui/commit/ce35016608670e5b1c15568162c8cae5dbf3dcc6))
181
+ * 完善form样式 ([2a18f22](https://github.com/sadais-org/piui/commit/2a18f22f829d270cd26038d80341b7fd6c2324f0))
182
+ * 完善form组件 ([747a8b8](https://github.com/sadais-org/piui/commit/747a8b8e4dd1412b496a841a68bb2deed075d337))
183
+ * 完善form组件 ([1e033f6](https://github.com/sadais-org/piui/commit/1e033f6406fece926f835ce50465d0a6d1fdb4c2))
184
+ * 完善form表单 ([c2d2b91](https://github.com/sadais-org/piui/commit/c2d2b91e9d7b252122bb44944dcda8df24084eaf))
185
+ * 完善pi-checkbox ([b75bc41](https://github.com/sadais-org/piui/commit/b75bc41a082e94825b606dc476a18288e1731bbf))
186
+ * 完善pi-checkbox ([13665d5](https://github.com/sadais-org/piui/commit/13665d5e444cfc5eb20085d6097f556a06e4d508))
187
+ * 完善pi-checkbox ([9ca6883](https://github.com/sadais-org/piui/commit/9ca68836ba95a6e47e67b8193a85d1ed50ecf4c4))
188
+ * 完善pi-checkbox-group ([eb9874f](https://github.com/sadais-org/piui/commit/eb9874f1c9f4cc0db0580249837f4ba3524a8def))
189
+ * 完善pi-list pi-section ([6ea36a6](https://github.com/sadais-org/piui/commit/6ea36a69882f1dd29d92618f7111762c4a9ee004))
190
+ * 完善pi-list-item ([7ec907d](https://github.com/sadais-org/piui/commit/7ec907dab206ace7ba1623aa3e4bdffaed353604))
191
+ * 完善pi-navbar ([398bce0](https://github.com/sadais-org/piui/commit/398bce05455d803b0c217b459fbb711676702436))
192
+ * 完善pi-search组件 ([587f603](https://github.com/sadais-org/piui/commit/587f6030272e3094be53904196d8daee904ab99c))
193
+ * 完善pi-switch ([70778c5](https://github.com/sadais-org/piui/commit/70778c5d6d399a851e89731c0bb21cde80b24154))
194
+ * 完善pi-tab导航组件 ([e7cc5c9](https://github.com/sadais-org/piui/commit/e7cc5c99f0f064fe19318762d520b749ac5d15f9))
195
+ * 完善倒计时生命周期 ([c5be002](https://github.com/sadais-org/piui/commit/c5be002ae894ef6f340e64f034034f5b6a7b5475))
196
+ * 完善列表项 ([b3784ec](https://github.com/sadais-org/piui/commit/b3784ec5672f01e346ed489f00ef37d2c96a3115))
197
+ * 完善图标和工具类 ([6c20670](https://github.com/sadais-org/piui/commit/6c206700ef972ca45204c1452066514916b9168c))
198
+ * 完善地区选择控件 ([25c83e9](https://github.com/sadais-org/piui/commit/25c83e95564fcd8e17d62ddf91eec113cdbece31))
199
+ * 完善地区选择组件 ([111995f](https://github.com/sadais-org/piui/commit/111995f0d398173c38ece54bab873fe1eefde5fc))
200
+ * 完善导航栏组件 ([0a58f9a](https://github.com/sadais-org/piui/commit/0a58f9a9dc174027708dbb6977aad633b5ca8396))
201
+ * 完善按钮以及底部栏 ([155f5a4](https://github.com/sadais-org/piui/commit/155f5a4d439ed5d52e694e59c016ccc98bc3314a))
202
+ * 完善日历选择组件 ([7b0f843](https://github.com/sadais-org/piui/commit/7b0f843f8fc4edabeffad0f0bc5a05ce47f6af59))
203
+ * 完善选择器pi-select ([64fc6e4](https://github.com/sadais-org/piui/commit/64fc6e4b7870a994cd9d96010e5285b843f9fb34))
204
+ * 完善遮罩层 ([bda223b](https://github.com/sadais-org/piui/commit/bda223b8d9ab2d6d9b2d6f90e8b16d51b8333a8f))
205
+ * 完成pi-button组件 ([8a736ef](https://github.com/sadais-org/piui/commit/8a736ef8380d41684828167851447cfa288b04ab))
206
+ * 完成pi-line-progress组件 ([8b7ebf4](https://github.com/sadais-org/piui/commit/8b7ebf4837fb8151d6ee9e8b66c81f5bba3a973a))
207
+ * 完成pi-modal模态窗 ([df7d049](https://github.com/sadais-org/piui/commit/df7d049aed7c3930339d86c1a3334b31d23baea8))
208
+ * 完成初步组件架构 ([9d68651](https://github.com/sadais-org/piui/commit/9d68651769e4734c7589c44c92efcd40a57ff961))
209
+ * 宫格布局适配小程序 ([8fbd01c](https://github.com/sadais-org/piui/commit/8fbd01c2430300870e6a737ce45d672fdea33d14))
210
+ * 导航栏新增微信胶囊样式 ([1fb48d1](https://github.com/sadais-org/piui/commit/1fb48d10a9b071b09828b80e876de8ca70f192e1))
211
+ * 扩展checkbox组件 ([1740b61](https://github.com/sadais-org/piui/commit/1740b6141860ce6a8090c5e12719d3e4dae875fc))
212
+ * 抽离日历组件面板 ([5fc1377](https://github.com/sadais-org/piui/commit/5fc13777bcdd59627d671261481638e191bad66e))
213
+ * 按钮尺寸标志修改 ([bdd9ae4](https://github.com/sadais-org/piui/commit/bdd9ae4a7b1469520a2ab63ee6c6ece075577c2d))
214
+ * 接入导航栏内嵌tabs效果 ([866dcc5](https://github.com/sadais-org/piui/commit/866dcc566f58e558daacbadc15bd1044805e0fa5))
215
+ * 新增code-input组件 ([0c26380](https://github.com/sadais-org/piui/commit/0c26380323754047f924e773b680d105008b9e2d))
216
+ * 新增pi-swiper插槽 ([d16a115](https://github.com/sadais-org/piui/commit/d16a1154d98d96d073ed1d94c8403972dd956b54))
217
+ * 新增picker组件 ([3168fd9](https://github.com/sadais-org/piui/commit/3168fd99ba2f8b8aae698ff4416b436b4e7276a1))
218
+ * 新增popup组件 ([98e5824](https://github.com/sadais-org/piui/commit/98e582484cb8154ec9e42e593fee1ad8b521fda4))
219
+ * 新增radio组件 ([888f94c](https://github.com/sadais-org/piui/commit/888f94c6c4bed0910975471f9dfb5967cf48e32f))
220
+ * 新增select组件 ([46dbefb](https://github.com/sadais-org/piui/commit/46dbefb494a8870fcec28ad0e464f26d0e6aefc1))
221
+ * 新增stepper组件 ([8be4342](https://github.com/sadais-org/piui/commit/8be4342e3b6343db6fa8b0e6172e4c3466b7c6d3))
222
+ * 新增倒计时组件 ([9540b6b](https://github.com/sadais-org/piui/commit/9540b6b71ce2f0ca523f7d97d560ef41cb919e21))
223
+ * 新增分页组件 ([5b79a9b](https://github.com/sadais-org/piui/commit/5b79a9be9a0cf1cd4b0df20591d4d7bd9a369bc7))
224
+ * 新增属性配置文字选中状态颜色 ([857fea7](https://github.com/sadais-org/piui/commit/857fea7788949294e451c23fc51a61a28b35b4c6))
225
+ * 更改pi-tab底部导轨长度缺失问题 ([6801f13](https://github.com/sadais-org/piui/commit/6801f137fb527a561083c90b6e6e873a4ff9e5e9))
226
+ * 更改pi-tab样式无法覆盖问题 ([3969ea6](https://github.com/sadais-org/piui/commit/3969ea666c99ef166fe86074a5411b640bc34ab0))
227
+ * 更改关闭按钮颜色 ([0887234](https://github.com/sadais-org/piui/commit/0887234355dfcabd57c666a17f563274b64b23cb))
228
+ * 更改导航默认状态栏底色为透明 ([de392d4](https://github.com/sadais-org/piui/commit/de392d447ea17c78daa0e9bc293b2cff599d3a0f))
229
+ * 更改默认动画 ([4c3a439](https://github.com/sadais-org/piui/commit/4c3a4394b3e49bd8ff7fae0ea35b7554cc9bc227))
230
+ * 更新iconfont样式 ([fc40378](https://github.com/sadais-org/piui/commit/fc40378d32872348056e27b840e9564e2415c3bf))
231
+ * 步长组件保留小数位 ([e3f3bf5](https://github.com/sadais-org/piui/commit/e3f3bf5b368860ba1dc45f0863bfa62698a42f1e))
232
+ * 简化$piTools为$pi ([5c25ac0](https://github.com/sadais-org/piui/commit/5c25ac06fad0399883a6a8a349414dff771f21c6))
233
+ * 自动文档更新完善 ([b6f7481](https://github.com/sadais-org/piui/commit/b6f7481d1e07df56690d0cbbbc92594cef10930f))
234
+ * 适配支付宝小程序 ([8d2e079](https://github.com/sadais-org/piui/commit/8d2e0790ab5af4b1a34cc6547399414f62b05399))
235
+ * 适配表单相关组件 ([4db5103](https://github.com/sadais-org/piui/commit/4db5103cc7b04dc226e67ad2451ba25b6ca6777c))
236
+
237
+
238
+ ### Performance Improvements
239
+
240
+ * picker代码优化 ([512e48b](https://github.com/sadais-org/piui/commit/512e48bb0c7cddff286d535dd0db31445848cd9b))
241
+
242
+
243
+
package/README.md CHANGED
@@ -1,29 +1,157 @@
1
- ## PiUI-basic
1
+ # PiUI
2
2
 
3
- PiUI基础库
3
+ [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
4
+ [![stars](https://img.shields.io/github/stars/sadais-org/piui?style=flat-square&logo=GitHub)](https://github.com/sadais-org/piui)
5
+ [![forks](https://img.shields.io/github/forks/sadais-org/piui?style=flat-square&logo=GitHub)](https://github.com/sadais-org/piui)
6
+ [![issues](https://img.shields.io/github/issues/sadais-org/piui?style=flat-square&logo=GitHub)](https://github.com/sadais-org/piui/issues)
7
+ [![release](https://img.shields.io/github/v/release/sadais-org/piui?style=flat-square)](https://gitee.com/xuqu/uView/releases)
8
+ [![license](https://img.shields.io/github/license/sadais-org/piui?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)
4
9
 
5
- ## 使用方式
6
10
 
7
- 1. clone 本仓库到uniapp的工程中
8
- 2. page.json 使用easycom使用piui组件
11
+ PiUI是基于uniapp,高质量UI移动组件库,基于 `vue.js` 语法,可编译到不同的平台
9
12
 
13
+ * 高效开发
14
+ * 灵活扩展,丰富的属性配置
15
+ * 提供 50+ 高质量组件,覆盖移动端各类场景
16
+ * 高性能
17
+ * 完善的文档和示例
18
+ * 按需引入
19
+ * 支持主题定制
20
+
21
+ ## Table of Contents
22
+
23
+ - [Website](#website)
24
+ - [Background](#background)
25
+ - [Install](#install)
26
+ - [Usage](#usage)
27
+ - [Maintainers](#maintainers)
28
+ - [Contributing](#contributing)
29
+ - [License](#license)
30
+
31
+ ## Website
32
+ [官方文档](http://piui.sadais.com/)
33
+
34
+ ## Background
35
+
36
+ 大多数团队使用[uni-app](https://uniapp.dcloud.io/)方案,是为了跨平台,在跨平台的基础上,uniapp提供的vue语法(不完全支持),能比原生的写法(小程序原生语法作为对比)提高30%的效率,但是仅仅使用uniapp提供的基础组件,是远远支撑不了现代移动端的业务复杂度。
37
+
38
+ 借助`piui`的能力,可以让您基于uniapp,再增加至少50%的效率提升。
39
+
40
+ ## Install
41
+
42
+ ### 使用脚手架【推荐】
43
+ 基于`vue-cli`脚手架创建,更加通用的`vue`项目配置,接入更加快捷,可以做到零配置直接运行,其中引入了`sadais-core`
44
+
45
+ #### 步骤1: vue-cli安装(如果安装了可以跳过)
46
+ 可以使用下列任一命令安装最新的`vue-cli`包:
47
+
48
+
49
+ ```bash
50
+ npm install -g @vue/cli
51
+ # OR
52
+ yarn global add @vue/cli
10
53
  ```
11
- "easycom": {
12
- "^pi-(.*)": "sadais-piui/components/pi-$1/index.vue"
54
+ 安装之后,你就可以在命令行中访问 `vue` 命令。你可以通过简单运行 `vue`,看看是否展示出了一份所有可用命令的帮助信息,来验证它是否安装成功。
55
+
56
+
57
+ 你还可以用这个命令来检查其版本是否正确:
58
+ ```bash
59
+ vue --version
60
+ ```
61
+
62
+ #### 步骤2:文件生成
63
+ 项目初始化我们通过vue-cli进行生成,以下项目名我使用my-project做示例,名字可以自定义
64
+ ```bash
65
+ vue create -p sadais-org/uni-preset-vue my-project
66
+ ```
67
+ 命令输入后,选择默认模板,回车
68
+
69
+ #### 步骤3:项目启动
70
+ 在本地启动服务器来开发你的应用
71
+ ```bash
72
+ cd my-project && npm run dev
73
+ ```
74
+
75
+ ### 非脚手架项目引入(HbuilderX / Uniapp Vue-Cli工程)
76
+
77
+ > 已初始化的项目,可以通过以下方式接入piui
78
+
79
+ `piui` `@sadais/piui-tool` 源码都以[es6](https://es6.ruanyifeng.com/) 语法编写,如果是 `vue-cli` 工程,必须在`vue.config.js`中声明其[显式转译](https://cli.vuejs.org/zh/config/#transpiledependencies)
80
+
81
+ ```js
82
+ // vue.config.js
83
+ module.exports = {
84
+ transpileDependencies: ['@sadais/piui-tool', 'sadais-piui']
13
85
  }
14
86
  ```
15
- 3. main.js引入piui
16
87
 
88
+ #### 步骤1:安装piui
89
+ 安装`piui`,以及`piui工具库`
90
+ ```bash
91
+ yarn add sadais-piui @sadais/piui-tool
92
+ ```
93
+
94
+ #### 步骤2:引入piui
17
95
  ```js
18
- // 引入piui
19
- import piui from 'sadais-piui'
20
- Vue.use(piui)
96
+ import Vue from 'vue';
97
+ import piui from "sadais-piui";
98
+
99
+ // 全局属性配置
100
+ const piuiConfig = {}
101
+
102
+ Vue.use(piui, piuiConfig);
103
+ ```
104
+ #### 步骤3:引入piui样式文件
105
+ 在App.vue文件中引入
106
+ ```css
107
+ @import 'sadais-piui/scss/index.scss';
108
+ ```
109
+ 在uni.css文件中引入
110
+ ```css
111
+ @import 'sadais-piui/scss/variable.scss';
112
+ ```
113
+
114
+ #### 步骤4:通过easycom模式全局按需引入
115
+ 修改uniapp的pages.json文件,增加配置
116
+
117
+ ```json
118
+ "easycom": {
119
+ "^pi-(.*)": "sadais-piui/components/pi-$1/index.vue"
120
+ }
21
121
  ```
22
122
 
23
- * 以上sadais-piui路径根据实际clone的项目位置改
123
+ ## Usage
124
+
125
+ 配置easycom规则后,自动按需引入
126
+
127
+ ## Maintainers
128
+
129
+ [@zhangzhenfei](https://github.com/zhangzhenfei)
130
+
131
+ ## Contributing
132
+
133
+ PRs accepted.
134
+
135
+ Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
136
+
137
+ ## Issue 规范
138
+ issue 仅用于提交 Bug 或 Feature 相关的内容,其它内容可能会被直接关闭。
139
+
140
+ 在提交 issue 之前,请搜索相关内容是否已被提出。
141
+
142
+ 请说明 Muse UI 和 Vue 的版本号,并提供操作系统和浏览器信息。推荐使用 生成在线 demo,这能够更直观地重现问题。
143
+
144
+ ## Pull Request 规范
145
+ 请先 fork 一份到自己的项目下,不要直接在仓库下建分支。
146
+
147
+ commit 信息要以[组件名]: 描述信息 的形式填写,例如 [Navbar]: fix xxx bug。
148
+
149
+ 执行 npm run build 后可以正确打包文件。
24
150
 
25
- ## 注意事项
26
- 所有组件的点击事件请监听click,不要使用tap
151
+ 提交 PR 前请 rebase,确保 commit 记录的整洁。
27
152
 
153
+ 如果是修复 bug,请在 PR 中给出描述信息。
28
154
 
155
+ ## License
29
156
 
157
+ MIT © 2021 zhangzhenfei
@@ -2,6 +2,8 @@
2
2
  <pi-popup
3
3
  ref="popup"
4
4
  :value="val"
5
+ :custom-class="getPopup.customClass"
6
+ :custom-style="getPopup.customStyle"
5
7
  :position="getPopup.position"
6
8
  :border-radius="getPopup.borderRadius"
7
9
  :show-close-icon="showTitle && getPopup.showCloseIcon"
@@ -23,7 +23,16 @@
23
23
  }"
24
24
  @tap="focus = true"
25
25
  >
26
- {{ arrCode[index] || '' }}
26
+ <!-- slot slot-scoped只支持app,h5,微信小程序平台 -->
27
+ <!-- <template slot="item" slot-scope="{ item }">{{ item.tag }}</template> -->
28
+ <slot
29
+ name="item"
30
+ :index="index"
31
+ :item="arrCode[index]"
32
+ :active="focus === true && index === currentIndex"
33
+ >
34
+ {{ arrCode[index] ? codeFormat || arrCode[index] || '' : '' }}
35
+ </slot>
27
36
  </view>
28
37
  </view>
29
38
  </view>
@@ -121,6 +130,13 @@ export default {
121
130
  validator: function(value) {
122
131
  return ['right', 'left', 'center'].includes(value)
123
132
  }
133
+ },
134
+ // 验证码显示格式化
135
+ codeFormat: {
136
+ type: String,
137
+ default() {
138
+ return codeInput.codeFormat
139
+ }
124
140
  }
125
141
  },
126
142
  data() {
@@ -9,25 +9,17 @@
9
9
  @mousewheel.stop.prevent
10
10
  >
11
11
  <view class="inner-wrap" :class="direction" :style="[animate]">
12
- <view id="firstInner" class="inner">
12
+ <view v-for="(marqueeItems, index) in getItems" :key="index" class="inner">
13
13
  <view
14
- v-for="(item, idx) in items"
14
+ v-for="(item, idx) in marqueeItems"
15
15
  :key="idx"
16
16
  class="marquee-item"
17
17
  :class="{ vertical: isVertical }"
18
18
  >
19
19
  <!-- item插槽 -->
20
- <slot name="item" :item="item" />
21
- </view>
22
- </view>
23
- <view v-if="showCopy" class="inner">
24
- <view
25
- v-for="(item, idx) in items"
26
- :key="idx"
27
- class="marquee-item"
28
- :class="{ vertical: isVertical }"
29
- >
30
- <slot name="item" :item="item" />
20
+ <slot name="item" :item="item">
21
+ <view>{{ item }}</view>
22
+ </slot>
31
23
  </view>
32
24
  </view>
33
25
  </view>
@@ -85,12 +77,16 @@ export default {
85
77
  data() {
86
78
  return {
87
79
  animate: {},
88
- showCopy: false
80
+ cloneItems: false
89
81
  }
90
82
  },
91
83
  computed: {
92
84
  isVertical() {
93
85
  return ['tb', 'bt'].includes(this.direction)
86
+ },
87
+ getItems() {
88
+ if (!this.cloneItems) return [this.items]
89
+ return [this.items, this.items]
94
90
  }
95
91
  },
96
92
  watch: {
@@ -154,31 +150,31 @@ export default {
154
150
  const rect = await this.$pi.common.queryRect(this, '.marquee-container', false)
155
151
  const containerWidth = rect.width
156
152
  const containerHeight = rect.height
157
- const inner = await this.$pi.common.queryRect(this, '#firstInner', false)
153
+ const inner = await this.$pi.common.queryRect(this, '.inner', false)
158
154
 
159
155
  if (!inner) {
160
156
  // 没有marquee-item 则直接停止动画 隐藏拷贝
161
157
  this.handlePause()
162
- this.showCopy = false
158
+ this.cloneItems = false
163
159
  return
164
160
  }
165
161
  if (!this.isVertical) {
166
162
  if (inner.width <= containerWidth) {
167
163
  this.handlePause()
168
- this.showCopy = false
164
+ this.cloneItems = false
169
165
  } else {
170
166
  const time = inner.width / this.speed
171
167
  this.$set(this.animate, 'animationDuration', `${time}s`)
172
- this.showCopy = true
168
+ this.cloneItems = true
173
169
  }
174
170
  } else {
175
171
  if (inner.height <= containerHeight) {
176
172
  this.$set(this.animate, 'animationPlayState', 'paused')
177
- this.showCopy = false
173
+ this.cloneItems = false
178
174
  } else {
179
175
  const time = inner.height / this.speed
180
176
  this.$set(this.animate, 'animationDuration', `${time}s`)
181
- this.showCopy = true
177
+ this.cloneItems = true
182
178
  }
183
179
  }
184
180
  })
@@ -190,10 +186,10 @@ export default {
190
186
  <style lang="scss" scoped>
191
187
  .marquee-container {
192
188
  width: 100%;
193
- white-space: nowrap;
194
189
  overflow: auto hidden;
190
+ font-size: 0;
191
+ white-space: nowrap;
195
192
  background: #ffffff;
196
- font-size: 0px;
197
193
  }
198
194
 
199
195
  .marquee-container .inner {
@@ -204,13 +200,13 @@ export default {
204
200
 
205
201
  .marquee-container.vertical {
206
202
  height: 100%;
207
- white-space: normal;
208
203
  overflow: hidden auto;
204
+ white-space: normal;
209
205
  }
210
206
 
211
207
  .marquee-container.vertical .inner {
212
- height: auto;
213
208
  width: 100%;
209
+ height: auto;
214
210
  white-space: normal;
215
211
  }
216
212
 
@@ -232,8 +228,8 @@ export default {
232
228
  }
233
229
 
234
230
  .marquee-container.vertical > .inner-wrap {
235
- white-space: normal;
236
231
  width: 100%;
232
+ white-space: normal;
237
233
  }
238
234
 
239
235
  @keyframes roll-lr {
@@ -2,6 +2,8 @@
2
2
  <pi-popup
3
3
  ref="popup"
4
4
  :value="val"
5
+ :custom-class="getPopup.customClass"
6
+ :custom-style="getPopup.customStyle"
5
7
  position="center"
6
8
  :border-radius="getPopup.borderRadius"
7
9
  :show-close-icon="showTitle && getPopup.showCloseIcon"
@@ -1,47 +1,50 @@
1
1
  <template>
2
- <view class="page-wrap" :class="customClass" :style="[customStyle, { textAlign }]">
2
+ <view class="page-wrap" :class="customClass" :style="[customStyle, { textAlign: align }]">
3
3
  <view
4
4
  class="prev"
5
- :class="{ active: innerPage > 1 }"
5
+ :class="{ active: val > 1 }"
6
6
  :style="{ marginRight: '8rpx' }"
7
7
  @click="handlePrev"
8
8
  >
9
9
  <slot name="prev">上一页</slot>
10
10
  </view>
11
11
  <view
12
- v-for="(i, idx) in pages"
13
- :key="idx"
12
+ v-for="(i, index) in pages"
13
+ :key="index"
14
14
  class="page-item"
15
- :class="[{ current: i === innerPage }, { background }]"
15
+ :class="[{ current: i === val }, activeMode]"
16
16
  @click="handleClickPage(i)"
17
17
  >
18
- {{ i }}
18
+ <slot name="item" :item="i" :active="i === val">{{ i }}</slot>
19
19
  </view>
20
- <view class="next" :class="{ active: innerPage < totalPage }" @click="handleNext">
20
+ <view class="next" :class="{ active: val < totalPage }" @click="handleNext">
21
21
  <slot name="next">下一页</slot>
22
22
  </view>
23
23
  <pi-picker
24
24
  v-model="pickerOpts.show"
25
25
  :items="pickerItems"
26
26
  type="single"
27
- :default-value="[innerPage - 1]"
27
+ :default-value="[val - 1]"
28
28
  @confirm="handleSelectPage"
29
29
  />
30
30
  </view>
31
31
  </template>
32
32
 
33
33
  <script>
34
- import Config from '../../config/pagination'
34
+ import ValueSync from '../../mixin/value-sync'
35
+ import config from '../../config/pagination'
35
36
 
36
37
  export default {
37
38
  name: 'PiPagination',
39
+ // 混入v-model
40
+ mixins: [ValueSync],
38
41
  props: {
39
42
  // 自定义样式
40
43
  customStyle: {
41
44
  type: Object,
42
45
  default() {
43
46
  // {}
44
- return Config.customStyle
47
+ return config.customStyle
45
48
  }
46
49
  },
47
50
  // 自定义样式类
@@ -49,47 +52,52 @@ export default {
49
52
  type: String,
50
53
  default() {
51
54
  // ''
52
- return Config.customClass
55
+ return config.customClass
53
56
  }
54
57
  },
58
+ // 当前处于第几页
59
+ value: {
60
+ required: false,
61
+ type: Number,
62
+ // `0`
63
+ default: config.page
64
+ },
55
65
  // 总共多少条数据
56
66
  total: {
57
67
  type: Number,
58
68
  // `0`
59
- default: Config.total
69
+ default: config.total
60
70
  },
61
71
  // 只显示多少个页码
62
72
  limit: {
63
73
  type: Number,
64
74
  // `7`
65
- default: Config.limit
75
+ default: config.limit
66
76
  },
67
77
  // 每页大小 用于计算共多少页
68
78
  pageSize: {
69
79
  type: Number,
70
80
  // `10`
71
- default: Config.pageSize
72
- },
73
- // 当前处于第几页 支持.sync
74
- page: {
75
- type: Number,
76
- // `0`
77
- default: Config.page
81
+ default: config.pageSize
78
82
  },
79
- // 页码是否添加背景色
80
- background: {
81
- type: Boolean,
82
- default: Config.background
83
+ // 激活模式
84
+ activeMode: {
85
+ // 激活模式(text: 文字模式,fill: 填充背景色模式)
86
+ type: String,
87
+ // 'text'
88
+ default: config.activeMode,
89
+ validator: function(value) {
90
+ return ['text', 'fill'].includes(value)
91
+ }
83
92
  },
84
93
  // 对齐方式
85
- textAlign: {
94
+ align: {
86
95
  type: String,
87
- default: Config.textAlign
96
+ default: config.align
88
97
  }
89
98
  },
90
99
  data() {
91
100
  return {
92
- innerPage: 1,
93
101
  pickerOpts: {
94
102
  show: false
95
103
  }
@@ -99,8 +107,8 @@ export default {
99
107
  pages() {
100
108
  const list = []
101
109
  let insertEllipsis = false
102
- if (this.innerPage === 1) {
103
- let right = this.innerPage + this.limit - 1
110
+ if (this.val === 1) {
111
+ let right = this.val + this.limit - 1
104
112
  if (right > this.totalPage) {
105
113
  right = this.totalPage
106
114
  } else if (right < this.totalPage - 1) {
@@ -116,8 +124,8 @@ export default {
116
124
  if (right < this.totalPage) {
117
125
  list.push(this.totalPage)
118
126
  }
119
- } else if (this.innerPage === this.totalPage) {
120
- let left = this.innerPage - this.limit + 1
127
+ } else if (this.val === this.totalPage) {
128
+ let left = this.val - this.limit + 1
121
129
  if (left <= 0) {
122
130
  left = 1
123
131
  } else if (left > 2) {
@@ -140,24 +148,24 @@ export default {
140
148
  middlePages = 0
141
149
  }
142
150
  const half = parseInt(middlePages / 2, 10)
143
- let left = this.innerPage - half - 1
151
+ let left = this.val - half - 1
144
152
  if (left <= 1) {
145
153
  left = 2
146
154
  } else if (left > 2) {
147
155
  list.push('...')
148
156
  }
149
- for (let i = left; i <= this.innerPage; i++) {
157
+ for (let i = left; i <= this.val; i++) {
150
158
  list.push(i)
151
159
  }
152
160
 
153
- let right = middlePages - this.innerPage + left - 1
154
- right += this.innerPage
161
+ let right = middlePages - this.val + left - 1
162
+ right += this.val
155
163
  if (right >= this.totalPage) {
156
164
  right = this.totalPage - 1
157
165
  } else if (right < this.totalPage - 1) {
158
166
  insertEllipsis = true
159
167
  }
160
- for (let i = this.innerPage + 1; i <= right; i++) {
168
+ for (let i = this.val + 1; i <= right; i++) {
161
169
  list.push(i)
162
170
  }
163
171
  if (insertEllipsis) {
@@ -186,42 +194,32 @@ export default {
186
194
  return tmps
187
195
  }
188
196
  },
189
- watch: {
190
- page: {
191
- immediate: true,
192
- handler() {
193
- this.innerPage = this.page
194
- }
195
- },
196
- innerPage() {
197
- this.$emit('update:page', this.innerPage)
198
- // 当前页码发生改变
199
- // arg 最新的页码
200
- this.$emit('current-change', this.innerPage)
201
- }
202
- },
203
197
  methods: {
204
198
  handlePrev() {
205
- this.innerPage -= 1
206
- if (this.innerPage <= 0) {
207
- this.innerPage = 1
199
+ this.val -= 1
200
+ if (this.val <= 0) {
201
+ this.val = 1
208
202
  }
203
+ this.handleEmitChange()
209
204
  },
210
205
  handleNext() {
211
- this.innerPage += 1
212
- if (this.innerPage > this.totalPage) {
213
- this.innerPage = this.totalPage
206
+ this.val += 1
207
+ if (this.val > this.totalPage) {
208
+ this.val = this.totalPage
214
209
  }
210
+ this.handleEmitChange()
215
211
  },
216
212
  handleClickPage(page) {
217
213
  if (page !== '...') {
218
- this.innerPage = page
214
+ this.val = page
215
+ this.handleEmitChange()
219
216
  } else {
220
217
  this.pickerOpts.show = true
221
218
  }
222
219
  },
223
220
  handleSelectPage(values) {
224
- this.innerPage = values[0] + 1
221
+ this.val = values[0] + 1
222
+ this.handleEmitChange()
225
223
  }
226
224
  }
227
225
  }
@@ -252,7 +250,7 @@ export default {
252
250
  text-align: center;
253
251
  transition: all $pi-animation-duration $pi-animation-timing-function;
254
252
 
255
- &.background {
253
+ &.fill {
256
254
  min-width: 60rpx;
257
255
  padding: 8rpx;
258
256
  margin-left: 8rpx;
@@ -264,7 +262,7 @@ export default {
264
262
  font-size: 32rpx;
265
263
  color: $pi-primary-color;
266
264
  }
267
- &.current.background {
265
+ &.current.fill {
268
266
  color: #ffffff;
269
267
  background-color: $pi-primary-color;
270
268
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view
3
- v-if="show"
3
+ v-if="val"
4
4
  class="pi-skeleton-wrap"
5
5
  :style="[customStyle, skeletonContainStyle]"
6
6
  :class="[customClass]"
@@ -30,14 +30,21 @@
30
30
  * @property {String} background 是否显示模态框 default: transparent
31
31
  * @example <pi-skeleton />
32
32
  */
33
+ import ValueSync from '../../mixin/value-sync'
33
34
  import { systemInfo } from '@sadais/piui-tool/tools/system'
34
35
  import { getConfig } from '../../config'
35
36
  const { skeleton } = getConfig()
36
37
 
37
38
  const TAG = 'PiSkeleton'
38
39
 
40
+ const DEFAULT_RETRYCOUNT = 10
41
+ let timer = null
42
+ let retryCount = DEFAULT_RETRYCOUNT
43
+
39
44
  export default {
40
45
  name: 'PiSkeleton',
46
+ // 混入v-model
47
+ mixins: [ValueSync],
41
48
  props: {
42
49
  // 自定义样式,对象形式(默认值:{})
43
50
  customStyle: {
@@ -54,11 +61,11 @@ export default {
54
61
  }
55
62
  },
56
63
  // 是否显示骨架屏
57
- show: {
64
+ value: {
58
65
  required: false,
59
66
  type: Boolean,
60
67
  // false
61
- default: skeleton.show
68
+ default: skeleton.value
62
69
  },
63
70
  // 是否显示加载动画
64
71
  animation: {
@@ -140,10 +147,17 @@ export default {
140
147
  }
141
148
  }
142
149
  },
150
+ watch: {
151
+ value(value) {
152
+ if (value) retryCount = DEFAULT_RETRYCOUNT
153
+ }
154
+ },
143
155
  mounted() {
144
- setTimeout(() => {
145
- this.handleSelectorQuery()
146
- }, 500)
156
+ this.handleSelectorQuery()
157
+ this.handleCycleNodeQuery()
158
+ },
159
+ beforeDestroy() {
160
+ this.handleClearInterval()
147
161
  },
148
162
  methods: {
149
163
  handleSelectorQuery() {
@@ -173,6 +187,20 @@ export default {
173
187
  top: res[0][0].bottom - res[0][0].height
174
188
  }
175
189
  })
190
+ },
191
+ handleCycleNodeQuery() {
192
+ if (timer) this.handleClearInterval()
193
+ this.handleSubNodeQuery()
194
+ timer = setInterval(() => {
195
+ if (retryCount < 0) {
196
+ this.handleClearInterval()
197
+ return
198
+ }
199
+ retryCount--
200
+ this.handleSubNodeQuery()
201
+ }, 200)
202
+ },
203
+ handleSubNodeQuery() {
176
204
  this.handleNodeQuery('rect')
177
205
  this.handleNodeQuery('circle')
178
206
  this.handleNodeQuery('round')
@@ -202,26 +230,41 @@ export default {
202
230
  if (selector === 'circle') {
203
231
  borderRadius = '50%'
204
232
  }
205
- this.skeletonNodes = this.skeletonNodes.concat(
206
- res[0].map(r => ({ ...r, borderRadius, type: selector }))
207
- )
233
+ res[0].forEach(r => {
234
+ const key = `${r.top}_${r.bottom}_${r.left}_${r.right}_${r.width}_${r.height}`
235
+ const newNode = this.skeletonNodes.findIndex(n => n.key === key) === -1
236
+ if (newNode) {
237
+ this.skeletonNodes.push({
238
+ ...r,
239
+ key,
240
+ borderRadius,
241
+ type: selector
242
+ })
243
+ }
244
+ })
208
245
  })
246
+ },
247
+ handleClearInterval() {
248
+ clearInterval(timer)
249
+ this.timer = null
209
250
  }
210
251
  }
211
252
  }
212
253
  </script>
213
254
 
214
255
  <style lang="scss" scoped>
256
+ .pi-skeleton-wrap {
257
+ z-index: 999;
258
+ }
259
+
215
260
  .skeleton-fade {
216
261
  width: 100%;
217
262
  height: 100%;
218
263
  background: rgb(194, 207, 214);
219
- animation-name: blink;
220
- animation-duration: 2s;
221
- animation-iteration-count: infinite;
264
+ animation: pi-skeleton-blink 2s ease-in-out infinite;
222
265
  }
223
266
 
224
- @keyframes blink {
267
+ @keyframes pi-skeleton-blink {
225
268
  0% {
226
269
  opacity: 1;
227
270
  }
@@ -7,5 +7,6 @@ export default {
7
7
  autoFocus: false, // 是否自动拉起键盘输入
8
8
  autoFocusDelay: 350, // 自动拉起键盘延时
9
9
  stretch: false, // 每项验证码是否均分宽度
10
- align: 'left' // 验证码对齐方向,可选值:left、center、right
10
+ align: 'left', // 验证码对齐方向,可选值:left、center、right
11
+ codeFormat: '' // 验证码显示格式化
11
12
  }
@@ -5,6 +5,6 @@ export default {
5
5
  limit: 7,
6
6
  pageSize: 10,
7
7
  page: 0,
8
- background: false,
9
- textAlign: 'center'
8
+ activeMode: 'text', // 激活模式(text: 文字模式,fill: 填充背景色模式)
9
+ align: 'center'
10
10
  }
@@ -1,13 +1,13 @@
1
1
  export default {
2
2
  customClass: '', // 自定义样式类,字符串形式('')
3
3
  customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- show: false, // 是否显示骨架屏
4
+ value: false, // 是否显示骨架屏
5
5
  animation: true, // 是否显示加载动画
6
6
  containerSkeletonSelector: '.pi-skeleton', // 骨架容器选择器
7
7
  rectSkeletonSelector: '.pi-skeleton-rect', // 矩形骨架选择器
8
8
  circleSkeletonSelector: '.pi-skeleton-circle', // 圆形骨架选择器
9
9
  roundSkeletonSelector: '.pi-skeleton-round', // 圆角骨架选择器
10
- background: 'transparent', // 容器背景颜色
11
- nodeBackground: '#f2f7fd', // 骨架背景颜色
10
+ background: '#ffffff', // 容器背景颜色
11
+ nodeBackground: '#f5f5f5', // 骨架背景颜色
12
12
  borderRadius: 12 // round 圆角骨架的圆角大小
13
13
  }
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.0.178",
3
+ "version": "1.0.182",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "push": "git config http.proxy http://127.0.0.1:1087 && git push && git config --unset http.proxy",
9
- "pull": "git config http.proxy http://127.0.0.1:1087 && git pull && git config --unset http.proxy"
7
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
10
8
  },
11
9
  "repository": {
12
10
  "type": "git",