@tmagic/table 1.4.7 → 1.4.9
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/dist/tmagic-table.js +2 -4
- package/dist/tmagic-table.umd.cjs +2 -4
- package/package.json +11 -9
- package/tsconfig.build.json +0 -13
package/dist/tmagic-table.js
CHANGED
|
@@ -43,8 +43,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
};
|
|
44
44
|
const save = async (index, config) => {
|
|
45
45
|
const action = config.actions?.find((item) => item.type === "edit")?.action;
|
|
46
|
-
if (!action)
|
|
47
|
-
return;
|
|
46
|
+
if (!action) return;
|
|
48
47
|
const data = {};
|
|
49
48
|
const row = props.editState[index];
|
|
50
49
|
props.columns.filter((item) => item.type).forEach((column) => {
|
|
@@ -221,8 +220,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
221
220
|
});
|
|
222
221
|
|
|
223
222
|
const formatter = (item, row) => {
|
|
224
|
-
if (!item.prop)
|
|
225
|
-
return "";
|
|
223
|
+
if (!item.prop) return "";
|
|
226
224
|
if (item.formatter) {
|
|
227
225
|
if (item.formatter === "datetime") {
|
|
228
226
|
item.formatter = (value) => datetimeFormatter(value);
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
};
|
|
44
44
|
const save = async (index, config) => {
|
|
45
45
|
const action = config.actions?.find((item) => item.type === "edit")?.action;
|
|
46
|
-
if (!action)
|
|
47
|
-
return;
|
|
46
|
+
if (!action) return;
|
|
48
47
|
const data = {};
|
|
49
48
|
const row = props.editState[index];
|
|
50
49
|
props.columns.filter((item) => item.type).forEach((column) => {
|
|
@@ -221,8 +220,7 @@
|
|
|
221
220
|
});
|
|
222
221
|
|
|
223
222
|
const formatter = (item, row) => {
|
|
224
|
-
if (!item.prop)
|
|
225
|
-
return "";
|
|
223
|
+
if (!item.prop) return "";
|
|
226
224
|
if (item.formatter) {
|
|
227
225
|
if (item.formatter === "datetime") {
|
|
228
226
|
item.formatter = (value) => utils.datetimeFormatter(value);
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.4.
|
|
2
|
+
"version": "1.4.9",
|
|
3
3
|
"name": "@tmagic/table",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"sideEffects": [
|
|
6
|
-
"dist/*"
|
|
7
|
-
],
|
|
8
5
|
"main": "dist/tmagic-table.umd.cjs",
|
|
9
6
|
"module": "dist/tmagic-table.js",
|
|
10
7
|
"types": "types/index.d.ts",
|
|
@@ -20,6 +17,11 @@
|
|
|
20
17
|
},
|
|
21
18
|
"./*": "./*"
|
|
22
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"types",
|
|
23
|
+
"src"
|
|
24
|
+
],
|
|
23
25
|
"license": "Apache-2.0",
|
|
24
26
|
"engines": {
|
|
25
27
|
"node": ">=18"
|
|
@@ -39,15 +41,15 @@
|
|
|
39
41
|
"@vue/test-utils": "^2.4.6",
|
|
40
42
|
"rimraf": "^3.0.2",
|
|
41
43
|
"sass": "^1.77.0",
|
|
42
|
-
"vite": "^5.
|
|
43
|
-
"vue-tsc": "^2.0.
|
|
44
|
+
"vite": "^5.3.1",
|
|
45
|
+
"vue-tsc": "^2.0.19"
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {
|
|
46
48
|
"vue": "^3.4.27",
|
|
47
49
|
"typescript": "*",
|
|
48
|
-
"@tmagic/form": "1.4.
|
|
49
|
-
"@tmagic/
|
|
50
|
-
"@tmagic/
|
|
50
|
+
"@tmagic/form": "1.4.9",
|
|
51
|
+
"@tmagic/utils": "1.4.9",
|
|
52
|
+
"@tmagic/design": "1.4.9"
|
|
51
53
|
},
|
|
52
54
|
"peerDependenciesMeta": {
|
|
53
55
|
"typescript": {
|
package/tsconfig.build.json
DELETED