@94ai/nf-table 100.1.45 → 100.1.47

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.
@@ -145,35 +145,38 @@ const instance = getCurrentInstance()?.proxy
145
145
 
146
146
 
147
147
  const props = withDefaults(defineProps<{
148
- selectEmptyWarningTips?: string,
149
- // 源序列
150
- tableColumns?: Record<string, any>[],
151
- storageKey?: string
152
- operationPropKey?: string
153
- /**
154
- * 列编辑显示开关
155
- */
156
- columnEdit?: boolean,
157
148
  searchPlaceholder?: string
158
149
  fixedLeftDesc?: string
159
150
  clearDesc?: string
160
151
  noFixedDesc?: string
152
+ /**
153
+ * 默认category分类标题
154
+ */
161
155
  basicFieldDesc?: string
156
+ selectEmptyWarningTips?: string
162
157
  getCheckedLengthDesc?: Function
163
158
  getAllCheckDesc?: Function
159
+ /**
160
+ * 列编辑显示开关
161
+ */
162
+ columnEdit?: boolean,
163
+ // 源序列
164
+ tableColumns?: Record<string, any>[],
165
+ storageKey?: string
166
+ operationPropKey?: string
164
167
  }>(), {
165
- columnEdit: false,
166
168
  selectEmptyWarningTips: '请选择至少一个选项',
167
- tableColumns: () => [],
168
- storageKey: 'nf-table-columns-cached-key',
169
- operationPropKey: 'operation',
170
169
  searchPlaceholder: '搜索',
171
170
  fixedLeftDesc: '固定在左侧',
172
171
  clearDesc: '清除',
173
172
  noFixedDesc: '不固定',
174
173
  basicFieldDesc: '基础字段',
175
174
  getCheckedLengthDesc: (length) => '已选(' + length + ')',
176
- getAllCheckDesc: (length) => '全选(' + length + ')'
175
+ getAllCheckDesc: (length) => '全选(' + length + ')',
176
+ tableColumns: () => [],
177
+ columnEdit: false,
178
+ storageKey: 'nf-table-columns-cached-key',
179
+ operationPropKey: 'operation',
177
180
  })
178
181
 
179
182
  // 获取当前缓存中的动态数据列
@@ -5,10 +5,6 @@
5
5
  ref="nfSearchFormRef"
6
6
  v-bind="searchFormAttrs"
7
7
  v-on="searchFormEvents"
8
- :operation-prop-key="operationPropKey"
9
- :storage-key="searchFormStorageKey"
10
- :property="priority"
11
- :select-empty-warning-tips="selectEmptyWarningTips"
12
8
  >
13
9
  <template v-for="item in (nfSearchFormRef?.renderSearchFormItemOptions || [])">
14
10
  <!-- 定制化SearchItem?提示-->
@@ -458,16 +454,16 @@
458
454
  </div>
459
455
  </div>
460
456
  <column-check-dialog
461
- v-if="nfColumCheckDialogVisible && checkMode === 'dialog'"
457
+ :title="columnCheckTitle"
458
+ :confirm-text="columnCheckConfirmButtonText"
459
+ :cancel-text="columnCheckCancelButtonText"
460
+ :basic-field-desc="columnCheckBasicFieldDesc"
461
+
462
462
  :show.sync="nfColumCheckDialogVisible"
463
463
  :table-columns="columns"
464
464
  :column-edit="columnEdit"
465
465
  :storage-key="storageKey"
466
- @save="fieldsConfirm"
467
- :title="columnCheckTitle"
468
466
  :width="columnCheckWidth"
469
- :confirm-text="columnCheckConfirmText"
470
- :cancel-text="columnCheckCancelText"
471
467
  :modal-append-to-body="columnCheckModalAppendToBody"
472
468
  :modal="columnCheckModal"
473
469
  :fullscreen="columnCheckFullscreen"
@@ -481,23 +477,28 @@
481
477
  :before-close="columnCheckBeforeClose"
482
478
  :center="columnCheckCenter"
483
479
  :destroy-on-close="columnCheckDestroyOnClose"
484
- ref="columnCheckDialog"
485
480
  :operation-prop-key="operationPropKey"
481
+
482
+ v-if="nfColumCheckDialogVisible && checkMode === 'dialog'"
483
+ ref="columnCheckDialog"
484
+ @save="fieldsConfirm"
486
485
  >
487
486
  <slot slot="tableColumnEditDialogTitle" name="title"></slot>
488
487
  <slot slot="tableColumnEditDialogFooter" name="footer"></slot>
489
488
  </column-check-dialog>
490
489
  <nf-drawer
491
- ref="columnCheckNfDrawer"
492
- size="680px"
493
- v-if="checkMode === 'drawer'"
494
490
  :title="columnCheckTitle"
495
491
  :cancel-button-text="columnCheckCancelButtonText"
496
492
  :confirm-button-text="columnCheckConfirmButtonText"
493
+
494
+ ref="columnCheckNfDrawer"
495
+ size="680px"
497
496
  :visible.sync="nfColumCheckDialogVisible"
498
497
  :tabs="columnCheckTabs"
499
498
  :destroy-on-close="true"
500
499
  :currentTab="columnCheckCurrentTab"
500
+
501
+ v-if="checkMode === 'drawer'"
501
502
  @confirm="columnCheckConfirm"
502
503
  @changeTab="(done) => $emit('changeTab', done)"
503
504
  @cancel="(name) => $emit('cancel', name)"
@@ -510,14 +511,15 @@
510
511
  :clear-desc="columnCheckClearDesc"
511
512
  :no-fixed-desc="columnCheckNoFixedDesc"
512
513
  :basic-field-desc="columnCheckBasicFieldDesc"
513
- :column-edit="columnEdit"
514
+ :select-empty-warning-tips="selectEmptyWarningTips"
514
515
  :get-checked-length-desc="columnCheckGetCheckedLengthDesc"
515
516
  :get-all-check-desc="columnCheckGetAllCheckDesc"
516
- :operation-prop-key="operationPropKey"
517
517
  ref="columnCheckDrawer"
518
+
519
+ :column-edit="columnEdit"
520
+ :operation-prop-key="operationPropKey"
518
521
  :storage-key="storageKey"
519
522
  :table-columns="columns"
520
- :select-empty-warning-tips="selectEmptyWarningTips"
521
523
  />
522
524
  </nf-drawer>
523
525
  </div>
@@ -561,8 +563,6 @@ import { ITabItem } from '@94ai/nf-drawer/lib/types'
561
563
  import { CachedManager } from '@94ai/common-utils'
562
564
 
563
565
  const props = withDefaults(defineProps<{
564
- dragCached?: boolean,
565
- emptyImageSize?: number,
566
566
  data?: Record<string, any>[],
567
567
  columns?: NfTableColumnAttributes[] | any,
568
568
  searchFormAttrs?: NfSearchFormAttributes,
@@ -572,6 +572,14 @@ const props = withDefaults(defineProps<{
572
572
  pageAttrs?: ElPaginationAttributes,
573
573
  pageEvents?: Partial<Record<ElPaginationEventKey, Function>>,
574
574
  actionBarOptList?: NfTableActionBtnAttributes[],
575
+ /**
576
+ * 开启表格列拖拽缓存记录
577
+ */
578
+ dragCached?: boolean,
579
+ /**
580
+ * 表格空数据时空组件size
581
+ */
582
+ emptyImageSize?: number,
575
583
  /**
576
584
  * 固定窗口满屏table自动计算table高度
577
585
  */
@@ -609,12 +617,11 @@ const props = withDefaults(defineProps<{
609
617
  columnCheckTitle?: string,
610
618
  columnCheckCancelButtonText?: string,
611
619
  columnCheckConfirmButtonText?: string,
620
+ columnCheckBasicFieldDesc?: string
612
621
  /**
613
622
  * 列编辑dialog模式
614
623
  */
615
624
  columnCheckWidth?: string,
616
- columnCheckConfirmText?: string
617
- columnCheckCancelText?: string
618
625
  columnCheckModalAppendToBody?: boolean,
619
626
  columnCheckModal?: boolean,
620
627
  columnCheckFullscreen?: boolean,
@@ -635,7 +642,6 @@ const props = withDefaults(defineProps<{
635
642
  columnCheckFixedLeftDesc?: string
636
643
  columnCheckClearDesc?: string
637
644
  columnCheckNoFixedDesc?: string
638
- columnCheckBasicFieldDesc?: string
639
645
  columnCheckGetCheckedLengthDesc?: Function
640
646
  columnCheckGetAllCheckDesc?: Function
641
647
  columnCheckTabs?: ITabItem[],
@@ -662,10 +668,10 @@ const props = withDefaults(defineProps<{
662
668
  * 操作列属性key
663
669
  */
664
670
  operationPropKey?: string
671
+
665
672
  }>(), {
666
673
  dragCached: true,
667
674
  emptyImageSize: 145,
668
- selectEmptyWarningTips: '请选择至少一个选项',
669
675
  priority: 'cached',
670
676
  storageKey: 'nf-table-columns-cached-key',
671
677
  searchFormStorageKey: 'nf-search-form-columns-cached-key',
@@ -700,14 +706,10 @@ const props = withDefaults(defineProps<{
700
706
  columnDisplayBtnCircle: false,
701
707
  columnDisplayBtnLoading: false,
702
708
  columnDisplayBtnDisabled: false,
703
- columnDisplayBtnText: '设置列表字段',
704
709
  columnDisplayBtnClass: '',
705
710
  alwaysShowPage: true,
706
711
  operationPropKey: 'operation',
707
- columnCheckTitle: '设置显示字段',
708
712
  columnCheckWidth: '600px',
709
- columnCheckConfirmText: '保 存',
710
- columnCheckCancelText: '取 消',
711
713
  columnCheckModalAppendToBody: true,
712
714
  columnCheckModal: true,
713
715
  columnCheckFullscreen: false,
@@ -721,6 +723,9 @@ const props = withDefaults(defineProps<{
721
723
  columnCheckBeforeClose: undefined,
722
724
  columnCheckCenter: false,
723
725
  columnCheckDestroyOnClose: false,
726
+ selectEmptyWarningTips: '请选择至少一个选项',
727
+ columnDisplayBtnText: '设置列表字段',
728
+ columnCheckTitle: '设置显示字段',
724
729
  columnCheckCancelButtonText: '取消',
725
730
  columnCheckConfirmButtonText: '确定',
726
731
  columnCheckSearchPlaceholder: '搜索',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "100.1.45",
3
+ "version": "100.1.47",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,12 +14,12 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^100.1.45",
18
- "@94ai/nf-button": "^100.1.45",
19
- "@94ai/nf-drawer": "^100.1.45",
20
- "@94ai/nf-message": "^100.1.45",
21
- "@94ai/nf-search-form": "^100.1.45",
22
- "@94ai/nf-theme-chalk": "^100.1.45",
17
+ "@94ai/common-utils": "^100.1.47",
18
+ "@94ai/nf-button": "^100.1.47",
19
+ "@94ai/nf-drawer": "^100.1.47",
20
+ "@94ai/nf-message": "^100.1.47",
21
+ "@94ai/nf-search-form": "^100.1.47",
22
+ "@94ai/nf-theme-chalk": "^100.1.47",
23
23
  "idb-keyval": "^6.2.1",
24
24
  "vue-demi": "^0.14.5",
25
25
  "vuedraggable": "^2.24.3"
@@ -37,5 +37,5 @@
37
37
  "types": "lib/index.d.ts",
38
38
  "main": "lib/nf-table.cjs.js",
39
39
  "module": "lib/nf-table.esm-bundler.js",
40
- "gitHead": "4c5a85d5403ee4fb6bb5a1810f2b77235a5a842e"
40
+ "gitHead": "583a12d28fca323699b25aa5931ad859ddb05ef8"
41
41
  }