iglooform 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
- package/es/input/style/default-input.less +6 -1
- package/es/media/index.d.ts +30 -0
- package/es/media/media.d.ts +14 -0
- package/lib/input/style/default-input.less +6 -1
- package/lib/media/index.d.ts +30 -0
- package/lib/media/media.d.ts +14 -0
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ export default function DumiContextWrapper() {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<SiteContext.Provider value={{
|
|
33
|
-
pkg: {"name":"iglooform","version":"3.
|
|
33
|
+
pkg: {"name":"iglooform","version":"3.8.1","license":"MIT"},
|
|
34
34
|
historyType: "browser",
|
|
35
35
|
entryExports,
|
|
36
36
|
demos,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
font-weight: normal;
|
|
10
10
|
font-size: @font-size-base;
|
|
11
11
|
line-height: 24px;
|
|
12
|
-
height: @height-base;
|
|
13
12
|
border-color: @border-color;
|
|
14
13
|
color: @text-color;
|
|
15
14
|
}
|
|
@@ -17,6 +16,12 @@
|
|
|
17
16
|
//Antd Input组件底层实现不全是用input dom元素, Igloo Input的衍生组件希望统一套用igloo-input样式的话这里得这样限定处理
|
|
18
17
|
input.igloo-input {
|
|
19
18
|
padding: 12px 16px;
|
|
19
|
+
height: @height-base;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-input-affix-wrapper.igloo-input,
|
|
23
|
+
.ant-input-number.igloo-input {
|
|
24
|
+
height: @height-base;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
.ant-input-status-error:not(.ant-input-disabled):not(
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
type Download = false | {
|
|
4
|
+
actionType?: 'downloadBlob' | 'openUrl';
|
|
5
|
+
};
|
|
6
|
+
type GetNonCORSUrl = (originUrl: string) => Promise<string> | string;
|
|
7
|
+
interface Props {
|
|
8
|
+
src: string | {
|
|
9
|
+
origin: string;
|
|
10
|
+
nonCORS: string;
|
|
11
|
+
};
|
|
12
|
+
name?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
index?: number;
|
|
15
|
+
list?: Array<{
|
|
16
|
+
type: string;
|
|
17
|
+
src: string;
|
|
18
|
+
nonCORSSrc?: string;
|
|
19
|
+
}>;
|
|
20
|
+
docNames?: string[];
|
|
21
|
+
className?: any;
|
|
22
|
+
style?: CSSProperties;
|
|
23
|
+
showAllPages?: boolean;
|
|
24
|
+
destroyOnClose?: boolean;
|
|
25
|
+
download?: Download;
|
|
26
|
+
getNonCORSUrl?: GetNonCORSUrl;
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const MediaWithPreview: FC<Props>;
|
|
30
|
+
export default MediaWithPreview;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
|
+
declare const Loading: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
interface MediaProps {
|
|
4
|
+
src: string;
|
|
5
|
+
type: string;
|
|
6
|
+
onClick: any;
|
|
7
|
+
className?: any;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Media: FC<MediaProps> & {
|
|
12
|
+
Loading: typeof Loading;
|
|
13
|
+
};
|
|
14
|
+
export default Media;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
font-weight: normal;
|
|
10
10
|
font-size: @font-size-base;
|
|
11
11
|
line-height: 24px;
|
|
12
|
-
height: @height-base;
|
|
13
12
|
border-color: @border-color;
|
|
14
13
|
color: @text-color;
|
|
15
14
|
}
|
|
@@ -17,6 +16,12 @@
|
|
|
17
16
|
//Antd Input组件底层实现不全是用input dom元素, Igloo Input的衍生组件希望统一套用igloo-input样式的话这里得这样限定处理
|
|
18
17
|
input.igloo-input {
|
|
19
18
|
padding: 12px 16px;
|
|
19
|
+
height: @height-base;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-input-affix-wrapper.igloo-input,
|
|
23
|
+
.ant-input-number.igloo-input {
|
|
24
|
+
height: @height-base;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
.ant-input-status-error:not(.ant-input-disabled):not(
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
type Download = false | {
|
|
4
|
+
actionType?: 'downloadBlob' | 'openUrl';
|
|
5
|
+
};
|
|
6
|
+
type GetNonCORSUrl = (originUrl: string) => Promise<string> | string;
|
|
7
|
+
interface Props {
|
|
8
|
+
src: string | {
|
|
9
|
+
origin: string;
|
|
10
|
+
nonCORS: string;
|
|
11
|
+
};
|
|
12
|
+
name?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
index?: number;
|
|
15
|
+
list?: Array<{
|
|
16
|
+
type: string;
|
|
17
|
+
src: string;
|
|
18
|
+
nonCORSSrc?: string;
|
|
19
|
+
}>;
|
|
20
|
+
docNames?: string[];
|
|
21
|
+
className?: any;
|
|
22
|
+
style?: CSSProperties;
|
|
23
|
+
showAllPages?: boolean;
|
|
24
|
+
destroyOnClose?: boolean;
|
|
25
|
+
download?: Download;
|
|
26
|
+
getNonCORSUrl?: GetNonCORSUrl;
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const MediaWithPreview: FC<Props>;
|
|
30
|
+
export default MediaWithPreview;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
|
+
declare const Loading: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
interface MediaProps {
|
|
4
|
+
src: string;
|
|
5
|
+
type: string;
|
|
6
|
+
onClick: any;
|
|
7
|
+
className?: any;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Media: FC<MediaProps> & {
|
|
12
|
+
Loading: typeof Loading;
|
|
13
|
+
};
|
|
14
|
+
export default Media;
|