maooo-skyline-ui-system 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/miniprogram_dist/ai-design-system/component-registry.json +133 -12
- package/miniprogram_dist/ai-design-system/component-schemas/photo-slot.schema.json +77 -0
- package/miniprogram_dist/ai-design-system/component-schemas/popup-page.schema.json +16 -0
- package/miniprogram_dist/ai-design-system/component-schemas/switch.schema.json +13 -1
- package/miniprogram_dist/ai-design-system/component-schemas/tab.schema.json +41 -0
- package/miniprogram_dist/ai-design-system/component-schemas/tabs.schema.json +139 -0
- package/miniprogram_dist/ai-design-system/manifest.json +12 -6
- package/miniprogram_dist/ai-design-system/schemas/page.schema.json +3 -0
- package/miniprogram_dist/ai-design-system/tokens.json +4 -1
- package/miniprogram_dist/icon/_iconfont/iconfont.js +1 -1
- package/miniprogram_dist/icon/_iconfont/iconfont.wxml +16 -1
- package/miniprogram_dist/index.js +2 -2
- package/miniprogram_dist/photo-slot/photo-slot.js +56 -0
- package/miniprogram_dist/photo-slot/photo-slot.json +7 -0
- package/miniprogram_dist/photo-slot/photo-slot.wxml +31 -0
- package/miniprogram_dist/photo-slot/photo-slot.wxss +70 -0
- package/miniprogram_dist/popup-page/popup-page.js +20 -0
- package/miniprogram_dist/popup-page/popup-page.json +2 -1
- package/miniprogram_dist/popup-page/popup-page.wxml +17 -1
- package/miniprogram_dist/popup-page/popup-page.wxss +33 -1
- package/miniprogram_dist/switch/switch.js +11 -0
- package/miniprogram_dist/switch/switch.wxml +1 -1
- package/miniprogram_dist/switch/switch.wxss +36 -0
- package/miniprogram_dist/tab/tab.js +89 -0
- package/miniprogram_dist/tab/tab.json +5 -0
- package/miniprogram_dist/tab/tab.wxml +10 -0
- package/miniprogram_dist/tab/tab.wxss +9 -0
- package/miniprogram_dist/tabs/tabs.js +414 -0
- package/miniprogram_dist/tabs/tabs.json +5 -0
- package/miniprogram_dist/tabs/tabs.wxml +102 -0
- package/miniprogram_dist/tabs/tabs.wxss +196 -0
- package/miniprogram_dist/theme/theme.wxss +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- `mo-rate`: 星级评分,支持半星、普通/方块样式、只读、禁用和 change 事件。
|
|
31
31
|
- `mo-countdown`: 秒级倒计时,支持 DD、HH、mm、ss 分段和 change/finish 事件。
|
|
32
32
|
- `mo-switch`: 严格受控布尔开关,支持 checked、disabled、loading 和 change 事件。
|
|
33
|
+
- `mo-tab`: `mo-tabs` 的关系内容面板,提供标题元数据、禁用状态和一次性懒加载。
|
|
33
34
|
- `mo-stepper`: 数值步进器,支持增减、输入、min/max 限制、disabled 和 input-disabled。
|
|
34
35
|
- `mo-upload`: 基础媒体选择与受控列表展示,支持预览、删除、数量限制和状态遮罩。
|
|
35
36
|
- `mo-image-cropper`: 图片裁剪组件,支持拖拽缩放、固定比例、缩略图状态和 canvas 导出。
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
- `mo-popup-page`: 基于 `mo-popup` 与 `mo-button` 的页面式底部弹层,提供标题、滚动内容区和底部操作。
|
|
45
46
|
- `mo-oss-upload`: 组合 `mo-upload` 的阿里云 OSS 上传组件,负责签名请求、上传、进度、成功和错误事件。
|
|
46
47
|
- `mo-navbar`: Skyline 自定义导航栏,支持状态栏/胶囊安全区测量、占位、标题、返回和首页事件。
|
|
48
|
+
- `mo-tabs`: 组合 `mo-tab` 的严格受控标签页,支持横向滚动、禁用事件、自定义页签头和 Skyline 原生吸顶。
|
|
47
49
|
|
|
48
50
|
### Business 组件
|
|
49
51
|
|
|
@@ -43,7 +43,10 @@
|
|
|
43
43
|
"Configurable controlled single or multiple tag selection",
|
|
44
44
|
"Confirm, close, click, change, tagchange, and error events"
|
|
45
45
|
],
|
|
46
|
-
"composes": [
|
|
46
|
+
"composes": [
|
|
47
|
+
"mo-popup-page",
|
|
48
|
+
"mo-button"
|
|
49
|
+
],
|
|
47
50
|
"preferredFor": [
|
|
48
51
|
"Service date selection popups",
|
|
49
52
|
"Calendar choices with price or custom date labels",
|
|
@@ -205,7 +208,9 @@
|
|
|
205
208
|
"Disabled state",
|
|
206
209
|
"Input and change events"
|
|
207
210
|
],
|
|
208
|
-
"composes": [
|
|
211
|
+
"composes": [
|
|
212
|
+
"mo-icon"
|
|
213
|
+
],
|
|
209
214
|
"preferredFor": [
|
|
210
215
|
"Basic text entry",
|
|
211
216
|
"Form fields",
|
|
@@ -285,7 +290,10 @@
|
|
|
285
290
|
"Input, change, confirm, clear, and search event pass-through",
|
|
286
291
|
"No internal validation state"
|
|
287
292
|
],
|
|
288
|
-
"composes": [
|
|
293
|
+
"composes": [
|
|
294
|
+
"mo-form-group",
|
|
295
|
+
"mo-input"
|
|
296
|
+
],
|
|
289
297
|
"preferredFor": [
|
|
290
298
|
"Labeled single-line form fields",
|
|
291
299
|
"Forms that need help or error display around an input",
|
|
@@ -310,7 +318,10 @@
|
|
|
310
318
|
"Input and confirm event pass-through",
|
|
311
319
|
"No internal validation state"
|
|
312
320
|
],
|
|
313
|
-
"composes": [
|
|
321
|
+
"composes": [
|
|
322
|
+
"mo-form-group",
|
|
323
|
+
"mo-textarea"
|
|
324
|
+
],
|
|
314
325
|
"preferredFor": [
|
|
315
326
|
"Labeled multiline form fields",
|
|
316
327
|
"Remark or description fields with help or error text",
|
|
@@ -366,9 +377,14 @@
|
|
|
366
377
|
"Optional content self-managed scrolling",
|
|
367
378
|
"Footer confirm and cancel actions",
|
|
368
379
|
"Drag down close request",
|
|
369
|
-
"Z-index control"
|
|
380
|
+
"Z-index control",
|
|
381
|
+
"Centered single-line title with a close button (design 506:2954), via titleAlign=center + closable"
|
|
382
|
+
],
|
|
383
|
+
"composes": [
|
|
384
|
+
"mo-popup",
|
|
385
|
+
"mo-button",
|
|
386
|
+
"mo-icon"
|
|
370
387
|
],
|
|
371
|
-
"composes": ["mo-popup", "mo-button"],
|
|
372
388
|
"preferredFor": [
|
|
373
389
|
"Reusable page-style bottom popups",
|
|
374
390
|
"Popup shells with title, scrollable content, and footer actions",
|
|
@@ -477,7 +493,8 @@
|
|
|
477
493
|
"Checked visual state",
|
|
478
494
|
"Disabled and loading states",
|
|
479
495
|
"Change event with next checked value",
|
|
480
|
-
"CSS loading indicator"
|
|
496
|
+
"CSS loading indicator",
|
|
497
|
+
"Two size levels: md 112x64 and sm 76x44 (service-reminder sheet, different track colors and no thumb shadow)"
|
|
481
498
|
],
|
|
482
499
|
"composes": [],
|
|
483
500
|
"preferredFor": [
|
|
@@ -491,6 +508,98 @@
|
|
|
491
508
|
"Business-specific toggle workflows"
|
|
492
509
|
]
|
|
493
510
|
},
|
|
511
|
+
{
|
|
512
|
+
"name": "tab",
|
|
513
|
+
"tag": "mo-tab",
|
|
514
|
+
"layer": "base",
|
|
515
|
+
"status": "implemented",
|
|
516
|
+
"schema": "packages/ui/tab/schema.json",
|
|
517
|
+
"source": "packages/ui/tab/src/index.ts",
|
|
518
|
+
"capabilities": [
|
|
519
|
+
"Relationship content pane for mo-tabs",
|
|
520
|
+
"Title, name, and disabled metadata",
|
|
521
|
+
"Default content slot",
|
|
522
|
+
"Render-on-first-activation lazy content",
|
|
523
|
+
"Persistent mounted content after first activation"
|
|
524
|
+
],
|
|
525
|
+
"composes": [],
|
|
526
|
+
"preferredFor": [
|
|
527
|
+
"Content panes inside mo-tabs",
|
|
528
|
+
"Tabs that need stable named values",
|
|
529
|
+
"Lazy-rendered tab content"
|
|
530
|
+
],
|
|
531
|
+
"notFor": [
|
|
532
|
+
"Standalone content panels",
|
|
533
|
+
"Independent navigation controls",
|
|
534
|
+
"Swipe gesture handling",
|
|
535
|
+
"Business-specific content state"
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "tabs",
|
|
540
|
+
"tag": "mo-tabs",
|
|
541
|
+
"layer": "composed",
|
|
542
|
+
"status": "implemented",
|
|
543
|
+
"schema": "packages/ui/tabs/schema.json",
|
|
544
|
+
"source": "packages/ui/tabs/src/index.ts",
|
|
545
|
+
"capabilities": [
|
|
546
|
+
"Composes mo-tab relationship content panes",
|
|
547
|
+
"Strictly controlled tab selection",
|
|
548
|
+
"Line and two-item connected visual variants",
|
|
549
|
+
"Brand and neutral connected tones",
|
|
550
|
+
"Equal-width and horizontally scrollable line headers",
|
|
551
|
+
"Worklet-powered directional stretch animation for the equal-width line indicator",
|
|
552
|
+
"Warning and line fallback for invalid connected configurations",
|
|
553
|
+
"Disabled tab interaction events",
|
|
554
|
+
"Style class hooks for line headers",
|
|
555
|
+
"Skyline native sticky-section and sticky-header support for line tabs"
|
|
556
|
+
],
|
|
557
|
+
"composes": [
|
|
558
|
+
"mo-tab"
|
|
559
|
+
],
|
|
560
|
+
"preferredFor": [
|
|
561
|
+
"Section and content switching",
|
|
562
|
+
"Scrollable category headers",
|
|
563
|
+
"Two-option service flows with a connected header and content shell",
|
|
564
|
+
"Sticky tab headers inside custom Skyline scroll views",
|
|
565
|
+
"Custom-styled line headers that retain controlled behavior"
|
|
566
|
+
],
|
|
567
|
+
"notFor": [
|
|
568
|
+
"Bottom application tab bars",
|
|
569
|
+
"Swipe-driven content carousels",
|
|
570
|
+
"Connected headers with other than two items",
|
|
571
|
+
"Connected headers combined with scrolling or sticky behavior",
|
|
572
|
+
"Asynchronous navigation guards",
|
|
573
|
+
"Business-specific tab content"
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "photo-slot",
|
|
578
|
+
"tag": "mo-photo-slot",
|
|
579
|
+
"layer": "base",
|
|
580
|
+
"status": "implemented",
|
|
581
|
+
"schema": "packages/ui/photo-slot/schema.json",
|
|
582
|
+
"source": "packages/ui/photo-slot/src/index.ts",
|
|
583
|
+
"capabilities": [
|
|
584
|
+
"Single-image slot with fixed 216rpx height and caller-controlled width",
|
|
585
|
+
"Empty state with centered plus glyph on a solid background",
|
|
586
|
+
"Delete button on the filled state",
|
|
587
|
+
"Uploading overlay",
|
|
588
|
+
"Separate choose / preview / delete events"
|
|
589
|
+
],
|
|
590
|
+
"composes": [
|
|
591
|
+
"mo-icon"
|
|
592
|
+
],
|
|
593
|
+
"preferredFor": [
|
|
594
|
+
"One slot per business item (e.g. service reminder food bowl / water bowl)",
|
|
595
|
+
"Fixed-position image grids where each cell maps to a schema item"
|
|
596
|
+
],
|
|
597
|
+
"notFor": [
|
|
598
|
+
"Multi-image galleries where the count grows as the user picks (use mo-upload)",
|
|
599
|
+
"Media upload with OSS credential handling (use mo-oss-upload / mo-media-upload)",
|
|
600
|
+
"Video upload"
|
|
601
|
+
]
|
|
602
|
+
},
|
|
494
603
|
{
|
|
495
604
|
"name": "upload",
|
|
496
605
|
"tag": "mo-upload",
|
|
@@ -536,7 +645,9 @@
|
|
|
536
645
|
"Aborts in-flight upload tasks when deleting uploading files",
|
|
537
646
|
"Returns final URL and ossKey after upload success"
|
|
538
647
|
],
|
|
539
|
-
"composes": [
|
|
648
|
+
"composes": [
|
|
649
|
+
"mo-upload"
|
|
650
|
+
],
|
|
540
651
|
"preferredFor": [
|
|
541
652
|
"Business image or video upload to Aliyun OSS",
|
|
542
653
|
"Upload flows that need final OSS URLs",
|
|
@@ -568,7 +679,10 @@
|
|
|
568
679
|
"Aborts in-flight upload tasks when deleting uploading files",
|
|
569
680
|
"Protects newer internal upload state from delayed external fileList echoes"
|
|
570
681
|
],
|
|
571
|
-
"composes": [
|
|
682
|
+
"composes": [
|
|
683
|
+
"mo-upload",
|
|
684
|
+
"mo-image-cropper"
|
|
685
|
+
],
|
|
572
686
|
"preferredFor": [
|
|
573
687
|
"Business media upload flows that need crop, OSS upload, optional audit, video cover, and main image selection",
|
|
574
688
|
"Pet photos, service albums, appointment or order media upload flows",
|
|
@@ -653,7 +767,9 @@
|
|
|
653
767
|
"Default arrow-left icon through mo-icon",
|
|
654
768
|
"Back and home runtime events with optional automatic navigation"
|
|
655
769
|
],
|
|
656
|
-
"composes": [
|
|
770
|
+
"composes": [
|
|
771
|
+
"mo-icon"
|
|
772
|
+
],
|
|
657
773
|
"preferredFor": [
|
|
658
774
|
"Custom navigation bars on Skyline pages",
|
|
659
775
|
"Pages with navigationStyle custom",
|
|
@@ -671,13 +787,18 @@
|
|
|
671
787
|
{
|
|
672
788
|
"tag": "mo-popup-page",
|
|
673
789
|
"layer": "composed",
|
|
674
|
-
"composes": [
|
|
790
|
+
"composes": [
|
|
791
|
+
"mo-popup",
|
|
792
|
+
"mo-button"
|
|
793
|
+
],
|
|
675
794
|
"purpose": "Reusable popup page shell built on mo-popup and mo-button."
|
|
676
795
|
},
|
|
677
796
|
{
|
|
678
797
|
"tag": "mo-appointment-time-popup",
|
|
679
798
|
"layer": "business",
|
|
680
|
-
"composes": [
|
|
799
|
+
"composes": [
|
|
800
|
+
"mo-popup-page"
|
|
801
|
+
],
|
|
681
802
|
"purpose": "Business appointment time selector built on a composed popup page."
|
|
682
803
|
}
|
|
683
804
|
]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "photo-slot",
|
|
3
|
+
"description": "单张图上传位。一格一图的定位固定格,与 mo-upload 的单流列表形态不同",
|
|
4
|
+
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "url",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"default": "",
|
|
9
|
+
"description": "已选图的展示地址。空 = 空态(显示加号)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "label",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "",
|
|
15
|
+
"description": "无障碍标签,说明这一格该拍什么(如「粮碗」)。设计上不显示文字"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "deletable",
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": true,
|
|
21
|
+
"description": "已选图时是否显示右上删除钮"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "loading",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false,
|
|
27
|
+
"description": "上传中。盖一层遮罩并挡掉点击"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "loadingText",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": "上传中",
|
|
33
|
+
"description": "上传中遮罩上的文案"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "disabled",
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"default": false,
|
|
39
|
+
"description": "是否禁用。禁用时不触发任何事件"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "customClass",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"default": "",
|
|
45
|
+
"description": "外部自定义 class"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"events": [
|
|
49
|
+
"onChoose",
|
|
50
|
+
"onPreview",
|
|
51
|
+
"onDelete"
|
|
52
|
+
],
|
|
53
|
+
"eventDetails": {
|
|
54
|
+
"onChoose": {
|
|
55
|
+
"description": "点空位时触发,调用方去唤起选图",
|
|
56
|
+
"detail": "包含 label。"
|
|
57
|
+
},
|
|
58
|
+
"onPreview": {
|
|
59
|
+
"description": "点已有图时触发,调用方去看大图",
|
|
60
|
+
"detail": "包含 url。"
|
|
61
|
+
},
|
|
62
|
+
"onDelete": {
|
|
63
|
+
"description": "点右上删除钮时触发",
|
|
64
|
+
"detail": "包含 url。"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"slots": [],
|
|
68
|
+
"tokens": [
|
|
69
|
+
"color.background.tab",
|
|
70
|
+
"color.text.inverse",
|
|
71
|
+
"radius.lg",
|
|
72
|
+
"radius.pill",
|
|
73
|
+
"spacing.3",
|
|
74
|
+
"typography.size.bodyLg",
|
|
75
|
+
"typography.lineHeight.bodyLg"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -50,6 +50,22 @@
|
|
|
50
50
|
"default": 120,
|
|
51
51
|
"description": "下滑关闭阈值,单位为触摸坐标 px"
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"name": "titleAlign",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"default": "left",
|
|
57
|
+
"enum": [
|
|
58
|
+
"left",
|
|
59
|
+
"center"
|
|
60
|
+
],
|
|
61
|
+
"description": "标题对齐。center 对应设计「浮层标题-居中-单行 H120」(506:2954):36rpx 居中标题 + 右上关闭 ✕"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "closable",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false,
|
|
67
|
+
"description": "是否显示右上关闭 ✕(48rpx,#999999)。点它触发 onClose"
|
|
68
|
+
},
|
|
53
69
|
{
|
|
54
70
|
"name": "footerMode",
|
|
55
71
|
"type": "string",
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
"default": false,
|
|
21
21
|
"description": "是否加载中。加载中不触发 change,并保持当前 checked 视觉状态"
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"name": "size",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "md",
|
|
27
|
+
"enum": [
|
|
28
|
+
"md",
|
|
29
|
+
"sm"
|
|
30
|
+
],
|
|
31
|
+
"description": "尺寸档。md=112x64(规范页原档);sm=76x44(服务叮嘱半屏,关 text.tertiary / 开 text.primary,圆点 36 无阴影)"
|
|
32
|
+
},
|
|
23
33
|
{
|
|
24
34
|
"name": "customClass",
|
|
25
35
|
"type": "string",
|
|
@@ -36,7 +46,9 @@
|
|
|
36
46
|
"color.background.muted",
|
|
37
47
|
"color.background.surface",
|
|
38
48
|
"color.border.default",
|
|
39
|
-
"radius.pill"
|
|
49
|
+
"radius.pill",
|
|
50
|
+
"color.text.tertiary",
|
|
51
|
+
"color.text.primary"
|
|
40
52
|
],
|
|
41
53
|
"eventDetails": {
|
|
42
54
|
"onChange": {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tab",
|
|
3
|
+
"description": "mo-tabs 的关系内容面板,提供标题元数据、禁用状态与一次性懒加载内容",
|
|
4
|
+
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "title",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"default": "",
|
|
9
|
+
"description": "显示在关联 mo-tabs 页签头中的标题"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "name",
|
|
13
|
+
"type": "string|number|null",
|
|
14
|
+
"default": null,
|
|
15
|
+
"description": "页签唯一值;为 null 时使用当前关系顺序索引"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "disabled",
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false,
|
|
21
|
+
"description": "是否禁止用户通过页签头请求切换到该面板"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "customClass",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "",
|
|
27
|
+
"description": "内容面板外部自定义 class"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"events": [],
|
|
31
|
+
"slots": [
|
|
32
|
+
"default"
|
|
33
|
+
],
|
|
34
|
+
"slotDetails": {
|
|
35
|
+
"default": {
|
|
36
|
+
"description": "当前页签的内容;是否创建和显示由关联 mo-tabs 控制。",
|
|
37
|
+
"allowsChildren": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"tokens": []
|
|
41
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tabs",
|
|
3
|
+
"description": "严格受控的 Skyline 标签页组合组件,提供 line 与双项 connected 视觉变体、关系面板、横向滚动、禁用事件、自定义样式钩子和原生吸顶",
|
|
4
|
+
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "value",
|
|
7
|
+
"type": "string|number",
|
|
8
|
+
"default": 0,
|
|
9
|
+
"description": "受控选中值,对应 mo-tab 的 name;未命名时对应关系顺序索引"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "variant",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "line",
|
|
15
|
+
"enum": [
|
|
16
|
+
"line",
|
|
17
|
+
"connected"
|
|
18
|
+
],
|
|
19
|
+
"description": "视觉变体;connected 仅接受两个 mo-tab,且不能与 scrollable 或 sticky 同时使用,非法时警告并回退 line"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "tone",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": "brand",
|
|
25
|
+
"enum": [
|
|
26
|
+
"brand",
|
|
27
|
+
"neutral"
|
|
28
|
+
],
|
|
29
|
+
"description": "connected 未选中页签的色调;brand 为品牌粉,neutral 为中性灰"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "scrollable",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "line 是否启用横向滚动;关闭时页签等宽分布,connected 不支持"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "sticky",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false,
|
|
41
|
+
"description": "line 是否使用 Skyline sticky-section 和 sticky-header 吸顶,connected 不支持"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "offsetTop",
|
|
45
|
+
"type": "number",
|
|
46
|
+
"default": 0,
|
|
47
|
+
"description": "吸顶距离视窗顶部的偏移,单位为 px,仅在 sticky=true 时生效"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "lazyRender",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": true,
|
|
53
|
+
"description": "是否在面板首次激活时才创建其 slot 内容"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "customClass",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "",
|
|
59
|
+
"description": "组件根节点外部自定义 class"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "navClass",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "",
|
|
65
|
+
"description": "页签头内容层外部自定义 class"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "tabClass",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"default": "",
|
|
71
|
+
"description": "每个页签项外部自定义 class"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "activeTabClass",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"default": "",
|
|
77
|
+
"description": "当前活动页签项额外的外部自定义 class"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "indicatorClass",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"default": "",
|
|
83
|
+
"description": "活动指示器外部自定义 class"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"events": [
|
|
87
|
+
"onClick",
|
|
88
|
+
"onChange",
|
|
89
|
+
"onDisabled",
|
|
90
|
+
"onStickChange"
|
|
91
|
+
],
|
|
92
|
+
"slots": [
|
|
93
|
+
"default"
|
|
94
|
+
],
|
|
95
|
+
"slotDetails": {
|
|
96
|
+
"default": {
|
|
97
|
+
"description": "关系内容区,只放置 mo-tab 子组件。",
|
|
98
|
+
"allowsChildren": true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"tokens": [
|
|
102
|
+
"color.text.primary",
|
|
103
|
+
"color.text.secondary",
|
|
104
|
+
"color.text.disabled",
|
|
105
|
+
"color.text.active",
|
|
106
|
+
"color.brand.primary",
|
|
107
|
+
"color.background.surface",
|
|
108
|
+
"color.background.tab",
|
|
109
|
+
"typography.size.title",
|
|
110
|
+
"typography.size.title3",
|
|
111
|
+
"typography.lineHeight.title",
|
|
112
|
+
"typography.lineHeight.title3",
|
|
113
|
+
"typography.weight.regular",
|
|
114
|
+
"typography.weight.medium",
|
|
115
|
+
"typography.weight.semibold",
|
|
116
|
+
"radius.xl",
|
|
117
|
+
"radius.pill",
|
|
118
|
+
"spacing.4",
|
|
119
|
+
"spacing.5"
|
|
120
|
+
],
|
|
121
|
+
"eventDetails": {
|
|
122
|
+
"onClick": {
|
|
123
|
+
"description": "点击非禁用页签时触发,包括重复点击当前页签",
|
|
124
|
+
"detail": "包含 value、index 与 title。"
|
|
125
|
+
},
|
|
126
|
+
"onChange": {
|
|
127
|
+
"description": "点击不同的非禁用页签并请求外部更新受控 value 时触发",
|
|
128
|
+
"detail": "包含下一 value、index 与 title。"
|
|
129
|
+
},
|
|
130
|
+
"onDisabled": {
|
|
131
|
+
"description": "点击禁用页签时触发",
|
|
132
|
+
"detail": "包含 value、index 与 title。"
|
|
133
|
+
},
|
|
134
|
+
"onStickChange": {
|
|
135
|
+
"description": "原生 sticky-header 吸顶状态变化时触发",
|
|
136
|
+
"detail": "包含 isStickOnTop。"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "maooo-skyline-ui-system",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.13"
|
|
5
5
|
},
|
|
6
|
-
"snapshotVersion": "0.1.
|
|
7
|
-
"generatedAt": "2026-
|
|
6
|
+
"snapshotVersion": "0.1.13",
|
|
7
|
+
"generatedAt": "2026-08-05T17:16:44.296Z",
|
|
8
8
|
"description": "Read-only design spec snapshot for AI page generation in business projects. Source of truth is design-system/ and packages/ui/.",
|
|
9
9
|
"readOrder": [
|
|
10
10
|
"DESIGN.md",
|
|
@@ -41,12 +41,15 @@
|
|
|
41
41
|
"mo-navbar": "component-schemas/navbar.schema.json",
|
|
42
42
|
"mo-notify": "component-schemas/notify.schema.json",
|
|
43
43
|
"mo-oss-upload": "component-schemas/oss-upload.schema.json",
|
|
44
|
+
"mo-photo-slot": "component-schemas/photo-slot.schema.json",
|
|
44
45
|
"mo-popup": "component-schemas/popup.schema.json",
|
|
45
46
|
"mo-popup-page": "component-schemas/popup-page.schema.json",
|
|
46
47
|
"mo-progress": "component-schemas/progress.schema.json",
|
|
47
48
|
"mo-rate": "component-schemas/rate.schema.json",
|
|
48
49
|
"mo-stepper": "component-schemas/stepper.schema.json",
|
|
49
50
|
"mo-switch": "component-schemas/switch.schema.json",
|
|
51
|
+
"mo-tab": "component-schemas/tab.schema.json",
|
|
52
|
+
"mo-tabs": "component-schemas/tabs.schema.json",
|
|
50
53
|
"mo-textarea": "component-schemas/textarea.schema.json",
|
|
51
54
|
"mo-toast": "component-schemas/toast.schema.json",
|
|
52
55
|
"mo-upload": "component-schemas/upload.schema.json"
|
|
@@ -82,12 +85,15 @@
|
|
|
82
85
|
"component-schemas/navbar.schema.json",
|
|
83
86
|
"component-schemas/notify.schema.json",
|
|
84
87
|
"component-schemas/oss-upload.schema.json",
|
|
88
|
+
"component-schemas/photo-slot.schema.json",
|
|
85
89
|
"component-schemas/popup-page.schema.json",
|
|
86
90
|
"component-schemas/popup.schema.json",
|
|
87
91
|
"component-schemas/progress.schema.json",
|
|
88
92
|
"component-schemas/rate.schema.json",
|
|
89
93
|
"component-schemas/stepper.schema.json",
|
|
90
94
|
"component-schemas/switch.schema.json",
|
|
95
|
+
"component-schemas/tab.schema.json",
|
|
96
|
+
"component-schemas/tabs.schema.json",
|
|
91
97
|
"component-schemas/textarea.schema.json",
|
|
92
98
|
"component-schemas/toast.schema.json",
|
|
93
99
|
"component-schemas/upload.schema.json",
|
|
@@ -106,9 +112,9 @@
|
|
|
106
112
|
"design-system/tokens/source/color.json": "sha256:c96a4e785d0b96bb9cc3789393964afed007251d9235832053a7ebb6d079225a",
|
|
107
113
|
"design-system/tokens/source/radius.json": "sha256:7ef7d9349d3e4caf5649b4715cb01c632c7ce20d1d330e94d086027bda9779ee",
|
|
108
114
|
"design-system/tokens/source/shadow.json": "sha256:0446793a2152ed2163616e1b791104395167f32eb16e2305235d2afdc389acf6",
|
|
109
|
-
"design-system/tokens/source/spacing.json": "sha256:
|
|
110
|
-
"design-system/tokens/source/typography.json": "sha256:
|
|
115
|
+
"design-system/tokens/source/spacing.json": "sha256:3673a8a009dc36f29f67677906d21a958f6f044b25c068b8e00a4b13cb340b4b",
|
|
116
|
+
"design-system/tokens/source/typography.json": "sha256:93183ea92beaa204621229bb5347ad63e1c05c323c058b6f2d73fe8cf9ba6844",
|
|
111
117
|
"design-system/DESIGN.md": "sha256:b00f2e5030df81c6d985eb46b9489b2ce98d0803134389d385053605aba66cbc",
|
|
112
|
-
"packages/ui/component-registry.json": "sha256:
|
|
118
|
+
"packages/ui/component-registry.json": "sha256:287c9963038fe65571894c96f6d9e44db2ee0bb8615aad0e1346dd636006d74a"
|
|
113
119
|
}
|
|
114
120
|
}
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"5": "24rpx",
|
|
92
92
|
"6": "32rpx",
|
|
93
93
|
"8": "48rpx",
|
|
94
|
-
"10": "64rpx"
|
|
94
|
+
"10": "64rpx",
|
|
95
|
+
"page": "38rpx"
|
|
95
96
|
},
|
|
96
97
|
"typography": {
|
|
97
98
|
"fontFamily": "system",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"title2": "36rpx",
|
|
102
103
|
"title3": "34rpx",
|
|
103
104
|
"title4": "28rpx",
|
|
105
|
+
"bodyLg": "26rpx",
|
|
104
106
|
"body": "24rpx",
|
|
105
107
|
"assist": "22rpx",
|
|
106
108
|
"caption": "20rpx",
|
|
@@ -113,6 +115,7 @@
|
|
|
113
115
|
"title2": "50rpx",
|
|
114
116
|
"title3": "48rpx",
|
|
115
117
|
"title4": "39rpx",
|
|
118
|
+
"bodyLg": "44rpx",
|
|
116
119
|
"body": "34rpx",
|
|
117
120
|
"assist": "31rpx",
|
|
118
121
|
"caption": "28rpx",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Component({
|
|
2
2
|
properties: {
|
|
3
|
-
// check | badge-check-filled | location-pin-filled | shield-heart-filled | image | camera | face-smile | gender-male | location-pin | thumb-up-outline | calendar | thumb-up-filled | gender-female | wechat | question-circle | edit-square | hexagon-circle | radio-selected | star-outline | radio-unselected | yuan-square | check-circle-filled | close | arrow-turn-right | star | user | plus | time-house | home | bell | logo | arrow-left
|
|
3
|
+
// edit-square-pen | calendar-close | document-text | webcam-filled | yuan-heart-filled | check | badge-check-filled | location-pin-filled | shield-heart-filled | image | camera | face-smile | gender-male | location-pin | thumb-up-outline | calendar | thumb-up-filled | gender-female | wechat | question-circle | edit-square | hexagon-circle | radio-selected | star-outline | radio-unselected | yuan-square | check-circle-filled | close | arrow-turn-right | star | user | plus | time-house | home | bell | logo | arrow-left
|
|
4
4
|
name: {
|
|
5
5
|
type: String,
|
|
6
6
|
},
|