A Pen by Edward Lance Lorilla on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template id="vueCropper"> | |
<div> | |
<input type="file" @change="selectFile" /> | |
<div v-if="cropping" | |
ref="cropperdiv" | |
:style="cropperDivStyle"> | |
<canvas ref="canvas" | |
:width="canvasWidth" | |
:height="canvasHeight" | |
@mousemove="moveMouse" |
A Pen by Edward Lance Lorilla on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div class="main-box"> | |
<button @click="add">Add</button> | |
<div class="main-box-tab"> | |
<i @click="previous"><<</i> | |
<i @click="next">>></i> | |
<div class="main-box-tab-content" ref="tabs"> | |
<div class="main-box-tab-roll"> | |
<div v-for="(item,index) in tabs" :key="index" | |
:class="{'tab-item-action':actionName === item.name ,'tab-item':actionName !== item.name}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<canvas ref="myChart" style="width:100%;max-width:600px"></canvas> | |
<input type="number" v-model="addValue"> | |
<button @click="addChart">Add</button> | |
<ul> | |
<li v-for="(transaction, index) in recentTransaction">amount: {{transaction.amount}} <button @click="deleteItem(index)">delete</button></li> | |
</ul> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="clock" width="500" height="500" ></canvas> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div> | |
<div class="biggestBox"> | |
<ul> | |
<!-- data-type=0 hide the delete button data-type=1 show the delete button --> | |
<li class="li_vessel" v-for="(item,index) in lists "data-type="0" :key="index"> | |
<!-- "touchstart" is triggered when the finger touches the screen "touchend" is triggered when the finger leaves the screen "capture" is used for event capture --> | |
<div @touchstart.capture="touchStart" @touchend.capture="touchEnd" @click="oneself"> | |
<div class="contant"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<ul style='width:100%;margin-top:15rem;'> | |
<li> | |
<div class = 'box'> | |
<div class="scale" id="bar"> | |
<div></div> | |
<span id="btn"></span> | |
</div> | |
</div> | |
<div class='boxDesc'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div class="table_box"> | |
<h1>Form exercises</h1> | |
<input type="text" v-model="text"/> | |
<button @click="add">Add</button> | |
<table class="table" border="1"> | |
<thead> | |
<tr> | |
<th>Serial number</th> | |
<th>Brand</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template id="swiper"> | |
<div class="Sweiper"> | |
<slot></slot> | |
</div> | |
</template> | |
<template id="Sweiper-item"> | |
<transition> | |
<div class="Sweiper-item" v-show="isShow"> | |
<slot></slot> | |
</div> |