Skip to content

Commit

Permalink
feat: amis update to 6.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlyo committed Jun 11, 2024
1 parent b51bdbb commit 1c94393
Show file tree
Hide file tree
Showing 211 changed files with 9,209 additions and 4,523 deletions.
2 changes: 1 addition & 1 deletion admin-views/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ VITE_BASE_URL=/admin-assets
# 接口前缀 (默认)
VITE_API_PREFIX=/admin-api
# 代理地址, mode != production 时生效
VITE_PROXY_URL=http://owl-admin.test
VITE_PROXY_URL=http://owl-admin.localed.top
# 代理地址是否更改origin
VITE_PROXY_CHANGE_ORIGIN=Y
11 changes: 6 additions & 5 deletions admin-views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-react": "^1.0.6",
"ahooks": "^3.7.6",
"amis": "^6.4.1",
"amis-editor": "^6.4.1",
"amis-editor-core": "^6.4.1",
"amis-ui": "^6.4.1",
"amis": "^6.5.0",
"amis-core": "^6.5.0",
"amis-editor": "^6.5.0",
"amis-editor-core": "^6.5.0",
"amis-ui": "^6.5.0",
"antd": "^5.12.2",
"axios": "^0.24.0",
"lodash": "^4.17.21",
Expand Down Expand Up @@ -52,7 +53,7 @@
"postcss-less": "4",
"tailwindcss": "^3.3.3",
"typescript": "^4.5.2",
"vite": "^5.1.3",
"vite": "^5.2.13",
"vite-plugin-compression": "^0.5.1"
},
"browserslist": {
Expand Down
9,269 changes: 5,117 additions & 4,152 deletions admin-views/pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/Controllers/DevTools/CodeGeneratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ public function form($isEdit = false)
]),
amis()
->SelectControl('exists_table', admin_trans('admin.code_generators.exists_table'))
->inputClassName('bg-gray-100')
->searchable()
->clearable()
->selectMode('group')
Expand Down Expand Up @@ -221,9 +220,9 @@ public function form($isEdit = false)
->required(),
amis()
->SelectControl('save_path', admin_trans('admin.code_generators.save_path_select'))
->clearable()
->searchable()
->description(admin_trans('admin.code_generators.save_path_select_tips'))
->inputClassName('bg-gray-100')
->selectMode('group')
->source('${save_path_options}')
->onEvent([
Expand Down
137 changes: 75 additions & 62 deletions src/Renderers/.phpstorm.meta.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Renderers/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Action 行为按钮 https://aisuda.bce.baidu.com/amis/zh-CN/components/action
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Action extends BaseRenderer
{
Expand Down
10 changes: 9 additions & 1 deletion src/Renderers/AjaxAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AjaxAction
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class AjaxAction extends BaseRenderer
{
Expand Down Expand Up @@ -408,6 +408,14 @@ public function target($value = '')
return $this->set('target', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
Expand Down
18 changes: 17 additions & 1 deletion src/Renderers/Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Alert 提示渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/alert
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Alert extends BaseRenderer
{
Expand Down Expand Up @@ -207,6 +207,22 @@ public function style($value = '')
return $this->set('style', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
public function testid($value = '')
{
return $this->set('testid', $value);
}

/**
* 提示框标题
*/
Expand Down
15 changes: 15 additions & 0 deletions src/Renderers/Amis.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,21 @@ public function InputKVS()
return InputKVS::make();
}

public function InputSignature($name = '', $label = '')
{
$instance = InputSignature::make();

if ($name !== '') {
$instance->name($name);
}

if ($label !== '') {
$instance->label($label);
}

return $instance;
}

public function InputTimeRange()
{
return InputTimeRange::make();
Expand Down
18 changes: 17 additions & 1 deletion src/Renderers/AnchorNav.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AnchorNav 锚点导航渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/anchor-nav
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class AnchorNav extends BaseRenderer
{
Expand Down Expand Up @@ -183,6 +183,22 @@ public function style($value = '')
return $this->set('style', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
public function testid($value = '')
{
return $this->set('testid', $value);
}

/**
* 指定为 AnchorNav 锚点导航渲染器
*/
Expand Down
18 changes: 17 additions & 1 deletion src/Renderers/AnchorNavSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AnchorNavSection 锚点区域渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/anchor-nav
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class AnchorNavSection extends BaseRenderer
{
Expand Down Expand Up @@ -168,6 +168,22 @@ public function style($value = '')
return $this->set('style', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
public function testid($value = '')
{
return $this->set('testid', $value);
}

/**
* 导航文字说明
*/
Expand Down
36 changes: 34 additions & 2 deletions src/Renderers/ArrayControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* InputArray 数组输入框。 combo 的别名。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/array
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class ArrayControl extends BaseRenderer
{
Expand Down Expand Up @@ -47,6 +47,14 @@ public function addattop($value = true)
return $this->set('addattop', $value);
}

/**
* 自动填充,当选项被选择的时候,将选项中的其他值同步设置到表单内。
*/
public function autoFill($value = '')
{
return $this->set('autoFill', $value);
}

/**
* 是否可以访问父级数据,正常 combo 已经关联到数组成员,是不能访问父级数据的。
*/
Expand Down Expand Up @@ -223,6 +231,14 @@ public function id($value = '')
return $this->set('id', $value);
}

/**
*
*/
public function initAutoFill($value = '')
{
return $this->set('initAutoFill', $value);
}

/**
* 表单 control 是否为 inline 模式。
*/
Expand Down Expand Up @@ -264,7 +280,7 @@ public function label($value = '')
}

/**
* 描述标题 (描述标题) 可选值: right | left
* 描述标题 (描述标题) 可选值: right | left | top | inherit
*/
public function labelAlign($value = '')
{
Expand Down Expand Up @@ -431,6 +447,14 @@ public function required($value = true)
return $this->set('required', $value);
}

/**
*
*/
public function row($value = '')
{
return $this->set('row', $value);
}

/**
* 是否立即保存(TableColumn中使用)
*/
Expand Down Expand Up @@ -584,6 +608,14 @@ public function tabsStyle($value = '')
return $this->set('tabsStyle', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
* 指定为数组输入框类型
*/
Expand Down
18 changes: 17 additions & 1 deletion src/Renderers/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Audio 音频渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/audio
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Audio extends BaseRenderer
{
Expand Down Expand Up @@ -191,6 +191,22 @@ public function style($value = '')
return $this->set('style', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
public function testid($value = '')
{
return $this->set('testid', $value);
}

/**
* 指定为音频播放器
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/AutoFillHeight.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AutoFillHeight
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class AutoFillHeight extends BaseRenderer
{
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/AutoGenerateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AutoGenerateFilter
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class AutoGenerateFilter extends BaseRenderer
{
Expand Down
18 changes: 17 additions & 1 deletion src/Renderers/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Avatar
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Avatar extends BaseRenderer
{
Expand Down Expand Up @@ -240,6 +240,22 @@ public function style($value = '')
return $this->set('style', $value);
}

/**
*
*/
public function testIdBuilder($value = '')
{
return $this->set('testIdBuilder', $value);
}

/**
*
*/
public function testid($value = '')
{
return $this->set('testid', $value);
}

/**
* 文本
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Badge 角标。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/badge
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Badge extends BaseRenderer
{
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/Barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Barcode 条形码 https://aisuda.bce.baidu.com/amis/zh-CN/components/barcode
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Barcode extends BaseRenderer
{
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/BaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* BaseApi
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class BaseApi extends BaseRenderer
{
Expand Down
2 changes: 1 addition & 1 deletion src/Renderers/Breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Breadcrumb 面包屑 https://aisuda.bce.baidu.com/amis/zh-CN/components/breadcrumb
*
* @author slowlyo
* @version 6.4.1
* @version 6.5.0
*/
class Breadcrumb extends BaseRenderer
{
Expand Down
Loading

0 comments on commit 1c94393

Please sign in to comment.