DaiQiangReal 6721f8e4f8 v2.1.6-alpha.0 4 лет назад
..
_portal f76bd5879d feat: init 4 лет назад
anchor 626c4b9f9e Feat/support next (#245) 4 лет назад
autoComplete 626c4b9f9e Feat/support next (#245) 4 лет назад
avatar f76bd5879d feat: init 4 лет назад
backtop f76bd5879d feat: init 4 лет назад
badge f76bd5879d feat: init 4 лет назад
banner f76bd5879d feat: init 4 лет назад
base 626c4b9f9e Feat/support next (#245) 4 лет назад
breadcrumb f76bd5879d feat: init 4 лет назад
button f76bd5879d feat: init 4 лет назад
calendar ef2531c8be Fix strict ts (#314) 4 лет назад
card f76bd5879d feat: init 4 лет назад
cascader 626c4b9f9e Feat/support next (#245) 4 лет назад
checkbox a9a36c3b8f feat: [Select/Checkbox/Button] add id #353 (#373) 4 лет назад
collapse ef2531c8be Fix strict ts (#314) 4 лет назад
collapsible f76bd5879d feat: init 4 лет назад
datePicker 626c4b9f9e Feat/support next (#245) 4 лет назад
descriptions f76bd5879d feat: init 4 лет назад
dropdown f76bd5879d feat: init 4 лет назад
empty f76bd5879d feat: init 4 лет назад
form 626c4b9f9e Feat/support next (#245) 4 лет назад
grid f76bd5879d feat: init 4 лет назад
icons 626c4b9f9e Feat/support next (#245) 4 лет назад
input 626c4b9f9e Feat/support next (#245) 4 лет назад
inputNumber 626c4b9f9e Feat/support next (#245) 4 лет назад
keyframes f76bd5879d feat: init 4 лет назад
layout f76bd5879d feat: init 4 лет назад
list f76bd5879d feat: init 4 лет назад
modal 14ee2fd7cd fix: token overlay-bg lack color prefix (#389) 4 лет назад
navigation 626c4b9f9e Feat/support next (#245) 4 лет назад
notification 626c4b9f9e Feat/support next (#245) 4 лет назад
overflowList 626c4b9f9e Feat/support next (#245) 4 лет назад
pagination ef2531c8be Fix strict ts (#314) 4 лет назад
popconfirm b6ce00f945 Feat click out side (#273) 4 лет назад
popover f76bd5879d feat: init 4 лет назад
progress f76bd5879d feat: init 4 лет назад
radio a77667381a fix: [Checkbo/Radio] style of checked and disabled cardType #319 (#357) 4 лет назад
rating 1301e6199f fix(rating): half star ui error when set parant element line-height (#355) 4 лет назад
scripts f76bd5879d feat: init 4 лет назад
scrollList 626c4b9f9e Feat/support next (#245) 4 лет назад
select 02b1598bbe fix(select) #375 (#377) 4 лет назад
sideSheet 14ee2fd7cd fix: token overlay-bg lack color prefix (#389) 4 лет назад
skeleton f76bd5879d feat: init 4 лет назад
slider 224ff874d0 fix(slider): when `value` is controlled, click on track not trigger `onAfterChange` 4 лет назад
space f76bd5879d feat: init 4 лет назад
spin f76bd5879d feat: init 4 лет назад
steps f76bd5879d feat: init 4 лет назад
switch 81f421ec49 style: [switch] add token $color-switch_disabled-bg-hover/ $color-switch_disabled-bg-active, close #115 (#185) 4 лет назад
table 04b096e863 fix(table): fixed cell z-index is not higher than show type components (#391) 4 лет назад
tabs 626c4b9f9e Feat/support next (#245) 4 лет назад
tag f76bd5879d feat: init 4 лет назад
tagInput 626c4b9f9e Feat/support next (#245) 4 лет назад
timePicker 626c4b9f9e Feat/support next (#245) 4 лет назад
timeline 648beea4ff style: fix timeline custom dot props not align (#395) 4 лет назад
toast 626c4b9f9e Feat/support next (#245) 4 лет назад
tooltip 626c4b9f9e Feat/support next (#245) 4 лет назад
transfer 626c4b9f9e Feat/support next (#245) 4 лет назад
tree 8370eec162 chore: [Tree] fix treeUtil type when strict ts 4 лет назад
treeSelect 626c4b9f9e Feat/support next (#245) 4 лет назад
typography f76bd5879d feat: init 4 лет назад
upload 14ee2fd7cd fix: token overlay-bg lack color prefix (#389) 4 лет назад
utils 626c4b9f9e Feat/support next (#245) 4 лет назад
README.md d8893466dc fix: semi-foundation/README.md gammar optimize (#165) 4 лет назад
getBabelConfig.js 626c4b9f9e Feat/support next (#245) 4 лет назад
gulpfile.js 626c4b9f9e Feat/support next (#245) 4 лет назад
package.json 6721f8e4f8 v2.1.6-alpha.0 4 лет назад
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