@mijalowcode/materials 1.0.7 → 1.0.9

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) {
@@ -6355,7 +6355,16 @@ var SpinMeta = {
6355
6355
  category: ComponentCategory.FEEDBACK,
6356
6356
  icon: "LoadingOutlined",
6357
6357
  canHaveChildren: true,
6358
+ visibleInComponentPanel: true,
6358
6359
  props: [
6360
+ {
6361
+ name: "spinning",
6362
+ label: "\u662F\u5426\u52A0\u8F7D\u4E2D",
6363
+ type: PropType.BOOLEAN,
6364
+ bindable: true,
6365
+ defaultValue: false,
6366
+ group: "\u72B6\u6001"
6367
+ },
6359
6368
  {
6360
6369
  name: "size",
6361
6370
  label: "\u5C3A\u5BF8",
@@ -6375,6 +6384,10 @@ var SpinMeta = {
6375
6384
  group: "\u57FA\u7840"
6376
6385
  }
6377
6386
  ],
6387
+ defaultProps: {
6388
+ spinning: false,
6389
+ size: "default"
6390
+ },
6378
6391
  npm: {
6379
6392
  package: "antd",
6380
6393
  exportName: "Spin"
@@ -6382,7 +6395,9 @@ var SpinMeta = {
6382
6395
  snippet: {
6383
6396
  componentName: "Spin",
6384
6397
  package: "antd",
6385
- props: {}
6398
+ props: {
6399
+ spinning: false
6400
+ }
6386
6401
  }
6387
6402
  };
6388
6403
  var StatisticMeta = {
@@ -6856,12 +6871,14 @@ var ListMeta = {
6856
6871
  description: "\u5C55\u793A\u6570\u636E\u5217\u8868",
6857
6872
  category: ComponentCategory.DATA_DISPLAY,
6858
6873
  icon: "UnorderedListOutlined",
6859
- canHaveChildren: true,
6874
+ visibleInComponentPanel: true,
6860
6875
  props: [
6861
6876
  {
6862
6877
  name: "dataSource",
6863
6878
  label: "\u6570\u636E\u6E90",
6864
- type: PropType.JSON,
6879
+ type: PropType.EDIT,
6880
+ bindable: true,
6881
+ defaultValue: [],
6865
6882
  group: "\u6570\u636E"
6866
6883
  },
6867
6884
  {