01 2022 档案
摘要:正确 const grd = ctx.createCircularGradient(75, 50, 50) grd.addColorStop(0, 'red') grd.addColorStop(1, 'white') ctx.setFillStyle(grd) ctx.fillRect(10, 1
阅读全文
摘要:text-align: center; 超过长度 自动换行居中
阅读全文
摘要:button { position:relative; display:block; margin-left:auto; margin-right:auto; padding-left:14px; padding-right:14px; box-sizing:border-box; font-siz
阅读全文
摘要:vue 组件复用 - component vue 组件复用 就是对 component 标签的使用 先看图 下图看使用 结果: 可以看到 在箱包 这一项,我将banner 组件用了两次,我 每次 点击 <添加板块> 添加组件时,都会 在 icomponentList 和 change_view 里添
阅读全文
摘要:vue - vuex - 的使用 前端用到 vue 框架的伙伴们终究是绕不过 vuex 我理解的 vuex 简单用法(但是却很适用,就会这一个就基本可以用vuex了): 比如: AA、BB 两个组件同时要控制 CC 组件的 显示 / 隐藏。 是不是要一个开关 ? 那个开关假如 我们 定义 为 fla
阅读全文
摘要:this.$confirm('您确定退出当前账号吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { // 确定操作 this.loading = true; thi
阅读全文