-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): watermark component support modal and drawer
- Loading branch information
Showing
15 changed files
with
176 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1 @@ | ||
--- | ||
order: 6 | ||
title: 更新日志 | ||
toc: false | ||
timeline: true | ||
--- | ||
|
||
``` | ||
🐞 Bug 修复 | ||
💄 样式更新/less 变量更新 | ||
🆕 新增特性 | ||
🔥 极其值得关注的新增特性 | ||
🇺🇸🇨🇳🇬🇧 国际化改动,注意这里直接用对应国家/地区的旗帜。 | ||
📖 :memo: 文档或网站改进 | ||
✅ 新增或更新测试用例 | ||
🛎 更新警告/提示信息 | ||
⌨️ :wheelchair: 可访问性增强 | ||
🗑 废弃或移除 | ||
🛠 重构或工具链优化 | ||
⚡️ 性能提升 | ||
``` | ||
|
||
--- | ||
|
||
## 0.0.2 | ||
|
||
- 🆕 新增 `Fullpage` 组件。 | ||
- 🆕 新增 `Exception` 组件。 | ||
- 🆕 新增 `Watermark` 组件。 | ||
- 🛠 使用 `@hankliu/colors` 替换 `@ant-design/colors` 组件。 | ||
- 🛠 使用 `@hankliu/icons` 替换 `@ant-design/icons` 组件,丰富 Icon 的图标库。 | ||
- 🐞 修复使用 `@hankliu/hankliu-ui` 还需要在项目中额外安装 `react-color` 库的问题。 | ||
|
||
## 0.0.1 | ||
|
||
- 🐞 修复 DatePicker 样式依赖缺失 | ||
- 🆕 Gallery 新增 sidebarPosition、showCount 属性 | ||
<embed src="./UPDATE.zh-CN.md"></embed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function pascalCase(name) { | ||
return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (m, n) => n.toUpperCase()); | ||
} | ||
|
||
// Just import style for https://github.com/ant-design/ant-design/issues/3745 | ||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/); | ||
|
||
req.keys().forEach((mod) => { | ||
let v = req(mod); | ||
if (v && v.default) { | ||
v = v.default; | ||
} | ||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/); | ||
if (match && match[1]) { | ||
if (match[1] === 'message' || match[1] === 'notification') { | ||
// message & notification should not be capitalized | ||
exports[match[1]] = v; | ||
} else { | ||
exports[pascalCase(match[1])] = v; | ||
} | ||
} | ||
}); | ||
|
||
module.exports = exports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const hankliuUi = require('./components'); | ||
|
||
const req = require.context('./components', true, /^\.\/locale\/.+_.+\.tsx$/); | ||
|
||
hankliuUi.locales = {}; | ||
|
||
req.keys().forEach((mod) => { | ||
const matches = mod.match(/\/([^/]+).tsx$/); | ||
hankliuUi.locales[matches[1]] = req(mod).default; | ||
}); | ||
|
||
module.exports = hankliuUi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require('./index-style-only'); | ||
|
||
module.exports = require('./components'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.