mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 01:47:21 +08:00
Merge pull request #15441 from ddwwcruz/react-css-overflow
@types/react react css overflow
This commit is contained in:
2
types/material-ui/index.d.ts
vendored
2
types/material-ui/index.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/callemall/material-ui
|
||||
// Definitions by: Nathan Brown <https://github.com/ngbrown>, Oliver Herrmann <https://github.com/herrmanno>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
/// <reference types="react" />
|
||||
/// <reference types="react-addons-linked-state-mixin" />
|
||||
|
||||
@@ -109,7 +109,7 @@ function handleTouchTap() {
|
||||
alert('onTouchTap triggered on the title component');
|
||||
}
|
||||
|
||||
const styles = {
|
||||
const styles: { [key: string]: React.CSSProperties } = {
|
||||
title: {
|
||||
cursor: 'pointer',
|
||||
},
|
||||
|
||||
8
types/react/index.d.ts
vendored
8
types/react/index.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = React;
|
||||
export as namespace React;
|
||||
@@ -1504,7 +1504,7 @@ declare namespace React {
|
||||
/**
|
||||
* The overflow property controls how extra content exceeding the bounding box of an element is rendered. It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
|
||||
*/
|
||||
overflow?: CSSWideKeyword | any;
|
||||
overflow?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
|
||||
|
||||
/**
|
||||
* Specifies the preferred scrolling methods for elements that overflow.
|
||||
@@ -1514,12 +1514,12 @@ declare namespace React {
|
||||
/**
|
||||
* Controls how extra content exceeding the x-axis of the bounding box of an element is rendered.
|
||||
*/
|
||||
overflowX?: CSSWideKeyword | any;
|
||||
overflowX?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
|
||||
|
||||
/**
|
||||
* Controls how extra content exceeding the y-axis of the bounding box of an element is rendered.
|
||||
*/
|
||||
overflowY?: CSSWideKeyword | any;
|
||||
overflowY?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
|
||||
|
||||
/**
|
||||
* The padding optional CSS property sets the required padding space on one to four sides of an element. The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted. The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
|
||||
|
||||
@@ -27,6 +27,9 @@ const justifyContentStyleTest = <div style={justifyContentStyle} />;
|
||||
const boxShadowStyle: React.CSSProperties = { boxShadow: '2px 2px 2px 1px rgba(0, 0, 0, 0.2)' };
|
||||
const boxShadowStyleTest = <div style={boxShadowStyle} />;
|
||||
|
||||
const overflowStyle: React.CSSProperties = { overflow: 'auto', overflowX: 'visible', overflowY: 'scroll' };
|
||||
const overflowStyleTest = <div style={overflowStyle} />;
|
||||
|
||||
// SVG specific style attribute declarations
|
||||
|
||||
const fillOpacityStyle: React.CSSProperties = { fillOpacity: 0.3 };
|
||||
|
||||
Reference in New Issue
Block a user