1 2 3 4 5 ··· 14 下一页
摘要: 几个要点 监听的数据是reactive对象里的属性,所以需要deep监听,否则监听不到 第一个接口如果调用多次,这里也会调用多次,可能会有问题 watch( () => state.editData.gateShops, (New, Old) => { console.log(' ',New,' ' 阅读全文
posted @ 2024-07-30 10:59 ayubene 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 参考这篇 原来是因为子组件先mount 加载数据渲染过程 父组件beforeCreate 父组件created 父组件beforeMount 子组件beforeCreate 子组件created 子组件beforeMount 子组件mounted 父组件mounted 阅读全文
posted @ 2024-07-29 15:57 ayubene 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 参考文章链接 原来写的是: <el-col :span="24"> <el-form-item label="状态" prop="transportType"> <el-radio-group v-model="state.editData.transportType"> <el-radio :va 阅读全文
posted @ 2024-07-25 13:15 ayubene 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 图标 阿里巴巴矢量图标库 阅读全文
posted @ 2024-07-14 17:42 ayubene 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 《Flutter实战·第二版》 ElevatedButton( child: Text("ElevatedButton 默认带有阴影和灰色背景。按下后,阴影会变大"), onPressed: () {}, ), TextButton( child: Text("TextButton 默认背景透明并不 阅读全文
posted @ 2024-07-14 10:46 ayubene 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 《Flutter实战·第二版》 Text TextAlign:left right center 注意点:对齐的参考系是Text widget 本身,如果文本不够长,设置看起来是没有生效的;文本长才看得到,字符串内容超过一行,Text 宽度等于屏幕宽度,第二行文本便会居中显示。 maxLines、o 阅读全文
posted @ 2024-07-14 10:39 ayubene 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 参考链接 在pubspec.yaml中添加font的时候出现这个问题 发现是因为我放的文件夹不对,需要放在根目录下(但是我不知道为什么android studio里没有显示一些文件夹) 本来放在这里 一直不对 后来在文件夹找了一下放到lib里 新建了assets文件夹 可以使用google_font 阅读全文
posted @ 2024-07-14 00:25 ayubene 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 想在pubspec.yaml 文件中添加字体:报错了 fonts: - family: MiaoZi fonts: - asset: assets/fonts/MiaoZi-YunYingTi-2.ttf weight: 500 看了这篇文章解决了 我原来是加在 dependencies: flut 阅读全文
posted @ 2024-07-13 23:48 ayubene 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 参考来自 这段话解决了问题 Unfortunately not all widgets has a const constructor, Container and Column are two examples of that. You won't be able to construct tho 阅读全文
posted @ 2024-07-13 23:11 ayubene 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 《Flutter实战·第二版》调试Flutter应用 [ 《Flutter实战·第二版》Flutter异常捕获](https://book.flutterchina.club/chapter2/thread_model_and_error_report.html#_2-8-1-dart单线程模型) 阅读全文
posted @ 2024-07-13 19:59 ayubene 阅读(3) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 14 下一页