Skip to content

Commit

Permalink
temp(*): update label
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Jul 28, 2019
1 parent 4c05cdd commit 1fa1c20
Show file tree
Hide file tree
Showing 31 changed files with 67 additions and 16 deletions.
1 change: 1 addition & 0 deletions docs/badge/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
editor: () => ({
props: [{
name: 'level',
label: 'Type',
type: Types.enum,
options: ['dot', 'number'],
default: 'dot'
Expand Down
1 change: 1 addition & 0 deletions docs/balloon/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default {
},
{
name: 'direction',
label: 'Align',
type: Types.enum,
options: ALIGN_LIST,
default: 'b',
Expand Down
1 change: 1 addition & 0 deletions docs/calendar/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
return {
props: [{
name: 'level',
label: 'Type',
type: Types.enum,
options: ['day', 'month', 'year'].filter((level) => {
if (level === 'year') return shape === 'panel';
Expand Down
5 changes: 4 additions & 1 deletion docs/card/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
editor: () => ({
props: [{
name: 'bullet',
label: 'Label',
type: Types.bool,
default: false,
}, {
Expand All @@ -16,7 +17,7 @@ export default {
default: true,
}, {
name: 'expand',
label: 'Expaned',
label: 'Expanded',
type: Types.bool,
default: false
}, {
Expand All @@ -34,10 +35,12 @@ export default {
default: 'Title'
}, {
name: 'subTitle',
label: 'Subtitle',
type: Types.string,
default: '',
}, {
name: 'extra',
label: 'Extra Data',
type: Types.string,
default: '',
}],
Expand Down
1 change: 1 addition & 0 deletions docs/cascader-select/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
default: 'medium'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'expanded', 'disabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/checkbox/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
editor: () => ({
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'hover', 'disabled', 'indeterminate', 'indeterminateHover', 'indeterminateDisabled', 'checked', 'checkedHover', 'checkedDisabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/collapse/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
editor: () => ({
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'disabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/date-picker/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
return {
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'expanded', 'selected', 'disabled'],
default: 'normal'
Expand Down
7 changes: 5 additions & 2 deletions docs/dialog/adaptor/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import { Types } from '@alifd/adaptor-helper';
import { Dialog, Message } from '@alifd/next';
import locale from '../../../src/locale/en-us';
import { Types } from '@alifd/adaptor-helper';


export default {
name: 'Dialog',
Expand All @@ -13,11 +14,13 @@ export default {
default: 'normal'
}, {
name: 'footerAlign',
label: 'Button Position',
type: Types.enum,
options: ['left', 'right', 'center'],
default: 'right'
}, {
name: 'okButtonPosition',
label: 'Button Order',
type: Types.enum,
options: ['left', 'right'],
default: 'left'
Expand Down Expand Up @@ -58,7 +61,7 @@ export default {
className: level === 'normal' ? className : `${className || ''} next-dialog-quick`,
style: dialogStyle,
footerAlign: footerAlign,
footerActions: okButtonPosition == 'left' ? ['ok', 'cancel'] : ['cancel', 'ok'],
footerActions: okButtonPosition === 'left' ? ['ok', 'cancel'] : ['cancel', 'ok'],
locale: locale.Dialog,
height: `${height}px`
};
Expand Down
1 change: 1 addition & 0 deletions docs/input/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default {
), ...(
shape === 'addon' ? [] : [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'focused', 'disabled', 'error', ...(shape === 'textfield' ? ['success', 'loading'] : [])],
default: 'normal'
Expand Down
2 changes: 2 additions & 0 deletions docs/menu/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ export default {
editor: () => ({
props: [{
name: 'selectType',
label: 'Selection Mode',
type: Types.enum,
options: ['checkbox', 'radio', 'checkLeft', 'checkRight'],
default: 'checkLeft'
}, {
name: 'nestMode',
label: 'Subset Structure',
type: Types.enum,
options: ['inline', 'popup'],
default: 'inline',
Expand Down
3 changes: 3 additions & 0 deletions docs/message/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
editor: () => ({
props: [{
name: 'level',
label: 'Shape',
type: Types.enum,
options: ['inline', 'toast', 'addon'],
default: 'inline'
Expand All @@ -17,11 +18,13 @@ export default {
default: 'medium'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['success', 'warning', 'error', 'notice', 'help', 'loading'],
default: 'success',
}, {
name: 'closable',
label: 'Close Included',
type: Types.bool,
default: false
}, {
Expand Down
1 change: 1 addition & 0 deletions docs/nav/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default {
default: 'normal'
}, {
name: 'selectLinePosition',
label: 'Label Position',
type: Types.enum,
options: shape === 'hoz' ? ['top', 'bottom', 'none'] : ['left', 'right', 'none'],
default: shape === 'hoz' ? 'bottom' : 'right'
Expand Down
1 change: 1 addition & 0 deletions docs/number-picker/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
default: 'medium'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'disabled'],
default: 'normal'
Expand Down
2 changes: 2 additions & 0 deletions docs/pagination/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ export default {
default: 'medium'
}, {
name: 'sizeSelector',
label: 'Widget',
type: Types.enum,
options: ['none', 'filter', 'dropdown'],
default: 'none'
}, {
name: 'control',
label: 'Arrow Style',
type: Types.enum,
options: ['textAndIcon', 'onlyIcon', 'noBorder'],
default: 'textAndIcon'
Expand Down
12 changes: 7 additions & 5 deletions docs/progress/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export default {
editor: (shape = 'line') => {
return {
props: [{
name: 'mode',
label: 'Type',
type: Types.enum,
options: ['basic', 'staging'],
default: 'basic'
}, {
name: 'level',
type: Types.enum,
options: ['normal', 'success', 'error'],
Expand All @@ -17,13 +23,9 @@ export default {
type: Types.enum,
options: ['large', 'medium', 'small'],
default: 'medium'
}, {
name: 'mode',
type: Types.enum,
options: ['basic', 'staging'],
default: 'basic'
}, {
name: 'text',
label: 'Data Included',
type: Types.bool,
default: false
},
Expand Down
1 change: 1 addition & 0 deletions docs/radio/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
return {
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'hover', 'disabled', 'checked', 'checkedHover', 'checkedDisabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/range/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
default: 'above'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'hover', 'clicked', 'disabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/select/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
default: 'medium'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'expanded', 'disabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/slider/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
editor: (shape) => ({
props: [...(shape === 'card' ? [{
name: 'level',
label: 'Orientation',
type: Types.enum,
options: [{ label: 'Vertical', value: 'ver'}, {label: 'Horizontal', value: 'hoz' }],
default: 'hoz'
Expand Down
2 changes: 2 additions & 0 deletions docs/step/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default {
return {
props: [{
name: 'level',
label: 'Orientation',
type: Types.enum,
options: [{ value: 'hoz', label: 'Horizontal' }, { value: 'ver', label: 'Vertical' }]
},
Expand All @@ -46,6 +47,7 @@ export default {

}] : [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'disabled'],
default: 'normal'
Expand Down
2 changes: 2 additions & 0 deletions docs/switch/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
editor: () => ({
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['on', 'off', 'disabledOn', 'disabledOff'],
default: 'off'
Expand All @@ -17,6 +18,7 @@ export default {
default: 'medium'
}, {
name: 'showLabel',
label: 'Label',
type: Types.bool,
default: false
}]
Expand Down
1 change: 1 addition & 0 deletions docs/tab/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
if (['pure', 'wrapped', 'text'].indexOf(shape) !== -1) {
props.push({
name: 'overflow',
label: 'Overflow Indicator',
type: Types.enum,
options: ['slide', 'dropdown'],
default: 'slide'
Expand Down
18 changes: 10 additions & 8 deletions docs/table/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@ export default {
name: 'Table',
editor: () => ({
props: [{
name: 'border',
type: Types.bool,
default: false
}, {
name: 'stripe',
type: Types.bool,
default: false
}, {
name: 'select',
label: 'Selection Mode',
type: Types.enum,
options: ['checkbox', 'none'],
default: 'none'
Expand All @@ -25,9 +18,18 @@ export default {
default: 'left'
}, {
name: 'head',
label: 'Header',
type: Types.enum,
options: ['show', 'hide'],
default: 'show'
}, {
name: 'border',
type: Types.bool,
default: false
}, {
name: 'stripe',
type: Types.bool,
default: false
}, {
name: 'width',
type: Types.number,
Expand Down
1 change: 1 addition & 0 deletions docs/tag/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default {
options: ['large', 'medium', 'small']
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'hover', 'disabled', ...(shape === 'selectable' ? ['selected', 'selectedHover', 'selectedDisabled'] : [])],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/time-picker/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
default: 'medium'
}, {
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'expanded', 'selected', 'disabled'],
default: 'normal'
Expand Down
2 changes: 2 additions & 0 deletions docs/timeline/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ export default {
editor: () => ({
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'success', 'error'],
default: 'normal'
}, {
name: 'timeLeft',
label: 'Position',
type: Types.bool,
default: false
}, {
Expand Down
3 changes: 3 additions & 0 deletions docs/transfer/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
editor: () => ({
props: [{
name: 'level',
label: 'Type',
type: Types.enum,
options: ['normal', 'simple'],
default: 'normal'
Expand All @@ -17,10 +18,12 @@ export default {
default: false,
}, {
name: 'sourcePanelTitle',
label: 'Source Title',
type: Types.string,
default: 'Title'
}, {
name: 'targetPanelTitle',
label: 'Target Title',
type: Types.string,
default: 'Title'
}],
Expand Down
1 change: 1 addition & 0 deletions docs/tree-select/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
editor: () => ({
props: [{
name: 'state',
label: 'Status',
type: Types.enum,
options: ['normal', 'expanded', 'disabled'],
default: 'normal'
Expand Down
1 change: 1 addition & 0 deletions docs/tree/adaptor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default {
editor: () => ({
props: [{
name: 'select',
label: 'Selection Mode',
type: Types.enum,
options: ['node', 'label'],
default: 'label'
Expand Down
Loading

0 comments on commit 1fa1c20

Please sign in to comment.