@jetlinks-web/components 3.1.12 → 3.1.14

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.
@@ -55,7 +55,7 @@ const _hoisted_1 = { style: { "color": "#1d2129" } };
55
55
  const _hoisted_2 = ["id"];
56
56
  import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
57
57
  import { get, isArray } from 'lodash-es';
58
- import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
58
+ import { useProvideFormItemContext } from 'ant-design-vue/lib/form/FormItemContext';
59
59
  import { useInjectError, useInjectForm } from "./hooks";
60
60
  import { TABLE_FORM_ITEM_ERROR } from "./consts";
61
61
  import genEditTableStyle from './style';
@@ -129,7 +129,10 @@ const __sfc_main__ = Object.assign({
129
129
  index = props.name[0];
130
130
  }
131
131
  const promise = context.validateItem({ [filedName.value]: get(context.dataSource.value, props.name) }, index);
132
- promise.catch(res => {
132
+ promise.then(() => {
133
+ hideErrorTip();
134
+ context.removeFieldError(eventKey.value);
135
+ }).catch(res => {
133
136
  const error = _optionalChain([res, 'optionalAccess', _2 => _2.filter, 'call', _3 => _3(item => item.field === filedName.value)]) || [];
134
137
  if (error.length === 0) {
135
138
  hideErrorTip();
@@ -149,6 +152,7 @@ const __sfc_main__ = Object.assign({
149
152
  // validateRules()
150
153
  };
151
154
  const onFieldChange = () => {
155
+ debugger;
152
156
  validateRules();
153
157
  emit('change');
154
158
  };
@@ -164,7 +168,10 @@ const __sfc_main__ = Object.assign({
164
168
  id: filedId,
165
169
  onFieldChange,
166
170
  onFieldBlur,
167
- }, computed(() => get(context.dataSource.value, props.name)));
171
+ }, computed(() => {
172
+ console.log(context.dataSource.value, props.name);
173
+ return get(context.dataSource.value, props.name);
174
+ }));
168
175
  onBeforeUnmount(() => {
169
176
  hideErrorTip();
170
177
  });
@@ -116,7 +116,7 @@ const __sfc_main__ = _defineComponent({
116
116
  const column = ref(4);
117
117
  const page = reactive({
118
118
  pageIndex: 0,
119
- pageSize: 12,
119
+ pageSize: _optionalChain([tableConfig, 'access', _2 => _2.pagination, 'optionalAccess', _3 => _3.pageSize]) || 12,
120
120
  total: 0,
121
121
  loading: false
122
122
  });
@@ -127,7 +127,7 @@ const __sfc_main__ = _defineComponent({
127
127
  const extraSlots = ['headerRightRender', 'headerLeftRender', 'paginationRender', 'alertRender'];
128
128
  const _rowSelection = useTableInject();
129
129
  const showAlert = computed(() => {
130
- return props.alertShow && (_optionalChain([props, 'access', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]) || _optionalChain([_rowSelection, 'optionalAccess', _5 => _5.value, 'optionalAccess', _6 => _6.selectedRowKeys, 'optionalAccess', _7 => _7.length]));
130
+ return props.alertShow && (_optionalChain([props, 'access', _4 => _4.rowSelection, 'optionalAccess', _5 => _5.selectedRowKeys, 'optionalAccess', _6 => _6.length]) || _optionalChain([_rowSelection, 'optionalAccess', _7 => _7.value, 'optionalAccess', _8 => _8.selectedRowKeys, 'optionalAccess', _9 => _9.length]));
131
131
  });
132
132
  const showPagination = computed(() => {
133
133
  return !!_dataSource.value.length && !props.noPagination && props.type === 'PAGE';
@@ -145,23 +145,23 @@ const __sfc_main__ = _defineComponent({
145
145
  }
146
146
  else {
147
147
  _dataSource.value = result || [];
148
- page.pageIndex = _optionalChain([_params, 'optionalAccess', _8 => _8.pageIndex]) || 0;
149
- page.pageSize = _optionalChain([_params, 'optionalAccess', _9 => _9.pageSize]) || 12;
148
+ page.pageIndex = _optionalChain([_params, 'optionalAccess', _10 => _10.pageIndex]) || 0;
149
+ page.pageSize = _optionalChain([_params, 'optionalAccess', _11 => _11.pageSize]) || 12;
150
150
  page.total = page.pageSize * (page.pageIndex + 1) + 1;
151
151
  }
152
152
  }
153
153
  else {
154
- if (_optionalChain([result, 'optionalAccess', _10 => _10.total]) &&
155
- _optionalChain([result, 'optionalAccess', _11 => _11.pageSize]) &&
156
- _optionalChain([result, 'optionalAccess', _12 => _12.pageIndex]) &&
157
- _optionalChain([result, 'optionalAccess', _13 => _13.data, 'optionalAccess', _14 => _14.length]) === 0) {
154
+ if (_optionalChain([result, 'optionalAccess', _12 => _12.total]) &&
155
+ _optionalChain([result, 'optionalAccess', _13 => _13.pageSize]) &&
156
+ _optionalChain([result, 'optionalAccess', _14 => _14.pageIndex]) &&
157
+ _optionalChain([result, 'optionalAccess', _15 => _15.data, 'optionalAccess', _16 => _16.length]) === 0) {
158
158
  return true;
159
159
  }
160
160
  else {
161
- _dataSource.value = _optionalChain([result, 'optionalAccess', _15 => _15.data]) || [];
162
- page.pageIndex = _optionalChain([result, 'optionalAccess', _16 => _16.pageIndex]) || 0;
163
- page.pageSize = _optionalChain([result, 'optionalAccess', _17 => _17.pageSize]) || 12;
164
- page.total = _optionalChain([result, 'optionalAccess', _18 => _18.total]) || 0;
161
+ _dataSource.value = _optionalChain([result, 'optionalAccess', _17 => _17.data]) || [];
162
+ page.pageIndex = _optionalChain([result, 'optionalAccess', _18 => _18.pageIndex]) || 0;
163
+ page.pageSize = _optionalChain([result, 'optionalAccess', _19 => _19.pageSize]) || 12;
164
+ page.total = _optionalChain([result, 'optionalAccess', _20 => _20.total]) || 0;
165
165
  }
166
166
  }
167
167
  }
@@ -181,8 +181,8 @@ const __sfc_main__ = _defineComponent({
181
181
  ...props.defaultParams,
182
182
  ..._params,
183
183
  terms: [
184
- ...(_optionalChain([props, 'access', _19 => _19.defaultParams, 'optionalAccess', _20 => _20.terms]) || []),
185
- ...(_optionalChain([_params, 'optionalAccess', _21 => _21.terms]) || []),
184
+ ...(_optionalChain([props, 'access', _21 => _21.defaultParams, 'optionalAccess', _22 => _22.terms]) || []),
185
+ ...(_optionalChain([_params, 'optionalAccess', _23 => _23.terms]) || []),
186
186
  ],
187
187
  };
188
188
  loading.value = true;
@@ -193,7 +193,7 @@ const __sfc_main__ = _defineComponent({
193
193
  const flag = handleData(resp.result || {}, _params);
194
194
  if (flag) { // 判断如果是最后一页且最后一页为空,就跳转到前一页
195
195
  if (props.totalRequest) {
196
- onlyMessage(_optionalChain([contextLocale, 'access', _22 => _22.value, 'access', _23 => _23.pagination, 'optionalAccess', _24 => _24.lastPage]) || '', 'error');
196
+ onlyMessage(_optionalChain([contextLocale, 'access', _24 => _24.value, 'access', _25 => _25.pagination, 'optionalAccess', _26 => _26.lastPage]) || '', 'error');
197
197
  // 置灰下一页
198
198
  page.total = page.pageSize * (page.pageIndex > 0 ? page.pageIndex : 1);
199
199
  }
@@ -239,11 +239,11 @@ const __sfc_main__ = _defineComponent({
239
239
  };
240
240
  const onClose = () => {
241
241
  if (props.rowSelection) {
242
- _optionalChain([props, 'access', _25 => _25.rowSelection, 'access', _26 => _26.onChange, 'optionalCall', _27 => _27([], [])]);
243
- _optionalChain([props, 'access', _28 => _28.rowSelection, 'access', _29 => _29.onSelectNone, 'optionalCall', _30 => _30()]);
242
+ _optionalChain([props, 'access', _27 => _27.rowSelection, 'access', _28 => _28.onChange, 'optionalCall', _29 => _29([], [])]);
243
+ _optionalChain([props, 'access', _30 => _30.rowSelection, 'access', _31 => _31.onSelectNone, 'optionalCall', _32 => _32()]);
244
244
  }
245
- else if (_optionalChain([_rowSelection, 'optionalAccess', _31 => _31.value])) {
246
- _optionalChain([_rowSelection, 'access', _32 => _32.value, 'optionalAccess', _33 => _33.onSelectNone, 'optionalCall', _34 => _34()]);
245
+ else if (_optionalChain([_rowSelection, 'optionalAccess', _33 => _33.value])) {
246
+ _optionalChain([_rowSelection, 'access', _34 => _34.value, 'optionalAccess', _35 => _35.onSelectNone, 'optionalCall', _36 => _36()]);
247
247
  }
248
248
  };
249
249
  /**
@@ -259,10 +259,10 @@ const __sfc_main__ = _defineComponent({
259
259
  });
260
260
  };
261
261
  const _gridColumns = computed(() => {
262
- if (_optionalChain([props, 'access', _35 => _35.gridColumns, 'optionalAccess', _36 => _36.length])) {
262
+ if (_optionalChain([props, 'access', _37 => _37.gridColumns, 'optionalAccess', _38 => _38.length])) {
263
263
  const arr = props.gridColumns;
264
- const lastValue = _optionalChain([arr, 'access', _37 => _37.slice, 'call', _38 => _38(-1), 'optionalAccess', _39 => _39[0]]);
265
- if (_optionalChain([arr, 'optionalAccess', _40 => _40.length]) < 4) {
264
+ const lastValue = _optionalChain([arr, 'access', _39 => _39.slice, 'call', _40 => _40(-1), 'optionalAccess', _41 => _41[0]]);
265
+ if (_optionalChain([arr, 'optionalAccess', _42 => _42.length]) < 4) {
266
266
  while (arr.length < 4) {
267
267
  arr.push(lastValue);
268
268
  }
@@ -283,16 +283,16 @@ const __sfc_main__ = _defineComponent({
283
283
  const styles = window.getComputedStyle(ele);
284
284
  const width = parseFloat(styles.width);
285
285
  if (width <= 992) {
286
- column.value = _optionalChain([_gridColumns, 'access', _41 => _41.value, 'optionalAccess', _42 => _42[0]]) || 1;
286
+ column.value = _optionalChain([_gridColumns, 'access', _43 => _43.value, 'optionalAccess', _44 => _44[0]]) || 1;
287
287
  }
288
288
  else if (width > 992 && width <= 1440) {
289
- column.value = _optionalChain([_gridColumns, 'access', _43 => _43.value, 'optionalAccess', _44 => _44[1]]) || 2;
289
+ column.value = _optionalChain([_gridColumns, 'access', _45 => _45.value, 'optionalAccess', _46 => _46[1]]) || 2;
290
290
  }
291
291
  else if (width > 1440 && width <= 1600) {
292
- column.value = _optionalChain([_gridColumns, 'access', _45 => _45.value, 'optionalAccess', _46 => _46[2]]) || 3;
292
+ column.value = _optionalChain([_gridColumns, 'access', _47 => _47.value, 'optionalAccess', _48 => _48[2]]) || 3;
293
293
  }
294
294
  else if (width > 1600) {
295
- column.value = _optionalChain([_gridColumns, 'access', _47 => _47.value, 'optionalAccess', _48 => _48[3]]) || 4;
295
+ column.value = _optionalChain([_gridColumns, 'access', _49 => _49.value, 'optionalAccess', _50 => _50[3]]) || 4;
296
296
  }
297
297
  }
298
298
  };
@@ -10,7 +10,7 @@ export var _headerProps = {
10
10
  default: undefined
11
11
  },
12
12
  modeValue: {
13
- type: String,
13
+ type: [String, undefined],
14
14
  default: 'TABLE'
15
15
  }
16
16
  };
@@ -137,11 +137,7 @@ export var proTableProps = _objectSpread(_objectSpread(_objectSpread({}, _conten
137
137
  pagination: {
138
138
  type: Object,
139
139
  default: function _default() {
140
- return {
141
- showSizeChanger: true,
142
- size: 'size',
143
- pageSizeOptions: ['12', '24', '48', '96']
144
- };
140
+ return {};
145
141
  }
146
142
  }
147
143
  });
@@ -368,7 +368,7 @@ const __sfc_main__ = Object.assign({
368
368
  rowSelection: _rowSelection.value
369
369
  }, {
370
370
  bodyCell: _withCtx(({ text, record, index, column }) => [
371
- (column.dataIndex === firstColumn.value.dataIndex || column.key === firstColumn.value.key)
371
+ ((firstColumn.value.dataIndex && column.dataIndex === firstColumn.value.dataIndex) || (firstColumn.value.key && column.key === firstColumn.value.key))
372
372
  ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
373
373
  _createElementVNode("span", {
374
374
  class: "ant-table-row-indent indent-level-3",
@@ -55,7 +55,7 @@ const _hoisted_1 = { style: { "color": "#1d2129" } };
55
55
  const _hoisted_2 = ["id"];
56
56
  import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
57
57
  import { get, isArray } from 'lodash-es';
58
- import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
58
+ import { useProvideFormItemContext } from 'ant-design-vue/lib/form/FormItemContext';
59
59
  import { useInjectError, useInjectForm } from "./hooks";
60
60
  import { TABLE_FORM_ITEM_ERROR } from "./consts";
61
61
  import genEditTableStyle from './style';
@@ -129,7 +129,10 @@ const __sfc_main__ = Object.assign({
129
129
  index = props.name[0];
130
130
  }
131
131
  const promise = context.validateItem({ [filedName.value]: get(context.dataSource.value, props.name) }, index);
132
- promise.catch(res => {
132
+ promise.then(() => {
133
+ hideErrorTip();
134
+ context.removeFieldError(eventKey.value);
135
+ }).catch(res => {
133
136
  const error = _optionalChain([res, 'optionalAccess', _2 => _2.filter, 'call', _3 => _3(item => item.field === filedName.value)]) || [];
134
137
  if (error.length === 0) {
135
138
  hideErrorTip();
@@ -149,6 +152,7 @@ const __sfc_main__ = Object.assign({
149
152
  // validateRules()
150
153
  };
151
154
  const onFieldChange = () => {
155
+ debugger;
152
156
  validateRules();
153
157
  emit('change');
154
158
  };
@@ -164,7 +168,10 @@ const __sfc_main__ = Object.assign({
164
168
  id: filedId,
165
169
  onFieldChange,
166
170
  onFieldBlur,
167
- }, computed(() => get(context.dataSource.value, props.name)));
171
+ }, computed(() => {
172
+ console.log(context.dataSource.value, props.name);
173
+ return get(context.dataSource.value, props.name);
174
+ }));
168
175
  onBeforeUnmount(() => {
169
176
  hideErrorTip();
170
177
  });
@@ -116,7 +116,7 @@ const __sfc_main__ = _defineComponent({
116
116
  const column = ref(4);
117
117
  const page = reactive({
118
118
  pageIndex: 0,
119
- pageSize: 12,
119
+ pageSize: _optionalChain([tableConfig, 'access', _2 => _2.pagination, 'optionalAccess', _3 => _3.pageSize]) || 12,
120
120
  total: 0,
121
121
  loading: false
122
122
  });
@@ -127,7 +127,7 @@ const __sfc_main__ = _defineComponent({
127
127
  const extraSlots = ['headerRightRender', 'headerLeftRender', 'paginationRender', 'alertRender'];
128
128
  const _rowSelection = useTableInject();
129
129
  const showAlert = computed(() => {
130
- return props.alertShow && (_optionalChain([props, 'access', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]) || _optionalChain([_rowSelection, 'optionalAccess', _5 => _5.value, 'optionalAccess', _6 => _6.selectedRowKeys, 'optionalAccess', _7 => _7.length]));
130
+ return props.alertShow && (_optionalChain([props, 'access', _4 => _4.rowSelection, 'optionalAccess', _5 => _5.selectedRowKeys, 'optionalAccess', _6 => _6.length]) || _optionalChain([_rowSelection, 'optionalAccess', _7 => _7.value, 'optionalAccess', _8 => _8.selectedRowKeys, 'optionalAccess', _9 => _9.length]));
131
131
  });
132
132
  const showPagination = computed(() => {
133
133
  return !!_dataSource.value.length && !props.noPagination && props.type === 'PAGE';
@@ -145,23 +145,23 @@ const __sfc_main__ = _defineComponent({
145
145
  }
146
146
  else {
147
147
  _dataSource.value = result || [];
148
- page.pageIndex = _optionalChain([_params, 'optionalAccess', _8 => _8.pageIndex]) || 0;
149
- page.pageSize = _optionalChain([_params, 'optionalAccess', _9 => _9.pageSize]) || 12;
148
+ page.pageIndex = _optionalChain([_params, 'optionalAccess', _10 => _10.pageIndex]) || 0;
149
+ page.pageSize = _optionalChain([_params, 'optionalAccess', _11 => _11.pageSize]) || 12;
150
150
  page.total = page.pageSize * (page.pageIndex + 1) + 1;
151
151
  }
152
152
  }
153
153
  else {
154
- if (_optionalChain([result, 'optionalAccess', _10 => _10.total]) &&
155
- _optionalChain([result, 'optionalAccess', _11 => _11.pageSize]) &&
156
- _optionalChain([result, 'optionalAccess', _12 => _12.pageIndex]) &&
157
- _optionalChain([result, 'optionalAccess', _13 => _13.data, 'optionalAccess', _14 => _14.length]) === 0) {
154
+ if (_optionalChain([result, 'optionalAccess', _12 => _12.total]) &&
155
+ _optionalChain([result, 'optionalAccess', _13 => _13.pageSize]) &&
156
+ _optionalChain([result, 'optionalAccess', _14 => _14.pageIndex]) &&
157
+ _optionalChain([result, 'optionalAccess', _15 => _15.data, 'optionalAccess', _16 => _16.length]) === 0) {
158
158
  return true;
159
159
  }
160
160
  else {
161
- _dataSource.value = _optionalChain([result, 'optionalAccess', _15 => _15.data]) || [];
162
- page.pageIndex = _optionalChain([result, 'optionalAccess', _16 => _16.pageIndex]) || 0;
163
- page.pageSize = _optionalChain([result, 'optionalAccess', _17 => _17.pageSize]) || 12;
164
- page.total = _optionalChain([result, 'optionalAccess', _18 => _18.total]) || 0;
161
+ _dataSource.value = _optionalChain([result, 'optionalAccess', _17 => _17.data]) || [];
162
+ page.pageIndex = _optionalChain([result, 'optionalAccess', _18 => _18.pageIndex]) || 0;
163
+ page.pageSize = _optionalChain([result, 'optionalAccess', _19 => _19.pageSize]) || 12;
164
+ page.total = _optionalChain([result, 'optionalAccess', _20 => _20.total]) || 0;
165
165
  }
166
166
  }
167
167
  }
@@ -181,8 +181,8 @@ const __sfc_main__ = _defineComponent({
181
181
  ...props.defaultParams,
182
182
  ..._params,
183
183
  terms: [
184
- ...(_optionalChain([props, 'access', _19 => _19.defaultParams, 'optionalAccess', _20 => _20.terms]) || []),
185
- ...(_optionalChain([_params, 'optionalAccess', _21 => _21.terms]) || []),
184
+ ...(_optionalChain([props, 'access', _21 => _21.defaultParams, 'optionalAccess', _22 => _22.terms]) || []),
185
+ ...(_optionalChain([_params, 'optionalAccess', _23 => _23.terms]) || []),
186
186
  ],
187
187
  };
188
188
  loading.value = true;
@@ -193,7 +193,7 @@ const __sfc_main__ = _defineComponent({
193
193
  const flag = handleData(resp.result || {}, _params);
194
194
  if (flag) { // 判断如果是最后一页且最后一页为空,就跳转到前一页
195
195
  if (props.totalRequest) {
196
- onlyMessage(_optionalChain([contextLocale, 'access', _22 => _22.value, 'access', _23 => _23.pagination, 'optionalAccess', _24 => _24.lastPage]) || '', 'error');
196
+ onlyMessage(_optionalChain([contextLocale, 'access', _24 => _24.value, 'access', _25 => _25.pagination, 'optionalAccess', _26 => _26.lastPage]) || '', 'error');
197
197
  // 置灰下一页
198
198
  page.total = page.pageSize * (page.pageIndex > 0 ? page.pageIndex : 1);
199
199
  }
@@ -239,11 +239,11 @@ const __sfc_main__ = _defineComponent({
239
239
  };
240
240
  const onClose = () => {
241
241
  if (props.rowSelection) {
242
- _optionalChain([props, 'access', _25 => _25.rowSelection, 'access', _26 => _26.onChange, 'optionalCall', _27 => _27([], [])]);
243
- _optionalChain([props, 'access', _28 => _28.rowSelection, 'access', _29 => _29.onSelectNone, 'optionalCall', _30 => _30()]);
242
+ _optionalChain([props, 'access', _27 => _27.rowSelection, 'access', _28 => _28.onChange, 'optionalCall', _29 => _29([], [])]);
243
+ _optionalChain([props, 'access', _30 => _30.rowSelection, 'access', _31 => _31.onSelectNone, 'optionalCall', _32 => _32()]);
244
244
  }
245
- else if (_optionalChain([_rowSelection, 'optionalAccess', _31 => _31.value])) {
246
- _optionalChain([_rowSelection, 'access', _32 => _32.value, 'optionalAccess', _33 => _33.onSelectNone, 'optionalCall', _34 => _34()]);
245
+ else if (_optionalChain([_rowSelection, 'optionalAccess', _33 => _33.value])) {
246
+ _optionalChain([_rowSelection, 'access', _34 => _34.value, 'optionalAccess', _35 => _35.onSelectNone, 'optionalCall', _36 => _36()]);
247
247
  }
248
248
  };
249
249
  /**
@@ -259,10 +259,10 @@ const __sfc_main__ = _defineComponent({
259
259
  });
260
260
  };
261
261
  const _gridColumns = computed(() => {
262
- if (_optionalChain([props, 'access', _35 => _35.gridColumns, 'optionalAccess', _36 => _36.length])) {
262
+ if (_optionalChain([props, 'access', _37 => _37.gridColumns, 'optionalAccess', _38 => _38.length])) {
263
263
  const arr = props.gridColumns;
264
- const lastValue = _optionalChain([arr, 'access', _37 => _37.slice, 'call', _38 => _38(-1), 'optionalAccess', _39 => _39[0]]);
265
- if (_optionalChain([arr, 'optionalAccess', _40 => _40.length]) < 4) {
264
+ const lastValue = _optionalChain([arr, 'access', _39 => _39.slice, 'call', _40 => _40(-1), 'optionalAccess', _41 => _41[0]]);
265
+ if (_optionalChain([arr, 'optionalAccess', _42 => _42.length]) < 4) {
266
266
  while (arr.length < 4) {
267
267
  arr.push(lastValue);
268
268
  }
@@ -283,16 +283,16 @@ const __sfc_main__ = _defineComponent({
283
283
  const styles = window.getComputedStyle(ele);
284
284
  const width = parseFloat(styles.width);
285
285
  if (width <= 992) {
286
- column.value = _optionalChain([_gridColumns, 'access', _41 => _41.value, 'optionalAccess', _42 => _42[0]]) || 1;
286
+ column.value = _optionalChain([_gridColumns, 'access', _43 => _43.value, 'optionalAccess', _44 => _44[0]]) || 1;
287
287
  }
288
288
  else if (width > 992 && width <= 1440) {
289
- column.value = _optionalChain([_gridColumns, 'access', _43 => _43.value, 'optionalAccess', _44 => _44[1]]) || 2;
289
+ column.value = _optionalChain([_gridColumns, 'access', _45 => _45.value, 'optionalAccess', _46 => _46[1]]) || 2;
290
290
  }
291
291
  else if (width > 1440 && width <= 1600) {
292
- column.value = _optionalChain([_gridColumns, 'access', _45 => _45.value, 'optionalAccess', _46 => _46[2]]) || 3;
292
+ column.value = _optionalChain([_gridColumns, 'access', _47 => _47.value, 'optionalAccess', _48 => _48[2]]) || 3;
293
293
  }
294
294
  else if (width > 1600) {
295
- column.value = _optionalChain([_gridColumns, 'access', _47 => _47.value, 'optionalAccess', _48 => _48[3]]) || 4;
295
+ column.value = _optionalChain([_gridColumns, 'access', _49 => _49.value, 'optionalAccess', _50 => _50[3]]) || 4;
296
296
  }
297
297
  }
298
298
  };
@@ -17,7 +17,7 @@ var _headerProps = exports._headerProps = {
17
17
  default: undefined
18
18
  },
19
19
  modeValue: {
20
- type: String,
20
+ type: [String, undefined],
21
21
  default: 'TABLE'
22
22
  }
23
23
  };
@@ -144,11 +144,7 @@ var proTableProps = exports.proTableProps = (0, _objectSpread2.default)((0, _obj
144
144
  pagination: {
145
145
  type: Object,
146
146
  default: function _default() {
147
- return {
148
- showSizeChanger: true,
149
- size: 'size',
150
- pageSizeOptions: ['12', '24', '48', '96']
151
- };
147
+ return {};
152
148
  }
153
149
  }
154
150
  });
@@ -368,7 +368,7 @@ const __sfc_main__ = Object.assign({
368
368
  rowSelection: _rowSelection.value
369
369
  }, {
370
370
  bodyCell: _withCtx(({ text, record, index, column }) => [
371
- (column.dataIndex === firstColumn.value.dataIndex || column.key === firstColumn.value.key)
371
+ ((firstColumn.value.dataIndex && column.dataIndex === firstColumn.value.dataIndex) || (firstColumn.value.key && column.key === firstColumn.value.key))
372
372
  ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
373
373
  _createElementVNode("span", {
374
374
  class: "ant-table-row-indent indent-level-3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "3.1.12",
3
+ "version": "3.1.14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",