Skip to content

Instantly share code, notes, and snippets.

View AWeiJie's full-sized avatar

zhengweijie AWeiJie

View GitHub Profile
@AWeiJie
AWeiJie / App.vue
Created January 17, 2018 03:39
基于Vue的页面切换左右滑动效果
computed: {
direction () {
const viewDir = this.$store.state.viewDirection
let tranName = ''
if (viewDir === 'left') {
tranName = 'view-out'
} else if (viewDir === 'right') {
tranName = 'view-in'
@AWeiJie
AWeiJie / index.scss
Last active January 17, 2018 09:59
在Vue项目使用quill-editor带样式编辑器(更改插入图片和视频)
.quill-editor {
height: 745px;
.ql-container {
height: 680px;
}
}
.limit {
height: 30px;
@AWeiJie
AWeiJie / index.js
Created January 17, 2018 03:20
基于VUE的九宫格抽奖功能
// import Utils from 'utils'
import TitleBar from 'components/TitleBar.vue'
import LuckToast from 'components/luckToast.vue'
export default {
name: 'luckDraw',
components: {
TitleBar,
LuckToast,
@AWeiJie
AWeiJie / index.html
Last active June 3, 2021 04:33
HTML5 Canvas圆盘抽奖应用(适用于Vue项目)
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>HTML5 Canvas圆盘抽奖应用DEMO演示</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style>
* {
padding: 0px;