代强 d865d8d03a fix: change motion type to boolean 3 years ago
..
_portal 3d150d1b7f fix: remove fit-content with max-content to match chromium breakchange in 104. (#1032) 3 years ago
anchor bd83d1f9cd chore: format code 3 years ago
autoComplete bd83d1f9cd chore: format code 3 years ago
avatar bd83d1f9cd chore: format code 3 years ago
backtop bd83d1f9cd chore: format code 3 years ago
badge 1b9c2f04c2 chore: replace divide operator to math.div (#1130) 3 years ago
banner bd83d1f9cd chore: format code 3 years ago
base bd83d1f9cd chore: format code 3 years ago
breadcrumb bd83d1f9cd chore: format code 3 years ago
button 70b121b99d chore: change animation scss import order (#1122) 3 years ago
calendar bd83d1f9cd chore: format code 3 years ago
card dab2c08959 feat: chore backup 3 years ago
carousel b82bd23183 fix: [carousel] Fix the problem that the timer is not updated when carousel switches the index through the left and right buttons or methods (#1165) 3 years ago
cascader d865d8d03a fix: change motion type to boolean 3 years ago
checkbox bd83d1f9cd chore: format code 3 years ago
collapse d865d8d03a fix: change motion type to boolean 3 years ago
collapsible cf091e52d8 fix: fix new collapsible collapseHeight 3 years ago
datePicker d865d8d03a fix: change motion type to boolean 3 years ago
descriptions f76bd5879d feat: init 4 years ago
divider 24163ca972 chore: main merge release 3 years ago
dropdown bd83d1f9cd chore: format code 3 years ago
empty f76bd5879d feat: init 4 years ago
form bd83d1f9cd chore: format code 3 years ago
grid 1b9c2f04c2 chore: replace divide operator to math.div (#1130) 3 years ago
icons 626c4b9f9e Feat/support next (#245) 3 years ago
image bd83d1f9cd chore: format code 3 years ago
input bd83d1f9cd chore: format code 3 years ago
inputNumber bd83d1f9cd chore: format code 3 years ago
keyframes d159394f03 feat: spin js2css 3 years ago
layout f76bd5879d feat: init 4 years ago
list 2a990d4ecd fix: change list empty padding token position 3 years ago
modal d865d8d03a fix: change motion type to boolean 3 years ago
navigation bd83d1f9cd chore: format code 3 years ago
notification d865d8d03a fix: change motion type to boolean 3 years ago
overflowList bd83d1f9cd chore: format code 3 years ago
pagination bd83d1f9cd chore: format code 3 years ago
popconfirm bd83d1f9cd chore: format code 3 years ago
popover dab2c08959 feat: chore backup 3 years ago
progress bd83d1f9cd chore: format code 3 years ago
radio bd83d1f9cd chore: format code 3 years ago
rating bd83d1f9cd chore: format code 3 years ago
scripts f76bd5879d feat: init 4 years ago
scrollList bd83d1f9cd chore: format code 3 years ago
select 3e2d43a81a Merge branch 'main' into js2css 3 years ago
sideSheet d865d8d03a fix: change motion type to boolean 3 years ago
skeleton 178251c04f feat: skeleton js2css 3 years ago
slider bd83d1f9cd chore: format code 3 years ago
space f76bd5879d feat: init 4 years ago
spin bd83d1f9cd chore: format code 3 years ago
steps 70b121b99d chore: change animation scss import order (#1122) 3 years ago
switch bd83d1f9cd chore: format code 3 years ago
table bd83d1f9cd chore: format code 3 years ago
tabs bd83d1f9cd chore: format code 3 years ago
tag 1b9c2f04c2 chore: replace divide operator to math.div (#1130) 3 years ago
tagInput bd83d1f9cd chore: format code 3 years ago
timePicker 3e2d43a81a Merge branch 'main' into js2css 3 years ago
timeline 6511ea7423 fix: #865 3 years ago
toast bd83d1f9cd chore: format code 3 years ago
tooltip 22522d675b Merge pull request #1164 from DouyinFE/fix_popover_mountContent_twice 3 years ago
transfer bd83d1f9cd chore: format code 3 years ago
tree bd83d1f9cd chore: format code 3 years ago
treeSelect bd83d1f9cd chore: format code 3 years ago
typography e174b00f16 Revert "fix: [Typography] fix misalignment of the icon and text of the Text c… (#973)" (#1001) 3 years ago
upload fdbaf7bf8d Merge branch 'release' into js2css 3 years ago
utils bd83d1f9cd chore: format code 3 years ago
README.md d8893466dc fix: semi-foundation/README.md gammar optimize (#165) 4 years ago
getBabelConfig.js 496f3db0f7 chore: remove corejs 3 years ago
gulpfile.js 1b9c2f04c2 chore: replace divide operator to math.div (#1130) 3 years ago
package.json c587f9996f v2.21.2 3 years ago
tsconfig.json 2f70e0bbc2 fix: ts check error of upload/witFied/fields in strict mode 3 years ago

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