Skip to content

Commit

Permalink
发布部署
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Nov 2, 2023
1 parent 7333691 commit 33a2a74
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/form-render-mobile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 更新日志

### 1.0.14
- [+] labelWidget、descWidget 增加 addons 访问属性
- [-] 兼容 widget 大小写配置
### 1.0.13
- [+] 增加输入控件单独配置布局 layout = 'row' | 'column'
- [+] 补齐 tooltip 字段,与 PC 端保持一致
Expand Down
2 changes: 1 addition & 1 deletion packages/form-render-mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-render-mobile",
"version": "1.0.13",
"version": "1.0.14",
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
"keywords": [
"Form",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import {
const UpperContext: any = createContext(() => {});
const valuePropNameMap = {
checkbox: 'checked',
switch: 'checked'
switch: 'checked',
Checkbox: 'checked',
Switch: 'checked'
};

export default (props: any) => {
Expand Down Expand Up @@ -100,7 +102,7 @@ export default (props: any) => {
}

// Render field components
let label = getLabel(schema, displayType, widgets);
let label = getLabel(schema, displayType, widgets, fieldProps.addons);
let noStyle = getValueFromKey('noStyle');

const extra = getExtraView('extra', schema, widgets);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export const getPath = (path: any) => {
return path;
};

export const getLabel = (schema: any, displayType: string, widgets: any) => {
export const getLabel = (schema: any, displayType: string, widgets: any, addons: any) => {
const { title, description, descWidget, labelWidget } = schema;

const LabelNode = widgets[labelWidget];

if (LabelNode) {
return <LabelNode schema={schema} />
return <LabelNode schema={schema} addons={addons} />
}

if ((!description && !descWidget)) {
Expand All @@ -81,7 +81,7 @@ export const getLabel = (schema: any, displayType: string, widgets: any) => {
const RenderDesc = () => {
const Widget = widgets[descWidget];
if (Widget) {
return <Widget schema={schema} />;
return <Widget schema={schema} addons={addons} />;
}

if (description) {
Expand Down
3 changes: 3 additions & 0 deletions packages/form-render/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 更新日志

### 2.3.5
- [+] labelWidget、descWidget 增加 addons 访问属性
- [-] 兼容 widget 大小写配置
### 2.3.0
- [+] 优化 search-form 折叠收起逻辑,不再判断 dom 真实渲染高度,提升渲染性能
- [!] form.getValues 判断 removeHiddenData = true 时,才去除隐藏控件数据
Expand Down
2 changes: 1 addition & 1 deletion packages/form-render/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-render",
"version": "2.3.4",
"version": "2.3.5",
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
"keywords": [
"Form",
Expand Down

1 comment on commit 33a2a74

@vercel
Copy link

@vercel vercel bot commented on 33a2a74 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

x-render – ./

x-render-git-master-tw93.vercel.app
x-render-tw93.vercel.app
xrender.fun
www.xrender.fun

Please sign in to comment.