@monoui/vuejs 1.1.23 → 1.1.24
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 +15 -0
- package/src/directive/nocomplete.js +35 -0
package/package.json
CHANGED
|
@@ -237,6 +237,16 @@
|
|
|
237
237
|
<span v-show="!isDataEmpty">
|
|
238
238
|
{{ settings.totalItemCount }} rows
|
|
239
239
|
</span>
|
|
240
|
+
<mui-button
|
|
241
|
+
v-if="refreshButton"
|
|
242
|
+
variant="light"
|
|
243
|
+
id="tooltip-button-5"
|
|
244
|
+
class="ml-2 mr-2"
|
|
245
|
+
@click="refresh"
|
|
246
|
+
>
|
|
247
|
+
<i class="fas fa-sync"></i>
|
|
248
|
+
Refresh</mui-button
|
|
249
|
+
>
|
|
240
250
|
</div>
|
|
241
251
|
</slot>
|
|
242
252
|
<slot name="pagination-buttons">
|
|
@@ -341,6 +351,11 @@ export default {
|
|
|
341
351
|
required: false,
|
|
342
352
|
default: true
|
|
343
353
|
},
|
|
354
|
+
refreshButton: {
|
|
355
|
+
type: Boolean,
|
|
356
|
+
required: false,
|
|
357
|
+
default: false
|
|
358
|
+
},
|
|
344
359
|
pagination: {
|
|
345
360
|
type: Object,
|
|
346
361
|
required: false,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function install(Vue) {
|
|
2
|
+
if (install.installed) {
|
|
3
|
+
return;
|
|
4
|
+
}
|
|
5
|
+
install.installed = true;
|
|
6
|
+
|
|
7
|
+
Vue.directive("no-autocomplete", {
|
|
8
|
+
bind(el, { value }) {
|
|
9
|
+
const isDisabled = el.disabled;
|
|
10
|
+
el.disabled = true;
|
|
11
|
+
|
|
12
|
+
el.style.backgroundColor = "inherit";
|
|
13
|
+
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
el.disabled = isDisabled;
|
|
16
|
+
}, 1000);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const plugin = {
|
|
22
|
+
install
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
let globalVue = null;
|
|
26
|
+
if (typeof window !== "undefined") {
|
|
27
|
+
globalVue = window.Vue;
|
|
28
|
+
} else if (typeof global !== "undefined") {
|
|
29
|
+
globalVue = global.Vue;
|
|
30
|
+
}
|
|
31
|
+
if (globalVue) {
|
|
32
|
+
globalVue.use(plugin);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default plugin;
|