草庐IT

item_property

全部标签

Warning: [ant-design-vue: Form.Item] FormItem can only collect one field item, you haved set `ASele

控制台出现这个提示:Warning:[ant-design-vue:Form.Item]FormItemcanonlycollectonefielditem,youhavedsetASelect,ASelect,AInputNumber,AInputNumber,AInput5fielditems.Youcansetnotneedtobecollectedfieldsintoa-form-item-resttable中使用了自定义组件如图:解决方案://对应的多组件添加a-form-item-rest>/a-form-item-rest>详情官网

如何解决单个el-form中el-form-item文字左对齐

    在开发的过程中,遇到了一个关于页面排版的问题,如何将el-form中一个el-form-item的label左对齐,文档里提供了label-position 这个属性是控制整个表单的label的位置。    文档中提供了label-width,给单独的el-form-item设置label-width:auto;功能实现了,但是校验的提示却错位了,最后不得以修改了el-form中默认样式,来控制他label居左.group-item-vo{display:flex;justify-content:flex-start;padding-bottom:14px;span{margin-ri

配置hexo时TypeError: Cannot read properties of null (reading ‘xxx‘)

这种报错的含义是在读取文件时读到了空对象。一般是文件放错了位置导致程序在指定的位置读不到想要的文件导致的。我是在更换hexo的theme时遇到的问题,我直接把github上的theme文件clone到了hexo的根目录下了才有了这样的报错。只要把clone下来的theme文件保存到hexo根目录下的themes文件夹里问题就解决了 

【Vite】Vite切换版本(Vite+vue3)报错 [vite] Internal server error: Cannot set property ‘id‘ of undefined

问题Vue3+vite的项目,在全局安装新的Vite版本后,一直报下图错误。报错信息通过很多方式没有解决,最后发现是Vite版本的问题,因为Vue是从脚手架中引入的importvuefrom'@vitejs/plugin-vue'解决查看package.json和package.lock.json区别修改将package.json中vite的版本号固定后,安装(npminstall)发现仍有问题最终解决查看@vitejs/plugin-vue的版本安装上图的@vitejs/plugin-vue的版本npminstall@vitejs/plugin-vue@1.4.0问题解决~~

docker 启动 nacos Failed to bind properties under ‘server.tomcat.basedir‘ to java.io.File 解决

配置文件中默认为server.tomcat.basedir=启动时出错,解决方案给该值赋予一个存在的路径server.tomcat.basedir=/重新启动即可解决问题来源docker按住nacos启动Failedtobindpropertiesunder'server.tomcat.basedir'tojava.io.File:·Issue#8960·alibaba/nacos·GitHub

Uncaught TypeError: Cannot read properties of null (reading ‘getAttribute‘)

简述:vue项目报错,UncaughtTypeError:Cannotreadpropertiesofnull(reading'getAttribute'),翻译:无法读取null属性(读取'getAttribute'),解析:getAttribute()是js获取属性方法,就是getAttribute不能读取null的属性,这种错误一般出现在使用Echarts和地图后,当切换到空白页面后,重置页面时,就会报类似错误,解决方法就是在报错之前做判断处理;解决:在触发事件前做判断,假如你是在重置页面大小时触发该事件;//给页面添加监听事件,如果存在,那再执行;mounted(){this.defi

Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘brands)

在写vue项目时我们经常会遇见这种报错,报错:Uncaught(inpromise)TypeError:Cannotreadpropertiesofnull(reading'brands')这句话意思是:无法读取null属性(读取'brands') 解决办法是在需要渲染的地方加一个v-if来判断数据存在如下图搞定!! 

Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]

Elasticsearchexception[type=mapper_parsing_exception,reason=Failedtoparsemapping[properties]:Rootmappingdefinitionhasunsupportedparameters: 我们在使用RestClient创建索引库时出现了这个错误。可以检查一下CreateIndexRequest类型变量request是否导入正确的包有两个同名的包,我们选择:importorg.elasticsearch.client.indices.CreateIndexRequest;创建的索引库DSL语法示例: 

安装element-UI失败,报错Cannot read properties of null (reading ‘package‘)

通过npminstall安装依赖报如下错误。解决办法:尝试通过cnpminstall或 yarninstall即可解决。  把npminstallelement-ui改成cnpminstallelement-ui(不知道是不是因为当初安装vue-cli脚手架的时候是用的cnpm)题外话:    在我查找这个问题的解决办法的时候,一直找不到可行的解决办法,甚至连这个症状(reading后面是"package"而不是其他)的帖子都比较少,所以现在尽量多水字数,看能不能混到发文助手的流量扶持,让需要的人更容易看到。(然鹅发文助手还是警报说文章低质量.......)    我百度到的方法一般是两种:一

SyntaxError: Expected property name or ‘}‘ in JsoN atposition 1

{\"events\":[{\"type\":0,\"data\":{},\"timestamp\":1675991917151},{\"type\":1,\"data\":{},\"timestamp\":1675991917175},{\"type\":4,\"data\":{\"href\":\"\",\"width\":414,\"height\":725},\"timestamp\":1675991917175}]}不知道你们有没有遇到过,明明是如上所示,加了一层转义的json字符串。在代码中通过JSON.parse()进行转换,发现如下图所示报错了。 但是。通过浏览器的F12,在控