Code Monkey home page Code Monkey logo

zmtlwzy-admin's Issues

How to use BasicForm?

Hello everyone,

Is anyone has some docs that explain how to use BasicForm and schema?

I'm trying to update a value of a field after doing some maths outside the register.

I appreciate any help!

某些情况下,meta.affix=true 不生效

截屏2022-01-30 下午10 41 45
某些情况下,meta.affix=true 不生效。
这个问题比较奇怪,我是 git clone 然后 npm install && npm run dev 打开就是这样。
我查看了一下 Naive UI 官方文档,Tabs 组件 提供了 closable 参数,设置为 false 就可以隐藏关闭按钮,所以我尝试将 /src/layouts/default/tabs/index.vue 第 21 行 :closable="panel?.meta?.affix" 修改为 :closable="!panel?.meta?.affix" 则正常了。

{
  "pkg": {
    "dependencies": {
      "@iconify/iconify": "^2.1.1",
      "@vueuse/core": "^7.5.3",
      "axios": "^0.24.0",
      "crypto-js": "^4.1.1",
      "echarts": "^5.2.2",
      "highlight.js": "^11.4.0",
      "lodash-es": "^4.17.21",
      "mockjs": "^1.1.0",
      "path-to-regexp": "^6.2.0",
      "pinia": "^2.0.9",
      "qrcode": "^1.5.0",
      "qs": "^6.10.3",
      "tinycolor2": "^1.4.2",
      "vue": "^3.2.27",
      "vue-i18n": "~9.1.9",
      "vue-router": "^4.0.12",
      "vue-slicksort": "^2.0.0-alpha.5",
      "vue-types": "^4.1.1"
    },
    "devDependencies": {
      "@commitlint/cli": "^15.0.0",
      "@commitlint/config-conventional": "^15.0.0",
      "@iconify/json": "^1.1.458",
      "@iconify/vue": "^3.1.2",
      "@types/crypto-js": "^4.1.0",
      "@types/fs-extra": "^9.0.13",
      "@types/lodash-es": "^4.17.5",
      "@types/mockjs": "^1.0.6",
      "@types/node": "^17.0.10",
      "@types/qrcode": "^1.4.2",
      "@types/qs": "^6.9.7",
      "@types/tinycolor2": "^1.4.3",
      "@typescript-eslint/eslint-plugin": "^5.10.0",
      "@typescript-eslint/parser": "^5.10.0",
      "@vitejs/plugin-vue": "^2.0.1",
      "@vitejs/plugin-vue-jsx": "^1.3.3",
      "@vue/compiler-sfc": "^3.2.27",
      "@vue/eslint-config-prettier": "^7.0.0",
      "@vue/eslint-config-typescript": "^10.0.0",
      "chalk": "^5.0.0",
      "commitizen": "^4.2.4",
      "cross-env": "^7.0.3",
      "cz-conventional-changelog": "^3.3.0",
      "cz-customizable": "^6.3.0",
      "date-fns": "^2.28.0",
      "dotenv": "^10.0.0",
      "eslint": "^8.7.0",
      "eslint-config-prettier": "^8.3.0",
      "eslint-plugin-import": "^2.25.4",
      "eslint-plugin-prettier": "^4.0.0",
      "eslint-plugin-vue": "^8.3.0",
      "esno": "^0.13.0",
      "fs-extra": "^10.0.0",
      "husky": "^7.0.4",
      "less": "^4.1.2",
      "lint-staged": "^12.2.1",
      "naive-ui": "^2.24.1",
      "prettier": "^2.5.1",
      "rimraf": "^3.0.2",
      "rollup": "^2.64.0",
      "typescript": "^4.5.4",
      "unplugin-icons": "^0.13.0",
      "unplugin-vue-components": "^0.17.13",
      "vfonts": "^0.1.0",
      "vite": "^2.7.13",
      "vite-plugin-html": "^2.1.2",
      "vite-plugin-mock": "^2.9.6",
      "vite-plugin-windicss": "^1.6.3",
      "vue-tsc": "^0.30.6",
      "windicss": "^3.4.3"
    },
    "name": "zmtlwzy-admin",
    "version": "0.1.0"
  },
  "lastBuildTime": "2022-01-30 22:41:30"
}

How to use BasicTable data?

Hi there,

I've been trying to load :data fom BasicTable after onMounted but it isn't work.

Do you have any tip how can I do that?

多级路由缓存的问题

image
image

作者你好我看到项目里多级路由缓存丢失采用这种方法解决,但是我用到我自己的项目里报如上的警告,实在不知问题出在哪里,希望得到提示,感谢!
image
image

在项目中我是这样使用的

数据表格搜索如何绑定传参

测试基础组件 基础表格填写姓111名点击搜索 希望获取到姓名为111的表格数据 ,但是并没有获取到正确数据如图
image
是不是应该这样写
image
但是重置应该怎么搞呢
image
是不是应该先按重置按钮,再按搜索按钮
还是这样
image
有没有更简单点的办法

pnpm dev 以及 getUserInfo mock接口有点小问题

本地node版本14.15.1

1、build/vite/plugin/msw.ts
replaceAll函数存在不兼容情况报错replaceAll is not a function,建议使用replace('/\/g', '/')

2、getUserInfo接口里面的getRequestToken方法有问题,应该是req?.headers?.headers?.authorization才对,不应该是req?.headers?._headers?.authorization

useForm setFieldsValue 赋值

当form 在n-modal中的时候
setFieldsValue 这个函数只能用到 onMounted 里边吗我这样用可以吗
image
这样用报错
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.