@monoui/vuejs 1.1.12 → 1.1.13
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/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +21 -10
package/package.json
CHANGED
|
@@ -206,16 +206,23 @@
|
|
|
206
206
|
<b-dropdown-divider
|
|
207
207
|
v-if="
|
|
208
208
|
filteredPerPageValues &&
|
|
209
|
-
filteredPerPageValues.length
|
|
209
|
+
filteredPerPageValues.length &&
|
|
210
|
+
inLimit()
|
|
210
211
|
"
|
|
211
212
|
></b-dropdown-divider>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
|
|
214
|
+
<template>
|
|
215
|
+
<b-dropdown-item
|
|
216
|
+
v-if="inLimit()"
|
|
217
|
+
@click="
|
|
218
|
+
changeItemPerPage(
|
|
219
|
+
settings.totalItemCount
|
|
220
|
+
)
|
|
221
|
+
"
|
|
222
|
+
>
|
|
223
|
+
All ({{ settings.totalItemCount }})
|
|
224
|
+
</b-dropdown-item>
|
|
225
|
+
</template>
|
|
219
226
|
</b-dropdown>
|
|
220
227
|
</div>
|
|
221
228
|
</slot>
|
|
@@ -320,7 +327,7 @@ export default {
|
|
|
320
327
|
emptyMessage: {
|
|
321
328
|
type: String,
|
|
322
329
|
required: false,
|
|
323
|
-
default: "No data
|
|
330
|
+
default: "No data available in table"
|
|
324
331
|
},
|
|
325
332
|
autoLoad: {
|
|
326
333
|
type: Boolean,
|
|
@@ -379,7 +386,8 @@ export default {
|
|
|
379
386
|
tableData: [],
|
|
380
387
|
searchWord: null,
|
|
381
388
|
isDataEmpty: false,
|
|
382
|
-
isLoading: false
|
|
389
|
+
isLoading: false,
|
|
390
|
+
limit: 250
|
|
383
391
|
};
|
|
384
392
|
},
|
|
385
393
|
computed: {
|
|
@@ -531,6 +539,9 @@ export default {
|
|
|
531
539
|
}
|
|
532
540
|
|
|
533
541
|
this.getValues();
|
|
542
|
+
},
|
|
543
|
+
inLimit() {
|
|
544
|
+
return this.settings.totalItemCount <= this.limit;
|
|
534
545
|
}
|
|
535
546
|
}
|
|
536
547
|
};
|