@94ai/nf-table 100.1.31 → 100.1.34

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
@@ -945,6 +945,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
945
945
  syncLocalShowColumnToCookies: () => void;
946
946
  syncCookiesToLocalShowColumn: () => Promise<void>;
947
947
  syncCookiesToTableColumn: (readCached?: boolean) => Promise<void>;
948
+ elTableRefKey: import("vue-demi").Ref<number>;
948
949
  }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
949
950
  background: {
950
951
  type: import("vue-demi").PropType<string>;
@@ -1555,6 +1556,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1555
1556
  syncLocalShowColumnToCookies: () => void;
1556
1557
  syncCookiesToLocalShowColumn: () => Promise<void>;
1557
1558
  syncCookiesToTableColumn: (readCached?: boolean) => Promise<void>;
1559
+ elTableRefKey: import("vue-demi").Ref<number>;
1558
1560
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
1559
1561
  fieldsChange: (event: string[]) => void;
1560
1562
  "update:showColumn": (event: string[] | undefined) => void;
@@ -290,7 +290,7 @@ var _sfc_render$3 = function render() {
290
290
  }), 0), _vm._t("footer", function() {
291
291
  return [_c("div", {
292
292
  staticClass: "nf-table-nf-column-check-dialog-button-container"
293
- }, [_c("el-button", {
293
+ }, [_c("nf-button", {
294
294
  staticClass: "nf-table-nf-column-check-dialog-button-cancel",
295
295
  attrs: {
296
296
  "size": "mini"
@@ -300,7 +300,7 @@ var _sfc_render$3 = function render() {
300
300
  _vm.visible = false;
301
301
  }
302
302
  }
303
- }, [_vm._v(_vm._s(_vm.cancelText))]), _c("el-button", {
303
+ }, [_vm._v(_vm._s(_vm.cancelText))]), _c("nf-button", {
304
304
  staticClass: "nf-table-nf-column-check-dialog-button-confirm",
305
305
  attrs: {
306
306
  "type": "primary",
@@ -6752,7 +6752,8 @@ __sfc_main.setup = (__props, __ctx) => {
6752
6752
  /**
6753
6753
  * 列编辑同步cookies到组件渲染数据
6754
6754
  */
6755
- syncCookiesToTableColumn
6755
+ syncCookiesToTableColumn,
6756
+ elTableRefKey
6756
6757
  });
6757
6758
  };
6758
6759
  __sfc_main.components = Object.assign({
@@ -6795,7 +6796,7 @@ var _sfc_render = function render3() {
6795
6796
  ref: "nfTableContent",
6796
6797
  staticClass: "nf-table-content"
6797
6798
  }, [_vm.columnEdit && _vm.columnPosition === "free" ? _vm._t("columnEdit", function() {
6798
- return [_c("el-button", {
6799
+ return [_c("nf-button", {
6799
6800
  class: (_vm.columnDisplayBtnClass || "") + " nf-column-display",
6800
6801
  attrs: {
6801
6802
  "type": _vm.columnDisplayBtnType,
@@ -6911,7 +6912,7 @@ var _sfc_render = function render3() {
6911
6912
  "row": scope.row,
6912
6913
  "index": scope.$index
6913
6914
  }) : [column.prop === _vm.operationPropKey && !_vm.hasOperationSlot ? _vm._l(column.operationList, function(item, index2) {
6914
- return _c("el-button", _vm._g({
6915
+ return _c("nf-button", _vm._g({
6915
6916
  key: item.key || index2,
6916
6917
  class: item.class,
6917
6918
  style: item.style,
@@ -6952,7 +6953,7 @@ var _sfc_render = function render3() {
6952
6953
  var _a2;
6953
6954
  return [((_a2 = _vm.actionBarOptList) == null ? void 0 : _a2.length) && !_vm.hasActionBarSlot ? [_vm._l(_vm.actionBarOptList, function(item, index2) {
6954
6955
  var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j;
6955
- return [item.element === "el-button" ? _c("el-button", _vm._g({
6956
+ return [item.element === "el-button" ? _c("nf-button", _vm._g({
6956
6957
  key: item.key || index2,
6957
6958
  class: item.class,
6958
6959
  style: {
@@ -288,7 +288,7 @@ var _sfc_render$3 = function render() {
288
288
  }), 0), _vm._t("footer", function() {
289
289
  return [_c("div", {
290
290
  staticClass: "nf-table-nf-column-check-dialog-button-container"
291
- }, [_c("el-button", {
291
+ }, [_c("nf-button", {
292
292
  staticClass: "nf-table-nf-column-check-dialog-button-cancel",
293
293
  attrs: {
294
294
  "size": "mini"
@@ -298,7 +298,7 @@ var _sfc_render$3 = function render() {
298
298
  _vm.visible = false;
299
299
  }
300
300
  }
301
- }, [_vm._v(_vm._s(_vm.cancelText))]), _c("el-button", {
301
+ }, [_vm._v(_vm._s(_vm.cancelText))]), _c("nf-button", {
302
302
  staticClass: "nf-table-nf-column-check-dialog-button-confirm",
303
303
  attrs: {
304
304
  "type": "primary",
@@ -6750,7 +6750,8 @@ __sfc_main.setup = (__props, __ctx) => {
6750
6750
  /**
6751
6751
  * 列编辑同步cookies到组件渲染数据
6752
6752
  */
6753
- syncCookiesToTableColumn
6753
+ syncCookiesToTableColumn,
6754
+ elTableRefKey
6754
6755
  });
6755
6756
  };
6756
6757
  __sfc_main.components = Object.assign({
@@ -6793,7 +6794,7 @@ var _sfc_render = function render3() {
6793
6794
  ref: "nfTableContent",
6794
6795
  staticClass: "nf-table-content"
6795
6796
  }, [_vm.columnEdit && _vm.columnPosition === "free" ? _vm._t("columnEdit", function() {
6796
- return [_c("el-button", {
6797
+ return [_c("nf-button", {
6797
6798
  class: (_vm.columnDisplayBtnClass || "") + " nf-column-display",
6798
6799
  attrs: {
6799
6800
  "type": _vm.columnDisplayBtnType,
@@ -6909,7 +6910,7 @@ var _sfc_render = function render3() {
6909
6910
  "row": scope.row,
6910
6911
  "index": scope.$index
6911
6912
  }) : [column.prop === _vm.operationPropKey && !_vm.hasOperationSlot ? _vm._l(column.operationList, function(item, index2) {
6912
- return _c("el-button", _vm._g({
6913
+ return _c("nf-button", _vm._g({
6913
6914
  key: item.key || index2,
6914
6915
  class: item.class,
6915
6916
  style: item.style,
@@ -6950,7 +6951,7 @@ var _sfc_render = function render3() {
6950
6951
  var _a2;
6951
6952
  return [((_a2 = _vm.actionBarOptList) == null ? void 0 : _a2.length) && !_vm.hasActionBarSlot ? [_vm._l(_vm.actionBarOptList, function(item, index2) {
6952
6953
  var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j;
6953
- return [item.element === "el-button" ? _c("el-button", _vm._g({
6954
+ return [item.element === "el-button" ? _c("nf-button", _vm._g({
6954
6955
  key: item.key || index2,
6955
6956
  class: item.class,
6956
6957
  style: {
@@ -343,6 +343,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
343
343
  syncLocalShowColumnToCookies: () => void;
344
344
  syncCookiesToLocalShowColumn: () => Promise<void>;
345
345
  syncCookiesToTableColumn: (readCached?: boolean) => Promise<void>;
346
+ elTableRefKey: import("vue-demi").Ref<number>;
346
347
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
347
348
  fieldsChange: (event: string[]) => void;
348
349
  "update:showColumn": (event: string[] | undefined) => void;
@@ -37,8 +37,8 @@
37
37
  </div>
38
38
  <slot slot="footer" name="footer">
39
39
  <div class="nf-table-nf-column-check-dialog-button-container">
40
- <el-button size="mini" @click="visible=false" class="nf-table-nf-column-check-dialog-button-cancel">{{ cancelText }}</el-button>
41
- <el-button type="primary" size="mini" @click="submit" class="nf-table-nf-column-check-dialog-button-confirm">{{ confirmText }}</el-button>
40
+ <nf-button size="mini" @click="visible=false" class="nf-table-nf-column-check-dialog-button-cancel">{{ cancelText }}</nf-button>
41
+ <nf-button type="primary" size="mini" @click="submit" class="nf-table-nf-column-check-dialog-button-confirm">{{ confirmText }}</nf-button>
42
42
  </div>
43
43
  </slot>
44
44
  </el-dialog>
@@ -27,7 +27,7 @@
27
27
  </slot>
28
28
  <div class="nf-table-content" ref="nfTableContent">
29
29
  <slot name="columnEdit" v-if="columnEdit && columnPosition === 'free'">
30
- <el-button @click="nfColumCheckDialogVisible = true"
30
+ <nf-button @click="nfColumCheckDialogVisible = true"
31
31
  :class="(columnDisplayBtnClass || '') + ' nf-column-display'"
32
32
  :type="columnDisplayBtnType"
33
33
  :plain="columnDisplayBtnPlain"
@@ -39,7 +39,7 @@
39
39
  :disabled="columnDisplayBtnDisabled"
40
40
  >
41
41
  {{ columnDisplayBtnText }}
42
- </el-button>
42
+ </nf-button>
43
43
  </slot>
44
44
  <el-table
45
45
  ref="elTableRef"
@@ -116,7 +116,7 @@
116
116
  <slot v-if="column.slot" :name="column.slot" :row="scope.row" :index="scope.$index" />
117
117
  <template v-else>
118
118
  <template v-if="column.prop === operationPropKey && !hasOperationSlot">
119
- <el-button
119
+ <nf-button
120
120
  :size="item.size || 'mini'"
121
121
  :type="item.type || 'text'"
122
122
  :disabled="item.disabled"
@@ -131,7 +131,7 @@
131
131
  v-on="item.events"
132
132
  :key="item.key || index"
133
133
  >{{ item.text }}
134
- </el-button>
134
+ </nf-button>
135
135
  </template>
136
136
  <span v-else>{{ scope.row[column.prop] }}</span>
137
137
  </template>
@@ -150,7 +150,7 @@
150
150
  <slot name="actionBar" ref="nfTableActionBarRef">
151
151
  <template v-if="actionBarOptList?.length && !hasActionBarSlot">
152
152
  <template v-for="(item, index) in actionBarOptList">
153
- <el-button
153
+ <nf-button
154
154
  :key="item.key || index"
155
155
  v-if="item.element === 'el-button'"
156
156
  :size="item.size || 'mini'"
@@ -165,7 +165,7 @@
165
165
  :style="{...(item.style || {}), marginRight: '10px'}"
166
166
  v-on="item.events"
167
167
  >{{ item.value }}
168
- </el-button>
168
+ </nf-button>
169
169
  <el-checkbox
170
170
  :key="item.key || index"
171
171
  v-model="item.value"
@@ -1313,7 +1313,8 @@ defineExpose({
1313
1313
  /**
1314
1314
  * 列编辑同步cookies到组件渲染数据
1315
1315
  */
1316
- syncCookiesToTableColumn
1316
+ syncCookiesToTableColumn,
1317
+ elTableRefKey
1317
1318
  })
1318
1319
 
1319
1320
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "100.1.31",
3
+ "version": "100.1.34",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,11 +14,12 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^100.1.31",
18
- "@94ai/nf-drawer": "^100.1.31",
19
- "@94ai/nf-message": "^100.1.31",
20
- "@94ai/nf-search-form": "^100.1.31",
21
- "@94ai/nf-theme-chalk": "^100.1.31",
17
+ "@94ai/common-utils": "^100.1.34",
18
+ "@94ai/nf-button": "^100.1.34",
19
+ "@94ai/nf-drawer": "^100.1.34",
20
+ "@94ai/nf-message": "^100.1.34",
21
+ "@94ai/nf-search-form": "^100.1.34",
22
+ "@94ai/nf-theme-chalk": "^100.1.34",
22
23
  "idb-keyval": "^6.2.1",
23
24
  "vue-demi": "^0.14.5",
24
25
  "vuedraggable": "^2.24.3"
@@ -36,5 +37,5 @@
36
37
  "types": "lib/index.d.ts",
37
38
  "main": "lib/nf-table.cjs.js",
38
39
  "module": "lib/nf-table.esm-bundler.js",
39
- "gitHead": "0df85fbd33d7a66785f283cd3c702541d78a13b2"
40
+ "gitHead": "86c12d70eca3eb267c335e118a89ac2830f7e03f"
40
41
  }