Skip to content

Commit e7c2f4a

Browse files
committed
fix: git ci npm install err and add dist
1 parent 3024811 commit e7c2f4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3376
-7
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
with:
1515
node-version: 16
1616
registry-url: https://registry.npmjs.org/
17-
- name: install dependencies
18-
run: npm install
19-
working-directory: ./
20-
- name: build
21-
run: npm run build
22-
working-directory: ./
2317
- name: publish
2418
run: npm publish
2519
working-directory: ./

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# production
1111
/es
1212
/docs-dist
13-
/dist
1413

1514
# misc
1615
.DS_Store
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
declare const _default: React.MemoExoticComponent<
3+
({
4+
text,
5+
tips,
6+
color,
7+
iconColor,
8+
align,
9+
}: {
10+
text: any;
11+
tips: any;
12+
color?: string;
13+
iconColor?: string;
14+
align?: string;
15+
}) => JSX.Element
16+
>;
17+
export default _default;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React, { memo } from 'react';
2+
import { Balloon, Icon } from '@alicloud/console-components';
3+
4+
var TextWithBalloon = function TextWithBalloon(_ref) {
5+
var text = _ref.text,
6+
tips = _ref.tips,
7+
_ref$color = _ref.color,
8+
color = _ref$color === void 0 ? '' : _ref$color,
9+
_ref$iconColor = _ref.iconColor,
10+
iconColor = _ref$iconColor === void 0 ? '' : _ref$iconColor,
11+
_ref$align = _ref.align,
12+
align = _ref$align === void 0 ? 't' : _ref$align;
13+
return /*#__PURE__*/ React.createElement(
14+
React.Fragment,
15+
null,
16+
/*#__PURE__*/ React.createElement(
17+
'span',
18+
{
19+
className: 'mr-5 '.concat(color),
20+
},
21+
text,
22+
),
23+
/*#__PURE__*/ React.createElement(
24+
Balloon,
25+
{
26+
cache: true,
27+
align: align,
28+
trigger: /*#__PURE__*/ React.createElement(Icon, {
29+
size: 'xs',
30+
type: 'help',
31+
className: 'fc-help-icon '.concat(iconColor),
32+
}),
33+
closable: false,
34+
},
35+
/*#__PURE__*/ React.createElement('span', {
36+
dangerouslySetInnerHTML: {
37+
__html: tips,
38+
},
39+
}),
40+
),
41+
);
42+
};
43+
44+
export default /*#__PURE__*/ memo(TextWithBalloon);

dist/esm/Notifiy/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="react" />
2+
import { IProps } from './types';
3+
import './index.less';
4+
declare const Notifiy: (props: IProps) => JSX.Element;
5+
export default Notifiy;

0 commit comments

Comments
 (0)