@bit-sun/business-component 2.2.13 → 2.2.15
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/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/AddSelectBusiness/index.d.ts +1 -0
- package/dist/components/Business/BsLayouts/utils.d.ts +0 -4
- package/dist/index.esm.js +329 -44
- package/dist/index.js +329 -43
- package/dist/utils/LocalstorageUtils.d.ts +9 -1
- package/dist/utils/index.d.ts +1 -0
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +77 -77
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/components/Business/AddSelectBusiness/index.md +129 -93
- package/src/components/Business/AddSelectBusiness/index.tsx +835 -601
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -156
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1479 -1479
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -226
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +538 -538
- package/src/components/Business/BsSulaQueryTable/index.less +219 -219
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -201
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +320 -320
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +356 -356
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1723 -1723
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1310 -1310
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +126 -126
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +508 -508
- package/src/components/Business/moreTreeTable/index.tsx +315 -315
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1199 -1165
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +766 -766
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +813 -813
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +160 -160
- package/src/index.ts +34 -34
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -58
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +3 -2
- package/src/utils/requestUtils.ts +34 -36
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +183 -183
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ var ENUM = {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
58
59
|
// 存储表头
|
|
59
60
|
var setConfigTableColumns = function setConfigTableColumns(configvalue, tableCode) {
|
|
60
61
|
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
@@ -86,10 +87,42 @@ var getConfigTableColumns = function getConfigTableColumns(tableCode) {
|
|
|
86
87
|
return [];
|
|
87
88
|
};
|
|
88
89
|
var getCurrentTenantId = function getCurrentTenantId() {
|
|
89
|
-
return localStorage.getItem('current_tenant_id') ||
|
|
90
|
+
return localStorage.getItem('current_tenant_id') || 1;
|
|
90
91
|
};
|
|
92
|
+
function getEmployeeId() {
|
|
93
|
+
var _resposne$employeeRes;
|
|
94
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
95
|
+
}
|
|
96
|
+
function getEmployeeCode() {
|
|
97
|
+
var _resposne$employeeRes2;
|
|
98
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes2 = resposne.employeeResVo) === null || _resposne$employeeRes2 === void 0 ? void 0 : _resposne$employeeRes2.employeeNumber;
|
|
99
|
+
}
|
|
100
|
+
function getSessionId() {
|
|
101
|
+
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
102
|
+
}
|
|
103
|
+
function getAccountId() {
|
|
104
|
+
var _resposne$accountPers;
|
|
105
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
|
|
106
|
+
}
|
|
107
|
+
function getUserId() {
|
|
108
|
+
var _resposne$accountPers2;
|
|
109
|
+
return (_resposne$accountPers2 = resposne.accountPersonDetail) === null || _resposne$accountPers2 === void 0 ? void 0 : _resposne$accountPers2.username;
|
|
110
|
+
}
|
|
111
|
+
function getAccountID() {
|
|
112
|
+
var _resposne$accountPers3;
|
|
113
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers3 = resposne.accountPersonDetail) === null || _resposne$accountPers3 === void 0 ? void 0 : _resposne$accountPers3.id;
|
|
114
|
+
}
|
|
115
|
+
function getUserName() {
|
|
116
|
+
var _resposne$accountPers4;
|
|
117
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers4 = resposne.accountPersonDetail) === null || _resposne$accountPers4 === void 0 ? void 0 : _resposne$accountPers4.employeeName;
|
|
118
|
+
}
|
|
119
|
+
function handleUserPhone() {
|
|
120
|
+
var _resposne$person;
|
|
121
|
+
var str = (resposne === null || resposne === void 0 ? void 0 : (_resposne$person = resposne.person) === null || _resposne$person === void 0 ? void 0 : _resposne$person.phone) || '';
|
|
122
|
+
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
123
|
+
return enStr;
|
|
124
|
+
}
|
|
91
125
|
|
|
92
|
-
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
93
126
|
function handleRequestAuthHeader(config) {
|
|
94
127
|
var _config$url, _config$url2;
|
|
95
128
|
// https://www.kdocs.cn/l/coNbPpjamr5v这个表格里面涉及的接口,接口请求头里需要添加参数:x-biz-code 值就是列表里的code
|
|
@@ -105,11 +138,10 @@ function handleRequestAuthHeader(config) {
|
|
|
105
138
|
}
|
|
106
139
|
// 处理请求头
|
|
107
140
|
var handleRequestHeader = function handleRequestHeader(config) {
|
|
108
|
-
|
|
109
|
-
config.headers['
|
|
110
|
-
config.headers['x-
|
|
111
|
-
config.headers['x-
|
|
112
|
-
config.headers['x-tenant-id'] = getCurrentTenantId() || 1;
|
|
141
|
+
config.headers['sso-sessionid'] = getSessionId();
|
|
142
|
+
config.headers['x-account-id'] = getAccountId();
|
|
143
|
+
config.headers['x-employee-id'] = getEmployeeId();
|
|
144
|
+
config.headers['x-tenant-id'] = getCurrentTenantId();
|
|
113
145
|
if (localStorage.getItem('x-user-auth-context')) {
|
|
114
146
|
config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
115
147
|
}
|
|
@@ -9890,6 +9922,11 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
9890
9922
|
}) || [];
|
|
9891
9923
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9892
9924
|
};
|
|
9925
|
+
var initTableCode = {
|
|
9926
|
+
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
9927
|
+
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
9928
|
+
'spu': [['spuSelect-tableOptionsToChoosePartCode', 'spuSelect-tableSelectedItemPartCode']]
|
|
9929
|
+
};
|
|
9893
9930
|
var Option$1 = antd.Select.Option;
|
|
9894
9931
|
var AddSelect = function AddSelect(props) {
|
|
9895
9932
|
var value = props.value,
|
|
@@ -10068,8 +10105,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
10068
10105
|
_useState46 = _slicedToArray(_useState45, 2),
|
|
10069
10106
|
showToChooseColumns = _useState46[0],
|
|
10070
10107
|
setShowToChooseColumns = _useState46[1];
|
|
10071
|
-
var codeToChoose = tableCodeList[0] ||
|
|
10072
|
-
var codeSelected = tableCodeList[1] ||
|
|
10108
|
+
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
10109
|
+
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
10073
10110
|
React.useEffect(function () {
|
|
10074
10111
|
setTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns);
|
|
10075
10112
|
}, [modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns]);
|
|
@@ -10500,6 +10537,28 @@ var AddSelect = function AddSelect(props) {
|
|
|
10500
10537
|
formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
|
|
10501
10538
|
});
|
|
10502
10539
|
}
|
|
10540
|
+
if (businessType == 'spu') {
|
|
10541
|
+
Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
|
|
10542
|
+
'qp-employeeId-eq': getEmployeeId(),
|
|
10543
|
+
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
10544
|
+
'ctl-withDefaultOrg': true
|
|
10545
|
+
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
10546
|
+
pageSize: 5000,
|
|
10547
|
+
currentPage: 1,
|
|
10548
|
+
'ctl-withAuth': true
|
|
10549
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
10550
|
+
pageSize: 5000,
|
|
10551
|
+
currentPage: 1
|
|
10552
|
+
}), loadSelectSource("/items/class/withProperty", {
|
|
10553
|
+
pageSize: 5000,
|
|
10554
|
+
currentPage: 1
|
|
10555
|
+
})]).then(function (x) {
|
|
10556
|
+
formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
|
|
10557
|
+
formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
|
|
10558
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm);
|
|
10559
|
+
formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
|
|
10560
|
+
});
|
|
10561
|
+
}
|
|
10503
10562
|
}, [businessType]);
|
|
10504
10563
|
React.useEffect(function () {
|
|
10505
10564
|
if (value) {
|
|
@@ -13487,7 +13546,6 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
13487
13546
|
}, modalTableBusProps);
|
|
13488
13547
|
}
|
|
13489
13548
|
if (type === 'shopFile2') {
|
|
13490
|
-
var _JSON$parse, _JSON$parse$employeeR;
|
|
13491
13549
|
requestConfig = _objectSpread2({
|
|
13492
13550
|
url: "".concat(prefixUrl.selectPrefix, "/store/page"),
|
|
13493
13551
|
filter: 'qp-name,code-orGroup,like',
|
|
@@ -13530,7 +13588,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
13530
13588
|
}
|
|
13531
13589
|
}];
|
|
13532
13590
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
13533
|
-
'qp-employeeCode-eq': (
|
|
13591
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13534
13592
|
'qp-realOrg-eq': true,
|
|
13535
13593
|
'qp-status-eq': 10
|
|
13536
13594
|
})]).then(function (x) {
|
|
@@ -14028,6 +14086,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14028
14086
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14029
14087
|
value = _useState2[0],
|
|
14030
14088
|
setValue = _useState2[1];
|
|
14089
|
+
//注⚠️:自定义过表头的请记得传tableCodeList参数
|
|
14031
14090
|
var initialSelectColumn = [{
|
|
14032
14091
|
title: 'SKU编码',
|
|
14033
14092
|
width: 150,
|
|
@@ -14353,7 +14412,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14353
14412
|
propertyList = _useState6[0],
|
|
14354
14413
|
setPropertyList = _useState6[1];
|
|
14355
14414
|
React.useEffect(function () {
|
|
14356
|
-
|
|
14415
|
+
// type: 1 尺码组; 2 配码组
|
|
14416
|
+
axios__default['default'].get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2").then(function (result) {
|
|
14357
14417
|
var _result, _result2;
|
|
14358
14418
|
result = result.data;
|
|
14359
14419
|
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
@@ -14364,6 +14424,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14364
14424
|
setPropertyList(data);
|
|
14365
14425
|
}).catch(function (err) {});
|
|
14366
14426
|
}, []);
|
|
14427
|
+
//注⚠️:自定义过表头的请记得传tableCodeList参数
|
|
14367
14428
|
var initialSelectColumn = [{
|
|
14368
14429
|
title: 'SKC编码',
|
|
14369
14430
|
width: 150,
|
|
@@ -14614,6 +14675,250 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14614
14675
|
modalTableProps: modalTableProps
|
|
14615
14676
|
})));
|
|
14616
14677
|
};
|
|
14678
|
+
var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
14679
|
+
var selectProps = {
|
|
14680
|
+
mode: 'multiple'
|
|
14681
|
+
};
|
|
14682
|
+
var _useState7 = React.useState((selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) ? [] : null),
|
|
14683
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
14684
|
+
value = _useState8[0],
|
|
14685
|
+
setValue = _useState8[1];
|
|
14686
|
+
//注⚠️:自定义过表头的请记得传tableCodeList参数
|
|
14687
|
+
var initialSelectColumn = [{
|
|
14688
|
+
title: '商品编码',
|
|
14689
|
+
width: 150,
|
|
14690
|
+
dataIndex: 'itemCode'
|
|
14691
|
+
}, {
|
|
14692
|
+
title: '商品名称',
|
|
14693
|
+
width: 200,
|
|
14694
|
+
ellipsis: {
|
|
14695
|
+
showTitle: false
|
|
14696
|
+
},
|
|
14697
|
+
render: function render(text) {
|
|
14698
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14699
|
+
placement: "topLeft",
|
|
14700
|
+
title: text
|
|
14701
|
+
}, text);
|
|
14702
|
+
},
|
|
14703
|
+
dataIndex: 'name'
|
|
14704
|
+
}, {
|
|
14705
|
+
title: '数量',
|
|
14706
|
+
width: 100,
|
|
14707
|
+
isInputItem: true,
|
|
14708
|
+
dataIndex: 'count'
|
|
14709
|
+
}, {
|
|
14710
|
+
title: '所属组织',
|
|
14711
|
+
dataIndex: 'ownOrgSignName'
|
|
14712
|
+
}, {
|
|
14713
|
+
title: '品牌',
|
|
14714
|
+
dataIndex: 'brandName'
|
|
14715
|
+
}, {
|
|
14716
|
+
title: '类目',
|
|
14717
|
+
dataIndex: 'categoryText'
|
|
14718
|
+
}, {
|
|
14719
|
+
title: '品类',
|
|
14720
|
+
dataIndex: 'className'
|
|
14721
|
+
}];
|
|
14722
|
+
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
14723
|
+
var props = {
|
|
14724
|
+
buttonText: parProps.buttonText || '新增',
|
|
14725
|
+
buttonProps: parProps.buttonProps || {},
|
|
14726
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
14727
|
+
value: value,
|
|
14728
|
+
// labelInValue: true, // 非必填 默认为false
|
|
14729
|
+
requestConfig: _objectSpread2({
|
|
14730
|
+
url: "/items/item",
|
|
14731
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
14732
|
+
otherParams: {
|
|
14733
|
+
'qp-approveStatus-eq': 1,
|
|
14734
|
+
sorter: 'desc-id'
|
|
14735
|
+
},
|
|
14736
|
+
mappingTextField: 'name',
|
|
14737
|
+
mappingValueField: 'itemCode'
|
|
14738
|
+
}, parProps.requestConfig),
|
|
14739
|
+
selectProps: selectProps,
|
|
14740
|
+
onChange: function onChange(value) {
|
|
14741
|
+
console.log(value);
|
|
14742
|
+
setValue(value);
|
|
14743
|
+
},
|
|
14744
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
14745
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
14746
|
+
businessType: 'spu'
|
|
14747
|
+
// onSaveCallback: (rows) => {
|
|
14748
|
+
// console.log('save call', rows);
|
|
14749
|
+
// // return Promise.resolve(true);
|
|
14750
|
+
// // return Promise.reject('FAILE')
|
|
14751
|
+
// }
|
|
14752
|
+
};
|
|
14753
|
+
|
|
14754
|
+
var modalTableProps = {
|
|
14755
|
+
modalTableTitle: '选择商品',
|
|
14756
|
+
tableSearchForm: [{
|
|
14757
|
+
name: 'qp-itemCode-like',
|
|
14758
|
+
label: '商品编码'
|
|
14759
|
+
}, {
|
|
14760
|
+
name: 'qp-name-like',
|
|
14761
|
+
label: '商品名称'
|
|
14762
|
+
}, {
|
|
14763
|
+
name: 'qp-ownOrgSign-in',
|
|
14764
|
+
type: 'select',
|
|
14765
|
+
label: '所属组织',
|
|
14766
|
+
field: {
|
|
14767
|
+
type: 'select',
|
|
14768
|
+
props: {
|
|
14769
|
+
mode: 'multiple',
|
|
14770
|
+
notFoundContent: '暂无数据',
|
|
14771
|
+
allowClear: true,
|
|
14772
|
+
showSearch: true,
|
|
14773
|
+
showArrow: true,
|
|
14774
|
+
maxTagCount: 1,
|
|
14775
|
+
optionFilterProp: 'children',
|
|
14776
|
+
filterOption: function filterOption(input, option) {
|
|
14777
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
14778
|
+
}
|
|
14779
|
+
}
|
|
14780
|
+
}
|
|
14781
|
+
}, {
|
|
14782
|
+
name: 'qp-brandId-in',
|
|
14783
|
+
type: 'select',
|
|
14784
|
+
label: '品牌',
|
|
14785
|
+
field: {
|
|
14786
|
+
type: 'select',
|
|
14787
|
+
props: {
|
|
14788
|
+
mode: 'multiple',
|
|
14789
|
+
notFoundContent: '暂无数据',
|
|
14790
|
+
allowClear: true,
|
|
14791
|
+
showSearch: true,
|
|
14792
|
+
showArrow: true,
|
|
14793
|
+
maxTagCount: 1,
|
|
14794
|
+
optionFilterProp: 'children',
|
|
14795
|
+
filterOption: function filterOption(input, option) {
|
|
14796
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
14797
|
+
}
|
|
14798
|
+
}
|
|
14799
|
+
}
|
|
14800
|
+
}, {
|
|
14801
|
+
name: 'qp-categoryId-in',
|
|
14802
|
+
type: 'treeSelect',
|
|
14803
|
+
label: '类目',
|
|
14804
|
+
field: {
|
|
14805
|
+
type: 'treeSelect',
|
|
14806
|
+
props: {
|
|
14807
|
+
treeData: [],
|
|
14808
|
+
treeCheckable: true,
|
|
14809
|
+
showSearch: true,
|
|
14810
|
+
allowClear: true,
|
|
14811
|
+
showArrow: true,
|
|
14812
|
+
treeNodeFilterProp: 'title',
|
|
14813
|
+
treeDefaultExpandAll: true,
|
|
14814
|
+
maxTagCount: 1,
|
|
14815
|
+
placeholder: '请选择',
|
|
14816
|
+
style: {
|
|
14817
|
+
width: '100%'
|
|
14818
|
+
},
|
|
14819
|
+
dropdownStyle: {
|
|
14820
|
+
maxHeight: 400,
|
|
14821
|
+
maxWidth: 100,
|
|
14822
|
+
overflow: 'auto'
|
|
14823
|
+
}
|
|
14824
|
+
}
|
|
14825
|
+
}
|
|
14826
|
+
}, {
|
|
14827
|
+
name: 'qp-classId-in',
|
|
14828
|
+
type: 'select',
|
|
14829
|
+
label: '品类',
|
|
14830
|
+
field: {
|
|
14831
|
+
type: 'select',
|
|
14832
|
+
props: {
|
|
14833
|
+
mode: 'multiple',
|
|
14834
|
+
notFoundContent: '暂无数据',
|
|
14835
|
+
allowClear: true,
|
|
14836
|
+
showSearch: true,
|
|
14837
|
+
showArrow: true,
|
|
14838
|
+
maxTagCount: 1,
|
|
14839
|
+
optionFilterProp: 'children',
|
|
14840
|
+
filterOption: function filterOption(input, option) {
|
|
14841
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
14842
|
+
}
|
|
14843
|
+
}
|
|
14844
|
+
}
|
|
14845
|
+
}],
|
|
14846
|
+
tableColumns: [{
|
|
14847
|
+
title: '商品编码',
|
|
14848
|
+
width: 150,
|
|
14849
|
+
dataIndex: 'itemCode'
|
|
14850
|
+
}, {
|
|
14851
|
+
title: '商品名称',
|
|
14852
|
+
width: 200,
|
|
14853
|
+
ellipsis: {
|
|
14854
|
+
showTitle: false
|
|
14855
|
+
},
|
|
14856
|
+
render: function render(text) {
|
|
14857
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14858
|
+
placement: "topLeft",
|
|
14859
|
+
title: text
|
|
14860
|
+
}, text);
|
|
14861
|
+
},
|
|
14862
|
+
dataIndex: 'name'
|
|
14863
|
+
}, {
|
|
14864
|
+
title: '所属组织',
|
|
14865
|
+
width: 100,
|
|
14866
|
+
ellipsis: {
|
|
14867
|
+
showTitle: false
|
|
14868
|
+
},
|
|
14869
|
+
render: function render(text) {
|
|
14870
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14871
|
+
placement: "topLeft",
|
|
14872
|
+
title: text
|
|
14873
|
+
}, text);
|
|
14874
|
+
},
|
|
14875
|
+
dataIndex: 'ownOrgSignName'
|
|
14876
|
+
}, {
|
|
14877
|
+
title: '品牌',
|
|
14878
|
+
width: 100,
|
|
14879
|
+
ellipsis: {
|
|
14880
|
+
showTitle: false
|
|
14881
|
+
},
|
|
14882
|
+
render: function render(text) {
|
|
14883
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14884
|
+
placement: "topLeft",
|
|
14885
|
+
title: text
|
|
14886
|
+
}, text);
|
|
14887
|
+
},
|
|
14888
|
+
dataIndex: 'brandName'
|
|
14889
|
+
}, {
|
|
14890
|
+
title: '类目',
|
|
14891
|
+
width: 100,
|
|
14892
|
+
ellipsis: {
|
|
14893
|
+
showTitle: false
|
|
14894
|
+
},
|
|
14895
|
+
render: function render(text) {
|
|
14896
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14897
|
+
placement: "topLeft",
|
|
14898
|
+
title: text
|
|
14899
|
+
}, text);
|
|
14900
|
+
},
|
|
14901
|
+
dataIndex: 'categoryName'
|
|
14902
|
+
}, {
|
|
14903
|
+
title: '品类',
|
|
14904
|
+
width: 100,
|
|
14905
|
+
ellipsis: {
|
|
14906
|
+
showTitle: false
|
|
14907
|
+
},
|
|
14908
|
+
render: function render(text) {
|
|
14909
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14910
|
+
placement: "topLeft",
|
|
14911
|
+
title: text
|
|
14912
|
+
}, text);
|
|
14913
|
+
},
|
|
14914
|
+
dataIndex: 'className'
|
|
14915
|
+
}],
|
|
14916
|
+
selectColumn: mTpSelectColumn
|
|
14917
|
+
};
|
|
14918
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
14919
|
+
modalTableProps: modalTableProps
|
|
14920
|
+
})));
|
|
14921
|
+
};
|
|
14617
14922
|
|
|
14618
14923
|
var CommodityEntry = function CommodityEntry(props) {
|
|
14619
14924
|
var dataValidationRef = React.useRef();
|
|
@@ -18532,24 +18837,6 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18532
18837
|
if (_ret === "continue") continue;
|
|
18533
18838
|
}
|
|
18534
18839
|
};
|
|
18535
|
-
function handleUserID() {
|
|
18536
|
-
var _JSON$parse, _JSON$parse$accountPe;
|
|
18537
|
-
return (_JSON$parse = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}')) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$accountPe = _JSON$parse.accountPersonDetail) === null || _JSON$parse$accountPe === void 0 ? void 0 : _JSON$parse$accountPe.username;
|
|
18538
|
-
}
|
|
18539
|
-
function handleAccountID() {
|
|
18540
|
-
var _JSON$parse2, _JSON$parse2$accountP;
|
|
18541
|
-
return (_JSON$parse2 = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}')) === null || _JSON$parse2 === void 0 ? void 0 : (_JSON$parse2$accountP = _JSON$parse2.accountPersonDetail) === null || _JSON$parse2$accountP === void 0 ? void 0 : _JSON$parse2$accountP.id;
|
|
18542
|
-
}
|
|
18543
|
-
function handleUserName() {
|
|
18544
|
-
var _JSON$parse3, _JSON$parse3$accountP;
|
|
18545
|
-
return (_JSON$parse3 = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}')) === null || _JSON$parse3 === void 0 ? void 0 : (_JSON$parse3$accountP = _JSON$parse3.accountPersonDetail) === null || _JSON$parse3$accountP === void 0 ? void 0 : _JSON$parse3$accountP.employeeName;
|
|
18546
|
-
}
|
|
18547
|
-
function handleUserPhone() {
|
|
18548
|
-
var _JSON$parse4, _JSON$parse4$accountP, _JSON$parse4$accountP2;
|
|
18549
|
-
var str = ((_JSON$parse4 = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}')) === null || _JSON$parse4 === void 0 ? void 0 : (_JSON$parse4$accountP = _JSON$parse4.accountPersonDetail) === null || _JSON$parse4$accountP === void 0 ? void 0 : (_JSON$parse4$accountP2 = _JSON$parse4$accountP.person) === null || _JSON$parse4$accountP2 === void 0 ? void 0 : _JSON$parse4$accountP2.phone) || '';
|
|
18550
|
-
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
18551
|
-
return enStr;
|
|
18552
|
-
}
|
|
18553
18840
|
var setLoginOutPath = function setLoginOutPath() {
|
|
18554
18841
|
if (window.__POWERED_BY_WUJIE__) {
|
|
18555
18842
|
var _window$$wujie;
|
|
@@ -18936,7 +19223,7 @@ var LoginModal = (function (props) {
|
|
|
18936
19223
|
onClick: function onClick() {
|
|
18937
19224
|
form.validateFields().then(function (res) {
|
|
18938
19225
|
axios__default['default']({
|
|
18939
|
-
url: "/bop/api/account/changePassWord/".concat(
|
|
19226
|
+
url: "/bop/api/account/changePassWord/".concat(getAccountID()),
|
|
18940
19227
|
method: 'patch',
|
|
18941
19228
|
params: res
|
|
18942
19229
|
}).then(function (res) {
|
|
@@ -18956,7 +19243,7 @@ var LoginModal = (function (props) {
|
|
|
18956
19243
|
span: 20
|
|
18957
19244
|
},
|
|
18958
19245
|
initialValues: {
|
|
18959
|
-
username:
|
|
19246
|
+
username: getUserId()
|
|
18960
19247
|
}
|
|
18961
19248
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
18962
19249
|
label: "\u8D26\u53F7",
|
|
@@ -19038,21 +19325,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19038
19325
|
};
|
|
19039
19326
|
var loginOut = /*#__PURE__*/function () {
|
|
19040
19327
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19041
|
-
var
|
|
19328
|
+
var sessionId;
|
|
19042
19329
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19043
19330
|
while (1) {
|
|
19044
19331
|
switch (_context.prev = _context.next) {
|
|
19045
19332
|
case 0:
|
|
19046
19333
|
_context.next = 2;
|
|
19047
|
-
return
|
|
19334
|
+
return getSessionId();
|
|
19048
19335
|
case 2:
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
_context.next = 6;
|
|
19336
|
+
sessionId = _context.sent;
|
|
19337
|
+
_context.next = 5;
|
|
19052
19338
|
return outLogin({
|
|
19053
19339
|
sessionId: sessionId
|
|
19054
19340
|
});
|
|
19055
|
-
case
|
|
19341
|
+
case 5:
|
|
19056
19342
|
// @ts-ignore
|
|
19057
19343
|
if (BUILD_TYPE) {
|
|
19058
19344
|
antd.message.success('退出登录成功');
|
|
@@ -19062,7 +19348,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19062
19348
|
} else {
|
|
19063
19349
|
setLoginOutPath();
|
|
19064
19350
|
}
|
|
19065
|
-
case
|
|
19351
|
+
case 6:
|
|
19066
19352
|
case "end":
|
|
19067
19353
|
return _context.stop();
|
|
19068
19354
|
}
|
|
@@ -19087,7 +19373,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19087
19373
|
src: Morentouxiang32
|
|
19088
19374
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19089
19375
|
className: 'userDownTopC'
|
|
19090
|
-
},
|
|
19376
|
+
}, getUserName()), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19091
19377
|
className: 'userDownTopB'
|
|
19092
19378
|
}, handleUserPhone())), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19093
19379
|
className: 'userDownB'
|
|
@@ -19122,7 +19408,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19122
19408
|
className: 'rcom_c'
|
|
19123
19409
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19124
19410
|
className: 'rcom_ct'
|
|
19125
|
-
},
|
|
19411
|
+
}, getUserName()), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19126
19412
|
className: 'rcom_cb'
|
|
19127
19413
|
}, handleUserPhone())), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19128
19414
|
className: 'rcom_r'
|
|
@@ -30343,8 +30629,7 @@ function hanleCallbackValue(codeProps, value, customerFields) {
|
|
|
30343
30629
|
return newCodeProps;
|
|
30344
30630
|
}
|
|
30345
30631
|
function isAdmin() {
|
|
30346
|
-
var
|
|
30347
|
-
var username = (_JSON$parse = JSON.parse(localStorage.getItem('userInfo') || '{}')) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$accountPe = _JSON$parse.accountPersonDetail) === null || _JSON$parse$accountPe === void 0 ? void 0 : _JSON$parse$accountPe.username;
|
|
30632
|
+
var username = getUserId();
|
|
30348
30633
|
return username === 'admin' || username === 'uiuiui';
|
|
30349
30634
|
}
|
|
30350
30635
|
var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props) {
|
|
@@ -30476,6 +30761,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30476
30761
|
exports.AddSelect = AddSelect;
|
|
30477
30762
|
exports.AddSkcSelect = AddSkcSelect;
|
|
30478
30763
|
exports.AddSkuSelect = AddSkuSelect;
|
|
30764
|
+
exports.AddSpuSelect = AddSpuSelect;
|
|
30479
30765
|
exports.BillEntry = BillEntry;
|
|
30480
30766
|
exports.BsLayout = index$5;
|
|
30481
30767
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
@@ -4,5 +4,13 @@ export declare const saveTenantList: (data: any) => void;
|
|
|
4
4
|
export declare const getTenantList: () => any;
|
|
5
5
|
export declare const removeTenantList: () => void;
|
|
6
6
|
export declare const saveCurrentTenantId: (item: string) => void;
|
|
7
|
-
export declare const getCurrentTenantId: () => string;
|
|
7
|
+
export declare const getCurrentTenantId: () => string | 1;
|
|
8
8
|
export declare const removeCurrentTenantId: () => void;
|
|
9
|
+
export declare function getEmployeeId(): any;
|
|
10
|
+
export declare function getEmployeeCode(): any;
|
|
11
|
+
export declare function getSessionId(): any;
|
|
12
|
+
export declare function getAccountId(): any;
|
|
13
|
+
export declare function getUserId(): any;
|
|
14
|
+
export declare function getAccountID(): any;
|
|
15
|
+
export declare function getUserName(): any;
|
|
16
|
+
export declare function handleUserPhone(): any;
|
package/dist/utils/index.d.ts
CHANGED
package/docs/index.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
---
|
|
2
|
-
hero:
|
|
3
|
-
title: business-component
|
|
4
|
-
desc: business-component site example
|
|
5
|
-
actions:
|
|
6
|
-
- text: Getting Started
|
|
7
|
-
link: /components
|
|
8
|
-
features:
|
|
9
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
|
|
10
|
-
title: Feature 1
|
|
11
|
-
desc: Balabala
|
|
12
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
|
|
13
|
-
title: Feature 2
|
|
14
|
-
desc: Balabala
|
|
15
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
|
|
16
|
-
title: Feature 3
|
|
17
|
-
desc: Balabala
|
|
18
|
-
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Hello business-component!
|
|
1
|
+
---
|
|
2
|
+
hero:
|
|
3
|
+
title: business-component
|
|
4
|
+
desc: business-component site example
|
|
5
|
+
actions:
|
|
6
|
+
- text: Getting Started
|
|
7
|
+
link: /components
|
|
8
|
+
features:
|
|
9
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
|
|
10
|
+
title: Feature 1
|
|
11
|
+
desc: Balabala
|
|
12
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
|
|
13
|
+
title: Feature 2
|
|
14
|
+
desc: Balabala
|
|
15
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
|
|
16
|
+
title: Feature 3
|
|
17
|
+
desc: Balabala
|
|
18
|
+
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Hello business-component!
|
package/lib/assets/drag.svg
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" class="design-iconfont">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="l1lf23lgga">
|
|
4
|
-
<stop stop-color="#10295B" offset="0%"/>
|
|
5
|
-
<stop stop-color="#0F2A61" offset="100%"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
<path id="okxu11mz5b" d="M0 0H24V24H0z"/>
|
|
8
|
-
</defs>
|
|
9
|
-
<g fill="none" fill-rule="evenodd">
|
|
10
|
-
<mask id="7u8dk2lilc" fill="#fff">
|
|
11
|
-
<use xlink:href="#okxu11mz5b"/>
|
|
12
|
-
</mask>
|
|
13
|
-
<g mask="url(#7u8dk2lilc)" fill="#999" fill-rule="nonzero">
|
|
14
|
-
<path d="M1.31655092,7 C2.03935948,7 2.6253116,7.58595212 2.6253116,8.30876068 C2.6253116,9.03156925 2.03935948,9.61752137 1.31655092,9.61752137 C0.593742351,9.61752137 0.00779023438,9.03156925 0.00779023438,8.30876068 C0.00779023438,7.58595212 0.593742351,7 1.31655092,7 Z M6.99034011,7 C7.71314867,7 8.29910079,7.58595212 8.29910079,8.30876068 C8.29910079,9.03156925 7.71314867,9.61752137 6.99034011,9.61752137 C6.26753154,9.61752137 5.68157942,9.03156925 5.68157942,8.30876068 C5.68157942,7.58595212 6.26753154,7 6.99034011,7 Z M12.6641293,7 C13.3869378,7 13.97289,7.58595212 13.97289,8.30876068 C13.97289,9.03156925 13.3869378,9.61752137 12.6641293,9.61752137 C11.9413207,9.61752137 11.3553686,9.03156925 11.3553686,8.30876068 C11.3553686,7.58595212 11.9413207,7 12.6641293,7 Z M1.31655092,-5.32907052e-15 C2.03935948,-5.32907052e-15 2.6253116,0.585952117 2.6253116,1.30876068 C2.6253116,2.03156925 2.03935948,2.61752137 1.31655092,2.61752137 C0.593742351,2.61752137 0.00779023438,2.03156925 0.00779023438,1.30876068 C0.00779023438,0.585952117 0.593742351,-5.32907052e-15 1.31655092,-5.32907052e-15 Z M6.99034011,-5.32907052e-15 C7.71314867,-5.32907052e-15 8.29910079,0.585952117 8.29910079,1.30876068 C8.29910079,2.03156925 7.71314867,2.61752137 6.99034011,2.61752137 C6.26753154,2.61752137 5.68157942,2.03156925 5.68157942,1.30876068 C5.68157942,0.585952117 6.26753154,-5.32907052e-15 6.99034011,-5.32907052e-15 Z M12.6641293,-5.32907052e-15 C13.3869378,-5.32907052e-15 13.97289,0.585952117 13.97289,1.30876068 C13.97289,2.03156925 13.3869378,2.61752137 12.6641293,2.61752137 C11.9413207,2.61752137 11.3553686,2.03156925 11.3553686,1.30876068 C11.3553686,0.585952117 11.9413207,-5.32907052e-15 12.6641293,-5.32907052e-15 Z" transform="translate(5 7)"/>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" class="design-iconfont">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="l1lf23lgga">
|
|
4
|
+
<stop stop-color="#10295B" offset="0%"/>
|
|
5
|
+
<stop stop-color="#0F2A61" offset="100%"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<path id="okxu11mz5b" d="M0 0H24V24H0z"/>
|
|
8
|
+
</defs>
|
|
9
|
+
<g fill="none" fill-rule="evenodd">
|
|
10
|
+
<mask id="7u8dk2lilc" fill="#fff">
|
|
11
|
+
<use xlink:href="#okxu11mz5b"/>
|
|
12
|
+
</mask>
|
|
13
|
+
<g mask="url(#7u8dk2lilc)" fill="#999" fill-rule="nonzero">
|
|
14
|
+
<path d="M1.31655092,7 C2.03935948,7 2.6253116,7.58595212 2.6253116,8.30876068 C2.6253116,9.03156925 2.03935948,9.61752137 1.31655092,9.61752137 C0.593742351,9.61752137 0.00779023438,9.03156925 0.00779023438,8.30876068 C0.00779023438,7.58595212 0.593742351,7 1.31655092,7 Z M6.99034011,7 C7.71314867,7 8.29910079,7.58595212 8.29910079,8.30876068 C8.29910079,9.03156925 7.71314867,9.61752137 6.99034011,9.61752137 C6.26753154,9.61752137 5.68157942,9.03156925 5.68157942,8.30876068 C5.68157942,7.58595212 6.26753154,7 6.99034011,7 Z M12.6641293,7 C13.3869378,7 13.97289,7.58595212 13.97289,8.30876068 C13.97289,9.03156925 13.3869378,9.61752137 12.6641293,9.61752137 C11.9413207,9.61752137 11.3553686,9.03156925 11.3553686,8.30876068 C11.3553686,7.58595212 11.9413207,7 12.6641293,7 Z M1.31655092,-5.32907052e-15 C2.03935948,-5.32907052e-15 2.6253116,0.585952117 2.6253116,1.30876068 C2.6253116,2.03156925 2.03935948,2.61752137 1.31655092,2.61752137 C0.593742351,2.61752137 0.00779023438,2.03156925 0.00779023438,1.30876068 C0.00779023438,0.585952117 0.593742351,-5.32907052e-15 1.31655092,-5.32907052e-15 Z M6.99034011,-5.32907052e-15 C7.71314867,-5.32907052e-15 8.29910079,0.585952117 8.29910079,1.30876068 C8.29910079,2.03156925 7.71314867,2.61752137 6.99034011,2.61752137 C6.26753154,2.61752137 5.68157942,2.03156925 5.68157942,1.30876068 C5.68157942,0.585952117 6.26753154,-5.32907052e-15 6.99034011,-5.32907052e-15 Z M12.6641293,-5.32907052e-15 C13.3869378,-5.32907052e-15 13.97289,0.585952117 13.97289,1.30876068 C13.97289,2.03156925 13.3869378,2.61752137 12.6641293,2.61752137 C11.9413207,2.61752137 11.3553686,2.03156925 11.3553686,1.30876068 C11.3553686,0.585952117 11.9413207,-5.32907052e-15 12.6641293,-5.32907052e-15 Z" transform="translate(5 7)"/>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|