@94ai/nf-table 6.1.11 → 6.1.13

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/lib/index.d.ts CHANGED
@@ -979,6 +979,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
979
979
  slot?: any;
980
980
  headerSlot?: any;
981
981
  labelTooltip?: string | undefined;
982
+ labelTooltipPlacement?: string | undefined;
982
983
  unit?: string | undefined;
983
984
  options: {
984
985
  label: string;
@@ -1027,6 +1028,12 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1027
1028
  elTableRefKey: import("vue-demi").Ref<number>;
1028
1029
  clearDragCached: () => Promise<void>;
1029
1030
  clearColumnEditCached: () => Promise<void>;
1031
+ handleCurrentChange: (val: any, isSearch?: boolean) => void;
1032
+ pageAttrs: import("vue-demi").ComputedRef<{
1033
+ 'current-page': number | undefined;
1034
+ 'page-size': number;
1035
+ pageKeys: string[];
1036
+ }>;
1030
1037
  }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
1031
1038
  background: {
1032
1039
  type: import("vue-demi").PropType<string>;
@@ -1642,6 +1649,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1642
1649
  slot?: any;
1643
1650
  headerSlot?: any;
1644
1651
  labelTooltip?: string | undefined;
1652
+ labelTooltipPlacement?: string | undefined;
1645
1653
  unit?: string | undefined;
1646
1654
  options: {
1647
1655
  label: string;
@@ -1690,6 +1698,12 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1690
1698
  elTableRefKey: import("vue-demi").Ref<number>;
1691
1699
  clearDragCached: () => Promise<void>;
1692
1700
  clearColumnEditCached: () => Promise<void>;
1701
+ handleCurrentChange: (val: any, isSearch?: boolean) => void;
1702
+ pageAttrs: import("vue-demi").ComputedRef<{
1703
+ 'current-page': number | undefined;
1704
+ 'page-size': number;
1705
+ pageKeys: string[];
1706
+ }>;
1693
1707
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
1694
1708
  fieldsChange: (event: string[]) => void;
1695
1709
  "update:showColumn": (event: string[] | undefined) => void;
@@ -6571,8 +6571,6 @@ __sfc_main.setup = (__props, __ctx) => {
6571
6571
  }, {
6572
6572
  deep: true
6573
6573
  });
6574
- if (cInitSearchApi.value)
6575
- onNfSearchFormSearch();
6576
6574
  });
6577
6575
  const searchFormAttrer = vueDemi.computed(() => {
6578
6576
  const obj = {
@@ -6805,6 +6803,8 @@ __sfc_main.setup = (__props, __ctx) => {
6805
6803
  console.log("🔅 ~ onMounted ~ props.columns:", props.columns);
6806
6804
  }
6807
6805
  });
6806
+ if (cInitSearchApi.value)
6807
+ onNfSearchFormSearch();
6808
6808
  });
6809
6809
  const nfTableBorder = window.nfTableBorder;
6810
6810
  return Object.assign({
@@ -6976,7 +6976,11 @@ __sfc_main.setup = (__props, __ctx) => {
6976
6976
  syncCookiesToTableColumn,
6977
6977
  elTableRefKey,
6978
6978
  clearDragCached,
6979
- clearColumnEditCached
6979
+ clearColumnEditCached,
6980
+ /** 切换页码 */
6981
+ handleCurrentChange,
6982
+ /** 当前页码 */
6983
+ pageAttrs: vueDemi.computed(() => cPageAttrs)
6980
6984
  });
6981
6985
  };
6982
6986
  __sfc_main.components = Object.assign({
@@ -7106,26 +7110,22 @@ var _sfc_render = function render3() {
7106
7110
  })])];
7107
7111
  }, {
7108
7112
  "column": column
7109
- }) : column.labelTooltip ? [_c("span", {
7110
- staticStyle: {
7111
- "white-space": "nowrap"
7112
- }
7113
- }, [_vm._v(" " + _vm._s(column.label) + " ")]), _c("el-tooltip", {
7113
+ }) : column.labelTooltip ? [_c("el-tooltip", {
7114
7114
  attrs: {
7115
- "placement": "right",
7116
- "effect": "light"
7115
+ "placement": column.labelTooltipPlacement || "right",
7116
+ "effect": "dark"
7117
7117
  }
7118
7118
  }, [_c("div", {
7119
7119
  attrs: {
7120
7120
  "slot": "content"
7121
7121
  },
7122
7122
  slot: "content"
7123
- }, [_vm._v(_vm._s(column.labelTooltip))]), _c("i", {
7124
- staticClass: "iconfont icon-bangzhuzhongxin",
7123
+ }, [_vm._v(_vm._s(column.labelTooltip))]), _c("span", {
7124
+ staticClass: "bottom-line",
7125
7125
  staticStyle: {
7126
- "font-weight": "normal"
7126
+ "white-space": "nowrap"
7127
7127
  }
7128
- })])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
7128
+ }, [_vm._v(" " + _vm._s(column.label) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
7129
7129
  "$index": scope.$index,
7130
7130
  "column": scope.column
7131
7131
  })] : _c("span", [_vm._v(" " + _vm._s(column.label) + " ")])];
@@ -6569,8 +6569,6 @@ __sfc_main.setup = (__props, __ctx) => {
6569
6569
  }, {
6570
6570
  deep: true
6571
6571
  });
6572
- if (cInitSearchApi.value)
6573
- onNfSearchFormSearch();
6574
6572
  });
6575
6573
  const searchFormAttrer = computed(() => {
6576
6574
  const obj = {
@@ -6803,6 +6801,8 @@ __sfc_main.setup = (__props, __ctx) => {
6803
6801
  console.log("🔅 ~ onMounted ~ props.columns:", props.columns);
6804
6802
  }
6805
6803
  });
6804
+ if (cInitSearchApi.value)
6805
+ onNfSearchFormSearch();
6806
6806
  });
6807
6807
  const nfTableBorder = window.nfTableBorder;
6808
6808
  return Object.assign({
@@ -6974,7 +6974,11 @@ __sfc_main.setup = (__props, __ctx) => {
6974
6974
  syncCookiesToTableColumn,
6975
6975
  elTableRefKey,
6976
6976
  clearDragCached,
6977
- clearColumnEditCached
6977
+ clearColumnEditCached,
6978
+ /** 切换页码 */
6979
+ handleCurrentChange,
6980
+ /** 当前页码 */
6981
+ pageAttrs: computed(() => cPageAttrs)
6978
6982
  });
6979
6983
  };
6980
6984
  __sfc_main.components = Object.assign({
@@ -7104,26 +7108,22 @@ var _sfc_render = function render3() {
7104
7108
  })])];
7105
7109
  }, {
7106
7110
  "column": column
7107
- }) : column.labelTooltip ? [_c("span", {
7108
- staticStyle: {
7109
- "white-space": "nowrap"
7110
- }
7111
- }, [_vm._v(" " + _vm._s(column.label) + " ")]), _c("el-tooltip", {
7111
+ }) : column.labelTooltip ? [_c("el-tooltip", {
7112
7112
  attrs: {
7113
- "placement": "right",
7114
- "effect": "light"
7113
+ "placement": column.labelTooltipPlacement || "right",
7114
+ "effect": "dark"
7115
7115
  }
7116
7116
  }, [_c("div", {
7117
7117
  attrs: {
7118
7118
  "slot": "content"
7119
7119
  },
7120
7120
  slot: "content"
7121
- }, [_vm._v(_vm._s(column.labelTooltip))]), _c("i", {
7122
- staticClass: "iconfont icon-bangzhuzhongxin",
7121
+ }, [_vm._v(_vm._s(column.labelTooltip))]), _c("span", {
7122
+ staticClass: "bottom-line",
7123
7123
  staticStyle: {
7124
- "font-weight": "normal"
7124
+ "white-space": "nowrap"
7125
7125
  }
7126
- })])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
7126
+ }, [_vm._v(" " + _vm._s(column.label) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
7127
7127
  "$index": scope.$index,
7128
7128
  "column": scope.column
7129
7129
  })] : _c("span", [_vm._v(" " + _vm._s(column.label) + " ")])];
@@ -185,6 +185,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
185
185
  slot?: any;
186
186
  headerSlot?: any;
187
187
  labelTooltip?: string | undefined;
188
+ labelTooltipPlacement?: string | undefined;
188
189
  unit?: string | undefined;
189
190
  options: {
190
191
  label: string;
@@ -233,6 +234,12 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
233
234
  elTableRefKey: import("vue-demi").Ref<number>;
234
235
  clearDragCached: () => Promise<void>;
235
236
  clearColumnEditCached: () => Promise<void>;
237
+ handleCurrentChange: (val: any, isSearch?: boolean) => void;
238
+ pageAttrs: import("vue-demi").ComputedRef<{
239
+ 'current-page': number | undefined;
240
+ 'page-size': number;
241
+ pageKeys: string[];
242
+ }>;
236
243
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
237
244
  fieldsChange: (event: string[]) => void;
238
245
  "update:showColumn": (event: string[] | undefined) => void;
package/lib/types.d.ts CHANGED
@@ -187,6 +187,7 @@ export interface NfTableColumnAttributes {
187
187
  slot?: any;
188
188
  headerSlot?: any;
189
189
  labelTooltip?: string;
190
+ labelTooltipPlacement?: string;
190
191
  unit?: string;
191
192
  options: {
192
193
  label: string;
@@ -102,10 +102,9 @@
102
102
  </slot>
103
103
  <!-- labelTooltip -->
104
104
  <template v-else-if="column.labelTooltip">
105
- <span style="white-space:nowrap"> {{ column.label }} </span>
106
- <el-tooltip placement="right" effect="light">
105
+ <el-tooltip :placement="column.labelTooltipPlacement || 'right'" effect="dark">
107
106
  <div slot="content">{{ column.labelTooltip }}</div>
108
- <i class="iconfont icon-bangzhuzhongxin" style="font-weight: normal"/>
107
+ <span class="bottom-line" style="white-space:nowrap"> {{ column.label }} </span>
109
108
  </el-tooltip>
110
109
  </template>
111
110
  <!-- 头部插槽 -->
@@ -1143,7 +1142,6 @@ onBeforeMount(() => {
1143
1142
  }, {
1144
1143
  deep: true
1145
1144
  })
1146
- if (cInitSearchApi.value) onNfSearchFormSearch()
1147
1145
  })
1148
1146
 
1149
1147
  const searchFormAttrer = computed(() => {
@@ -1397,6 +1395,7 @@ onMounted(() => {
1397
1395
  console.log('🔅 ~ onMounted ~ props.columns:', props.columns)
1398
1396
  }
1399
1397
  })
1398
+ if (cInitSearchApi.value) onNfSearchFormSearch()
1400
1399
  })
1401
1400
 
1402
1401
  const nfTableBorder = (window as any).nfTableBorder
@@ -1536,7 +1535,11 @@ defineExpose({
1536
1535
  syncCookiesToTableColumn,
1537
1536
  elTableRefKey,
1538
1537
  clearDragCached,
1539
- clearColumnEditCached
1538
+ clearColumnEditCached,
1539
+ /** 切换页码 */
1540
+ handleCurrentChange,
1541
+ /** 当前页码 */
1542
+ pageAttrs: computed(() => cPageAttrs)
1540
1543
  })
1541
1544
 
1542
1545
  </script>
package/package/types.ts CHANGED
@@ -265,6 +265,10 @@ export interface NfTableColumnAttributes {
265
265
  * 表头Tooltip
266
266
  */
267
267
  labelTooltip?: string
268
+ /**
269
+ * 表头Tooltip placement
270
+ */
271
+ labelTooltipPlacement?: string
268
272
  /**
269
273
  * 数据单位
270
274
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "6.1.11",
3
+ "version": "6.1.13",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,13 +14,13 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^6.1.11",
18
- "@94ai/nf-button": "^6.1.11",
19
- "@94ai/nf-drawer": "^6.1.11",
20
- "@94ai/nf-message": "^6.1.11",
21
- "@94ai/nf-search-form": "^6.1.11",
22
- "@94ai/nf-tag": "^6.1.11",
23
- "@94ai/nf-theme-chalk": "^6.1.11",
17
+ "@94ai/common-utils": "^6.1.13",
18
+ "@94ai/nf-button": "^6.1.13",
19
+ "@94ai/nf-drawer": "^6.1.13",
20
+ "@94ai/nf-message": "^6.1.13",
21
+ "@94ai/nf-search-form": "^6.1.13",
22
+ "@94ai/nf-tag": "^6.1.13",
23
+ "@94ai/nf-theme-chalk": "^6.1.13",
24
24
  "idb-keyval": "^6.2.1",
25
25
  "vue-demi": "^0.14.5",
26
26
  "vue-router": "3.6.4",
@@ -39,5 +39,5 @@
39
39
  "types": "lib/index.d.ts",
40
40
  "main": "lib/nf-table.cjs.js",
41
41
  "module": "lib/nf-table.esm-bundler.js",
42
- "gitHead": "b323e0bc9c0c83ee7729ce6fc8e1611143f73e09"
42
+ "gitHead": "c170847f6493387bf69985e7661c5d44e0a1decd"
43
43
  }