mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
0e2b6343c2
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { TableOutlined } from '@ant-design/icons';
|
||||
import { ProfileOutlined } from '@ant-design/icons';
|
||||
import React, { useCallback } from 'react';
|
||||
import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application';
|
||||
import { useCollectionManager_deprecated } from '../../../../collection-manager';
|
||||
@ -50,7 +50,7 @@ export const DetailsBlockInitializer = ({
|
||||
return (
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
icon={<TableOutlined />}
|
||||
icon={<ProfileOutlined />}
|
||||
componentType={componentType}
|
||||
onCreateBlockSchema={async (options) => {
|
||||
if (createBlockSchema) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { OrderedListOutlined } from '@ant-design/icons';
|
||||
import { AppstoreOutlined } from '@ant-design/icons';
|
||||
import React from 'react';
|
||||
import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application';
|
||||
import { useCollectionManager_deprecated } from '../../../../collection-manager';
|
||||
@ -48,7 +48,7 @@ export const GridCardBlockInitializer = ({
|
||||
return (
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
icon={<OrderedListOutlined />}
|
||||
icon={<AppstoreOutlined />}
|
||||
componentType={`GridCard`}
|
||||
onCreateBlockSchema={async (options) => {
|
||||
if (createBlockSchema) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { TableOutlined } from '@ant-design/icons';
|
||||
import { RightSquareOutlined } from '@ant-design/icons';
|
||||
import React from 'react';
|
||||
|
||||
import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application';
|
||||
@ -31,7 +31,7 @@ export const FilterCollapseBlockInitializer = ({
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
onlyCurrentDataSource={onlyCurrentDataSource}
|
||||
icon={<TableOutlined />}
|
||||
icon={<RightSquareOutlined />}
|
||||
componentType={`FilterCollapse`}
|
||||
onCreateBlockSchema={async ({ item }) => {
|
||||
const schema = createCollapseBlockSchema({
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { FormOutlined } from '@ant-design/icons';
|
||||
import { PicRightOutlined } from '@ant-design/icons';
|
||||
import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client';
|
||||
import React from 'react';
|
||||
|
||||
@ -17,7 +17,7 @@ export const IframeBlockInitializer = () => {
|
||||
return (
|
||||
<SchemaInitializerItem
|
||||
{...itemConfig}
|
||||
icon={<FormOutlined />}
|
||||
icon={<PicRightOutlined />}
|
||||
onClick={() => {
|
||||
insert({
|
||||
type: 'void',
|
||||
|
@ -14,7 +14,7 @@ import { blockSchema } from './blockSchema';
|
||||
export const workbenchBlockInitializerItem: SchemaInitializerItemType = {
|
||||
type: 'item',
|
||||
name: 'workbenchBlock',
|
||||
icon: 'FileImageOutlined',
|
||||
icon: 'AppstoreAddOutlined',
|
||||
useComponentProps() {
|
||||
const { t } = useTranslation('@nocobase/plugin-block-workbench');
|
||||
const { insert } = useSchemaInitializer();
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { FormOutlined } from '@ant-design/icons';
|
||||
import { CalendarOutlined } from '@ant-design/icons';
|
||||
import { FormLayout } from '@formily/antd-v5';
|
||||
import { SchemaOptionsContext } from '@formily/react';
|
||||
import {
|
||||
@ -46,7 +46,7 @@ export const CalendarBlockInitializer = ({
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
componentType={`Calendar`}
|
||||
icon={<FormOutlined />}
|
||||
icon={<CalendarOutlined />}
|
||||
onCreateBlockSchema={async (options) => {
|
||||
if (createBlockSchema) {
|
||||
return createBlockSchema(options);
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { FormOutlined } from '@ant-design/icons';
|
||||
import { ProjectOutlined } from '@ant-design/icons';
|
||||
import { FormLayout } from '@formily/antd-v5';
|
||||
import { SchemaOptionsContext } from '@formily/react';
|
||||
import React, { useContext } from 'react';
|
||||
@ -47,7 +47,7 @@ export const GanttBlockInitializer = ({
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
componentType={`Gantt`}
|
||||
icon={<FormOutlined />}
|
||||
icon={<ProjectOutlined rotate={90} />}
|
||||
onCreateBlockSchema={async (options) => {
|
||||
if (createBlockSchema) {
|
||||
return createBlockSchema(options);
|
||||
|
@ -7,7 +7,7 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { FormOutlined } from '@ant-design/icons';
|
||||
import { ProjectOutlined } from '@ant-design/icons';
|
||||
import { FormLayout } from '@formily/antd-v5';
|
||||
import { SchemaOptionsContext, useForm } from '@formily/react';
|
||||
import React, { useContext } from 'react';
|
||||
@ -131,7 +131,7 @@ export const KanbanBlockInitializer = ({
|
||||
<DataBlockInitializer
|
||||
{...itemConfig}
|
||||
componentType={`Kanban`}
|
||||
icon={<FormOutlined />}
|
||||
icon={<ProjectOutlined />}
|
||||
onCreateBlockSchema={async (options) => {
|
||||
if (createBlockSchema) {
|
||||
return createBlockSchema(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user