@94ai/nf-table 3.2.70 → 3.2.72
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 +4 -0
- package/lib/nf-table.cjs.js +9 -1
- package/lib/nf-table.esm-bundler.js +9 -1
- package/lib/nf-table.vue.d.ts +2 -0
- package/package/nf-table.vue +10 -1
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -947,6 +947,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
947
947
|
syncCookiesToLocalShowColumn: () => Promise<void>;
|
|
948
948
|
syncCookiesToTableColumn: (readCached?: boolean, init?: boolean) => Promise<void>;
|
|
949
949
|
elTableRefKey: import("vue-demi").Ref<number>;
|
|
950
|
+
clearDragCached: () => Promise<void>;
|
|
951
|
+
clearColumnEditCached: () => Promise<void>;
|
|
950
952
|
}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
|
|
951
953
|
background: {
|
|
952
954
|
type: import("vue-demi").PropType<string>;
|
|
@@ -1559,6 +1561,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1559
1561
|
syncCookiesToLocalShowColumn: () => Promise<void>;
|
|
1560
1562
|
syncCookiesToTableColumn: (readCached?: boolean, init?: boolean) => Promise<void>;
|
|
1561
1563
|
elTableRefKey: import("vue-demi").Ref<number>;
|
|
1564
|
+
clearDragCached: () => Promise<void>;
|
|
1565
|
+
clearColumnEditCached: () => Promise<void>;
|
|
1562
1566
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
1563
1567
|
fieldsChange: (event: string[]) => void;
|
|
1564
1568
|
"update:showColumn": (event: string[] | undefined) => void;
|
package/lib/nf-table.cjs.js
CHANGED
|
@@ -6581,6 +6581,12 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6581
6581
|
}
|
|
6582
6582
|
await ((_b = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b.call(_a2, newWidth, oldWidth, column, event));
|
|
6583
6583
|
};
|
|
6584
|
+
async function clearDragCached() {
|
|
6585
|
+
await commonUtils.CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
|
|
6586
|
+
}
|
|
6587
|
+
async function clearColumnEditCached() {
|
|
6588
|
+
await commonUtils.CachedManager.asyncCachedSet(props.storageKey, null);
|
|
6589
|
+
}
|
|
6584
6590
|
const columnCheckConfirmFeedback = (value) => {
|
|
6585
6591
|
if (!props.columnEdit) {
|
|
6586
6592
|
const itemsList = [];
|
|
@@ -6787,7 +6793,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6787
6793
|
* 列编辑同步cookies到组件渲染数据
|
|
6788
6794
|
*/
|
|
6789
6795
|
syncCookiesToTableColumn,
|
|
6790
|
-
elTableRefKey
|
|
6796
|
+
elTableRefKey,
|
|
6797
|
+
clearDragCached,
|
|
6798
|
+
clearColumnEditCached
|
|
6791
6799
|
});
|
|
6792
6800
|
};
|
|
6793
6801
|
__sfc_main.components = Object.assign({
|
|
@@ -6579,6 +6579,12 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6579
6579
|
}
|
|
6580
6580
|
await ((_b = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b.call(_a2, newWidth, oldWidth, column, event));
|
|
6581
6581
|
};
|
|
6582
|
+
async function clearDragCached() {
|
|
6583
|
+
await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
|
|
6584
|
+
}
|
|
6585
|
+
async function clearColumnEditCached() {
|
|
6586
|
+
await CachedManager.asyncCachedSet(props.storageKey, null);
|
|
6587
|
+
}
|
|
6582
6588
|
const columnCheckConfirmFeedback = (value) => {
|
|
6583
6589
|
if (!props.columnEdit) {
|
|
6584
6590
|
const itemsList = [];
|
|
@@ -6785,7 +6791,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6785
6791
|
* 列编辑同步cookies到组件渲染数据
|
|
6786
6792
|
*/
|
|
6787
6793
|
syncCookiesToTableColumn,
|
|
6788
|
-
elTableRefKey
|
|
6794
|
+
elTableRefKey,
|
|
6795
|
+
clearDragCached,
|
|
6796
|
+
clearColumnEditCached
|
|
6789
6797
|
});
|
|
6790
6798
|
};
|
|
6791
6799
|
__sfc_main.components = Object.assign({
|
package/lib/nf-table.vue.d.ts
CHANGED
|
@@ -345,6 +345,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
345
345
|
syncCookiesToLocalShowColumn: () => Promise<void>;
|
|
346
346
|
syncCookiesToTableColumn: (readCached?: boolean, init?: boolean) => Promise<void>;
|
|
347
347
|
elTableRefKey: import("vue-demi").Ref<number>;
|
|
348
|
+
clearDragCached: () => Promise<void>;
|
|
349
|
+
clearColumnEditCached: () => Promise<void>;
|
|
348
350
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
349
351
|
fieldsChange: (event: string[]) => void;
|
|
350
352
|
"update:showColumn": (event: string[] | undefined) => void;
|
package/package/nf-table.vue
CHANGED
|
@@ -1138,6 +1138,13 @@ const headerDragend = async (newWidth, oldWidth, column, event) => {
|
|
|
1138
1138
|
await props.tableEvents['header-dragend']?.(newWidth, oldWidth, column, event)
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
+
async function clearDragCached() {
|
|
1142
|
+
await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null)
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
async function clearColumnEditCached() {
|
|
1146
|
+
await CachedManager.asyncCachedSet(props.storageKey, null)
|
|
1147
|
+
}
|
|
1141
1148
|
|
|
1142
1149
|
const columnCheckConfirmFeedback = (value: Record<string, any>) => {
|
|
1143
1150
|
if (!props.columnEdit) {
|
|
@@ -1338,7 +1345,9 @@ defineExpose({
|
|
|
1338
1345
|
* 列编辑同步cookies到组件渲染数据
|
|
1339
1346
|
*/
|
|
1340
1347
|
syncCookiesToTableColumn,
|
|
1341
|
-
elTableRefKey
|
|
1348
|
+
elTableRefKey,
|
|
1349
|
+
clearDragCached,
|
|
1350
|
+
clearColumnEditCached
|
|
1342
1351
|
})
|
|
1343
1352
|
|
|
1344
1353
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.72",
|
|
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": "^3.2.
|
|
18
|
-
"@94ai/nf-button": "^3.2.
|
|
19
|
-
"@94ai/nf-drawer": "^3.2.
|
|
20
|
-
"@94ai/nf-message": "^3.2.
|
|
21
|
-
"@94ai/nf-search-form": "^3.2.
|
|
22
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
17
|
+
"@94ai/common-utils": "^3.2.72",
|
|
18
|
+
"@94ai/nf-button": "^3.2.72",
|
|
19
|
+
"@94ai/nf-drawer": "^3.2.72",
|
|
20
|
+
"@94ai/nf-message": "^3.2.72",
|
|
21
|
+
"@94ai/nf-search-form": "^3.2.72",
|
|
22
|
+
"@94ai/nf-theme-chalk": "^3.2.72",
|
|
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": "
|
|
40
|
+
"gitHead": "92c79145b64d591457896ae871b4b553ab096422"
|
|
41
41
|
}
|