formilyjs / element-plus Goto Github PK
View Code? Open in Web Editor NEWFormily Element Plus Adaptor
License: MIT License
Formily Element Plus Adaptor
License: MIT License
官网代码,vue3+element-plus,替换自己上传url,上传成功后点击Reset按钮重置,界面上Upload图片还在。查看vue-devtool发现form的值已经被重置清空,
但ElUploadList
组件中files值并没有被删除,
重置后upload组件filelist也被清空,页面上不再显示图片
上传成功后点击Reset按钮重置,界面上Upload图片还在
@formily/[email protected]
一试便知
样式不能丢啊,其他组件样式都是好的
样式丢了
PATH: packages/components/src/array-cards/index.ts
问题描述:
在 45行, 51行,53行,定义的userField变量,重复调用了value,判断应该是在53行调用ArrayField的数据源字段,dataSource
const dataSource = Array.isArray(field.value) ? field.value : [] 》》》
const dataSource = Array.isArray(field.dataSource ) ? field.dataSource : []
Reproduction link
Steps to reproduce
"dependencies": {
"@formily/core": "^2.0.19",
"@formily/element-plus": "^1.0.0-beta.1",
"@formily/vue": "^2.0.19",
"element-plus": "^2.0.1",
"sass": "^1.50.1",
"sass-loader": "^12.6.0",
"vue": "^3.2.25"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.1",
"vite": "^2.7.13"
}
运行 element-plus/packages/components/docs/demos/guide/input/json-schema.vue
input不能输入。
运行 element-plus/packages/components/docs/demos/guide/input-number/json-schema.vue
+、-按钮点击后,不能正确增减数字
运行 element-plus/packages/components/docs/demos/guide/form-item/json-schema.vue
不能显示input
What is expected?
如何解决?
What is actually happening?
不能显示或不能使用。
Package
@formily/[email protected]
=============================package.json=============================
"dependencies": {
"@formily/core": "^2.3.0",
"@formily/element-plus": "^1.1.0-beta.0",
"@formily/vue": "^2.3.0",
"element-plus": "^2.4.2",
"moment": "^2.29.4",
"sass": "^1.32.11",
"sass-loader": "^8.0.2",
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"sass": "^1.49.9",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vite": "^4.4.0",
"vite-plugin-imp": "^2.4.0"
}
=============================vite.config.js=============================
vitePluginImp({
libList: [
{
libName: '@formily/element-plus',
libDirectory: 'esm',
replaceOldImport : false,
style(name) {
return @formily/element-plus/esm/${name}/style.js
},
},
],
}),
=============================package.json=============================
import 'element-plus/theme-chalk/src/base.scss'
=============================启动访问报错=============================
[vite] Internal server error: Failed to resolve import "element-plus/es/components/default/style/css.js" from "src/main.js". Does the file exist?
Plugin: vite:import-analysis
File: /Users/xxx/Desktop/bpmn-vue3-custom/src/main.js:1:9
1 | import 'element-plus/es/components/default/style/css.js';;i
"@formily/element-plus": "^1.1.0-beta.0",
"element-plus": "^2.2.29",
对比发现,element-plus 的 Radio 调整了标签结构
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.