tabula-vue 1.0.1 → 1.0.2
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/es/component.mjs +2 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +1 -0
- package/es/components/page/index.d.ts +8861 -5128
- package/es/components/page/src/index.vue.d.ts +1470 -268
- package/es/components/page/src/index.vue2.mjs +13 -3
- package/es/components/table-lite/index.d.ts +1783 -0
- package/es/components/table-lite/index.mjs +6 -0
- package/es/components/table-lite/src/index.vue.d.ts +672 -0
- package/es/components/table-lite/src/index.vue.mjs +6 -0
- package/es/components/table-lite/src/index.vue2.mjs +681 -0
- package/es/components/table-lite/src/type.d.ts +91 -0
- package/es/components/table-lite/src/type.mjs +1 -0
- package/es/components/table-lite/style/css.d.ts +16 -0
- package/es/components/table-lite/style/css.mjs +16 -0
- package/es/components/table-lite/style/index.d.ts +16 -0
- package/es/components/table-lite/style/index.mjs +16 -0
- package/es/index.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +762 -84
- package/index.min.js +7 -3
- package/index.min.mjs +7 -3
- package/index.mjs +762 -85
- package/lib/component.js +42 -40
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +43 -41
- package/lib/components/page/index.d.ts +8861 -5128
- package/lib/components/page/src/index.vue.d.ts +1470 -268
- package/lib/components/page/src/index.vue2.js +15 -5
- package/lib/components/table-lite/index.d.ts +1783 -0
- package/lib/components/table-lite/index.js +8 -0
- package/lib/components/table-lite/src/index.vue.d.ts +672 -0
- package/lib/components/table-lite/src/index.vue.js +10 -0
- package/lib/components/table-lite/src/index.vue2.js +685 -0
- package/lib/components/table-lite/src/type.d.ts +91 -0
- package/lib/components/table-lite/src/type.js +2 -0
- package/lib/components/table-lite/style/css.d.ts +16 -0
- package/lib/components/table-lite/style/css.js +19 -0
- package/lib/components/table-lite/style/index.d.ts +16 -0
- package/lib/components/table-lite/style/index.js +19 -0
- package/lib/index.js +43 -41
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-hk.js +1 -1
- package/locale/zh-hk.min.js +1 -1
- package/locale/zh-hk.min.mjs +1 -1
- package/locale/zh-hk.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-table-lite.css +1 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/table-lite.scss +53 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useSlots, computed, ref, watch, h, openBlock, createElementBlock, createBlock, resolveDynamicComponent, withCtx, createVNode, unref, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode } from 'vue';
|
|
2
2
|
import { PlusSearch } from '../../search/index.mjs';
|
|
3
3
|
import { PlusTable } from '../../table/index.mjs';
|
|
4
|
+
import { PlusTableLite } from '../../table-lite/index.mjs';
|
|
4
5
|
import { PlusTableV2 } from '../../table-v2/index.mjs';
|
|
5
6
|
import { ElCard, ElDivider } from 'element-plus';
|
|
6
7
|
import '../../../hooks/index.mjs';
|
|
@@ -24,6 +25,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
25
|
table: { default: () => ({}) },
|
|
25
26
|
tableType: { default: "table" },
|
|
26
27
|
tableV2: { default: void 0 },
|
|
28
|
+
tableLite: { default: void 0 },
|
|
27
29
|
params: { default: () => ({}) },
|
|
28
30
|
postData: { type: Function, default: void 0 },
|
|
29
31
|
beforeSearchSubmit: { type: Function, default: void 0 },
|
|
@@ -42,7 +44,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
44
|
searchSlot: { type: Boolean, default: false },
|
|
43
45
|
resetSearch: { type: Boolean, default: true }
|
|
44
46
|
},
|
|
45
|
-
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "requestError", "requestComplete"],
|
|
47
|
+
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "selectionChange", "requestError", "requestComplete"],
|
|
46
48
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
47
49
|
var _a, _b;
|
|
48
50
|
const props = __props;
|
|
@@ -79,13 +81,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
81
|
);
|
|
80
82
|
const tableComponentMap = /* @__PURE__ */ new Map([
|
|
81
83
|
["table", PlusTable],
|
|
82
|
-
["table-v2", PlusTableV2]
|
|
84
|
+
["table-v2", PlusTableV2],
|
|
85
|
+
["table-lite", PlusTableLite]
|
|
83
86
|
]);
|
|
84
87
|
const tableComponent = computed(() => tableComponentMap.get(props.tableType) || PlusTable);
|
|
85
88
|
const tableProps = computed(() => {
|
|
86
89
|
if (props.tableType === "table-v2") {
|
|
87
90
|
return { ...props.table, ...props.tableV2 };
|
|
88
91
|
}
|
|
92
|
+
if (props.tableType === "table-lite") {
|
|
93
|
+
return { ...props.table, ...props.tableLite };
|
|
94
|
+
}
|
|
89
95
|
return props.table;
|
|
90
96
|
});
|
|
91
97
|
const tablePagination = computed(() => {
|
|
@@ -149,6 +155,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
155
|
const handleTablePaginationChange = (data) => {
|
|
150
156
|
handlePaginationChange(data);
|
|
151
157
|
};
|
|
158
|
+
const handleTableSelectionChange = (data) => {
|
|
159
|
+
emit("selectionChange", data || []);
|
|
160
|
+
};
|
|
152
161
|
const handleSearchChange = (val, column) => {
|
|
153
162
|
emit("update:searchValues", val);
|
|
154
163
|
emit("searchChange", val, column);
|
|
@@ -273,7 +282,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
273
282
|
columns: _ctx.columns,
|
|
274
283
|
pagination: tablePagination.value,
|
|
275
284
|
onPaginationChange: handleTablePaginationChange,
|
|
276
|
-
onRefresh: handleRefresh
|
|
285
|
+
onRefresh: handleRefresh,
|
|
286
|
+
onSelectionChange: handleTableSelectionChange
|
|
277
287
|
}), createSlots({
|
|
278
288
|
_: 2
|
|
279
289
|
/* DYNAMIC */
|