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> | |
<div> | |
<q-tooltip ref="tooltip" v-for="item of 3" :key="item"> | |
</q-tooltip> | |
<ul> | |
<li style="width:100px;border:solid 1px red;" v-for="i of 20" :key="i" | |
@mouseenter="enter($event,i)" | |
@mouseleave="leave($event)" |
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
const argv = require("yargs").argv; | |
const env = argv.env || "development"; |
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
import { | |
baseUrl | |
} from './env' | |
export default async(url = '', data = {}, type = 'GET', method = 'fetch') => { | |
type = type.toUpperCase(); | |
url = baseUrl + url; | |
if (type == 'GET') { | |
let dataStr = ''; //数据拼接字符串 |
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
参考链接: | |
https://github.com/dimsemenov/PhotoSwipe/issues/741 |
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
import React, { Component } from "react"; | |
import { | |
HashRouter as Router, | |
Link, | |
Route, | |
Redirect, | |
Switch, | |
NavLink | |
} from "react-router-dom"; | |
import { CSSTransition, TransitionGroup } from "react-transition-group"; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<style> | |
.box { | |
width: 400px; |
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> | |
<div class="box" ref="scrollBox" @scroll="loadMore"> | |
<ul> | |
<li v-for="i of items" >{{i}}</li> | |
</ul> | |
</div> | |
</template> | |
<script> | |
import _ from "lodash"; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="app"> |
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> | |
<div class="box"> | |
<transition v-for="ball of balls" name="fade" @after-enter="afterEnter" @enter="enter" @before-enter="beforeEnter"> | |
<div v-show="ball.isShow" class="ball" > | |
<div class="inner"></div> | |
</div> | |
</transition> | |
{{count}} | |
<transition name="scroll"> | |
<span class="icon-dec" v-show="isScrollShow" @click="count--" >-</span> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<style> | |
.box, | |
.inner { |
NewerOlder