Skip to content

Commit

Permalink
chore(ts): 优化action插件类型提示
Browse files Browse the repository at this point in the history
  • Loading branch information
xz8la8 committed Mar 22, 2021
1 parent be23a7a commit 96724b2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 29 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Notify

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Notify for the Dingtalk group
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DINGTALK_GROUP_TOKEN }}
secret: ${{ secrets.DINGTALK_GROUP_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "${{github.event.release.tag_name}} released",
"text": "# [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) released:\n${{github.event.release.body}}"
}
}
26 changes: 0 additions & 26 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# sula (beta)

> Sula 当前还处于 beta 社区内测阶段,请不要直接在生产环境使用
> Sula 当前还处于 beta 社区内测阶段,建议在对内生产项目使用,对外生产项目暂时不要使用
## 旧文档地址

Expand Down
2 changes: 1 addition & 1 deletion packages/sula/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sula",
"version": "1.2.0-beta.35",
"version": "1.2.0-beta.36",
"module": "./es/index.js",
"main": "./es/index.js",
"types": "./es/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/sula/src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FormInstance } from '../form/Form';
import { TableInstance } from '../table/Table';
import { PopconfirmProps } from 'antd/lib/popconfirm';
import { TooltipProps } from 'antd/lib/tooltip';
import { RequestConfig } from './request';

export type PluginType = 'render' | 'field' | 'action' | 'dependency' | 'validator' | 'converter' | 'convertParams' | 'filter';

Expand Down Expand Up @@ -88,7 +89,7 @@ export type ActionPlugin = {
final?: ActionHookFunction;
finish?: ActionPlugin | ActionPlugin[];
[key: string]: any;
} | string | ActionPluginFunction;
} | string | ActionPluginFunction | Omit<RequestConfig, 'init'>;

// 注册插件
export type RenderImpl = (ctx: RenderCtx, config: RenderPlugin) => React.ReactElement
Expand Down

0 comments on commit 96724b2

Please sign in to comment.