@tachybase/client 1.5.1 → 1.6.1
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.
- package/es/application/PluginManager.mjs +9 -1
- package/es/application/WebSocketClient.d.ts +19 -0
- package/es/application/WebSocketClient.mjs +26 -6
- package/es/application/utils/remotePlugins.mjs +8 -2
- package/es/built-in/attachment-preview/previewers/file-sheet.mjs +1 -1
- package/es/built-in/pm/PluginDetail.mjs +1 -1
- package/es/collection-manager/Configuration/components/index.mjs +3 -3
- package/es/collection-manager/interfaces/components/index.mjs +2 -2
- package/es/collection-manager/interfaces/properties/operators.mjs +3 -3
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useOptimizedMemo.d.ts +25 -0
- package/es/hooks/useOptimizedMemo.mjs +30 -0
- package/es/locale/index.mjs +47 -47
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +4 -1
- package/es/schema-component/antd/AntdSchemaComponentProvider.mjs +3 -1
- package/es/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +1 -1
- package/es/schema-component/antd/action/Action.Area.style.mjs +1 -1
- package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +3 -2
- package/es/schema-component/antd/action/hooks/useCompiledAction.d.ts +7 -0
- package/es/schema-component/antd/action/hooks/useCompiledAction.mjs +35 -0
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +14 -4
- package/es/schema-component/antd/association-field/AssociationSelect.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/styles.mjs +1 -1
- package/es/schema-component/antd/block-item/BlockToolbar.mjs +16 -16
- package/es/schema-component/antd/grid-card/options.mjs +3 -3
- package/es/schema-component/antd/input/ReadPretty.mjs +1 -3
- package/es/schema-component/antd/menu/Menu.styles.mjs +1 -1
- package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +1 -1
- package/es/schema-component/antd/page/Page.mjs +3 -0
- package/es/schema-component/antd/page/Page.style.mjs +1 -1
- package/es/schema-component/antd/table/Table.Array.mjs +1 -0
- package/es/schema-component/antd/table/Table.Column.Designer.mjs +5 -5
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +4 -4
- package/es/schema-component/antd/table-v2/EnabledToggle.d.ts +9 -0
- package/es/schema-component/antd/table-v2/EnabledToggle.mjs +72 -0
- package/es/schema-component/antd/table-v2/Table.styles.mjs +1 -1
- package/es/schema-component/antd/table-v2/index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/index.mjs +1 -0
- package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
- package/es/schema-component/common/sortable-item/DragHandleMenu.style.mjs +1 -1
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.mjs +1 -1
- package/es/schema-templates/BlockTemplateDetails.mjs +1 -1
- package/es/user/ChangePassword.mjs +1 -1
- package/lib/application/PluginManager.js +9 -1
- package/lib/application/WebSocketClient.js +26 -6
- package/lib/application/utils/remotePlugins.js +8 -2
- package/lib/built-in/attachment-preview/previewers/file-sheet.js +1 -1
- package/lib/built-in/pm/PluginDetail.js +1 -1
- package/lib/collection-manager/Configuration/components/index.js +3 -3
- package/lib/collection-manager/interfaces/components/index.js +2 -2
- package/lib/collection-manager/interfaces/properties/operators.js +3 -3
- package/lib/hooks/index.js +12 -3
- package/lib/hooks/useOptimizedMemo.js +74 -0
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/es_ES.js +1 -0
- package/lib/locale/fr_FR.js +1 -0
- package/lib/locale/ko_KR.js +1 -0
- package/lib/locale/pt_BR.js +1 -0
- package/lib/locale/uk_UA.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +4 -1
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +3 -1
- package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.js +1 -1
- package/lib/schema-component/antd/action/Action.Area.style.js +1 -1
- package/lib/schema-component/antd/action/Action.Designer.js +1 -1
- package/lib/schema-component/antd/action/Action.js +3 -2
- package/lib/schema-component/antd/action/hooks/useCompiledAction.js +69 -0
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.js +14 -4
- package/lib/schema-component/antd/association-field/AssociationSelect.js +1 -1
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +1 -1
- package/lib/schema-component/antd/association-field/SubTabs/styles.js +1 -1
- package/lib/schema-component/antd/block-item/BlockToolbar.js +16 -16
- package/lib/schema-component/antd/grid-card/options.js +3 -3
- package/lib/schema-component/antd/input/ReadPretty.js +1 -3
- package/lib/schema-component/antd/menu/Menu.styles.js +1 -1
- package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +1 -1
- package/lib/schema-component/antd/page/Page.js +3 -0
- package/lib/schema-component/antd/page/Page.style.js +1 -1
- package/lib/schema-component/antd/table/Table.Array.js +1 -0
- package/lib/schema-component/antd/table/Table.Column.Designer.js +5 -5
- package/lib/schema-component/antd/table/Table.Void.Designer.js +4 -4
- package/lib/schema-component/antd/table-v2/EnabledToggle.js +106 -0
- package/lib/schema-component/antd/table-v2/Table.styles.js +1 -1
- package/lib/schema-component/antd/table-v2/index.js +13 -0
- package/lib/schema-component/antd/variable/CodeMirror.js +1 -1
- package/lib/schema-component/common/sortable-item/DragHandleMenu.style.js +1 -1
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.style.js +1 -1
- package/lib/schema-templates/BlockTemplateDetails.js +1 -1
- package/lib/user/ChangePassword.js +1 -1
- package/package.json +4 -4
|
@@ -37,7 +37,7 @@ function _tagged_template_literal(strings, raw) {
|
|
|
37
37
|
}
|
|
38
38
|
function _templateObject() {
|
|
39
39
|
const data = _tagged_template_literal([
|
|
40
|
-
"\n .ant-tabs-nav-wrap.ant-tabs-nav-wrap {\n flex: none;\n }\n .ant-tabs-tab.ant-tabs-tab.ant-tabs-tab {\n
|
|
40
|
+
"\n .ant-tabs-nav-wrap.ant-tabs-nav-wrap {\n flex: none;\n }\n .ant-tabs-tab.ant-tabs-tab.ant-tabs-tab {\n border: none;\n background-color: #ffffff;\n }\n\n .ant-tabs-tab-active.ant-tabs-tab-active.ant-tabs-tab-active.ant-tabs-tab-active {\n border-radius: 8px 8px 0 0;\n box-shadow: none;\n text-shadow: none;\n background-color: var(--tb-box-bg);\n }\n .ant-tabs-extra-content {\n flex: 1;\n }\n "
|
|
41
41
|
]);
|
|
42
42
|
_templateObject = function() {
|
|
43
43
|
return data;
|
|
@@ -71,9 +71,9 @@ const TableColumnDesigner = (props)=>{
|
|
|
71
71
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_schema_settings_index_js_namespaceObject.GeneralSchemaDesigner, {
|
|
72
72
|
children: [
|
|
73
73
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsPopupItem, {
|
|
74
|
-
title:
|
|
74
|
+
title: '编辑',
|
|
75
75
|
schema: {
|
|
76
|
-
title:
|
|
76
|
+
title: '编辑字段',
|
|
77
77
|
'x-component': 'Action.Modal',
|
|
78
78
|
'x-component-props': {
|
|
79
79
|
width: 520
|
|
@@ -87,9 +87,9 @@ const TableColumnDesigner = (props)=>{
|
|
|
87
87
|
title: {
|
|
88
88
|
'x-decorator': 'FormItem',
|
|
89
89
|
'x-component': 'Input',
|
|
90
|
-
title:
|
|
90
|
+
title: '字段标题',
|
|
91
91
|
'x-component-props': {},
|
|
92
|
-
description: "
|
|
92
|
+
description: "原字段标题:".concat(null == collectionField ? void 0 : null == (_collectionField_uiSchema = collectionField.uiSchema) ? void 0 : _collectionField_uiSchema.title)
|
|
93
93
|
},
|
|
94
94
|
footer: {
|
|
95
95
|
type: 'void',
|
|
@@ -145,7 +145,7 @@ const TableColumnDesigner = (props)=>{
|
|
|
145
145
|
}
|
|
146
146
|
}),
|
|
147
147
|
(null == collectionField ? void 0 : collectionField.target) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
|
|
148
|
-
title:
|
|
148
|
+
title: '标题字段',
|
|
149
149
|
options: options,
|
|
150
150
|
value: null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops['fieldNames']) ? void 0 : _fieldSchema_xcomponentprops_fieldNames['label'],
|
|
151
151
|
onChange: (label)=>{
|
|
@@ -80,14 +80,14 @@ const TableVoidDesigner = ()=>{
|
|
|
80
80
|
}
|
|
81
81
|
}),
|
|
82
82
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
83
|
-
title:
|
|
83
|
+
title: '设置数据范围',
|
|
84
84
|
schema: {
|
|
85
85
|
type: 'object',
|
|
86
|
-
title:
|
|
86
|
+
title: '设置数据范围',
|
|
87
87
|
properties: {
|
|
88
88
|
filter: {
|
|
89
89
|
default: defaultFilter,
|
|
90
|
-
title:
|
|
90
|
+
title: '数据范围',
|
|
91
91
|
enum: dataSource,
|
|
92
92
|
'x-component': 'Filter',
|
|
93
93
|
'x-component-props': {}
|
|
@@ -210,7 +210,7 @@ const TableVoidDesigner = ()=>{
|
|
|
210
210
|
}
|
|
211
211
|
}),
|
|
212
212
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
|
|
213
|
-
title:
|
|
213
|
+
title: '每页显示',
|
|
214
214
|
value: (null == (_field_decoratorProps_request_params = field.decoratorProps.request.params) ? void 0 : _field_decoratorProps_request_params.pageSize) || 20,
|
|
215
215
|
options: [
|
|
216
216
|
{
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
EnabledToggle: ()=>EnabledToggle
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
require("react");
|
|
31
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
32
|
+
const external_antd_namespaceObject = require("antd");
|
|
33
|
+
const external_antd_style_namespaceObject = require("antd-style");
|
|
34
|
+
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
35
|
+
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
36
|
+
const CollectionRecordProvider_js_namespaceObject = require("../../../data-source/collection-record/CollectionRecordProvider.js");
|
|
37
|
+
const DataBlockRequestProvider_js_namespaceObject = require("../../../data-source/data-block/DataBlockRequestProvider.js");
|
|
38
|
+
function _tagged_template_literal(strings, raw) {
|
|
39
|
+
if (!raw) raw = strings.slice(0);
|
|
40
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
41
|
+
raw: {
|
|
42
|
+
value: Object.freeze(raw)
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
function _templateObject() {
|
|
47
|
+
const data = _tagged_template_literal([
|
|
48
|
+
"\n &.ant-switch-checked {\n background-color: #52c41a !important;\n }\n min-height: 16px;\n height: 16px;\n line-height: 16px;\n "
|
|
49
|
+
]);
|
|
50
|
+
_templateObject = function() {
|
|
51
|
+
return data;
|
|
52
|
+
};
|
|
53
|
+
return data;
|
|
54
|
+
}
|
|
55
|
+
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
56
|
+
let { css } = param;
|
|
57
|
+
return {
|
|
58
|
+
switchClass: css(_templateObject())
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
const EnabledToggle = (0, schema_namespaceObject.observer)(function() {
|
|
62
|
+
let props = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
63
|
+
const { styles } = useStyles();
|
|
64
|
+
const record = (0, CollectionRecordProvider_js_namespaceObject.useCollectionRecordData)();
|
|
65
|
+
const api = (0, index_js_namespaceObject.useAPIClient)();
|
|
66
|
+
const { refresh } = (0, DataBlockRequestProvider_js_namespaceObject.useDataBlockRequest)();
|
|
67
|
+
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
68
|
+
const fieldName = props.fieldName || 'enabled';
|
|
69
|
+
var _record_fieldName;
|
|
70
|
+
const enabled = null != (_record_fieldName = null == record ? void 0 : record[fieldName]) ? _record_fieldName : false;
|
|
71
|
+
const resourceName = props.resource || 'workflows';
|
|
72
|
+
const checkedChildren = props.checkedChildren || t('On');
|
|
73
|
+
const unCheckedChildren = props.unCheckedChildren || t('Off');
|
|
74
|
+
const handleChange = async (checked)=>{
|
|
75
|
+
if (props.disabled) return;
|
|
76
|
+
try {
|
|
77
|
+
await api.resource(resourceName).update({
|
|
78
|
+
filterByTk: record.id,
|
|
79
|
+
values: {
|
|
80
|
+
[fieldName]: checked
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
external_antd_namespaceObject.message.success(t('Operation succeeded'));
|
|
84
|
+
refresh();
|
|
85
|
+
} catch (error) {
|
|
86
|
+
external_antd_namespaceObject.message.error(t('Operation failed'));
|
|
87
|
+
console.error(error);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Switch, {
|
|
91
|
+
checked: enabled,
|
|
92
|
+
onChange: handleChange,
|
|
93
|
+
checkedChildren: checkedChildren,
|
|
94
|
+
unCheckedChildren: unCheckedChildren,
|
|
95
|
+
size: "small",
|
|
96
|
+
className: styles.switchClass,
|
|
97
|
+
disabled: props.disabled
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
exports.EnabledToggle = __webpack_exports__.EnabledToggle;
|
|
101
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
102
|
+
"EnabledToggle"
|
|
103
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
104
|
+
Object.defineProperty(exports, '__esModule', {
|
|
105
|
+
value: true
|
|
106
|
+
});
|
|
@@ -47,7 +47,7 @@ function _templateObject() {
|
|
|
47
47
|
}
|
|
48
48
|
function _templateObject1() {
|
|
49
49
|
const data = _tagged_template_literal([
|
|
50
|
-
"\n //
|
|
50
|
+
"\n // 扩大 SchemaToolbar 的面积\n .tb-action-link {\n margin: -",
|
|
51
51
|
"px -",
|
|
52
52
|
"px;\n padding: ",
|
|
53
53
|
"px ",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
+
"./EnabledToggle": function(module) {
|
|
4
|
+
module.exports = require("./EnabledToggle.js");
|
|
5
|
+
},
|
|
3
6
|
"./Table.ActionColumnDesigner": function(module) {
|
|
4
7
|
module.exports = require("./Table.ActionColumnDesigner.js");
|
|
5
8
|
},
|
|
@@ -128,6 +131,16 @@ var __webpack_exports__ = {};
|
|
|
128
131
|
return _Table_Column_Designer__WEBPACK_IMPORTED_MODULE_5__[key];
|
|
129
132
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
130
133
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
134
|
+
var _EnabledToggle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./EnabledToggle");
|
|
135
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
136
|
+
for(var __WEBPACK_IMPORT_KEY__ in _EnabledToggle__WEBPACK_IMPORTED_MODULE_11__)if ([
|
|
137
|
+
"TableV2",
|
|
138
|
+
"useColumnSchema",
|
|
139
|
+
"default"
|
|
140
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
141
|
+
return _EnabledToggle__WEBPACK_IMPORTED_MODULE_11__[key];
|
|
142
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
143
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
131
144
|
const TableV2 = _Table__WEBPACK_IMPORTED_MODULE_0__.Table;
|
|
132
145
|
TableV2.Column = _Table_Column__WEBPACK_IMPORTED_MODULE_2__.TableColumn;
|
|
133
146
|
TableV2.Column.ActionBar = _Table_Column_ActionBar__WEBPACK_IMPORTED_MODULE_3__.TableColumnActionBar;
|
|
@@ -102,7 +102,7 @@ const CodeMirror = (props)=>{
|
|
|
102
102
|
children: [
|
|
103
103
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
104
104
|
className: (0, external_index_js_namespaceObject.css)(_templateObject1()),
|
|
105
|
-
children: t(
|
|
105
|
+
children: t('Click on the right to select variables →')
|
|
106
106
|
}),
|
|
107
107
|
disabled ? null : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_VariableSelect_js_namespaceObject.VariableSelect, {
|
|
108
108
|
className: (0, external_index_js_namespaceObject.css)(_templateObject2()),
|
|
@@ -37,7 +37,7 @@ function _tagged_template_literal(strings, raw) {
|
|
|
37
37
|
}
|
|
38
38
|
function _templateObject() {
|
|
39
39
|
const data = _tagged_template_literal([
|
|
40
|
-
"\n position: relative;\n width: 100%;\n height: 100%;\n\n &.draggable {\n cursor: move;\n padding: 0 10px;\n border-radius: 5px;\n background: #f0f0f0;\n }\n &.leftBorder {\n ::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 50%;\n background-color: var(--colorPrimaryText);\n\n /*
|
|
40
|
+
"\n position: relative;\n width: 100%;\n height: 100%;\n\n &.draggable {\n cursor: move;\n padding: 0 10px;\n border-radius: 5px;\n background: #f0f0f0;\n }\n &.leftBorder {\n ::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 50%;\n background-color: var(--colorPrimaryText);\n\n /* 使用 clip-path 裁剪为梯形 */\n clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);\n }\n }\n\n &.adminMenu {\n .general-schema-designer {\n display: none;\n }\n }\n\n .wrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n }\n "
|
|
41
41
|
]);
|
|
42
42
|
_templateObject = function() {
|
|
43
43
|
return data;
|
|
@@ -37,7 +37,7 @@ function _tagged_template_literal(strings, raw) {
|
|
|
37
37
|
}
|
|
38
38
|
function _templateObject() {
|
|
39
39
|
const data = _tagged_template_literal([
|
|
40
|
-
"\n position: relative;\n width: 100%;\n height: 100%;\n
|
|
40
|
+
"\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: 8px 8px 0 0;\n &.draggable {\n cursor: move;\n padding: 0 10px;\n border-radius: 5px;\n background: #f0f0f0;\n }\n "
|
|
41
41
|
]);
|
|
42
42
|
_templateObject = function() {
|
|
43
43
|
return data;
|
|
@@ -153,7 +153,7 @@ const schema = {
|
|
|
153
153
|
],
|
|
154
154
|
fulfill: {
|
|
155
155
|
state: {
|
|
156
|
-
hidden: "{{\n !$deps[1] ||\n !smsVerifyEnabled ||\n ($deps[0] !== 'code' && $deps[0] !== undefined) //
|
|
156
|
+
hidden: "{{\n !$deps[1] ||\n !smsVerifyEnabled ||\n ($deps[0] !== 'code' && $deps[0] !== undefined) // 有 verifyMethod 但未选 code\n }}"
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
10
10
|
"@ant-design/cssinjs": "^1.24.0",
|
|
11
|
-
"@ant-design/icons": "^
|
|
11
|
+
"@ant-design/icons": "^6.1.0",
|
|
12
12
|
"@ant-design/pro-components": "2.8.9",
|
|
13
13
|
"@ant-design/pro-layout": "^7.21.2",
|
|
14
14
|
"@ctrl/tinycolor": "^4.2.0",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@floating-ui/react": "0.26.28",
|
|
22
22
|
"@js-preview/excel": "^1.7.14",
|
|
23
23
|
"@lottiefiles/dotlottie-react": "^0.9.3",
|
|
24
|
-
"@tachybase/schema": "1.
|
|
25
|
-
"@tego/client": "1.
|
|
24
|
+
"@tachybase/schema": "1.6.0-alpha.9",
|
|
25
|
+
"@tego/client": "1.6.0-alpha.9",
|
|
26
26
|
"ahooks": "^3.9.0",
|
|
27
27
|
"antd": "5.22.5",
|
|
28
28
|
"antd-style": "3.7.1",
|