@bit-sun/business-component 2.3.0-alpha.2 → 2.3.0-alpha.4

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/dist/index.esm.js CHANGED
@@ -2614,6 +2614,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2614
2614
  extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
2615
2615
  _ref$specialBracket = _ref.specialBracket,
2616
2616
  specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket;
2617
+ console.log("\uD83D\uDE80 => SearchSelect => requestConfig:", requestConfig);
2617
2618
  var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
2618
2619
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
2619
2620
  var initVal = value || (selectMode ? [] : null);
@@ -2673,7 +2674,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2673
2674
  // 优化搜索参数 支持传多个
2674
2675
  console.log("\uD83D\uDE80 => SearchSelect => v:", v);
2675
2676
  var searchParams = {};
2677
+ console.log("\uD83D\uDE80 => SearchSelect => mappingValueField:", mappingValueField);
2676
2678
  console.log("\uD83D\uDE80 => SearchSelect => selectParamsKey:", selectParamsKey);
2679
+ console.log("\uD83D\uDE80 => SearchSelect => selectParamsInitKey:", selectParamsInitKey);
2677
2680
  if (typeof selectParamsKey === 'string' || typeof selectParamsInitKey === 'string') {
2678
2681
  var selectParamsInitValue = initVal;
2679
2682
  if (labelInValue) {
@@ -24730,6 +24733,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24730
24733
  var fieldOfDefaultValue = function fieldOfDefaultValue() {
24731
24734
  var singleOrMultiple = isShowAndType.singleOrMultiple,
24732
24735
  type = isShowAndType.type;
24736
+ console.log('@singleOrMultiple', singleOrMultiple);
24737
+ console.log('@type', type);
24738
+ console.log('@inputTypes[singleOrMultiple][type]', inputTypes[singleOrMultiple][type]);
24733
24739
  if (type === 10) {
24734
24740
  var _Object$keys;
24735
24741
  // 自定义
@@ -25650,7 +25656,6 @@ var FieldsSettingsTable = (function (props) {
25650
25656
  render: function render(_ref) {
25651
25657
  var text = _ref.text;
25652
25658
  var jsonEditorVal = localStorage.getItem('jsonEditorVal') || '';
25653
- console.log('jsonEditorVal', jsonEditorVal);
25654
25659
  return jsonEditorVal.indexOf(text) >= 0 ? '是' : "否";
25655
25660
  }
25656
25661
  }, {
package/dist/index.js CHANGED
@@ -2633,6 +2633,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2633
2633
  extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
2634
2634
  _ref$specialBracket = _ref.specialBracket,
2635
2635
  specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket;
2636
+ console.log("\uD83D\uDE80 => SearchSelect => requestConfig:", requestConfig);
2636
2637
  var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
2637
2638
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
2638
2639
  var initVal = value || (selectMode ? [] : null);
@@ -2692,7 +2693,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2692
2693
  // 优化搜索参数 支持传多个
2693
2694
  console.log("\uD83D\uDE80 => SearchSelect => v:", v);
2694
2695
  var searchParams = {};
2696
+ console.log("\uD83D\uDE80 => SearchSelect => mappingValueField:", mappingValueField);
2695
2697
  console.log("\uD83D\uDE80 => SearchSelect => selectParamsKey:", selectParamsKey);
2698
+ console.log("\uD83D\uDE80 => SearchSelect => selectParamsInitKey:", selectParamsInitKey);
2696
2699
  if (typeof selectParamsKey === 'string' || typeof selectParamsInitKey === 'string') {
2697
2700
  var selectParamsInitValue = initVal;
2698
2701
  if (labelInValue) {
@@ -24749,6 +24752,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24749
24752
  var fieldOfDefaultValue = function fieldOfDefaultValue() {
24750
24753
  var singleOrMultiple = isShowAndType.singleOrMultiple,
24751
24754
  type = isShowAndType.type;
24755
+ console.log('@singleOrMultiple', singleOrMultiple);
24756
+ console.log('@type', type);
24757
+ console.log('@inputTypes[singleOrMultiple][type]', inputTypes[singleOrMultiple][type]);
24752
24758
  if (type === 10) {
24753
24759
  var _Object$keys;
24754
24760
  // 自定义
@@ -25669,7 +25675,6 @@ var FieldsSettingsTable = (function (props) {
25669
25675
  render: function render(_ref) {
25670
25676
  var text = _ref.text;
25671
25677
  var jsonEditorVal = localStorage.getItem('jsonEditorVal') || '';
25672
- console.log('jsonEditorVal', jsonEditorVal);
25673
25678
  return jsonEditorVal.indexOf(text) >= 0 ? '是' : "否";
25674
25679
  }
25675
25680
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.3.0-alpha.2",
3
+ "version": "2.3.0-alpha.4",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -79,6 +79,11 @@ const FieldsModifyModal = (props: any) => {
79
79
 
80
80
  const fieldOfDefaultValue = () => {
81
81
  const { singleOrMultiple, type } = isShowAndType;
82
+
83
+ console.log('@singleOrMultiple', singleOrMultiple)
84
+ console.log('@type', type)
85
+ console.log('@inputTypes[singleOrMultiple][type]', inputTypes[singleOrMultiple][type])
86
+
82
87
  if (type === 10) {
83
88
  // 自定义
84
89
  return [
@@ -101,7 +101,6 @@ export default (props:any)=>{
101
101
  width: 70,
102
102
  render: ({text}:any) => {
103
103
  const jsonEditorVal=localStorage.getItem('jsonEditorVal')||'';
104
- console.log('jsonEditorVal',jsonEditorVal);
105
104
  return jsonEditorVal.indexOf(text) >= 0 ? '是' : "否"
106
105
  }
107
106
  },
@@ -42,6 +42,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
42
42
  extralHeaders = {},// 额外请求头参数
43
43
  specialBracket = false,// 是否使用特殊括弧显示选项 【value】text
44
44
  } = requestConfig || {};
45
+ console.log(`🚀 => SearchSelect => requestConfig:`, requestConfig)
45
46
  const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || 'supplierCode')
46
47
 
47
48
  const selectMode = selectProps?.mode // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
@@ -76,7 +77,9 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
76
77
  // 优化搜索参数 支持传多个
77
78
  console.log(`🚀 => SearchSelect => v:`, v)
78
79
  let searchParams = {};
80
+ console.log(`🚀 => SearchSelect => mappingValueField:`, mappingValueField)
79
81
  console.log(`🚀 => SearchSelect => selectParamsKey:`, selectParamsKey)
82
+ console.log(`🚀 => SearchSelect => selectParamsInitKey:`, selectParamsInitKey)
80
83
  if (typeof selectParamsKey === 'string' || typeof selectParamsInitKey === 'string') {
81
84
  let selectParamsInitValue = initVal
82
85
  if (labelInValue) {