Selaa lähdekoodia

打印结构 Row添加了Align

Kevin 4 vuotta sitten
vanhempi
commit
e5126c45ec
1 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 10 3
      printer-schema.xsd

+ 10 - 3
printer-schema.xsd

@@ -149,8 +149,8 @@
     </xs:attribute>
   </xs:attributeGroup>
   <!-- End Data -->
-  <!-- 文字 -->
-  <xs:attributeGroup name="textGroup">
+  <!-- 位置 -->
+  <xs:attributeGroup name="alignGroup">
     <xs:attribute name="align">
       <xs:annotation>
         <xs:documentation>文字位置</xs:documentation>
@@ -175,6 +175,12 @@
         </xs:restriction>
       </xs:simpleType>
     </xs:attribute>
+  </xs:attributeGroup>
+  <!-- End Data -->
+  <!-- 文字 -->
+  <xs:attributeGroup name="textGroup">
+    <xs:attributeGroup ref="alignGroup"></xs:attributeGroup>
+
     <xs:attribute name="fontType" type="xs:string">
       <xs:annotation>
         <xs:documentation>字体</xs:documentation>
@@ -432,7 +438,7 @@
       <!-- 横向排列 -->
       <xs:element name="row" minOccurs="0" maxOccurs="unbounded">
         <xs:annotation>
-          <xs:documentation>从左到右排列组件, 子组件的x属性代表相对上一个子组件的位置</xs:documentation>
+          <xs:documentation>按顺序排列组件, 子组件的x属性代表相对上一个子组件的位置</xs:documentation>
         </xs:annotation>
         <xs:complexType>
 
@@ -442,6 +448,7 @@
           <xs:attributeGroup ref="directive" />
           <xs:attributeGroup ref="size" />
           <xs:attributeGroup ref="offsetGroup" />
+          <xs:attributeGroup ref="alignGroup" />
           <xs:attribute name="wordWrap" type="xs:boolean">
             <xs:annotation>
               <xs:documentation>超出是否自动换行,默认false</xs:documentation>