UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

42 lines (33 loc) 1.9 kB
--- type: CURD title: sv subtitle: View cols: 1 order: 2 module: import { SVModule } from '@ohayo/components/sv'; --- Viewing grid system is a higher-order components based on the original [Grid System] (https://ng.ant.design/components/grid/zh) that server for view pages. ## API ### sv-container | Property | Description | Type | Default | Global Config | |----------|-------------|------|---------|---------------| | `[size]` | size of view | `'small','large'` | `'large'` | ✅ | | `[layout]` | type of layout | `'horizontal','vertical'` | `'horizontal'` | ✅ | | `[gutter]` | specify the distance between two items, unit is `px` | `number` | `32` | ✅ | | `[col]` | specify the maximum number of columns to display, the final columns number is determined by col setting combined with [Responsive Rules](/theme/responsive) | `'1','2','3','4','5','6'` | `3` | ✅ | | `[labelWidth]` | label text of width | `number` | - | ✅ | | `[default]` | whether default text | `boolean` | `true` | ✅ | | `[title]` | Display title | `string,TemplateRef<void>` | - | - | ### sv | Property | Description | Type | Default | |----------|-------------|------|---------| | `[col]` | specify the maximum number of columns to display, the final columns number is determined by col setting combined with [Responsive Rules](/theme/responsive) | - | | | `[label]` | label of view | `string,TemplateRef<void>` | - | | `[unit]` | unit of view | `string,TemplateRef<void>` | - | | `[default]` | whether default text, inherit `sv-container` | `boolean` | - | | `[type]` | type of view | `'primary','success','danger','warning'` | - | | `[optional]` | Label optional information | `string, TemplateRef<void>` | - | | `[optionalHelp]` | Label optional help | `string, TemplateRef<void>` | - | | `[optionalHelpColor]` | The background color of label optional help | `string` | - | ### sv-title Display title.