@ccs-ui/rc-pro 2.2.6-beta-1 → 2.2.6-beta-3

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.
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
16
16
  export type DialogButtonRef = {
17
17
  onSetButtons: (e: React.ReactElement) => void;
18
18
  };
19
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onOk" | "onClose" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
19
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.2.6-beta-1",
3
+ "version": "2.2.6-beta-3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Hong"
8
8
  },
9
- "main": "plugin/index.js",
10
9
  "module": "es/index.js",
11
10
  "types": "es/index.d.ts",
12
11
  "files": [
13
- "es",
14
- "plugin"
12
+ "es"
15
13
  ],
16
14
  "scripts": {
17
15
  "build": "father build",
package/plugin/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: (api: any) => void;
2
- export default _default;
package/plugin/index.js DELETED
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/plugin/index.ts
20
- var plugin_exports = {};
21
- __export(plugin_exports, {
22
- default: () => plugin_default
23
- });
24
- module.exports = __toCommonJS(plugin_exports);
25
- var plugin_default = (api) => {
26
- api.addExtraBabelPlugins(() => [
27
- [
28
- "babel-plugin-import",
29
- {
30
- libraryName: "@ccs-ui/rc-pro",
31
- libraryDirectory: "es",
32
- style: true,
33
- camel2DashComponentName: false
34
- // 不将驼峰命名转换为短横线命名
35
- }
36
- ]
37
- ]);
38
- };