w3cmark

Results 18 issues of w3cmark

目前的配置: ```javascript const config = { resources: { res1: { api: {} fields: {} }, res2: { api: {} fields: {} }, ... }, blocks: { block1: { type: 'form',...

包括节点销毁和事件注销。

场景:有A、B两个下拉选择的字段,如果B字段是依赖A字段的选择结果而变化 目前配置: ```js const config = { type: 'form', resource: { fields: { platform: { type: 'select', label: '应用平台', props: { options: { android: 'android', iphone: 'iphone' } } },...

+ 展示状态 接口返回的值和展示的值一致,直接展示; 接口返回的是`key`,需要根据`key`来查询对应的值,这样就会有问题。比如列表每一项都需要去动态查询,会触发多次接口请求。(这种建议让接口改成直接返回值,而不是key。) + 编辑状态 1. 可选数据项是本地写死的静态数据 2. 可选数据项通过接口一次性返回,后续无需再请求。 3. 可选数据项通过接口部分返回,当输入的关键字时查询接口返回。 > 格式问题:目前是字符串,有反馈说不符合日常逻辑,应该是数组比较合理 目前配置: ```js const config = { select1: { type: 'select', label: 'select1', props: { options: [{...

目前插槽比较复杂,有字段插槽、操作插槽、区块插槽等等。什么时候用slot,什么时候用slots? > element 的某些组件支持slots 目前配置: ```js const config = { type: 'form', resource: { fields: { textFieldA: { type: 'text', label: 'prefix', slots: { // 字段插槽 prefix: 'prefix', } }...

如果value和label是相同的,支持简写模式。 目前配置: ``` { "multiple": false, "options": { "a": "a", "b": "b", "c": "c" } } ``` 优化后的配置: ``` { "multiple": false, "options": ['a', 'b', 'c'] } ```

目前配置: ```js const config = { style: { // 只能针对最外层 color: '#f60' } } ``` 优化方案(待定): ```js const config = { styles: { // 针对样式名来配置样式(如何解决样式定位精准问题?) className: { color: '#f60' },...

element组件可能存在多层属性的问题,比如[Radio](https://element.eleme.cn/#/zh-CN/component/radio) Attributes和Radio-group Attributes 解决方案: ```js const config = { type: 'transfer', attrs: { // 属性配置(包括element的属性和ams自定义属性) options: [{ // 可选项数据源 value: 'a', label: '黄金糕' }, { value: 'b', label: '双皮奶' }],...

目前表单的field都是行块布局,遇到需要行内展示时如何实现? 而operations都是行内布局,遇到需要换行展示时如何实现? 目前配置: ```js const config = { type: 'list', resource: { fields: { text: { label: '文本1', type: 'text', props: { inline: true } }, text2: { label: '文本2',...

> 表单block里面会用到一些中间变量,不属于data对象里面的,也不需要提交的,但是没有地方可以定义,只能定义在data里面,导致每次提交接口都会被当成参数上交 目前的配置: ```js const config = { type: 'list', data: { isForm: false // 会一起提交给接口 } actions: { init: function() { if (this.data.isForm) { ... } } } }...