A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/uiv-lib/uiv/commit/15897768005942e75d2c03cacd3f4e98905787e9 below:

collapse flash on init · uiv-lib/uiv@1589776 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+13

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+13

-2

lines changed Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

<script>

2 2

import { addClass, removeClass } from '../../utils/dom.utils';

3 -

import { onMounted, ref, watchEffect, defineComponent, h } from 'vue';

3 +

import { onMounted, ref, defineComponent, h, watch } from 'vue';

4 4 5 5

export default defineComponent({

6 6

props: {

@@ -59,7 +59,18 @@ export default defineComponent({

59 59

}

60 60

}

61 61 62 -

watchEffect(toggle);

62 +

watch(

63 +

() => props.modelValue,

64 +

() => {

65 +

toggle();

66 +

}

67 +

);

68 + 69 +

onMounted(() => {

70 +

if (props.modelValue) {

71 +

addClass(element.value, IN);

72 +

}

73 +

});

63 74 64 75

return () =>

65 76

h(props.tag, { ref: element, class: COLLAPSE }, slots.default?.());

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4