|
966 | 966 | class="m-2"
|
967 | 967 | variant="outline-primary"
|
968 | 968 | split-variant="primary"
|
| 969 | + @click="(event) => consoleLog('main split button clicked', event)" |
| 970 | + @toggle="consoleLog('toggle button clicked')" |
969 | 971 | >
|
970 | 972 | <b-dropdown-item href="#">Action</b-dropdown-item>
|
971 | 973 | </b-dropdown>
|
|
1716 | 1718 | <em>Title</em>
|
1717 | 1719 | - {{ popoverInput }}
|
1718 | 1720 | </template>
|
1719 |
| - <b-button @click="consoleLog">456</b-button>I am popover <b>component</b> content! |
1720 |
| - <b-form-input v-model="popoverInput" type="text" />Name: |
| 1721 | + <b-button @click="consoleLog('Button Click!')">456</b-button>I am popover |
| 1722 | + <b>component</b> content! <b-form-input v-model="popoverInput" type="text" />Name: |
1721 | 1723 | <strong>{{ popoverInput }}</strong>
|
1722 | 1724 | </b-popover>
|
1723 | 1725 | <button
|
|
1744 | 1746 | <em>Title</em>
|
1745 | 1747 | - {{ popoverInput }}
|
1746 | 1748 | </template>
|
1747 |
| - <b-button @click="consoleLog">456</b-button>I am popover <b>component</b> content! |
1748 |
| - <b-form-input v-model="popoverInput" type="text" />Name: |
| 1749 | + <b-button @click="consoleLog('Button Click!')">456</b-button>I am popover |
| 1750 | + <b>component</b> content! <b-form-input v-model="popoverInput" type="text" />Name: |
1749 | 1751 | <strong>{{ popoverInput }}</strong>
|
1750 | 1752 | </b-popover>
|
1751 | 1753 | </div>
|
|
1890 | 1892 | <b-button class="mt-3" @click="createToast()">Show Toast</b-button>
|
1891 | 1893 | <b-button class="mt-3" @click="createToast2()">Show Toast 2</b-button>
|
1892 | 1894 | <b-button class="mt-3" @click="createToastError()">Show a danger Toast</b-button>
|
1893 |
| - <b-button class="mt-3" @click="consoleLog">Hide Toast</b-button> |
| 1895 | + <b-button class="mt-3" @click="consoleLog('Button Click!')">Hide Toast</b-button> |
1894 | 1896 | <div id="demo"></div>
|
1895 | 1897 | </b-container>
|
1896 | 1898 | </template>
|
@@ -1956,7 +1958,7 @@ export default defineComponent({
|
1956 | 1958 | const popoverRef = ref<ComponentPublicInstance<HTMLButtonElement>>()
|
1957 | 1959 | const popoverContainerRef = ref<HTMLButtonElement>()
|
1958 | 1960 |
|
1959 |
| - const consoleLog = () => console.log('Button Click!') |
| 1961 | + const consoleLog = (...args: unknown[]) => console.log(...args) |
1960 | 1962 | const checkedDefault = ref(false)
|
1961 | 1963 | const checkedButton = ref(false)
|
1962 | 1964 | const checkedRequired = ref(false)
|
|
0 commit comments