Releases: caijf/mockjs-extend
Releases · caijf/mockjs-extend
v1.9.0
v1.8.0
- feat: 新增生成随机省市区编码方法
provinceCodecityCodeareaCode
Full Changelog: v1.7.1...v1.8.0
v1.7.1
- feat:
MockUtilClass实例支持对象解构mockDatamockPageData方法调用
Full Changelog: v1.7.0...v1.7.1
v1.7.0
- feat: 优化
mockData回调函数处理逻辑
Full Changelog: v1.6.1...v1.7.0
v1.6.1
- chore: update deps
lcnv6 to v7
Full Changelog: v1.6.0...v1.6.1
v1.6.0
- feat: 新增
countryCode2方法
避免递归引用数据模板中的属性
参考 mockjs 代码片段
示例如下:
Mockjs.mock({
"data|2-5": [{
countryNameEn: "@country",
countryName: "@ccountry",
twoCode: "@countryCode(2)",
countryCode: "@countryCode",
}]
})会导致 twoCode 的值都和 countryCode 字段一样。
改成下面这样就没问题:
Mockjs.mock({
"data|2-5": [{
countryNameEn: "@country",
countryName: "@ccountry",
twoCode: "@countryCode2",
countryCode: "@countryCode",
}]
})Full Changelog: v1.5.1...v1.6.0
v1.5.1
- chore: update deps
Full Changelog: v1.5.0...v1.5.1
v1.5.0
- feat: 新增
utc方法 - feat: 部分中英文字段调整,原字段继续保留至下个大版本
countryName调整为ccountrycompanyName调整为ccompany
- feat: 新增随机生成数据方法
getRandomGlobalBankgetRandomBankCardgetRandomCountrygetRandomCurrency
Full Changelog: v1.4.4...v1.5.0
v1.4.4
- refactor: 优化银行卡号生成方法
Full Changelog: v1.4.3...v1.4.4
v1.4.3
- feat: 生成社会统一信用代码工具方法名称调整
Full Changelog: v1.4.2...v1.4.3