Skip to content

Commit

Permalink
fix(image): some bugs (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaishi committed Jan 16, 2023
1 parent 2ffc98a commit 41dbcdd
Show file tree
Hide file tree
Showing 14 changed files with 880 additions and 200 deletions.
295 changes: 163 additions & 132 deletions site/test-coverage.js
Original file line number Diff line number Diff line change
@@ -1,135 +1,166 @@
module.exports = {
'': '85.5%',
common: '0%',
'common/docs/web/Design': '0%',
'common/js/tree': '77.07%',
'common/js/upload': '0%',
'common/style/mobile': '0%',
'common/style/web': '0%',
'common/test/script': '0%',
'common/test/unit/tree': '0%',
affix: '71.18%',
'affix/style': '0%',
alert: '82.35%',
'alert/style': '0%',
anchor: '92.89%',
'anchor/style': '0%',
avatar: '92.94%',
'avatar/style': '0%',
badge: '97.5%',
'badge/style': '0%',
breadcrumb: '91.78%',
'breadcrumb/style': '0%',
button: '90.47%',
'button/style': '0%',
calendar: '86.28%',
'calendar/style': '0%',
card: '0%',
cascader: '71.27%',
'cascader/components': '69.03%',
'cascader/components/style': '0%',
'cascader/style': '0%',
'cascader/utils': '53.5%',
checkbox: '88.03%',
'checkbox/style': '0%',
comment: '96.96%',
'comment/style': '0%',
'': '100%',
'common/js/colorPicker': '63.51%',
'common/js/datePicker': '67.47%',
'common/js/globalConfig': '100%',
'common/js/globalConfig/locale': '100%',
'common/js/inputNumber': '40.48%',
'common/js/loading': '73.17%',
'common/js/log': '72.72%',
'common/js/table': '15.37%',
'common/js/timePicker': '71.69%',
'common/js/tree': '93.33%',
'common/js/upload': '39.94%',
'common/js/utils': '48.46%',
'common/js/watermark': '6.97%',
affix: '89.47%',
'affix/style': '100%',
alert: '96.21%',
'alert/style': '100%',
anchor: '95.2%',
'anchor/style': '100%',
autoComplete: '99.85%',
'autoComplete/style': '100%',
avatar: '96.85%',
'avatar/style': '100%',
badge: '100%',
'badge/style': '100%',
breadcrumb: '97.52%',
'breadcrumb/style': '100%',
button: '100%',
'button/style': '100%',
calendar: '95.15%',
'calendar/style': '100%',
card: '99.71%',
'card/style': '100%',
cascader: '95.83%',
'cascader/components': '84.49%',
'cascader/core': '72.46%',
'cascader/style': '100%',
checkbox: '92.16%',
'checkbox/style': '100%',
collapse: '94.73%',
'collapse/style': '100%',
colorPicker: '97.08%',
'colorPicker/panel': '64.9%',
'colorPicker/panel/format': '93.59%',
'colorPicker/style': '100%',
'colorPicker/utils': '100%',
comment: '95.5%',
'comment/style': '100%',
commonComponents: '100%',
configProvider: '66.66%',
datePicker: '55.39%',
'datePicker/basic': '86.2%',
'datePicker/basic/style': '0%',
'datePicker/panel': '42.4%',
'datePicker/panel/style': '0%',
'datePicker/style': '0%',
dialog: '70.05%',
'dialog/style': '0%',
divider: '90.9%',
'divider/style': '0%',
drawer: '60.27%',
'drawer/style': '0%',
dropdown: '80%',
'dropdown/style': '0%',
form: '47.65%',
'form/style': '0%',
grid: '26.04%',
'grid/style': '0%',
icon: '66.66%',
input: '74.01%',
inputNumber: '82.96%',
'inputNumber/style': '0%',
'input/style': '0%',
layout: '66.12%',
'layout/style': '0%',
list: '95.06%',
'list/style': '0%',
loading: '77.41%',
'loading/icon': '76.92%',
'loading/style': '0%',
locale: '23.52%',
menu: '64.06%',
'menu/style': '0%',
message: '82.7%',
'message/style': '0%',
notification: '32.78%',
'notification/style': '0%',
pagination: '60.71%',
'pagination/style': '0%',
popconfirm: '81.81%',
'popconfirm/style': '0%',
popup: '58.95%',
'popup/style': '0%',
progress: '90.9%',
'progress/style': '0%',
radio: '96.19%',
'radio/style': '0%',
rate: '0%',
select: '49.11%',
'select/style': '0%',
skeleton: '85.45%',
'skeleton/style': '0%',
slider: '43.46%',
'slider/style': '0%',
steps: '89.62%',
'steps/style': '0%',
stickyTool: '0%',
style: '0%',
swiper: '77.19%',
'swiper/style': '0%',
switch: '60%',
'switch/style': '0%',
table: '95.83%',
'table/baseTable': '85.97%',
'table/baseTable/style': '0%',
'table/enhancedTable': '11.62%',
'table/enhancedTable/style': '0%',
'table/primaryTable': '74.25%',
'table/primaryTable/mixins': '39.94%',
'table/primaryTable/mixins/style': '0%',
'table/primaryTable/style': '0%',
'table/style': '0%',
'table/util': '47.05%',
tabs: '68.72%',
'tabs/style': '0%',
tag: '93.22%',
'tag/style': '0%',
textarea: '84.07%',
'textarea/style': '0%',
timePicker: '32.67%',
'timePicker/panel': '53.64%',
'timePicker/panel/style': '0%',
'timePicker/style': '0%',
tooltip: '73.52%',
'tooltip/style': '0%',
transfer: '88.67%',
'transfer/components': '81.65%',
'transfer/components/style': '0%',
'transfer/style': '0%',
tree: '84.85%',
treeSelect: '84.04%',
'treeSelect/style': '0%',
'tree/style': '0%',
upload: '21.52%',
'upload/style': '0%',
utils: '60.48%',
configProvider: '96.08%',
datePicker: '47.63%',
'datePicker/base': '80.6%',
'datePicker/hooks': '46.2%',
'datePicker/panel': '64.04%',
'datePicker/style': '100%',
dialog: '84.4%',
'dialog/style': '100%',
divider: '96.92%',
'divider/style': '100%',
drawer: '85.13%',
'drawer/style': '100%',
dropdown: '90.84%',
'dropdown/hooks': '96.05%',
'dropdown/style': '100%',
form: '92.6%',
'form/style': '100%',
grid: '84.13%',
'grid/style': '100%',
guide: '42.89%',
'guide/style': '100%',
'guide/utils': '79.62%',
hooks: '57.56%',
icon: '100%',
image: '98.82%',
imageViewer: '87.44%',
'imageViewer/base': '95.37%',
'imageViewer/style': '100%',
'image/style': '100%',
input: '99.48%',
inputAdornment: '100%',
'inputAdornment/style': '100%',
inputNumber: '94.13%',
'inputNumber/style': '100%',
'input/style': '100%',
layout: '96.31%',
'layout/style': '100%',
link: '100%',
'link/style': '100%',
list: '98.4%',
'list/style': '100%',
loading: '84.17%',
'loading/icon': '92.68%',
'loading/style': '100%',
menu: '85.84%',
'menu/style': '100%',
message: '88.84%',
'message/style': '100%',
notification: '96.83%',
'notification/style': '100%',
pagination: '99.12%',
'pagination/style': '100%',
popconfirm: '96.67%',
'popconfirm/style': '100%',
popup: '90.29%',
'popup/style': '100%',
progress: '95.96%',
'progress/style': '100%',
radio: '95.8%',
'radio/style': '100%',
rangeInput: '82.93%',
'rangeInput/style': '100%',
rate: '90.03%',
'rate/style': '100%',
select: '62.1%',
selectInput: '95.33%',
'selectInput/style': '100%',
'select/hooks': '81.75%',
'select/style': '100%',
skeleton: '94.14%',
'skeleton/style': '100%',
slider: '72.48%',
'slider/style': '100%',
space: '100%',
'space/style': '100%',
steps: '98.44%',
'steps/style': '100%',
swiper: '76.68%',
'swiper/style': '100%',
switch: '61.35%',
'switch/style': '100%',
table: '77.36%',
'table/hooks': '58.16%',
'table/style': '100%',
tabs: '85.01%',
'tabs/style': '100%',
tag: '97.78%',
tagInput: '90.53%',
'tagInput/hooks': '52.13%',
'tagInput/style': '100%',
'tag/style': '100%',
textarea: '78.57%',
'textarea/style': '100%',
timePicker: '77.38%',
'timePicker/panel': '79.39%',
'timePicker/style': '100%',
timeline: '51.2%',
'timeline/style': '100%',
tooltip: '92.95%',
'tooltip/style': '100%',
transfer: '96.5%',
'transfer/components': '92.06%',
'transfer/style': '100%',
tree: '96.46%',
treeSelect: '90.93%',
'treeSelect/style': '100%',
'tree/hooks': '80.88%',
'tree/style': '100%',
upload: '90.38%',
'upload/hooks': '42.94%',
'upload/style': '100%',
'upload/themes': '32.45%',
utils: '70.8%',
watermark: '40.19%',
};
2 changes: 2 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export interface UploadDisplayDragEvents {
dragover?: (event: DragEvent) => void;
dragleave?: (event: DragEvent) => void;
}

export type ImageEvent = Event;
/** 通用全局类型 */

export type OptionData = {
Expand Down
Loading

0 comments on commit 41dbcdd

Please sign in to comment.