forked from alibaba/bifrostui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
840 additions
and
11 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+366 KB
...top_data/bitmaps_reference/backstop_default_ActionSheet_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+370 KB
backstop_data/bitmaps_reference/backstop_default_Alert_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added
BIN
+133 KB
backstop_data/bitmaps_reference/backstop_default_Backdrop_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+265 KB
backstop_data/bitmaps_reference/backstop_default_Badge_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+450 KB
backstop_data/bitmaps_reference/backstop_default_Button_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+753 KB
backstop_data/bitmaps_reference/backstop_default_Calendar_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+367 KB
backstop_data/bitmaps_reference/backstop_default_Card_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+412 KB
backstop_data/bitmaps_reference/backstop_default_Checkbox_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+391 KB
...op_data/bitmaps_reference/backstop_default_CitySelector_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+418 KB
backstop_data/bitmaps_reference/backstop_default_Countdown_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+248 KB
backstop_data/bitmaps_reference/backstop_default_Divider_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+184 KB
backstop_data/bitmaps_reference/backstop_default_Drawer_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+203 KB
backstop_data/bitmaps_reference/backstop_default_Fade_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+253 KB
...stop_data/bitmaps_reference/backstop_default_IconButton_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+496 KB
backstop_data/bitmaps_reference/backstop_default_Icon_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+382 KB
backstop_data/bitmaps_reference/backstop_default_Image_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+405 KB
backstop_data/bitmaps_reference/backstop_default_Input_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+460 KB
backstop_data/bitmaps_reference/backstop_default_List_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+184 KB
backstop_data/bitmaps_reference/backstop_default_Loading_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+226 KB
backstop_data/bitmaps_reference/backstop_default_Modal_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+372 KB
backstop_data/bitmaps_reference/backstop_default_NavBar_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+636 KB
backstop_data/bitmaps_reference/backstop_default_Picker_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
backstop_data/bitmaps_reference/backstop_default_Portal_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+211 KB
backstop_data/bitmaps_reference/backstop_default_Progress_0_document_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+388 KB
backstop_data/bitmaps_reference/backstop_default_Radio_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+267 KB
backstop_data/bitmaps_reference/backstop_default_Rating_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+219 KB
...stop_data/bitmaps_reference/backstop_default_ScrollView_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+516 KB
backstop_data/bitmaps_reference/backstop_default_Select_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+170 KB
backstop_data/bitmaps_reference/backstop_default_Skeleton_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+214 KB
backstop_data/bitmaps_reference/backstop_default_Slide_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+394 KB
backstop_data/bitmaps_reference/backstop_default_Slider_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+17.9 KB
backstop_data/bitmaps_reference/backstop_default_Stack_0__0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+515 KB
backstop_data/bitmaps_reference/backstop_default_Steps_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+328 KB
backstop_data/bitmaps_reference/backstop_default_Swiper_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+380 KB
backstop_data/bitmaps_reference/backstop_default_Switch_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+234 KB
backstop_data/bitmaps_reference/backstop_default_TabBar_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+422 KB
backstop_data/bitmaps_reference/backstop_default_Tabs_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+260 KB
backstop_data/bitmaps_reference/backstop_default_Tag_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+373 KB
backstop_data/bitmaps_reference/backstop_default_TextArea_0_document_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+233 KB
...stop_data/bitmaps_reference/backstop_default_Transition_0_document_0_tablet.png
Oops, something went wrong.
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,25 @@ | ||
const path = require('path'); | ||
const fs = require("fs-extra"); | ||
|
||
const coreDir = path.resolve(__dirname, '../packages/bui-core/src/index.ts'); | ||
|
||
const transformComponentName = (name) => { | ||
const newName = name[0].toLowerCase() + name.slice(1); | ||
return newName.replace(/([A-Z])/gm, `-$1`).toLowerCase() | ||
} | ||
const components = fs.readFileSync(coreDir, 'utf8')?.match(/(?<=export \* from '\.\/).*?(?=';$)/gm); | ||
const test = components.map(item => { | ||
return { | ||
label: item, | ||
url: `http://localhost/cores/${transformComponentName(item)}`, | ||
referenceUrl: `https://bui.taopiaopiao.com/cores/${transformComponentName(item)}`, | ||
readySelector: ".dumi-default-previewer-demo", | ||
delay: 0, | ||
selectorExpansion: true, | ||
misMatchThreshold: 0.1, | ||
requireSameDimensions: true | ||
} | ||
}) | ||
|
||
console.log(test, "测试") | ||
|
Oops, something went wrong.