semi-bot 21f02cad42 v2.55.0 1 年之前
..
_portal 3d150d1b7f fix: remove fit-content with max-content to match chromium breakchange in 104. (#1032) 3 年之前
anchor b7287fd6c2 feat: anchor add token (#1843) 2 年之前
autoComplete 7837643d6c fix: autoComplete throw error when clear, #2013 (#2016) 2 年之前
avatar 7294eb3ad2 fix: fix avatar ext 1 年之前
backtop bd83d1f9cd chore: format code 3 年之前
badge abe83dc9dd fix: Badge proptypes define (#2091) 1 年之前
banner bd83d1f9cd chore: format code 3 年之前
base f05ed24b0b chore: remove file head lint rule which already set global (#1706) 2 年之前
breadcrumb 75e708ee65 style: Fixed incorrect font-weight of the active item in breadcrumb due to changes in typography style 2 年之前
button 1ff36baa4d feat: add button disable token (#1904) 2 年之前
calendar f62c575cd2 fix: fixed rendering of monthly calendar events (#1826) 2 年之前
card dab2c08959 feat: chore backup 3 年之前
carousel 9b82b7e001 chore: eslint fix 2 年之前
cascader 26457b6e36 feat: cascader ref method add search (#2105) 1 年之前
checkbox f05ed24b0b chore: remove file head lint rule which already set global (#1706) 2 年之前
collapse 14bacab9c7 feat: collapse clickHeaderToExpand api 2 年之前
collapsible 75a6baf18a fix: replace animation token with none token (#1259) 3 年之前
datePicker d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
descriptions e5d53e0280 fix: [Descriptions] Children are not read directly in foundation, but adapter get is used to adapt to other frameworks. Adjust the calculation of horizontal colspan value to automatically complete the remaining part(#2121) 1 年之前
divider 24163ca972 chore: main merge release 3 年之前
dropdown a79c0201c5 fix: prevent popover flow out of the radius limit area 1 年之前
empty f76bd5879d feat: init 4 年之前
form d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
grid 925a0d54fb fix: Grid span = 0 not work when responsive (#1345) 3 年之前
highlight 868686ed9f style: update highlight, add global token 3 年之前
icons 626c4b9f9e Feat/support next (#245) 4 年之前
image 2303a57968 feat: ImagePreview add onDownloadError API (#2093) 1 年之前
input b601db236a Merge branch 'release' into feat_aweme 2 年之前
inputNumber f05ed24b0b chore: remove file head lint rule which already set global (#1706) 2 年之前
keyframes d159394f03 feat: spin js2css 3 年之前
layout f76bd5879d feat: init 4 年之前
list 2a990d4ecd fix: change list empty padding token position 3 年之前
modal 2dfe32b394 fix: add missing semicone 2 年之前
navigation 911c0cb5a8 fix: fix Nav openKeys bug when selectedKeys change #2115 (#2123) 1 年之前
notification 04fe071c39 fix: fix notification type define of id (#1993) 2 年之前
overflowList d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
pagination e082a7d7c0 perf: improve pagination small size render (#1714) 2 年之前
popconfirm 1394ae47d6 style: popconfirm icon=null, remove marginLeft (#1828) 2 年之前
popover c8e5ca706b fix: popover trigger set (#1820) 2 年之前
progress bd83d1f9cd chore: format code 3 年之前
radio bb3471b68c fix: fix positioning of radio, close #1959 (#1960) 2 年之前
rating f05ed24b0b chore: remove file head lint rule which already set global (#1706) 2 年之前
scripts f76bd5879d feat: init 4 年之前
scrollList 75a6baf18a fix: replace animation token with none token (#1259) 3 年之前
select 23e8755de5 Merge branch 'release' 1 年之前
sideSheet 872a8e8d45 feat: sidesheet support for customized closeIcon (#1965) 2 年之前
skeleton 9c8ad48bd0 style: change skeleton radius form 4px to --semi-border-radius-small (#1739) 2 年之前
slider c44885512a fix: optimize code 2 年之前
space f76bd5879d feat: init 4 年之前
spin 1ed01d9df9 fix: add vertical-align top to fix wrong height (#1508) 2 年之前
steps 8420edae32 fix: fix vertical basic step style error after setting box-sizing to border-box globally (#1984) 2 年之前
switch f05ed24b0b chore: remove file head lint rule which already set global (#1706) 2 年之前
table cb59c0b996 fix: fixed Table header rowSelection is selected when dataSource is Empty #2128 (#2137) 1 年之前
tabs 9b82b7e001 chore: eslint fix 2 年之前
tag 1e4b31f644 feat: tag support suffixIcon、prefixIcon (#1832) 2 年之前
tagInput 375059cd41 fix: [Taginput] Fixed an issue in FireFox where Chinese input could not complete character-to-Chinese conversion (#1811) 2 年之前
timePicker d7a4270593 fix: when using timeZone and disabledHours at the same time in timepicker display value does not meet expectations (#2083) 1 年之前
timeline 6511ea7423 fix: #865 3 年之前
toast b7830e1580 feat: toast component add theme config 1 年之前
tooltip 13030c8b5f chore: format code 2 年之前
transfer ef375fb64e refactor: change react-sortable-hoc to dnd-kit for Transfer/Taginput … (#1738) 2 年之前
tree d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
treeSelect d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
typography 07437bb89e feat: add smallText and paragraph fontWeight token (#1878) 2 年之前
upload bbe58f9a19 feat: upload addOnPsting (#1802) 2 年之前
utils d8f24f2985 perf: remove redundant clones and modify cloneDeep(lodash) call to copy(fast-copy) (#2002) 1 年之前
README.md d8893466dc fix: semi-foundation/README.md gammar optimize (#165) 4 年之前
getBabelConfig.js 496f3db0f7 chore: remove corejs 3 年之前
gulpfile.js 1b9c2f04c2 chore: replace divide operator to math.div (#1130) 3 年之前
package.json 21f02cad42 v2.55.0 1 年之前
tsconfig.json 2f70e0bbc2 fix: ts check error of upload/witFied/fields in strict mode 4 年之前

README.md

The infrastructure layer is used to build modern component libraries.

Semi UI adopts a set of cross-front-end framework technical solutions to split the JavaScript of each component into two parts: Foundation and Adapter. This allows us to reuse Foundation code across frameworks by only re-implementing the adapter, e.g, React and Vue. Quickly build common component libraries on different platforms.

  • Foundation

    Foundation contains the business logic that best represents Semi Design without actually referencing any DOM elements. Foundation delegates Adapter methods for any logic that requires DOM manipulation

  • Adapter

    Adapter is an interface that has all the methods needed by Foundation to implement Semi Design business logic. Adapter can have many implementations, allowing interoperability with different frameworks.

Directory Structure

  ├── semi-foundation         // Foundation and Stylesheet of component
  │   ├── utils
  │   └── tooltip
  │       ├── constants.js    // Constant definition, including numbers, strings, cssClass
  │       ├── foundation.js   // Core foundation
  │       ├── tooltip.scss    // Stylesheet
  │       ├── mixin.scss      // Scss mixin
  │       ├── rtl.scss        // Rtl 
  │       ├── variables.scss  // Scss variable

Related documents

Technical solutions

image

License

MIT