草庐IT

el-hardware-accelerated-execution

全部标签

ImportError: Bad git executable错误解决

ImportError:Badgitexecutable.Thegitexecutablemustbespecifiedinoneofthefollowingways:  -beincludedinyour$PATH  -besetvia$GIT_PYTHON_GIT_EXECUTABLE  -explicitlysetviagit.refresh()Allgitcommandswillerroruntilthisisrectified.Thisinitialwarningcanbesilencedoraggravatedinthefuturebysettingthe$GIT_PYTHON_R

Element-UI中el-tree的使用

写项目时经常会遇到使用el-tree的场景,针对用过的,做个简单记录一,先简单讲一下怎么安装element-ui:1.安装:npmielement-ui2. 在main.js中引入样式以及组件:importElementUIfrom'element-ui'import'element-ui/lib/theme-chalk/index.css'Vue.use(ElementUI)3.丢个官网在这里,详细可以去查看:Element-Theworld'smostpopularVueUIframework二,el-tree常见属性: data----用来展示数据props----树状图配置label-

Element-UI中el-tree的使用

写项目时经常会遇到使用el-tree的场景,针对用过的,做个简单记录一,先简单讲一下怎么安装element-ui:1.安装:npmielement-ui2. 在main.js中引入样式以及组件:importElementUIfrom'element-ui'import'element-ui/lib/theme-chalk/index.css'Vue.use(ElementUI)3.丢个官网在这里,详细可以去查看:Element-Theworld'smostpopularVueUIframework二,el-tree常见属性: data----用来展示数据props----树状图配置label-

ElementUI中的el-date-picker日期选择器的格式转换问题

使用el-date-picker日期选择器选择的日期是string类型且是箭头所指的这种格式解决方法一:1、在这个组件后面加上这两个,可以修改格式2、在后端实体类上加上注解即使前端的是string类型,但是通过json自带的格式匹配注解工具,将string转换成LocalDateTime类型@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")privateLocalDateTimeuserBirthday;解决方法二:用npm下载一个moment.js1、npminstallmoment--save2、在main.js中注册imp

element-ui中el-progress的复杂型使用场景

vue中循环添加多个动态环形进度条,并且每个对应添加自己的状态文字根据目前的element-ui,无法直接使用format属性去循环动态添加多个环形进度条的指定文字内容,因为format中限定了函数参数,如下:因此采取了一些迂回的写法divv-for="(item,index)inarr"> el-progresstype="circle":percentage="item.pc":color="progressColor(item)":format="(p)=>progressFormat(p,item)">el-progress>div>exportdefault{ methods:{

Pycharm使用Anaconda虚拟环境找不到Python.exe:报错:Conda executable is not found

Pycharm使用Anaconda虚拟环境找不到Python.exe:报错:Condaexecutableisnotfound问题描述很多同学在初始配置虚拟环境的时候都会用到Anaconda(Conda)系列,然而,使用Pycharm配置python环境的时候却找不到虚拟环境里的python.exe文件,报错:Condaexecutableisnotfound,具体见下图前人的解决方案将虚拟环境加入到环境变量里(不解?)找到conda.exe(实践后发现anaconda不认这个exe文件)我的解决方案直接在VirtualenvEnviroment中找conda的虚拟环境里的python.exe

最简单的使用css修改element-ui的el-select的高度

个人博客同步csdn首先给el-select的容器上面自定义一个类名,避免污染别的el-select写css,注意这里用了less.el-select-dense{--height:35px;//el-select本身的高度/deep/input{height:var(--height);}//el-select右边的图标/deep/.el-input__icon{line-height:var(--height);}}效果图(前)效果图(后)

c# - 为什么在不修改枚举集合时得到 "Collection was modified; enumeration operation may not execute"?

这个问题在这里已经有了答案:Howtoremoveelementsfromagenericlistwhileiteratingoverit?(28个答案)关闭9年前。我有两个字符串集合:CollectionA是系统中存储的对象的StringCollection属性,而CollectionB是运行时生成的List。如果存在任何差异,则需要更新CollectionA以匹配CollectionB。因此,我设计了一个我期望的简单LINQ方法来执行删除。varstrDifferences=CollectionA.Where(foo=>!CollectionB.Contains(foo));for

c# - 为什么在不修改枚举集合时得到 "Collection was modified; enumeration operation may not execute"?

这个问题在这里已经有了答案:Howtoremoveelementsfromagenericlistwhileiteratingoverit?(28个答案)关闭9年前。我有两个字符串集合:CollectionA是系统中存储的对象的StringCollection属性,而CollectionB是运行时生成的List。如果存在任何差异,则需要更新CollectionA以匹配CollectionB。因此,我设计了一个我期望的简单LINQ方法来执行删除。varstrDifferences=CollectionA.Where(foo=>!CollectionB.Contains(foo));for

element-ui中el-table表格的使用(取到当前列的所有数据)

单元格内容是table绑定的data中的某个属性决定的用插槽来自定义显示的内容取到当前列的所有数据el-table-columnlabel="姓名"width="180">templateslot-scope="scope">{{scope.row.name}}template>el-table-column>可以在后端返回数据不是我们想要的时候做判断处理template自定义单元格内容的方式(具名插槽)scope.row:当前行的所有数据scope.$index:当前列的索引