24 Commits

Author SHA1 Message Date
neverland
1217088d95
test: improve mock spy (#8483) 2021-04-09 09:53:25 +08:00
neverland
3214b1dd80
chore: remove isNaN util, re-organize validate utils (#8473) 2021-04-08 10:08:03 +08:00
nemo-shen
d9c51b9070
fix(utils): 调整deepClone (#8340)
* fix(utils): 调整deepClone

解决deepClone没有对数组进行处理的问题

* style(utils): format

* fix(utils): 删除isDef判断

T声明应该应该传入null或者undefined

* fix(utils): add isDef

1. 考虑到可能会有参数同时存在oject和null两种可能性,重新增加isDef判断
2. 补全测试用例

Co-authored-by: nemo-shen <1034131477@qq.com>
2021-03-15 20:01:14 +08:00
neverland
314d6e2006
chore: remove unused isEmail validator (#8228) 2021-02-26 13:01:06 +08:00
neverland
1170262d72
test: fix index.spec.ts typing (#8201) 2021-02-23 19:43:29 +08:00
neverland
f0f89f1c4c
chore: demo spec uses ts (#8197) 2021-02-22 20:53:07 +08:00
chenjiahan
75c296f0a8 test: update test cases of utils 2020-11-28 18:42:38 +08:00
chenjiahan
1805f21308 Merge branch '2.x' into dev 2020-11-04 20:06:59 +08:00
neverland
ebd78a9d02
feat(Sticky): offset-top support vh unit (#7498) 2020-11-04 19:39:52 +08:00
chenjiahan
f2b6f3d4d1 chore: rename all legacy test cases 2020-10-13 16:56:11 +08:00
chenjiahan
839b8654ee feat(Badge): max support string type 2020-10-02 17:05:08 +08:00
neverland
e7deea7195
fix(Field): disallow minus when using digit type (#7114) 2020-09-05 14:54:05 +08:00
neverland
d55585314f
feat(Tabbar): add before-change prop (#7081) 2020-09-02 11:45:11 +08:00
neverland
2f2760aba6
feat(Picker): item-height support rem unit (#6462) 2020-06-05 09:25:19 +08:00
desperado
ca827c205e
fix(Field): minus can only be placed on the first char (#6303) 2020-05-19 16:20:54 +08:00
neverland
e61aa29118
fix(Stepper): incorrect value when format minus value (#6238) 2020-05-07 22:15:46 +08:00
neverland
31674a162c
feat(eslint-config): extends typescript-eslint recommended (#6076) 2020-04-17 14:51:55 +08:00
chenjiahan
fd9993cfa3 perf: faster bem 2020-03-23 10:29:18 +08:00
陈嘉涵
080d1828c8 feat(Form): support async validation 2020-02-12 10:38:05 +08:00
陈嘉涵
77756f30e6 chore: improve utils typing and naming 2020-01-19 19:05:07 +08:00
陈嘉涵
2adcfd8b8b chore: prettier test files 2020-01-19 16:16:54 +08:00
陈嘉涵
389d68884d chore: add trailingComma 2020-01-19 11:57:09 +08:00
neverland
aee1091c5c
chore: adjust path of test utils (#4997) 2019-11-13 16:46:01 +08:00
neverland
75c79b7044
[improvement] rename packages dir to src (#3659) 2019-06-27 11:25:57 +08:00