+如何全局配置一个 amis 的组件
+
+在 config 的 amis 中 components 中添加以下配置
+
+return [
+ // ... 其他配置
+ /*
+ * 用于全局替换组件的默认参数
+ * @see Component::$config
+ */
+ 'components' => [
+ // 例如: 将列表页的字段默认左显示
+ /*\WebmanTech\AmisAdmin\Amis\GridColumn::class => [
+ 'schema' => [
+ 'align' => 'left',
+ ],
+ ],*/
+ // typeXxx,xxx 未 amis 的组件 type,通过 schema 会全局注入到每个 type 组件
+ 'typeImage' => [
+ 'schema' => [
+ 'enlargeAble' => true,
+ ],
+ ],
+ ],
+];
+
\ No newline at end of file
From 439ca575b62912f8827d89900254ced603df4ba5 Mon Sep 17 00:00:00 2001
From: kriss <462679766@qq.com>
Date: Thu, 6 Feb 2025 17:03:02 +0800
Subject: [PATCH 12/12] feature: update dep
---
composer.json | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/composer.json b/composer.json
index 3e62c92..763e376 100644
--- a/composer.json
+++ b/composer.json
@@ -21,13 +21,13 @@
"ext-json": "*"
},
"require-dev": {
- "workerman/webman-framework": "^1.5",
- "illuminate/database": "^8.83",
- "illuminate/pagination": "^8.83",
- "illuminate/validation": "^8.83",
- "webman-tech/polyfill": "^1.0",
- "pestphp/pest": "^1.23",
- "symfony/var-dumper": "^5.4"
+ "workerman/webman-framework": "^1.5|^2.0",
+ "illuminate/database": "^8.0|^9.0|^10.0|^11.0",
+ "illuminate/pagination": "^8.0|^9.0|^10.0|^11.0",
+ "illuminate/validation": "^8.0|^9.0|^10.0|^11.0",
+ "webman-tech/polyfill": "^1.0|^2.0",
+ "pestphp/pest": "^1.23|^2.0",
+ "symfony/var-dumper": "^5.4|^6.0|^7.0"
},
"config": {
"allow-plugins": {