tabula-vue 1.0.1 → 1.0.3
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/display-value.d.ts +26 -0
- package/es/components/table-lite/src/display-value.mjs +82 -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 +690 -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 +845 -84
- package/index.min.js +7 -3
- package/index.min.mjs +7 -3
- package/index.mjs +845 -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/display-value.d.ts +26 -0
- package/lib/components/table-lite/src/display-value.js +86 -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 +694 -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
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var index$
|
|
6
|
+
var index$4 = require('../../search/index.js');
|
|
7
7
|
var index$1 = require('../../table/index.js');
|
|
8
|
+
var index$3 = require('../../table-lite/index.js');
|
|
8
9
|
var index$2 = require('../../table-v2/index.js');
|
|
9
10
|
var elementPlus = require('element-plus');
|
|
10
11
|
require('../../../hooks/index.js');
|
|
@@ -28,6 +29,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
29
|
table: { default: () => ({}) },
|
|
29
30
|
tableType: { default: "table" },
|
|
30
31
|
tableV2: { default: void 0 },
|
|
32
|
+
tableLite: { default: void 0 },
|
|
31
33
|
params: { default: () => ({}) },
|
|
32
34
|
postData: { type: Function, default: void 0 },
|
|
33
35
|
beforeSearchSubmit: { type: Function, default: void 0 },
|
|
@@ -46,7 +48,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
48
|
searchSlot: { type: Boolean, default: false },
|
|
47
49
|
resetSearch: { type: Boolean, default: true }
|
|
48
50
|
},
|
|
49
|
-
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "requestError", "requestComplete"],
|
|
51
|
+
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "selectionChange", "requestError", "requestComplete"],
|
|
50
52
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
51
53
|
var _a, _b;
|
|
52
54
|
const props = __props;
|
|
@@ -83,13 +85,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
85
|
);
|
|
84
86
|
const tableComponentMap = /* @__PURE__ */ new Map([
|
|
85
87
|
["table", index$1.PlusTable],
|
|
86
|
-
["table-v2", index$2.PlusTableV2]
|
|
88
|
+
["table-v2", index$2.PlusTableV2],
|
|
89
|
+
["table-lite", index$3.PlusTableLite]
|
|
87
90
|
]);
|
|
88
91
|
const tableComponent = vue.computed(() => tableComponentMap.get(props.tableType) || index$1.PlusTable);
|
|
89
92
|
const tableProps = vue.computed(() => {
|
|
90
93
|
if (props.tableType === "table-v2") {
|
|
91
94
|
return { ...props.table, ...props.tableV2 };
|
|
92
95
|
}
|
|
96
|
+
if (props.tableType === "table-lite") {
|
|
97
|
+
return { ...props.table, ...props.tableLite };
|
|
98
|
+
}
|
|
93
99
|
return props.table;
|
|
94
100
|
});
|
|
95
101
|
const tablePagination = vue.computed(() => {
|
|
@@ -153,6 +159,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
153
159
|
const handleTablePaginationChange = (data) => {
|
|
154
160
|
handlePaginationChange(data);
|
|
155
161
|
};
|
|
162
|
+
const handleTableSelectionChange = (data) => {
|
|
163
|
+
emit("selectionChange", data || []);
|
|
164
|
+
};
|
|
156
165
|
const handleSearchChange = (val, column) => {
|
|
157
166
|
emit("update:searchValues", val);
|
|
158
167
|
emit("searchChange", val, column);
|
|
@@ -219,7 +228,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
219
228
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
220
229
|
_ctx.search ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderWrapper().search), { key: 0 }, {
|
|
221
230
|
default: vue.withCtx(() => [
|
|
222
|
-
vue.createVNode(vue.unref(index$
|
|
231
|
+
vue.createVNode(vue.unref(index$4.PlusSearch), vue.mergeProps({
|
|
223
232
|
ref_key: "plusSearchInstance",
|
|
224
233
|
ref: plusSearchInstance
|
|
225
234
|
}, _ctx.search, {
|
|
@@ -277,7 +286,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
277
286
|
columns: _ctx.columns,
|
|
278
287
|
pagination: tablePagination.value,
|
|
279
288
|
onPaginationChange: handleTablePaginationChange,
|
|
280
|
-
onRefresh: handleRefresh
|
|
289
|
+
onRefresh: handleRefresh,
|
|
290
|
+
onSelectionChange: handleTableSelectionChange
|
|
281
291
|
}), vue.createSlots({
|
|
282
292
|
_: 2
|
|
283
293
|
/* DYNAMIC */
|