摘要: <template> <el-table ref="singleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @select-all="selectAll" @select="rowSelect" @select 阅读全文
posted @ 2024-05-29 10:59 Code_Lzh 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <div class="content"></div> <el-button @click="copy">复制</el-button> copy() { let pList = document.querySelectorAll(".content") let valueList = [] if ( 阅读全文
posted @ 2024-05-28 09:43 Code_Lzh 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //字符串形式比较 let num = "return 19726.94 == 4561.33+15165.61" //获取字符串中的数字 extractNumber(str) { // 匹配整数、小数、正负号 const regex = /-?\d+(\.\d+)?/g; // 匹配结果 cons 阅读全文
posted @ 2024-05-24 10:56 Code_Lzh 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div>{{content}}</div> <el-button size="small" icon="icon iconfont ps-fuzhi" type="primary" @click="testCopy()"> 复制 </el-button> </di 阅读全文
posted @ 2024-04-19 15:12 Code_Lzh 阅读(6) 评论(0) 推荐(0) 编辑
摘要: //安装依赖 npm i markdown-it-vue //引入markdown-ite-vue import MarkdownItVue from "markdown-it-vue"; import "markdown-it-vue/dist/markdown-it-vue.css"; //注册 阅读全文
posted @ 2024-04-16 09:16 Code_Lzh 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.建立platter类函数,命名为CustomPalette.js export default class CustomPalette { constructor(create, elementFactory, palette) { this.create = create; this.elem 阅读全文
posted @ 2024-02-06 10:28 Code_Lzh 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 安装 "bpmn-js-properties-panel": "^1.6.1" 引入样式库 import { BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, } from "bpmn-js-properties-panel"; imp 阅读全文
posted @ 2024-02-06 10:05 Code_Lzh 阅读(138) 评论(0) 推荐(0) 编辑
摘要: //安装clipboard.js //npm install --save clipboard.js <template> <div>{{ params}}</div> <el-button size="small" class="btn">复制</el-button> </template> <s 阅读全文
posted @ 2024-01-26 17:12 Code_Lzh 阅读(43) 评论(0) 推荐(0) 编辑
摘要: <el-dropdown trigger="click" ref="dropdownbtn"></el-dropdown> this.$refs.dropdownbtn.hide(); // 隐藏 this.$refs.dropdownbtn.show(); // 显示 阅读全文
posted @ 2024-01-26 16:48 Code_Lzh 阅读(182) 评论(0) 推荐(0) 编辑
摘要: //在main.js添加 Vue.directive('siem-dropdown', function (el, binding, vNode) { let ul = el.querySelector("ul") let uid = vNode.componentInstance._uid; // 阅读全文
posted @ 2023-10-07 16:39 Code_Lzh 阅读(28) 评论(0) 推荐(0) 编辑