Skip to content

Commit

Permalink
fix: git ci npm install err and add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahxl committed Nov 22, 2022
1 parent 3024811 commit e7c2f4a
Show file tree
Hide file tree
Showing 46 changed files with 3,376 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: install dependencies
run: npm install
working-directory: ./
- name: build
run: npm run build
working-directory: ./
- name: publish
run: npm publish
working-directory: ./
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# production
/es
/docs-dist
/dist

# misc
.DS_Store
Expand Down
17 changes: 17 additions & 0 deletions dist/esm/Notifiy/TextWithBalloon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
declare const _default: React.MemoExoticComponent<
({
text,
tips,
color,
iconColor,
align,
}: {
text: any;
tips: any;
color?: string;
iconColor?: string;
align?: string;
}) => JSX.Element
>;
export default _default;
44 changes: 44 additions & 0 deletions dist/esm/Notifiy/TextWithBalloon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React, { memo } from 'react';
import { Balloon, Icon } from '@alicloud/console-components';

var TextWithBalloon = function TextWithBalloon(_ref) {
var text = _ref.text,
tips = _ref.tips,
_ref$color = _ref.color,
color = _ref$color === void 0 ? '' : _ref$color,
_ref$iconColor = _ref.iconColor,
iconColor = _ref$iconColor === void 0 ? '' : _ref$iconColor,
_ref$align = _ref.align,
align = _ref$align === void 0 ? 't' : _ref$align;
return /*#__PURE__*/ React.createElement(
React.Fragment,
null,
/*#__PURE__*/ React.createElement(
'span',
{
className: 'mr-5 '.concat(color),
},
text,
),
/*#__PURE__*/ React.createElement(
Balloon,
{
cache: true,
align: align,
trigger: /*#__PURE__*/ React.createElement(Icon, {
size: 'xs',
type: 'help',
className: 'fc-help-icon '.concat(iconColor),
}),
closable: false,
},
/*#__PURE__*/ React.createElement('span', {
dangerouslySetInnerHTML: {
__html: tips,
},
}),
),
);
};

export default /*#__PURE__*/ memo(TextWithBalloon);
5 changes: 5 additions & 0 deletions dist/esm/Notifiy/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="react" />
import { IProps } from './types';
import './index.less';
declare const Notifiy: (props: IProps) => JSX.Element;
export default Notifiy;
Loading

0 comments on commit e7c2f4a

Please sign in to comment.