@nocobase/plugin-snapshot-field 0.10.0-alpha.4 → 0.10.0-alpha.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare type SnapshotOwnerCollectionFieldsSelectProps = Omit<SelectProps, 'options'>;
|
|
4
4
|
export declare const useSnapshotOwnerCollectionFields: () => any;
|
|
5
5
|
export declare const SnapshotOwnerCollectionFieldsSelect: React.FC<SnapshotOwnerCollectionFieldsSelectProps>;
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useSnapshotOwnerCollectionFields = exports.SnapshotOwnerCollectionFieldsSelect = void 0;
|
|
7
|
-
function
|
|
8
|
-
const data =
|
|
9
|
-
|
|
7
|
+
function _client() {
|
|
8
|
+
const data = require("@nocobase/client");
|
|
9
|
+
_client = function _client() {
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
@@ -18,14 +18,14 @@ function _antd() {
|
|
|
18
18
|
};
|
|
19
19
|
return data;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_client = function _client() {
|
|
21
|
+
function _react() {
|
|
22
|
+
const data = _interopRequireDefault(require("react"));
|
|
23
|
+
_react = function _react() {
|
|
25
24
|
return data;
|
|
26
25
|
};
|
|
27
26
|
return data;
|
|
28
27
|
}
|
|
28
|
+
var _interface = require("../interface");
|
|
29
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
30
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
31
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -50,6 +50,7 @@ exports.useSnapshotOwnerCollectionFields = useSnapshotOwnerCollectionFields;
|
|
|
50
50
|
const SnapshotOwnerCollectionFieldsSelect = props => {
|
|
51
51
|
const options = useSnapshotOwnerCollectionFields();
|
|
52
52
|
return _react().default.createElement(_antd().Select, _objectSpread({
|
|
53
|
+
dropdownMatchSelectWidth: false,
|
|
53
54
|
options: options
|
|
54
55
|
}, props));
|
|
55
56
|
};
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"displayName.zh-CN": "关系数据库快照",
|
|
5
5
|
"description": "provide fast and reliable database backup and recovery functionality for database systems.",
|
|
6
6
|
"description.zh-CN": "为数据库系统提供快速、可靠的数据库备份和恢复功能。。",
|
|
7
|
-
"version": "0.10.0-alpha.
|
|
7
|
+
"version": "0.10.0-alpha.5",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./lib/index.js",
|
|
10
10
|
"types": "./lib/index.d.ts",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@nocobase/server": "0.10.0-alpha.
|
|
13
|
-
"@nocobase/test": "0.10.0-alpha.
|
|
12
|
+
"@nocobase/server": "0.10.0-alpha.5",
|
|
13
|
+
"@nocobase/test": "0.10.0-alpha.5"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "1be8fcdad42688064460761cea22830cf392c7c0"
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useCollectionManager, useCompile } from '@nocobase/client';
|
|
2
2
|
import { Select, SelectProps } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { useTopRecord } from '../interface';
|
|
4
|
-
import { useCollectionManager, useCompile } from '@nocobase/client';
|
|
5
5
|
|
|
6
6
|
export type SnapshotOwnerCollectionFieldsSelectProps = Omit<SelectProps, 'options'>;
|
|
7
7
|
|
|
@@ -18,5 +18,5 @@ export const useSnapshotOwnerCollectionFields = () => {
|
|
|
18
18
|
|
|
19
19
|
export const SnapshotOwnerCollectionFieldsSelect: React.FC<SnapshotOwnerCollectionFieldsSelectProps> = (props) => {
|
|
20
20
|
const options = useSnapshotOwnerCollectionFields();
|
|
21
|
-
return <Select options={options} {...props} />;
|
|
21
|
+
return <Select dropdownMatchSelectWidth={false} options={options} {...props} />;
|
|
22
22
|
};
|