@mijalowcode/materials 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Timeline, List, Descriptions, Typography, Checkbox, Radio, Dropdown, Avatar, Badge, DatePicker, Form, Input, Result, Statistic, Divider, Popover, Popconfirm, Tooltip, Skeleton, Progress, Alert, Spin, Modal, Table, Cascader, Switch, Pagination, Steps, Tabs, Tree, Upload, TimePicker, InputNumber, Select, Card, Col, Row, FilterColumns, Empty, Tag, message } from '@mijadesign/web';
2
- import { Layout, Drawer, Button, Space, Descriptions as Descriptions$1, Modal as Modal$1, message as message$1 } from 'antd';
1
+ import { Timeline, List, Descriptions, Typography, Checkbox, Radio, Dropdown, Avatar, Badge, DatePicker, Form, Input, Result, Statistic, Divider, Popover, Popconfirm, Tooltip, Skeleton, Progress, Alert, Spin, Modal, Table, Cascader, Switch, Pagination, Steps, Tabs, Tree, Upload, TimePicker, InputNumber, Select, Card, Col, Row, FilterColumns, Empty, Button, Tag, message } from '@mijadesign/web';
2
+ import { Layout, Drawer, Space, Button as Button$1, Descriptions as Descriptions$1, Modal as Modal$1 } from 'antd';
3
3
  import { createContext, Children, isValidElement, useMemo, useCallback, useRef, useState, useEffect, cloneElement, useContext } from 'react';
4
4
  import { ProTable, BetaSchemaForm } from '@ant-design/pro-components';
5
5
  import * as AntdIcons from '@ant-design/icons';
@@ -510,7 +510,7 @@ function SchemaFormWrapper({
510
510
  const handleClick = () => {
511
511
  emitEvent("schemaForm.triggerClick", {});
512
512
  };
513
- const finalTrigger = trigger ?? (popupMode && triggerText ? /* @__PURE__ */ jsx(Button, { type: triggerButtonType ?? "primary", onClick: handleClick, children: triggerText }) : void 0);
513
+ const finalTrigger = trigger ?? (popupMode && triggerText ? /* @__PURE__ */ jsx(Button$1, { type: triggerButtonType ?? "primary", onClick: handleClick, children: triggerText }) : void 0);
514
514
  useEffect(() => {
515
515
  if (!formRef.current) return;
516
516
  emitEvent("schemaForm.init", {});
@@ -771,7 +771,7 @@ function DrawerWrapper(props) {
771
771
  const DrawerRenderer = rendererContext?.DrawerRenderer;
772
772
  return /* @__PURE__ */ jsxs("div", { className: "drawer-content-wrapper", children: [
773
773
  props.open !== void 0 && /* @__PURE__ */ jsx("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ jsx(
774
- Button,
774
+ Button$1,
775
775
  {
776
776
  type: "primary",
777
777
  icon: /* @__PURE__ */ jsx(EditOutlined, {}),
@@ -854,12 +854,12 @@ function createActionHandler(action) {
854
854
  const doRequest = () => {
855
855
  fetch(url, { method }).then((res) => res.json()).then((data) => {
856
856
  if (data.code === 200 || data.success) {
857
- message$1.success("\u64CD\u4F5C\u6210\u529F");
857
+ message.success("\u64CD\u4F5C\u6210\u529F");
858
858
  } else {
859
- message$1.error(data.message || "\u64CD\u4F5C\u5931\u8D25");
859
+ message.error(data.message || "\u64CD\u4F5C\u5931\u8D25");
860
860
  }
861
861
  }).catch(() => {
862
- message$1.error("\u8BF7\u6C42\u5931\u8D25");
862
+ message.error("\u8BF7\u6C42\u5931\u8D25");
863
863
  });
864
864
  };
865
865
  if (action.apiConfirm) {
@@ -6871,12 +6871,14 @@ var ListMeta = {
6871
6871
  description: "\u5C55\u793A\u6570\u636E\u5217\u8868",
6872
6872
  category: ComponentCategory.DATA_DISPLAY,
6873
6873
  icon: "UnorderedListOutlined",
6874
- canHaveChildren: true,
6874
+ visibleInComponentPanel: true,
6875
6875
  props: [
6876
6876
  {
6877
6877
  name: "dataSource",
6878
6878
  label: "\u6570\u636E\u6E90",
6879
- type: PropType.JSON,
6879
+ type: PropType.EDIT,
6880
+ bindable: true,
6881
+ defaultValue: [],
6880
6882
  group: "\u6570\u636E"
6881
6883
  },
6882
6884
  {