随笔分类 -  vue封装

对于vue Element-ui的组件进行再次封装
摘要:安装: npm install sm-cryptoOr yarn add sm-crypto sm2: 获取密钥对: const sm2 = require('sm-crypto').sm2 let keypair = sm2.generateKeyPairHex() publicKey = key 阅读全文
posted @ 2023-11-02 08:57 zaijinyang 阅读(11686) 评论(0) 推荐(0)
摘要:html: <div class="home-main-dictum-info"> <span>{{ dictumInfo }}</span> <span class="home-main-typed-cursor" :class="{ 'is-typed-cursor-anmation': wat 阅读全文
posted @ 2022-12-01 17:39 zaijinyang 阅读(1230) 评论(0) 推荐(0)
摘要:新建组件: <template> <div class="table-container"> <el-table :data="tableData" width="100%" :height="height" :row-style="{ height: `${rowHeight}px` }" v-l 阅读全文
posted @ 2022-11-22 18:00 zaijinyang 阅读(441) 评论(0) 推荐(0)
摘要:axios.interceptors.response.use( response => { // 如果返回的状态码为200,说明接口请求成功,可以正常拿到数据 // 否则的话抛出错误 if (response.status 200) { if (response.headers.x_auth_to 阅读全文
posted @ 2019-11-19 14:13 zaijinyang 阅读(442) 评论(0) 推荐(0)
摘要:这是我项目的分页的目录结构,话不多说,直接上代码。 <template> <div class="pagination-container"> <el-pagination :background="background" :current-page.sync="currentPage" :page 阅读全文
posted @ 2019-11-19 14:08 zaijinyang 阅读(1268) 评论(0) 推荐(0)
摘要:import Vue from 'vue' import axios from 'axios' // 引入axios import QS from 'qs' // 引入qs模块,用来序列化post类型的数据 import Cookies from 'js-cookie' import router 阅读全文
posted @ 2019-11-08 11:54 zaijinyang 阅读(375) 评论(0) 推荐(0)