فهرست منبع

select case 提取为组件

visuddhinanda 2 سال پیش
والد
کامیت
bb05a4b953
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      dashboard/src/components/template/Wbw/WbwDetailBasic.tsx

+ 4 - 3
dashboard/src/components/template/Wbw/WbwDetailBasic.tsx

@@ -4,7 +4,6 @@ import { Form, Input, Button, Popover } from "antd";
 import { Collapse } from "antd";
 import { MoreOutlined } from "@ant-design/icons";
 
-import SelectCase from "../../dict/SelectCase";
 import { IWbw, IWbwField } from "./WbwWord";
 import WbwMeaningSelect from "./WbwMeaningSelect";
 
@@ -13,6 +12,7 @@ import WbwDetailParent2 from "./WbwDetailParent2";
 import WbwDetailFactor from "./WbwDetailFactor";
 import WbwDetailBasicRelation from "./WbwDetailBasicRelation";
 import WbwDetailParent from "./WbwDetailParent";
+import WbwDetailCase from "./WbwDetailCase";
 
 const { Panel } = Collapse;
 
@@ -162,8 +162,9 @@ const WbwDetailBasicWidget = ({
           tooltip={intl.formatMessage({ id: "forms.fields.case.tooltip" })}
           name="case"
         >
-          <SelectCase
-            onCaseChange={(value: string) => {
+          <WbwDetailCase
+            data={data}
+            onChange={(value: string) => {
               if (typeof onChange !== "undefined") {
                 onChange({ field: "case", value: value });
               }