-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: inline all x-design design config (#2317)
* refactor(action-menu): inline action-menu design config * refactor(alert): inline alert design config * refactor(breadcrumb-item): inline breadcrumb-item design config * refactor(drawer): inline drawer design config * refactor(dropdown): inline dropdown design config * refactor(dropdown-item): inline dropdown-item design config * refactor(filter-box): inline filter-box design config * refactor(guide): inline guide design config * refactor(popconfirm): inline popconfirm design config * refactor(select): inline select design config * refactor(split): inline split design config * refactor(time-range): inline split time-range config * refactor(time-spinner): inline split time-spinner config * refactor(transfer-panel): inline transfer-panel design config * refactor(upload-list): inline upload-list design config * refactor(tree-node): inline tree-node design config * refactor(milestone): inline milestone design config
- Loading branch information
Showing
69 changed files
with
336 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/design/smb/src/breadcrumb-item/index.ts → ...esign/aurora/src/breadcrumb-item/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default { | ||
separator: '/' | ||
separator: '>' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { iconArrowBottom } from '@opentiny/vue-icon' | ||
|
||
export default { | ||
icons: { | ||
expandButton: iconArrowBottom() | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default { | ||
renderless: (props, hooks, { constants }, api) => { | ||
return { | ||
getMileIcon: (node) => { | ||
const status = props.milestonesStatus[node[props.statusField]] || constants.DEFAULT_COLOR | ||
|
||
const isCompleted = node[props.statusField] === props.completedField | ||
const switchColor = isCompleted && !props.solid | ||
const { r, g, b } = api.hexToRgb(status) | ||
|
||
return { | ||
background: (switchColor ? constants.DEFAULT_BACK_COLOR : status) + '!important', | ||
color: (switchColor ? status : constants.DEFAULT_BACK_COLOR) + '!important', | ||
boxShadow: `rgba(${r},${g},${b},.4) ${constants.BOX_SHADOW_PX}` | ||
} | ||
}, | ||
getFlagStyle: ({ index, idx }) => { | ||
return { | ||
left: `calc(${ | ||
(100 / (props.data[props.flagBefore ? index : index + 1][props.flagField].length + 1)) * (idx + 1) | ||
}% - 29px)` | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { iconWarning } from '@opentiny/vue-icon' | ||
|
||
export default { | ||
icons: { | ||
warning: iconWarning() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
triggerBarConWithLine: false | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/design/smb/src/time-range/index.ts → ...ges/design/aurora/src/time-range/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
// 控制time-picker组件时间范围button显示和样式 | ||
showTimePickerRangeButton: true | ||
showTimePickerRangeButton: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
// 时间选择器单个item的margin为0px. | ||
itemMarginSpace: 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
// 控制time-picker组件button显示和样式 | ||
showTimePickerButton: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
inputBoxType: 'normal', | ||
showInputSearch: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
state: { | ||
progressType: 'circle', | ||
progressWidth: null, | ||
progressStrokeWidth: 6, | ||
tooltipDisabled: true | ||
}, | ||
icons: { | ||
closeComponent: 'icon-close', | ||
preViewComponent: '' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
separator: '>' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { iconArrowBottom } from '@opentiny/vue-icon' | ||
|
||
export default { | ||
icons: { | ||
expandButton: iconArrowBottom() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/design/smb/src/drawer/index.ts → packages/design/saas/src/guide/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default { | ||
state: { | ||
btnOrderReversed: true | ||
isUseModalOverlay: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default { | ||
renderless: (props, hooks, { constants }, api) => { | ||
return { | ||
getMileIcon: (node) => { | ||
const status = props.milestonesStatus[node[props.statusField]] || constants.DEFAULT_COLOR | ||
|
||
const isCompleted = node[props.statusField] === props.completedField | ||
const switchColor = isCompleted && !props.solid | ||
const { r, g, b } = api.hexToRgb(status) | ||
|
||
return { | ||
background: (switchColor ? constants.DEFAULT_BACK_COLOR : status) + '!important', | ||
color: (switchColor ? status : constants.DEFAULT_BACK_COLOR) + '!important', | ||
boxShadow: `rgba(${r},${g},${b},.4) ${constants.BOX_SHADOW_PX}` | ||
} | ||
}, | ||
getFlagStyle: ({ index, idx }) => { | ||
return { | ||
left: `calc(${ | ||
(100 / (props.data[props.flagBefore ? index : index + 1][props.flagField].length + 1)) * (idx + 1) | ||
}% - 29px)` | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { iconWarning } from '@opentiny/vue-icon' | ||
|
||
export default { | ||
icons: { | ||
warning: iconWarning() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
triggerBarConWithLine: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
// 控制time-picker组件时间范围button显示和样式 | ||
showTimePickerRangeButton: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
// 时间选择器单个item的margin为0px. | ||
itemMarginSpace: 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
// 控制time-picker组件button显示和样式 | ||
showTimePickerButton: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
inputBoxType: 'normal', | ||
showInputSearch: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
state: { | ||
progressType: 'circle', | ||
progressWidth: null, | ||
progressStrokeWidth: 6, | ||
tooltipDisabled: true | ||
}, | ||
icons: { | ||
closeComponent: 'icon-close', | ||
preViewComponent: '' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,7 @@ | ||
import Alert from './src/alert' | ||
import ActionMenu from './src/action-menu' | ||
import Popconfirm from './src/popconfirm' | ||
import Drawer from './src/drawer' | ||
import Dropdown from './src/dropdown' | ||
import DropdownItem from './src/dropdown-item' | ||
import FilterBox from './src/filter-box' | ||
import Guide from './src/guide' | ||
import Select from './src/select' | ||
import TreeNode from './src/tree-node' | ||
import TimeSpinner from './src/time-spinner' | ||
import TimeRange from './src/time-range' | ||
import Time from './src/time-spinner' | ||
import UploadList from './src/upload-list' | ||
import BreadcrumbItem from './src/breadcrumb-item' | ||
import Milestone from './src/milestone' | ||
import Split from './src/split' | ||
import TransferPanel from './src/transfer-panel' | ||
import { version } from './package.json' | ||
|
||
export default { | ||
name: 'smb', | ||
version, | ||
components: { | ||
Alert, | ||
ActionMenu, | ||
Popconfirm, | ||
Drawer, | ||
Dropdown, | ||
DropdownItem, | ||
FilterBox, | ||
Guide, | ||
Select, | ||
TreeNode, | ||
TimeSpinner, | ||
TimeRange, | ||
Time, | ||
BreadcrumbItem, | ||
UploadList, | ||
Milestone, | ||
Split, | ||
TransferPanel | ||
} | ||
components: {} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.