Browse Source

【2025】【组件库】卡片组件调整

niehaoyu 3 months ago
parent
commit
b9cfdac141

+ 20 - 9
PDF Office/KMComponentLibrary/KMComponentLibrary/View/Card/ComponentCardPDFTool/ComponentCardPDFTool.xib

@@ -9,7 +9,7 @@
         <customObject id="-2" userLabel="File's Owner" customClass="ComponentCardPDFTool">
             <connections>
                 <outlet property="checkBox" destination="QPd-Y0-5Be" id="xEj-tR-fCE"/>
-                <outlet property="contendBox" destination="gRd-t4-fFz" id="JnQ-23-Pz4"/>
+                <outlet property="contendBox" destination="guV-D6-phr" id="LJU-hx-fBs"/>
                 <outlet property="iconImage" destination="Hug-T9-j0l" id="g41-Zb-F6U"/>
                 <outlet property="iconWidthConst" destination="9vY-ti-etS" id="llI-DG-BOR"/>
                 <outlet property="subTitleLabel" destination="nLl-zS-465" id="XOk-Db-0V5"/>
@@ -22,22 +22,29 @@
             <rect key="frame" x="0.0" y="0.0" width="240" height="88"/>
             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
             <subviews>
-                <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="gRd-t4-fFz">
+                <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="guV-D6-phr">
                     <rect key="frame" x="0.0" y="0.0" width="240" height="88"/>
-                    <view key="contentView" id="Uf6-gk-6YJ">
+                    <view key="contentView" id="rAU-IW-YdB">
                         <rect key="frame" x="1" y="1" width="238" height="86"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                    </view>
+                </box>
+                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="gRd-t4-fFz">
+                    <rect key="frame" x="0.0" y="0.0" width="240" height="88"/>
+                    <view key="contentView" id="Uf6-gk-6YJ">
+                        <rect key="frame" x="0.0" y="0.0" width="240" height="88"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
                             <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Hug-T9-j0l">
-                                <rect key="frame" x="12" y="25" width="36" height="36"/>
+                                <rect key="frame" x="12" y="26" width="36" height="36"/>
                                 <constraints>
                                     <constraint firstAttribute="width" constant="36" id="9vY-ti-etS"/>
                                     <constraint firstAttribute="width" secondItem="Hug-T9-j0l" secondAttribute="height" multiplier="1:1" id="el1-mS-dcO"/>
                                 </constraints>
                                 <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="test" id="jhs-UP-tL4"/>
                             </imageView>
-                            <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nLl-zS-465">
-                                <rect key="frame" x="56" y="16" width="172" height="16"/>
+                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nLl-zS-465">
+                                <rect key="frame" x="56" y="16" width="174" height="16"/>
                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
                                 <textFieldCell key="cell" truncatesLastVisibleLine="YES" title="content content content content content content content content" id="ehH-eQ-Oeo">
                                     <font key="font" metaFont="system"/>
@@ -45,8 +52,8 @@
                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                 </textFieldCell>
                             </textField>
-                            <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="89z-7H-gqW">
-                                <rect key="frame" x="54" y="54" width="56" height="16"/>
+                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="89z-7H-gqW">
+                                <rect key="frame" x="54" y="56" width="56" height="16"/>
                                 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                                 <textFieldCell key="cell" lineBreakMode="clipping" title="Example" id="Zmc-LK-yn7">
                                     <font key="font" metaFont="system"/>
@@ -55,7 +62,7 @@
                                 </textFieldCell>
                             </textField>
                             <customView translatesAutoresizingMaskIntoConstraints="NO" id="QPd-Y0-5Be" customClass="ComponentCheckBox" customModule="KMComponentLibrary" customModuleProvider="target">
-                                <rect key="frame" x="208" y="33" width="20" height="20"/>
+                                <rect key="frame" x="210" y="34" width="20" height="20"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="20" id="dKT-bL-LLx"/>
                                     <constraint firstAttribute="width" constant="20" id="k8R-7k-YAg"/>
@@ -73,7 +80,11 @@
             </subviews>
             <constraints>
                 <constraint firstAttribute="bottom" secondItem="gRd-t4-fFz" secondAttribute="bottom" id="0TR-rC-1Bs"/>
+                <constraint firstItem="guV-D6-phr" firstAttribute="leading" secondItem="c22-O7-iKe" secondAttribute="leading" id="2qH-hn-hed"/>
+                <constraint firstAttribute="trailing" secondItem="guV-D6-phr" secondAttribute="trailing" id="6ZR-fU-Yis"/>
+                <constraint firstItem="guV-D6-phr" firstAttribute="top" secondItem="c22-O7-iKe" secondAttribute="top" id="JMp-OH-laz"/>
                 <constraint firstItem="gRd-t4-fFz" firstAttribute="leading" secondItem="c22-O7-iKe" secondAttribute="leading" id="Jya-Qw-4FN"/>
+                <constraint firstAttribute="bottom" secondItem="guV-D6-phr" secondAttribute="bottom" id="QUF-61-8Xz"/>
                 <constraint firstItem="gRd-t4-fFz" firstAttribute="top" secondItem="c22-O7-iKe" secondAttribute="top" id="rtX-fW-U4x"/>
                 <constraint firstAttribute="trailing" secondItem="gRd-t4-fFz" secondAttribute="trailing" id="wV4-l0-QbU"/>
             </constraints>