fix(biz,meta): 修改大图组件,boxSelectTree组件
This commit is contained in:
parent
baab5ce1a0
commit
c1c90fc76f
@ -14,7 +14,6 @@
|
||||
],
|
||||
"scripts": {
|
||||
"add": "pnpm changeset add",
|
||||
"build": "pnpm --filter=@zhst/* run build",
|
||||
"build:master": "dumi build",
|
||||
"build:watch": "father dev",
|
||||
"dev": "dumi dev",
|
||||
|
@ -1,5 +1,27 @@
|
||||
# @zhst/biz
|
||||
|
||||
## 0.13.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/hooks@0.9.0
|
||||
- @zhst/func@0.10.0
|
||||
- @zhst/meta@0.12.0
|
||||
|
||||
## 0.12.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 修改盒子组件顺序
|
||||
- @zhst/func@0.9.3
|
||||
- @zhst/hooks@0.8.12
|
||||
- @zhst/meta@0.11.1
|
||||
|
||||
## 0.12.1
|
||||
|
||||
### Patch Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/biz",
|
||||
"version": "0.12.1",
|
||||
"version": "0.13.0",
|
||||
"description": "业务库",
|
||||
"keywords": [
|
||||
"business",
|
||||
|
@ -33,7 +33,7 @@ const BoxSelectTree: FC<BoxSelectTreeProps> = (props) => {
|
||||
const items: TabsProps['items'] = [
|
||||
{
|
||||
key: '1',
|
||||
label: <div style={{ textAlign:'center', width: '160px' }} >盒子组</div>,
|
||||
label: <div style={{ textAlign:'center', width: '160px' }} >盒子</div>,
|
||||
children: (
|
||||
<BoxPanel
|
||||
searchInputProps={searchInputProps}
|
||||
@ -57,16 +57,16 @@ const BoxSelectTree: FC<BoxSelectTreeProps> = (props) => {
|
||||
},
|
||||
{
|
||||
key: '2',
|
||||
label: <div style={{ textAlign:'center', width: '160px' }} >盒子</div>,
|
||||
label: <div style={{ textAlign:'center', width: '160px' }} >盒子组</div>,
|
||||
children: (
|
||||
<BoxPanel
|
||||
boxDataSource={boxDataSource}
|
||||
searchInputProps={searchInputProps}
|
||||
boxDataSource={boxDataSource}
|
||||
treeProps={treeProps}
|
||||
data={data}
|
||||
onCreate={onCreate}
|
||||
onBoxBatchDelete={onBoxBatchDelete}
|
||||
onCreateSubmit={onCreateSubmit}
|
||||
onBoxBatchDelete={onBoxBatchDelete}
|
||||
onBoxDelete={onBoxDelete}
|
||||
onSearch={onSearch}
|
||||
onItemCheck={onItemCheck}
|
||||
|
@ -1,5 +1,23 @@
|
||||
# @zhst/utils
|
||||
|
||||
## 0.10.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/request@0.10.0
|
||||
|
||||
## 0.9.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/request@0.9.2
|
||||
|
||||
## 0.9.2
|
||||
|
||||
### Patch Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/func",
|
||||
"version": "0.9.2",
|
||||
"version": "0.10.0",
|
||||
"description": "函数合集",
|
||||
"keywords": [
|
||||
"hooks"
|
||||
|
@ -1,5 +1,22 @@
|
||||
# @zhst/hooks
|
||||
|
||||
## 0.9.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/func@0.10.0
|
||||
|
||||
## 0.8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @zhst/func@0.9.3
|
||||
|
||||
## 0.8.11
|
||||
|
||||
### Patch Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/hooks",
|
||||
"version": "0.8.11",
|
||||
"version": "0.9.0",
|
||||
"description": "hooks合集",
|
||||
"keywords": [
|
||||
"hooks"
|
||||
|
@ -1,5 +1,29 @@
|
||||
# @zhst/material
|
||||
|
||||
## 0.9.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/hooks@0.9.0
|
||||
- @zhst/func@0.10.0
|
||||
- @zhst/meta@0.12.0
|
||||
- @zhst/biz@0.13.0
|
||||
|
||||
## 0.8.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/biz@0.12.2
|
||||
- @zhst/func@0.9.3
|
||||
- @zhst/hooks@0.8.12
|
||||
- @zhst/meta@0.11.1
|
||||
|
||||
## 0.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
@ -25,7 +25,7 @@ var AlgorithmTable = function AlgorithmTable(props) {
|
||||
var _useToken = useToken(),
|
||||
token = _useToken.token;
|
||||
var columns = [{
|
||||
title: '模板名称',
|
||||
title: '算法名称',
|
||||
dataIndex: 'templateName'
|
||||
}, {
|
||||
title: '运行周期',
|
||||
|
@ -54,7 +54,7 @@ var AlgorithmTable = (props) => {
|
||||
const { token } = useToken();
|
||||
const columns = [
|
||||
{
|
||||
title: "模板名称",
|
||||
title: "算法名称",
|
||||
dataIndex: "templateName"
|
||||
},
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/material",
|
||||
"version": "0.8.0",
|
||||
"version": "0.9.0",
|
||||
"description": "物料库",
|
||||
"keywords": [
|
||||
"business",
|
||||
|
@ -46,7 +46,7 @@ const AlgorithmTable= <DataSource extends AnyObject = AnyObject>(
|
||||
|
||||
const columns: ProColumns<DataSource>[] = [
|
||||
{
|
||||
title: '模板名称',
|
||||
title: '算法名称',
|
||||
dataIndex: 'templateName',
|
||||
},
|
||||
{
|
||||
|
@ -1,5 +1,26 @@
|
||||
# @zhst/utils
|
||||
|
||||
## 0.12.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/hooks@0.9.0
|
||||
- @zhst/func@0.10.0
|
||||
- @zhst/meta@0.12.0
|
||||
|
||||
## 0.11.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @zhst/func@0.9.3
|
||||
- @zhst/hooks@0.8.12
|
||||
- @zhst/meta@0.11.1
|
||||
|
||||
## 0.11.0
|
||||
|
||||
### Minor Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/meta",
|
||||
"version": "0.11.0",
|
||||
"version": "0.12.0",
|
||||
"description": "原子组件",
|
||||
"keywords": [
|
||||
"meta",
|
||||
|
@ -1,5 +1,23 @@
|
||||
# @zhst/request
|
||||
|
||||
## 0.10.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/func@0.10.0
|
||||
|
||||
## 0.9.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 修改盒子组件顺序
|
||||
- @zhst/func@0.9.3
|
||||
|
||||
## 0.9.1
|
||||
|
||||
### Patch Changes
|
||||
|
2
packages/request/es/index.d.ts
vendored
2
packages/request/es/index.d.ts
vendored
@ -7,6 +7,7 @@ export interface ReqConfigProps {
|
||||
};
|
||||
authorization?: string;
|
||||
showMsg?: boolean;
|
||||
onError: (error?: any) => void;
|
||||
}
|
||||
export declare const reqConfig: (config: ReqConfigProps) => {
|
||||
timeout: number;
|
||||
@ -17,6 +18,7 @@ export declare const reqConfig: (config: ReqConfigProps) => {
|
||||
};
|
||||
authorization?: string | undefined;
|
||||
showMsg?: boolean | undefined;
|
||||
onError: (error?: any) => void;
|
||||
requestInterceptors: (((url: any, options: any) => {
|
||||
url: any;
|
||||
options: any;
|
||||
|
@ -8,15 +8,19 @@ import { message } from 'antd';
|
||||
export var reqConfig = function reqConfig(config) {
|
||||
var _ref = config || {},
|
||||
authorization = _ref.authorization,
|
||||
showMsg = _ref.showMsg;
|
||||
showMsg = _ref.showMsg,
|
||||
onError = _ref.onError;
|
||||
return _objectSpread({
|
||||
timeout: 1000,
|
||||
baseURL: location.origin,
|
||||
// other axios options you want
|
||||
errorConfig: {
|
||||
// @ts-ignore
|
||||
errorHandler: function errorHandler(error, opts) {
|
||||
console.log('first', error, opts);
|
||||
if ([403, 401].includes(error.request.status)) {
|
||||
message.error('登录过期,请重新登录');
|
||||
onError === null || onError === void 0 || onError(error);
|
||||
return;
|
||||
}
|
||||
// if (opts?.skipErrorHandler) throw error
|
||||
// try {
|
||||
// const { res } = ctx;
|
||||
@ -53,7 +57,7 @@ export var reqConfig = function reqConfig(config) {
|
||||
},
|
||||
// @ts-ignore
|
||||
errorThrower: function errorThrower(res) {
|
||||
console.log('res', res);
|
||||
console.log('报错啦:', res);
|
||||
}
|
||||
},
|
||||
// 请求
|
||||
|
2
packages/request/lib/index.d.ts
vendored
2
packages/request/lib/index.d.ts
vendored
@ -7,6 +7,7 @@ export interface ReqConfigProps {
|
||||
};
|
||||
authorization?: string;
|
||||
showMsg?: boolean;
|
||||
onError: (error?: any) => void;
|
||||
}
|
||||
export declare const reqConfig: (config: ReqConfigProps) => {
|
||||
timeout: number;
|
||||
@ -17,6 +18,7 @@ export declare const reqConfig: (config: ReqConfigProps) => {
|
||||
};
|
||||
authorization?: string | undefined;
|
||||
showMsg?: boolean | undefined;
|
||||
onError: (error?: any) => void;
|
||||
requestInterceptors: (((url: any, options: any) => {
|
||||
url: any;
|
||||
options: any;
|
||||
|
@ -26,20 +26,24 @@ var import_antd = require("antd");
|
||||
var reqConfig = (config) => {
|
||||
const {
|
||||
authorization,
|
||||
showMsg
|
||||
showMsg,
|
||||
onError
|
||||
} = config || {};
|
||||
return {
|
||||
timeout: 1e3,
|
||||
baseURL: location.origin,
|
||||
// other axios options you want
|
||||
errorConfig: {
|
||||
// @ts-ignore
|
||||
errorHandler(error, opts) {
|
||||
console.log("first", error, opts);
|
||||
if ([403, 401].includes(error.request.status)) {
|
||||
import_antd.message.error("登录过期,请重新登录");
|
||||
onError == null ? void 0 : onError(error);
|
||||
return;
|
||||
}
|
||||
},
|
||||
// @ts-ignore
|
||||
errorThrower(res) {
|
||||
console.log("res", res);
|
||||
console.log("报错啦:", res);
|
||||
}
|
||||
},
|
||||
// 请求
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/request",
|
||||
"version": "0.9.1",
|
||||
"version": "0.10.0",
|
||||
"description": "请求库",
|
||||
"keywords": [
|
||||
"request",
|
||||
|
@ -9,22 +9,27 @@ export interface ReqConfigProps {
|
||||
}
|
||||
authorization?: string
|
||||
showMsg?: boolean
|
||||
onError: (error?: any) => void
|
||||
}
|
||||
|
||||
export const reqConfig = (config: ReqConfigProps) => {
|
||||
const {
|
||||
authorization,
|
||||
showMsg
|
||||
showMsg,
|
||||
onError,
|
||||
} = config || {}
|
||||
|
||||
return {
|
||||
timeout: 1000,
|
||||
baseURL: location.origin,
|
||||
// other axios options you want
|
||||
errorConfig: {
|
||||
// @ts-ignore
|
||||
errorHandler(error: any, opts: any) {
|
||||
console.log('first', error, opts);
|
||||
if ([403,401].includes(error.request.status)) {
|
||||
message.error('登录过期,请重新登录')
|
||||
onError?.(error)
|
||||
return
|
||||
}
|
||||
// if (opts?.skipErrorHandler) throw error
|
||||
// try {
|
||||
// const { res } = ctx;
|
||||
@ -61,7 +66,7 @@ export const reqConfig = (config: ReqConfigProps) => {
|
||||
},
|
||||
// @ts-ignore
|
||||
errorThrower(res) {
|
||||
console.log('res', res);
|
||||
console.log('报错啦:', res);
|
||||
},
|
||||
},
|
||||
// 请求
|
||||
|
@ -1,5 +1,22 @@
|
||||
# @zhst/slave
|
||||
|
||||
## 0.6.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 修改业务组件的 boxSelectTree
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/func@0.10.0
|
||||
|
||||
## 0.5.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @zhst/func@0.9.3
|
||||
|
||||
## 0.5.1
|
||||
|
||||
### Patch Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/slave",
|
||||
"version": "0.5.1",
|
||||
"version": "0.6.0",
|
||||
"description": "微前端子应用方法库",
|
||||
"keywords": [
|
||||
"slave",
|
||||
|
Loading…
Reference in New Issue
Block a user