摘要:
见文档https://vue-docs-next-zh-cn.netlify.app/guide/installation.html#%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7-cli vite搭建: npm create vite@latest vi 阅读全文
摘要:
https://github.com/ecomfe/echarts-for-weixin 下载ec-canvas插件 index.wxml <ec-canvas id="mychart-dom-pie" force-use-old-canvas="true" canvas-id="mychart-p 阅读全文
摘要:
在app.json 的pages中配置改页面即可 "pages/learningMaterialsDetial/learningMaterialsDetial" 阅读全文
摘要:
wxml <view class="wrapper"> <view class="handBtn"> <button catchtap="retDraw" class="can_btn">重写</button> <button catchtap="saveCanvasAsImg" class="ca 阅读全文
摘要:
vue3+ts+vite 1、官网git下载项目代码包 https://gitee.com/dcloud/uni-preset-vue/repository/archive/vite-ts.zip 2、安装sass npm install sass sass-loader --save-dev 3、 阅读全文
摘要:
var maxValue = Math.max.apply(Math, data.map(function(item) {return item.nationwideValue})) 阅读全文
摘要:
<template> <div class="box"> <div class="swipers"> <template v-for="(item, index) in lists" > <div class="item" v-if="index==active" :key="'0'+index" 阅读全文
摘要:
在src下新建store/index.js main.js import store from './store' Vue.use(Vuex) new Vue({ el: '#app', router, store, components: { App }, template: '<App/>' } 阅读全文
摘要:
<el-table ref="moviesTable" v-loading="loading" :data="tables" border style="width: 100%;" @row-click="handleRowClick" @selection-change="handleSelect 阅读全文
摘要:
默认校验规则 pid: { required: true, message: '请选择', trigger: 'change' }, 需要实现的 场景: 下拉的时候根据接口判断用户的选择是否已存在 data(){ var validateSid = (rule, value, callback)=> 阅读全文