@brushes/component-core 1.0.3 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brushes/component-core",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "src/index.ts",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -100,7 +100,7 @@ export const IsShowContainer = ({
100
100
  return isRevert ? !condition : condition;
101
101
  }, [routerIsShow, routerIsShowValue, isRevert, store, storeKey, moduleShowValue, moduleIsShow, nValue, rootKey, rootStore, rnValue]);
102
102
 
103
- console.log('103===>', store, !isEmpty(store), (storeKey && !moduleShowValue && !moduleIsShow && !isUndefined(store) && !isEmpty(store)));
103
+ console.log('103===>', store, !isEmpty(store), storeKey && !moduleShowValue && !moduleIsShow && !isUndefined(store) && !isEmpty(store));
104
104
  if (conditionType || enabled) {
105
105
  return (
106
106
  <div
@@ -34,12 +34,12 @@ export const CodeComponent = ({ api = '/web/ml/muser/sendPhone.json', codeKey, h
34
34
  let params = {
35
35
  userPhone: loginName || userPhone || userinfoConPhone,
36
36
  code: verCode
37
- }
38
- if(codeKey) {
37
+ };
38
+ if (codeKey) {
39
39
  params = {
40
40
  userPhone: rest[codeKey],
41
41
  code: verCode
42
- }
42
+ };
43
43
  }
44
44
 
45
45
  get(api, params)
@@ -12,7 +12,7 @@ const useStyle = createStyles(({ token, css }, { height }: { height: number }) =
12
12
  `
13
13
  };
14
14
  });
15
- export const ImageCodeComponent = ({ api = '/web/ml/mlogin/getVerCode.img', codeKey, height = 40 }: { api?: string; codeKey?:string; height?: number }) => {
15
+ export const ImageCodeComponent = ({ api = '/web/ml/mlogin/getVerCode.img', codeKey, height = 40 }: { api?: string; codeKey?: string; height?: number }) => {
16
16
  const { styles } = useStyle({ height });
17
17
  const form = Form.useFormInstance();
18
18
  const isDisabled = form.getFieldValue('isDisabled');
@@ -31,8 +31,8 @@ export const ImageCodeComponent = ({ api = '/web/ml/mlogin/getVerCode.img', code
31
31
  const { loginName, userPhone, userinfoConPhone, ...rest } = getFieldsValue();
32
32
 
33
33
  let params = loginName || userPhone || userinfoConPhone;
34
- if(codeKey) {
35
- params = rest[codeKey]
34
+ if (codeKey) {
35
+ params = rest[codeKey];
36
36
  }
37
37
 
38
38
  fetch(`${api}?userPhone=${params}`)
@@ -1,3 +1,4 @@
1
+ //@ts-nocheck
1
2
  import { Collapse, Form } from 'antd';
2
3
  import { Fragment } from 'react';
3
4
  import { dynamicFormFields, useImmutableCallback } from '@brushes/form';
@@ -47,7 +47,7 @@ export type moduleType = {
47
47
  open?: boolean; //抽屉展示或掩藏
48
48
  defaultValue?: object; // 页面模块默认值
49
49
  goodNum?: number; // 选择商品数量
50
- _skuInfo?: { [v:string]:any }; // sku商品数据
50
+ _skuInfo?: { [v: string]: any }; // sku商品数据
51
51
  params?: object; //每个模块的请求参数
52
52
  breadList?: []; //面包屑
53
53
  };