feat(editor,form,form-schema): 新增form-schema,将表单schema放入其中
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([
|
||||
{
|
||||
text: '文本',
|
||||
name: 'text',
|
||||
type: 'data-source-input',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
*/
|
||||
|
||||
import { getElById } from '@tmagic/core';
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default [
|
||||
export default defineFormConfig([
|
||||
{
|
||||
name: 'layout',
|
||||
text: '容器布局',
|
||||
@@ -40,4 +41,4 @@ export default [
|
||||
}
|
||||
},
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([
|
||||
{
|
||||
type: 'data-source-field-select',
|
||||
name: 'src',
|
||||
@@ -32,4 +34,4 @@ export default [
|
||||
name: 'url',
|
||||
type: 'data-source-input',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, NODE_CONDS_KEY } from '@tmagic/core';
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default [
|
||||
export default defineFormConfig([
|
||||
{
|
||||
name: 'iteratorData',
|
||||
text: '数据源数据',
|
||||
@@ -116,4 +117,4 @@ export default [
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,4 +16,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [];
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([
|
||||
{
|
||||
name: 'pageFragmentId',
|
||||
text: '页面片ID',
|
||||
type: 'page-fragment-select',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
*/
|
||||
|
||||
import { getElById } from '@tmagic/core';
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default [
|
||||
export default defineFormConfig([
|
||||
{
|
||||
text: '页面片标识',
|
||||
name: 'name',
|
||||
@@ -49,4 +50,4 @@ export default [
|
||||
}
|
||||
},
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
*/
|
||||
|
||||
import { getElById } from '@tmagic/core';
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default [
|
||||
export default defineFormConfig([
|
||||
{
|
||||
text: '页面标识',
|
||||
name: 'name',
|
||||
@@ -51,4 +52,4 @@ export default [
|
||||
}
|
||||
},
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"qrcode": "^1.5.0"
|
||||
"@tmagic/form-schema": "workspace:^",
|
||||
"qrcode": "^1.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([
|
||||
{
|
||||
text: '链接',
|
||||
name: 'url',
|
||||
type: 'data-source-input',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/form-schema": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tmagic/core": "workspace:^",
|
||||
"@tmagic/react-runtime-help": "workspace:^",
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default [
|
||||
import { defineFormConfig } from '@tmagic/form-schema';
|
||||
|
||||
export default defineFormConfig([
|
||||
{
|
||||
name: 'text',
|
||||
text: '文本',
|
||||
@@ -27,4 +29,4 @@ export default [
|
||||
text: '多行文本',
|
||||
type: 'switch',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user