ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Form-create switch slot

    Dec 17, 20219 min read

    Form-create switch slot

    {
        "type": "col",
        "props": { "span": 8 },
        "children": [{
          type:"switch",
          title:"是否聘用",
          field:"isPost",
          props: {
            "slot": {
              open:"是",
              close:"否",
            },
            activeValue:"1",
            inactiveValue:"0",
          },
        }],
      }],
    

    相关文章

    MongoDB findAndModify的使用示范

    MongoDB的findAndModify命令允许查找并修改集合中的文档,例如将年龄为25的记录修改为30,并返回修改后的文档。

    清理 IndexedDB

    要清理IndexedDB,需通过开发者工具的"Application"选项卡中的"Storage"子选项卡,选择并删除特定的IndexedDB数据库或使用"删除所有"选项。

    【前端开发】Vue中Watch的Immediate和Deep到底是什么意思?

    在Vue中,`watch`的`immediate`选项使得回调函数在初始化时立即执行,而`deep`选项则允许深度监听对象内部属性的变化,但需注意可能带来的性能问题。

    如何理解: 做内容就像是飞行,你飞的越高,在观众面前就越渺小?

    做内容需保持谦虚务实,不断提升完成度和表现能力,以在观众面前展现实力和优秀。

    Non-nullable instance field '_deleted' must be initialized

    In Dart with null safety, non-nullable fields like `_deleted` must be explicitly initialized at declaration, in constructor formals, or in the initializer list, or declared as `late` or nullable to avoid compilation errors.