apptify 0.7.1 → 0.8.0
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 +7 -24
- package/dist/apptify.css +1 -1
- package/dist/apptify.js +1436 -1424
- package/dist/components/content.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/docs/COMPONENTS.md +1 -1
- package/package.json +1 -1
- package/templates/playground/package.json +1 -1
- package/templates/playground/source-snapshot.json +17 -17
- package/templates/playground/src/ComponentDemo.vue +11 -9
- package/templates/playground/src/editor/handbooks/apple-list.ts +6 -0
- package/templates/playground/src/editor/handbooks/apple-scroll-bar.ts +1 -1
|
@@ -483,6 +483,7 @@ export declare const AppleList: import("vue").DefineComponent<import("vue").Extr
|
|
|
483
483
|
default: undefined;
|
|
484
484
|
};
|
|
485
485
|
selectable: BooleanConstructor;
|
|
486
|
+
border: BooleanConstructor;
|
|
486
487
|
disabled: BooleanConstructor;
|
|
487
488
|
label: {
|
|
488
489
|
type: StringConstructor;
|
|
@@ -502,6 +503,7 @@ export declare const AppleList: import("vue").DefineComponent<import("vue").Extr
|
|
|
502
503
|
default: undefined;
|
|
503
504
|
};
|
|
504
505
|
selectable: BooleanConstructor;
|
|
506
|
+
border: BooleanConstructor;
|
|
505
507
|
disabled: BooleanConstructor;
|
|
506
508
|
label: {
|
|
507
509
|
type: StringConstructor;
|
|
@@ -520,6 +522,7 @@ export declare const AppleList: import("vue").DefineComponent<import("vue").Extr
|
|
|
520
522
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
521
523
|
}>, {
|
|
522
524
|
label: string;
|
|
525
|
+
border: boolean;
|
|
523
526
|
disabled: boolean;
|
|
524
527
|
motion: Motion;
|
|
525
528
|
modelValue: AppleValue;
|
|
@@ -1881,6 +1884,7 @@ export declare const contentComponents: {
|
|
|
1881
1884
|
default: undefined;
|
|
1882
1885
|
};
|
|
1883
1886
|
selectable: BooleanConstructor;
|
|
1887
|
+
border: BooleanConstructor;
|
|
1884
1888
|
disabled: BooleanConstructor;
|
|
1885
1889
|
label: {
|
|
1886
1890
|
type: StringConstructor;
|
|
@@ -1900,6 +1904,7 @@ export declare const contentComponents: {
|
|
|
1900
1904
|
default: undefined;
|
|
1901
1905
|
};
|
|
1902
1906
|
selectable: BooleanConstructor;
|
|
1907
|
+
border: BooleanConstructor;
|
|
1903
1908
|
disabled: BooleanConstructor;
|
|
1904
1909
|
label: {
|
|
1905
1910
|
type: StringConstructor;
|
|
@@ -1918,6 +1923,7 @@ export declare const contentComponents: {
|
|
|
1918
1923
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1919
1924
|
}>, {
|
|
1920
1925
|
label: string;
|
|
1926
|
+
border: boolean;
|
|
1921
1927
|
disabled: boolean;
|
|
1922
1928
|
motion: Motion;
|
|
1923
1929
|
modelValue: AppleValue;
|
package/dist/index.d.ts
CHANGED
|
@@ -1723,6 +1723,7 @@ export declare const components: {
|
|
|
1723
1723
|
default: undefined;
|
|
1724
1724
|
};
|
|
1725
1725
|
selectable: BooleanConstructor;
|
|
1726
|
+
border: BooleanConstructor;
|
|
1726
1727
|
disabled: BooleanConstructor;
|
|
1727
1728
|
label: {
|
|
1728
1729
|
type: StringConstructor;
|
|
@@ -1742,6 +1743,7 @@ export declare const components: {
|
|
|
1742
1743
|
default: undefined;
|
|
1743
1744
|
};
|
|
1744
1745
|
selectable: BooleanConstructor;
|
|
1746
|
+
border: BooleanConstructor;
|
|
1745
1747
|
disabled: BooleanConstructor;
|
|
1746
1748
|
label: {
|
|
1747
1749
|
type: StringConstructor;
|
|
@@ -1760,6 +1762,7 @@ export declare const components: {
|
|
|
1760
1762
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1761
1763
|
}>, {
|
|
1762
1764
|
label: string;
|
|
1765
|
+
border: boolean;
|
|
1763
1766
|
disabled: boolean;
|
|
1764
1767
|
motion: "auto" | "full" | "reduced" | "none" | "inherit";
|
|
1765
1768
|
modelValue: import(".").AppleValue;
|
package/docs/COMPONENTS.md
CHANGED
|
@@ -108,7 +108,7 @@ validator 返回 `true` 才通过;字符串作为错误信息,`false` 显示
|
|
|
108
108
|
| `AppleAccordion` | `v-model: string/number/array`、`items`、`multiple`、`disabled` | `change(value)`;`item-${value}` 或 item slot `{item,open}`;默认内容使用 item.content;multiple 时模型为数组。 |
|
|
109
109
|
| `AppleTable` | `columns: AppleColumn[]`、`rows: Record[]`、`rowKey=id`、`label`、`selectable`、`v-model:selected`、`v-model:sort-by`、`v-model:sort-direction`、`v-model:page`、`pageSize=0`、`loading`、`disabled`、`emptyText` | `sort({key,direction})`、`row-click(row)`;`cell-${key}` slot `{row,value,index}`、empty slot;本地排序/分页;pageSize=0 不分页。 |
|
|
110
110
|
| `AppleTree` | `items: AppleTreeItem[]`、`v-model`、`v-model:expanded`、`disabled`、`label`、`searchable=true`、`mobileDirectory=true` | 默认顶部搜索;宽度 ≤900px 自动进入全局 SpeedDial 目录,无宿主保留原位。`select(item)`;item slot `{item,expanded,selected}`;递归 children;单选与键盘树导航,不含勾选联动。 |
|
|
111
|
-
| `AppleList` | `items`、`v-model`、`selectable`、`disabled`、`label` | `select(item)`;item slot `{item,selected}`;selectable 时更新模型,否则 href
|
|
111
|
+
| `AppleList` | `items`、`v-model`、`selectable`、`border=false`、`disabled`、`label` | `select(item)`;item slot `{item,selected}`;selectable 时更新模型,否则 href 生成链接;`border` 显示条目分隔线。 |
|
|
112
112
|
| `AppleAvatar` | `src`、`name='用户'`、`size=40`、`square` | `error(event)`;default slot;图片失败回退到姓名前两个字符。 |
|
|
113
113
|
| `AppleAvatarGroup` | `items: {name,src?,value?}[]`、`max=4`、`size=36`、`label` | default slot 可替换头像集合;超出数量显示 +N。 |
|
|
114
114
|
| `AppleBadge` | `value: string/number`、`max=99`、`dot`、`showZero`、`label`、`tone=danger` | default slot 为被标记内容;无 slot 可独立显示。 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"createdAt": "2026-10-
|
|
3
|
-
"libraryVersion": "0.
|
|
2
|
+
"createdAt": "2026-10-24T07:33:34.408Z",
|
|
3
|
+
"libraryVersion": "0.8.0",
|
|
4
4
|
"files": {
|
|
5
5
|
"index.html": "75f6d93e3962ddca97a13b666a04d98ba9b263b6c288171383db764215034fea",
|
|
6
6
|
"public/images/SOURCES.md": "24ccb6625b1168e48550b7651e9fc20cb747324d87666d39199608c7db20541b",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"public/images/sunset.jpg": "4ee91e88f1e341143a807ef48fdfc24d63aa045d99351b4ea8ad7efcfef6ef9b",
|
|
18
18
|
"public/images/waterfall.jpg": "cfd55ff5f41d3a58e91793d0e26a9ca90c86760aa401da033fbfa77d3364f238",
|
|
19
19
|
"src/App.vue": "f85c256ed21601ccb0681a3592237e357d48ec02af371491b90a83a32203828e",
|
|
20
|
-
"src/ComponentDemo.vue": "
|
|
20
|
+
"src/ComponentDemo.vue": "a599154820d13ffb19e9a661c0e208f1b0ef79a664f3a372eb7735fa486804cd",
|
|
21
21
|
"src/catalog.ts": "a27a875d316bcc8d0be523195a0b4e8e21279c7f33c8d2f024efaa8721e1518e",
|
|
22
22
|
"src/components/ComponentIndex.vue": "7938a3fe3efb521d6efab4fe64edef06d40f22ecd68481d20427a24c39b6683f",
|
|
23
23
|
"src/components/MasonryFeed.vue": "4882725da4211e2d39b782c839c7581a0672c815d12f146a8aee186df534ac68",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"src/editor/handbooks/apple-image.ts": "edf3d95a7cdb9ee4823bcd636206f11e8a3337392e89804e49a4ec9653e8dc90",
|
|
71
71
|
"src/editor/handbooks/apple-infinite-scroll.ts": "64be93797b5143507af35f551de49aea13a38d73242444487d80420aae0b6b98",
|
|
72
72
|
"src/editor/handbooks/apple-link.ts": "bb41394f33660bdc3f79e3d2c97036633b7b99190058d3c5247c2b628f47e96b",
|
|
73
|
-
"src/editor/handbooks/apple-list.ts": "
|
|
73
|
+
"src/editor/handbooks/apple-list.ts": "6e124c3d8887f2be51e5a21f7810d8bb756dd28ba36d07f97e1c1c1cb25ed7be",
|
|
74
74
|
"src/editor/handbooks/apple-menu.ts": "9905dafa75209317f942d960ebebe42edefe17f6d478e315bff9d44efdc8b300",
|
|
75
75
|
"src/editor/handbooks/apple-navibar.ts": "2d4cd4241c30bd09ec6f4167c7ac9fd50c61809df6cc735bc0b5ad8cd075fec3",
|
|
76
76
|
"src/editor/handbooks/apple-otp-input.ts": "6179a1828edb3b176480123466b5e1c8576569090c0480392dd88542a672f8bd",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"src/editor/handbooks/apple-pull-refresh.ts": "8c74a11fdebaa63cde11103f556649f8e903c4905ce0f16f19a769878119c4de",
|
|
83
83
|
"src/editor/handbooks/apple-radio-group.ts": "23282a94a6ff4353d0b83c5c6f1611234f54e3444ef4972176221fe2214e960b",
|
|
84
84
|
"src/editor/handbooks/apple-rate.ts": "48c426bf19b5fdd9ef9d7b46bd7f13e68c57fc7370c296bb248f223cef087e8b",
|
|
85
|
-
"src/editor/handbooks/apple-scroll-bar.ts": "
|
|
85
|
+
"src/editor/handbooks/apple-scroll-bar.ts": "cc1462103c36b4046472c6866bd34c05a8747b566f310ab9df9b75be663063c5",
|
|
86
86
|
"src/editor/handbooks/apple-search.ts": "82fc284aa354b33ede41e44f594b256a7a410466a41bd2fdfcdc28dab7cbe6ec",
|
|
87
87
|
"src/editor/handbooks/apple-segmented-control.ts": "3fad2e7d2b04a3d9c45368ca2ff1f8bf6ae2f0b4c944bd4813aa4cbe828f8218",
|
|
88
88
|
"src/editor/handbooks/apple-select.ts": "879bdf454b501db67cce4692e95f84b3f63636e430a19eb6c0e59e39a7d14560",
|
|
@@ -254,9 +254,9 @@
|
|
|
254
254
|
"buildSources": {
|
|
255
255
|
"src/components/AppleCard.vue": "c74eea151960b41ea6b6e53f38c6bd2eb96b1dd2664e2dc352581a173651d126",
|
|
256
256
|
"src/components/button.ts": "b264845f4c340bd201e2d0c5b6765560194a859021b45f3b1e6009bfc1fc58ae",
|
|
257
|
-
"src/components/content.ts": "
|
|
257
|
+
"src/components/content.ts": "115e69950a27ec1d534f3c300c1d19c9f72c34e83c6a6088809b8a07b0427035",
|
|
258
258
|
"src/components/date-picker.ts": "c2ea419ab9f949b984cced9cf2ab3f6710a5a2c269a65293ecbca1d2cdc9b9ef",
|
|
259
|
-
"src/components/forms.ts": "
|
|
259
|
+
"src/components/forms.ts": "90ae25b7c2200b8292a7f94e8219a553a1c834472a5e34480ffbb6cccf270825",
|
|
260
260
|
"src/components/foundation.ts": "fe56d963605e6fa9776127c152ed151d7abc1a5a0b6e2c02c69b7c859d57e432",
|
|
261
261
|
"src/components/link.ts": "f5d4acc163c205b4dfabffc62084e236aa4759f91b041367a8a4a185cca0a9e4",
|
|
262
262
|
"src/components/mobile-image-viewer.ts": "b94830d23de10de0e38b28ec04479f8a39090b5d339514b65ae0bf78757310d3",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"src/core/image-gallery-motion.ts": "28c59361d3c59c8ab08841c05f7144649aa13f930f73d5c0c99ed33ddc96278f",
|
|
272
272
|
"src/core/image-geometry.ts": "6eb4d4e2a2afd078ccce010ec8aae32d89bf70a1e8c2c522b5e81040a97a1037",
|
|
273
273
|
"src/core/image-motion.ts": "734111593a1e287ad3407e7c28b50e957f3d83c4678d66509339e7c11fc6f6cc",
|
|
274
|
-
"src/core/layers.ts": "
|
|
274
|
+
"src/core/layers.ts": "385b8350ce5e6c7092a0b67a5ecc3b050ecbae06dc85d8b3eb9b63fc70bcdf06",
|
|
275
275
|
"src/core/motion-driver.ts": "bac2872987d9843f118fa648bc92593c87de287fcc7bfb716fb2f686da362f90",
|
|
276
276
|
"src/core/motion.ts": "76b7f9dd552265a763e6c460d6ce556385e970dcd12adaba77b0c238d1d87863",
|
|
277
277
|
"src/core/overlay-surface.ts": "4d2ac300dca02d158f4522369d97dc767068059439c18610c30a20876cd94e52",
|
|
@@ -280,19 +280,19 @@
|
|
|
280
280
|
"src/core/preview-navigation.ts": "8de5cc0f62b16b0590f212de6f7bb234859ec483a612673a87dd8fe9e260a813",
|
|
281
281
|
"src/core/ripple.ts": "cc5f14ee2e68c082ef26599e5945a7689551da134d34a97934876686d01650e9",
|
|
282
282
|
"src/core/scroll-motion.ts": "408ba816cba1c142e84c9e7154fca6aba88da0dd4b5a21005f59e3e1f03c0eef",
|
|
283
|
-
"src/core/scrollbar.ts": "
|
|
283
|
+
"src/core/scrollbar.ts": "511e9edff132554d0799a7647b2b3e865a772d5fed2e6300a623073887d8b763",
|
|
284
284
|
"src/core/speed-dial.ts": "7d2ebc5320df0357801dd58361701d51b34f71d67822098d64fea5748420962f",
|
|
285
285
|
"src/index.ts": "bb98e0c5833fea023d5b9300ee3920e1b95274a48931a41e0d562e4f2cc96f9e",
|
|
286
286
|
"src/styles/base.css": "d98f2da531be0725d33d4a151ee326b22cafe2401418fda0f2c9945beaed8d8b",
|
|
287
|
-
"src/styles/content.css": "
|
|
287
|
+
"src/styles/content.css": "abdcefc4f02ac1b8904b7db6e4bad6a0477e83f23fae18771dcbd723dfa94a66",
|
|
288
288
|
"src/styles/date-picker.css": "bfb9dd345b7041c059ca16b56e3e08f5cc575b069f82351b6a783bb42ad1fa8f",
|
|
289
289
|
"src/styles/forms.css": "35bfbe5a1d729d89dddc9c62882d1971cc12b0859131d46d356e044d20bdcae5",
|
|
290
290
|
"src/styles/navibar.css": "9c0836ab5e069cfe15d0f19a33af524e5a35a71a5cd364fc95355110a8dfcdd5",
|
|
291
291
|
"src/styles/overlays.css": "0ec43e4fb4857439b727c7827751b8cbefed7ee95f93642330bcfa41eee89c1b",
|
|
292
292
|
"src/styles/ripple.css": "a16d40e8b7946dfdffa332ac2456cea6a9bf1cf7f5ace3ed5e9ae21afdeb1c45",
|
|
293
|
-
"src/styles/scrollbar.css": "
|
|
293
|
+
"src/styles/scrollbar.css": "8c5f874a9bc46d13390d9330cd968289cb414598344a8718ca39e0537ebcaef9",
|
|
294
294
|
"playground/App.vue": "f85c256ed21601ccb0681a3592237e357d48ec02af371491b90a83a32203828e",
|
|
295
|
-
"playground/ComponentDemo.vue": "
|
|
295
|
+
"playground/ComponentDemo.vue": "a599154820d13ffb19e9a661c0e208f1b0ef79a664f3a372eb7735fa486804cd",
|
|
296
296
|
"playground/catalog.ts": "a27a875d316bcc8d0be523195a0b4e8e21279c7f33c8d2f024efaa8721e1518e",
|
|
297
297
|
"playground/components/ComponentIndex.vue": "7938a3fe3efb521d6efab4fe64edef06d40f22ecd68481d20427a24c39b6683f",
|
|
298
298
|
"playground/components/MasonryFeed.vue": "4882725da4211e2d39b782c839c7581a0672c815d12f146a8aee186df534ac68",
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"playground/editor/handbooks/apple-image.ts": "edf3d95a7cdb9ee4823bcd636206f11e8a3337392e89804e49a4ec9653e8dc90",
|
|
346
346
|
"playground/editor/handbooks/apple-infinite-scroll.ts": "64be93797b5143507af35f551de49aea13a38d73242444487d80420aae0b6b98",
|
|
347
347
|
"playground/editor/handbooks/apple-link.ts": "bb41394f33660bdc3f79e3d2c97036633b7b99190058d3c5247c2b628f47e96b",
|
|
348
|
-
"playground/editor/handbooks/apple-list.ts": "
|
|
348
|
+
"playground/editor/handbooks/apple-list.ts": "6e124c3d8887f2be51e5a21f7810d8bb756dd28ba36d07f97e1c1c1cb25ed7be",
|
|
349
349
|
"playground/editor/handbooks/apple-menu.ts": "9905dafa75209317f942d960ebebe42edefe17f6d478e315bff9d44efdc8b300",
|
|
350
350
|
"playground/editor/handbooks/apple-navibar.ts": "2d4cd4241c30bd09ec6f4167c7ac9fd50c61809df6cc735bc0b5ad8cd075fec3",
|
|
351
351
|
"playground/editor/handbooks/apple-otp-input.ts": "6179a1828edb3b176480123466b5e1c8576569090c0480392dd88542a672f8bd",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"playground/editor/handbooks/apple-pull-refresh.ts": "8c74a11fdebaa63cde11103f556649f8e903c4905ce0f16f19a769878119c4de",
|
|
358
358
|
"playground/editor/handbooks/apple-radio-group.ts": "23282a94a6ff4353d0b83c5c6f1611234f54e3444ef4972176221fe2214e960b",
|
|
359
359
|
"playground/editor/handbooks/apple-rate.ts": "48c426bf19b5fdd9ef9d7b46bd7f13e68c57fc7370c296bb248f223cef087e8b",
|
|
360
|
-
"playground/editor/handbooks/apple-scroll-bar.ts": "
|
|
360
|
+
"playground/editor/handbooks/apple-scroll-bar.ts": "cc1462103c36b4046472c6866bd34c05a8747b566f310ab9df9b75be663063c5",
|
|
361
361
|
"playground/editor/handbooks/apple-search.ts": "82fc284aa354b33ede41e44f594b256a7a410466a41bd2fdfcdc28dab7cbe6ec",
|
|
362
362
|
"playground/editor/handbooks/apple-segmented-control.ts": "3fad2e7d2b04a3d9c45368ca2ff1f8bf6ae2f0b4c944bd4813aa4cbe828f8218",
|
|
363
363
|
"playground/editor/handbooks/apple-select.ts": "879bdf454b501db67cce4692e95f84b3f63636e430a19eb6c0e59e39a7d14560",
|
|
@@ -411,12 +411,12 @@
|
|
|
411
411
|
"public/images/snow.jpg": "59fec6d2bbf9df11b7c697c57a253b7bd4b5a097489ce1017fb5209b9ee54b8e",
|
|
412
412
|
"public/images/sunset.jpg": "4ee91e88f1e341143a807ef48fdfc24d63aa045d99351b4ea8ad7efcfef6ef9b",
|
|
413
413
|
"public/images/waterfall.jpg": "cfd55ff5f41d3a58e91793d0e26a9ca90c86760aa401da033fbfa77d3364f238",
|
|
414
|
-
"docs/COMPONENTS.md": "
|
|
414
|
+
"docs/COMPONENTS.md": "d7b2a217a57a4790765266e66f5aa00157cf75e950dec9daaf88b12cc6e3fb72",
|
|
415
415
|
"docs/INPUT-WORKSHOP.md": "82ea6db156d2d9be4cfee233675b107c837aaa30a849f92010e988e1df7ce3a0",
|
|
416
416
|
"docs/PLAYGROUND-TEMPLATE.md": "e476d6622e89d8cb04d9acdd54c090e5d559d666bb49f266bcf36d3f3bf8fe67",
|
|
417
417
|
"docs/VALIDATION.md": "3c1755f4699d6b7d8febb44b2b0b00eb416b86559c26d8b69e46a1c98271af5f",
|
|
418
|
-
"README.md": "
|
|
419
|
-
"package.json": "
|
|
418
|
+
"README.md": "25b70a5feb2de4642940d6e25ec7e21b30ffb6efc726fbbe9c4aead234e90688",
|
|
419
|
+
"package.json": "b1e1f11cc08e2610c8aaa6dcb4a02b3257169e61174045a927c5ff3ae1ef12f7",
|
|
420
420
|
"index.html": "75f6d93e3962ddca97a13b666a04d98ba9b263b6c288171383db764215034fea",
|
|
421
421
|
"vite.config.ts": "988aa18f3adf428ee3e82a41422bf76771d91b7fc3738ed36d731a497022f049",
|
|
422
422
|
"vite.lib.config.ts": "d7bc7e47f18ea4257eb1dafd8ed895f47cad8f756157cfa9a6e98b30086b1c72",
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="component-demo" :class="demoClass" :data-component="name">
|
|
3
3
|
<apple-stack v-if="name === 'AppleButton'" direction="row" align="center">
|
|
4
|
-
<apple-button @click="notify('操作已完成')">继续</apple-button>
|
|
5
|
-
<apple-button variant="secondary" @click="notify('已选择次要操作')">稍后再说</apple-button>
|
|
6
|
-
<apple-button variant="outline" @click="notify('已加入收藏')">加入收藏</apple-button>
|
|
7
|
-
<apple-
|
|
8
|
-
<apple-button
|
|
9
|
-
<apple-
|
|
4
|
+
<apple-tooltip text="primary"><apple-button @click="notify('操作已完成')">继续</apple-button></apple-tooltip>
|
|
5
|
+
<apple-tooltip text="secondary"><apple-button variant="secondary" @click="notify('已选择次要操作')">稍后再说</apple-button></apple-tooltip>
|
|
6
|
+
<apple-tooltip text="outline"><apple-button variant="outline" @click="notify('已加入收藏')">加入收藏</apple-button></apple-tooltip>
|
|
7
|
+
<apple-tooltip text="borderless"><apple-button variant="borderless" @click="notify('已选择无边框操作')">无边框</apple-button></apple-tooltip>
|
|
8
|
+
<apple-tooltip text='AppleLink · as="button"'><apple-link as="button" :icon="icons.ArrowUpRight" @click="notify('正在查看详情')">了解更多</apple-link></apple-tooltip>
|
|
9
|
+
<apple-tooltip text="primary · iconOnly"><apple-button :icon="icons.Plus" icon-only label="添加" @click="notify('已添加')" /></apple-tooltip>
|
|
10
|
+
<apple-tooltip text="primary · loading"><apple-button loading>处理中</apple-button></apple-tooltip>
|
|
11
|
+
<apple-tooltip text="primary · disabled"><apple-button disabled>暂不可用</apple-button></apple-tooltip>
|
|
10
12
|
</apple-stack>
|
|
11
13
|
<apple-stack v-else-if="name === 'AppleLink'" direction="row" align="center">
|
|
12
|
-
<apple-link href="https://www.apple.com.cn/" external>Apple 官网</apple-link>
|
|
13
|
-
<apple-link href="https://www.apple.com.cn/accessibility/" external>辅助功能</apple-link>
|
|
14
|
-
<apple-link disabled external>暂不可用</apple-link>
|
|
14
|
+
<apple-tooltip text="external"><apple-link href="https://www.apple.com.cn/" external>Apple 官网</apple-link></apple-tooltip>
|
|
15
|
+
<apple-tooltip text="external"><apple-link href="https://www.apple.com.cn/accessibility/" external>辅助功能</apple-link></apple-tooltip>
|
|
16
|
+
<apple-tooltip text="external · disabled"><apple-link disabled external>暂不可用</apple-link></apple-tooltip>
|
|
15
17
|
</apple-stack>
|
|
16
18
|
<apple-stack v-else-if="name === 'AppleSearch'">
|
|
17
19
|
<apple-search v-model="searchText" label="搜索设置" placeholder="搜索设置" @search="notify(searchText ? `正在搜索:${searchText}` : '显示全部设置')" />
|
|
@@ -28,6 +28,12 @@ export default defineHandbook({
|
|
|
28
28
|
"default": "false",
|
|
29
29
|
"description": "使用 button 单选并更新 modelValue;false 时有 href 的项渲染为链接,其余作为内容。"
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
"name": "border",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": "false",
|
|
35
|
+
"description": "显示列表项之间的分隔线;默认不显示。"
|
|
36
|
+
},
|
|
31
37
|
{
|
|
32
38
|
"name": "disabled",
|
|
33
39
|
"type": "boolean",
|
|
@@ -11,5 +11,5 @@ export default defineHandbook({
|
|
|
11
11
|
events: [{ name: 'interaction', type: '() => void', description: '拖动、点击轨道、键盘或滚轮操作时触发。' }],
|
|
12
12
|
slots: [],
|
|
13
13
|
methods: [{ name: 'refresh()', type: '() => void', description: '重新测量目标及滚动位置。尺寸、内容和滚动变化默认自动同步。' }],
|
|
14
|
-
notes: ['AppleProvider 默认启用全局接管,无需逐个包裹内容。滚动条使用 fixed,不占布局空间;z-index
|
|
14
|
+
notes: ['AppleProvider 默认启用全局接管,无需逐个包裹内容。滚动条使用 fixed,不占布局空间;z-index 跟随目标及祖先层级,默认为 0,弹窗内留在所属弹层上下文。', '原本主动隐藏滚动条的轮播、标签栏与日期滚轮保持原有交互;data-apple-scrollbar-ignore 可排除指定容器。'],
|
|
15
15
|
})
|