mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
1657439569
* Table BasicColumn 添加 editDynamicDisabled Co-authored-by: Cyrus Zhou <6802207@qq.com> 使用方式同 Form FormSchema dynamicDisabled ``` export const Columns: BasicColumn[] = [ { title: 'Title', dataIndex: 'Title', editRow: true, editComponent: 'Select', editDynamicDisabled: ({ record }) => record.isDisabled, }, * editComponentProps onChange 功能恢复 Co-authored-by: Cyrus Zhou <6802207@qq.com> 说明: ...omit(compProps, 'onChange') 这会忽略 onChange ,导致 editComponentProps onChange 被取消 如下功能将不支持: ``` editComponentProps: ({ record }) => { return { options: effectTypeData, onChange: () => { }, }; }, ``` * tableData == null 报错 * ApiSelect 第一次选择触发required错误提示问题 * 恢复 虽然可以解决第一次选择提示报错问题,但是会导致 onChange: (e: any, options: any) => 无法获得 options 的值 * 修复标签页切换灰屏不显示内容问题 Co-authored-by: Cyrus Zhou <6802207@qq.com> 问题描述页面没有用 div 包括 会提示 Component inside <Transition> renders non-element root node that cannot be animated , 导致页灰屏必须刷新页面才可以显示内容 * 添加 Form ApiTransfer ## 使用方式 api 方式: ``` ...... component: 'ApiTransfer', componentProps: { api: sysUserSelector, labelField: 'name', valueField: 'id', }, ..... ``` 数据方式: ``` .... componentProps: { dataSource: [ { title: 'Test01', key: '0', disabled: false, description: 'description 01' }, { title: 'Test02', key: '1', disabled: false, description: 'description 02' }, { title: 'Test03', key: '2', disabled: false, description: 'description 03' }, { title: 'Test04', key: '3', disabled: false, description: 'description 04' }, { title: 'Test05', key: '4', disabled: false, description: 'description 05' }, ], }, .... ``` * style: eslint 书写规范 * fix: 频繁切换页面导致灰屏 * fix: 修复 updateSchema 多个field 属性时,第二个无效问题。 如: ``` updateSchema([ { field: 'password', ifShow: !unref(isUpdate), }, { field: 'confirm', ifShow: !unref(isUpdate), }, ]); ``` Co-authored-by: CyrusZhou <6802207@qq.com>
161 lines
3.7 KiB
JSON
161 lines
3.7 KiB
JSON
{
|
|
"typescript.tsdk": "./node_modules/typescript/lib",
|
|
"volar.tsPlugin": true,
|
|
"volar.tsPluginStatus": false,
|
|
"npm.packageManager": "pnpm",
|
|
"editor.tabSize": 2,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"files.eol": "\n",
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
"**/*.log": true,
|
|
"**/*.log*": true,
|
|
"**/bower_components": true,
|
|
"**/dist": true,
|
|
"**/elehukouben": true,
|
|
"**/.git": true,
|
|
"**/.gitignore": true,
|
|
"**/.svn": true,
|
|
"**/.DS_Store": true,
|
|
"**/.idea": true,
|
|
"**/.vscode": false,
|
|
"**/yarn.lock": true,
|
|
"**/tmp": true,
|
|
"out": true,
|
|
"dist": true,
|
|
"node_modules": true,
|
|
"CHANGELOG.md": true,
|
|
"examples": true,
|
|
"res": true,
|
|
"screenshots": true,
|
|
"yarn-error.log": true,
|
|
"**/.yarn": true
|
|
},
|
|
"files.exclude": {
|
|
"**/.cache": true,
|
|
"**/.editorconfig": true,
|
|
"**/.eslintcache": true,
|
|
"**/bower_components": true,
|
|
"**/.idea": true,
|
|
"**/tmp": true,
|
|
"**/.git": true,
|
|
"**/.svn": true,
|
|
"**/.hg": true,
|
|
"**/CVS": true,
|
|
"**/.DS_Store": true
|
|
},
|
|
"files.watcherExclude": {
|
|
"**/.git/objects/**": true,
|
|
"**/.git/subtree-cache/**": true,
|
|
"**/.vscode/**": true,
|
|
"**/node_modules/**": true,
|
|
"**/tmp/**": true,
|
|
"**/bower_components/**": true,
|
|
"**/dist/**": true,
|
|
"**/yarn.lock": true
|
|
},
|
|
"stylelint.enable": true,
|
|
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
|
|
"path-intellisense.mappings": {
|
|
"/@/": "${workspaceRoot}/src"
|
|
},
|
|
"[javascriptreact]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[html]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[css]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[less]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[scss]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[markdown]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"[vue]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
"source.fixAll.stylelint": true
|
|
}
|
|
},
|
|
"i18n-ally.localesPaths": ["src/locales/lang"],
|
|
"i18n-ally.keystyle": "nested",
|
|
"i18n-ally.sortKeys": true,
|
|
"i18n-ally.namespace": true,
|
|
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
|
|
"i18n-ally.enabledParsers": ["ts"],
|
|
"i18n-ally.sourceLanguage": "en",
|
|
"i18n-ally.displayLanguage": "zh-CN",
|
|
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
|
"cSpell.words": [
|
|
"vben",
|
|
"windi",
|
|
"browserslist",
|
|
"tailwindcss",
|
|
"esnext",
|
|
"antv",
|
|
"tinymce",
|
|
"qrcode",
|
|
"sider",
|
|
"pinia",
|
|
"sider",
|
|
"nprogress",
|
|
"INTLIFY",
|
|
"stylelint",
|
|
"esno",
|
|
"vitejs",
|
|
"sortablejs",
|
|
"mockjs",
|
|
"codemirror",
|
|
"iconify",
|
|
"commitlint",
|
|
"vditor",
|
|
"echarts",
|
|
"cropperjs",
|
|
"logicflow",
|
|
"vueuse",
|
|
"zxcvbn",
|
|
"lintstagedrc",
|
|
"brotli",
|
|
"tailwindcss",
|
|
"sider",
|
|
"pnpm",
|
|
"antd"
|
|
],
|
|
"vetur.format.scriptInitialIndent": true,
|
|
"vetur.format.styleInitialIndent": true,
|
|
"vetur.validation.script": false,
|
|
"MicroPython.executeButton": [
|
|
{
|
|
"text": "▶",
|
|
"tooltip": "运行",
|
|
"alignment": "left",
|
|
"command": "extension.executeFile",
|
|
"priority": 3.5
|
|
}
|
|
],
|
|
"MicroPython.syncButton": [
|
|
{
|
|
"text": "$(sync)",
|
|
"tooltip": "同步",
|
|
"alignment": "left",
|
|
"command": "extension.execute",
|
|
"priority": 4
|
|
}
|
|
]
|
|
}
|