dc-vue | 基于VueCli4.x.x 和Dc-sdk构建的三维应用脚手架, 用于开发三维WebGis项目 | Frontend Framework library
kandi X-RAY | dc-vue Summary
kandi X-RAY | dc-vue Summary
基于VueCli4.x.x 和Dc-sdk构建的三维应用脚手架, 用于开发三维WebGis项目
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dc-vue
dc-vue Key Features
dc-vue Examples and Code Snippets
Community Discussions
Trending Discussions on dc-vue
QUESTION
I have created a Vue button that displays "Load More" and then "Loading..." when clicked and loading more content. But, I would now like to add another component being a loading animation next to the "Loading." The button works completely fine, but I just would like to add that animation alongside the word "loading."
I have tried using Vue's ref tag, but have not had much luck in successfully using that in my method.
Loader.vue:
...ANSWER
Answered 2019-Jul-09 at 16:17If you want to do anything with any form of complexity in html, it is best to move it over to your template. In your case, you have two states: It is either loading, or it is not loading. So lets create a variable loading
that is either true
or false
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dc-vue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page