king-design-analyzer 2.1.9 → 2.2.1
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/components/actions.json +109 -0
- package/components/advancedset.json +128 -0
- package/components/affix.json +8 -0
- package/components/aksk.json +172 -0
- package/components/anchor.json +220 -0
- package/components/anchorlink.json +111 -0
- package/components/az.json +15 -2
- package/components/badge.json +8 -0
- package/components/billtypes.json +14 -2
- package/components/breadcrumb.json +9 -1
- package/components/button.json +192 -0
- package/components/buttonlink.json +74 -0
- package/components/card.json +14 -4
- package/components/cardcol.json +142 -0
- package/components/cardcols.json +121 -0
- package/components/cardcontent.json +20 -3
- package/components/cardtabs.json +172 -0
- package/components/carousel.json +7 -0
- package/components/cascader.json +576 -368
- package/components/checkbox.json +51 -4
- package/components/cidrinput.json +140 -0
- package/components/code.json +8 -1
- package/components/collapse.json +335 -341
- package/components/colorpicker.json +217 -0
- package/components/configprovider.json +96 -0
- package/components/copy.json +7 -0
- package/components/copyhover.json +111 -0
- package/components/copyrow.json +125 -0
- package/components/datepicker.json +656 -524
- package/components/description.json +98 -0
- package/components/descriptions.json +10 -3
- package/components/diagram.json +295 -0
- package/components/dialog.json +526 -455
- package/components/divider.json +9 -1
- package/components/drawer.json +603 -558
- package/components/dropdown.json +464 -384
- package/components/duration.json +125 -0
- package/components/editable.json +66 -0
- package/components/ellipsis.json +34 -1
- package/components/filtertablefieldsdialog.json +128 -0
- package/components/flex.json +152 -0
- package/components/form.json +143 -3
- package/components/formiteminput.json +214 -0
- package/components/formitemspinner.json +213 -0
- package/components/formitemswitch.json +185 -0
- package/components/formitemtableconfigs.json +210 -0
- package/components/grid.json +7 -0
- package/components/header.json +165 -0
- package/components/icon.json +13 -1
- package/components/icontooltip.json +19 -1
- package/components/input.json +196 -8
- package/components/instancelist.json +194 -0
- package/components/instancenum.json +196 -0
- package/components/ipinput.json +117 -0
- package/components/kspstatus.json +205 -0
- package/components/kvcode.json +120 -0
- package/components/layoutcontent.json +24 -3
- package/components/layoutlistcontent.json +157 -0
- package/components/layoutpermissioncontent.json +156 -0
- package/components/layoutstandardlist.json +276 -0
- package/components/layouttabs.json +168 -0
- package/components/lazymount.json +87 -0
- package/components/lazyteleport.json +119 -0
- package/components/menu.json +11 -3
- package/components/notification.json +351 -0
- package/components/pagination.json +12 -0
- package/components/paginationplus.json +30 -3
- package/components/password.json +121 -0
- package/components/popover.json +457 -437
- package/components/projects.json +129 -0
- package/components/protable.json +99 -8
- package/components/queuevisualrange.json +110 -0
- package/components/radio.json +82 -2
- package/components/rate.json +200 -0
- package/components/region.json +14 -2
- package/components/scrollselect.json +140 -0
- package/components/search.json +221 -0
- package/components/searchinput.json +132 -0
- package/components/searchitems.json +215 -0
- package/components/searchselect.json +195 -0
- package/components/select.json +749 -666
- package/components/sidebar.json +198 -0
- package/components/skeleton.json +234 -0
- package/components/slider.json +12 -2
- package/components/spin.json +10 -2
- package/components/spinner.json +419 -429
- package/components/split.json +263 -0
- package/components/sshkeys.json +138 -0
- package/components/status.json +60 -3
- package/components/steps.json +7 -0
- package/components/switch.json +12 -3
- package/components/table.json +24 -2
- package/components/tablecolumnid.json +14 -2
- package/components/tabs.json +14 -2
- package/components/tag.json +8 -5
- package/components/timeline.json +215 -0
- package/components/timepicker.json +147 -3
- package/components/timerange.json +262 -0
- package/components/tip.json +27 -0
- package/components/tooltip.json +492 -395
- package/components/tour.json +418 -372
- package/components/transfer.json +79 -8
- package/components/tree.json +28 -5
- package/components/treeselect.json +612 -475
- package/components/upload.json +474 -473
- package/components/vdialog.json +309 -0
- package/components/vdrawer.json +335 -0
- package/components/virtuallist.json +7 -0
- package/dist/ast/index.d.mts +65 -2
- package/dist/ast/index.d.ts +65 -2
- package/dist/ast/index.js +4 -3
- package/dist/ast/index.mjs +2 -1
- package/dist/chunk-4OTQAQ6J.mjs +341 -0
- package/dist/{chunk-F26GUCGG.js → chunk-4WXOYU2N.js} +32 -9
- package/dist/chunk-6HOIRUQB.mjs +409 -0
- package/dist/chunk-DHLWNT53.js +364 -0
- package/dist/{chunk-H2ET6MMM.mjs → chunk-IPJJMPOO.mjs} +155 -66
- package/dist/{chunk-WYSRJVX4.js → chunk-JJ6AB4ZH.js} +2 -2
- package/dist/{chunk-2W6OCG2S.js → chunk-JNRGUR3O.js} +155 -67
- package/dist/chunk-KF5YBEM5.js +143 -0
- package/dist/{chunk-OJOHB64C.mjs → chunk-LRTDTFFQ.mjs} +28 -5
- package/dist/{chunk-DSWKLUIX.mjs → chunk-NZL6T22V.mjs} +1 -1
- package/dist/chunk-QC6VTSA3.mjs +117 -0
- package/dist/chunk-V5N65MRP.js +411 -0
- package/dist/full/index.d.mts +2 -0
- package/dist/full/index.d.ts +2 -0
- package/dist/full/index.js +7 -6
- package/dist/full/index.mjs +5 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -13
- package/dist/index.mjs +6 -5
- package/dist/metadata/index.d.mts +38 -3
- package/dist/metadata/index.d.ts +38 -3
- package/dist/metadata/index.js +26 -16
- package/dist/metadata/index.mjs +26 -15
- package/dist/resolve-BsLBxlBi.d.mts +24 -0
- package/dist/resolve-BsLBxlBi.d.ts +24 -0
- package/dist/runtime/index.d.mts +2 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +4 -4
- package/dist/runtime/index.mjs +2 -2
- package/dist/shared/index.d.mts +10 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.js +23 -0
- package/dist/shared/index.mjs +2 -0
- package/dist/static/index.js +5 -5
- package/dist/static/index.mjs +2 -2
- package/docs_for_llm/actions.doc.md +87 -0
- package/docs_for_llm/advancedset.doc.md +98 -0
- package/docs_for_llm/affix.doc.md +20 -7
- package/docs_for_llm/aksk.doc.md +111 -0
- package/docs_for_llm/anchor.doc.md +155 -0
- package/docs_for_llm/anchorlink.doc.md +75 -0
- package/docs_for_llm/az.doc.md +17 -11
- package/docs_for_llm/badge.doc.md +11 -5
- package/docs_for_llm/billtypes.doc.md +17 -11
- package/docs_for_llm/breadcrumb.doc.md +80 -4
- package/docs_for_llm/button.doc.md +91 -18
- package/docs_for_llm/buttonlink.doc.md +64 -0
- package/docs_for_llm/card.doc.md +58 -8
- package/docs_for_llm/cardcol.doc.md +78 -0
- package/docs_for_llm/cardcols.doc.md +84 -0
- package/docs_for_llm/cardcontent.doc.md +31 -10
- package/docs_for_llm/cardtabs.doc.md +106 -0
- package/docs_for_llm/carousel.doc.md +79 -7
- package/docs_for_llm/cascader.doc.md +106 -23
- package/docs_for_llm/checkbox.doc.md +25 -13
- package/docs_for_llm/cidrinput.doc.md +83 -0
- package/docs_for_llm/code.doc.md +22 -11
- package/docs_for_llm/collapse.doc.md +147 -14
- package/docs_for_llm/colorpicker.doc.md +104 -0
- package/docs_for_llm/configprovider.doc.md +77 -0
- package/docs_for_llm/copy.doc.md +15 -13
- package/docs_for_llm/copyhover.doc.md +59 -0
- package/docs_for_llm/copyrow.doc.md +80 -0
- package/docs_for_llm/datepicker.doc.md +66 -35
- package/docs_for_llm/description.doc.md +75 -0
- package/docs_for_llm/descriptions.doc.md +122 -10
- package/docs_for_llm/diagram.doc.md +343 -0
- package/docs_for_llm/dialog.doc.md +97 -77
- package/docs_for_llm/divider.doc.md +14 -7
- package/docs_for_llm/drawer.doc.md +114 -69
- package/docs_for_llm/dropdown.doc.md +290 -22
- package/docs_for_llm/duration.doc.md +76 -0
- package/docs_for_llm/editable.doc.md +36 -14
- package/docs_for_llm/ellipsis.doc.md +10 -5
- package/docs_for_llm/filtertablefieldsdialog.doc.md +99 -0
- package/docs_for_llm/flex.doc.md +83 -0
- package/docs_for_llm/form.doc.md +196 -18
- package/docs_for_llm/formiteminput.doc.md +128 -0
- package/docs_for_llm/formitemspinner.doc.md +105 -0
- package/docs_for_llm/formitemswitch.doc.md +113 -0
- package/docs_for_llm/formitemtableconfigs.doc.md +95 -0
- package/docs_for_llm/grid.doc.md +78 -5
- package/docs_for_llm/header.doc.md +114 -0
- package/docs_for_llm/icon.doc.md +12 -8
- package/docs_for_llm/icontooltip.doc.md +121 -0
- package/docs_for_llm/input.doc.md +199 -41
- package/docs_for_llm/instancelist.doc.md +113 -0
- package/docs_for_llm/instancenum.doc.md +95 -0
- package/docs_for_llm/ipinput.doc.md +77 -0
- package/docs_for_llm/kspstatus.doc.md +82 -0
- package/docs_for_llm/kvcode.doc.md +76 -0
- package/docs_for_llm/layoutcontent.doc.md +54 -17
- package/docs_for_llm/layoutlistcontent.doc.md +168 -0
- package/docs_for_llm/layoutpermissioncontent.doc.md +93 -0
- package/docs_for_llm/layoutstandardlist.doc.md +129 -0
- package/docs_for_llm/layouttabs.doc.md +101 -0
- package/docs_for_llm/lazymount.doc.md +82 -0
- package/docs_for_llm/lazyteleport.doc.md +85 -0
- package/docs_for_llm/menu.doc.md +139 -14
- package/docs_for_llm/message.doc.md +93 -10
- package/docs_for_llm/notification.doc.md +214 -0
- package/docs_for_llm/pagination.doc.md +30 -17
- package/docs_for_llm/paginationplus.doc.md +31 -10
- package/docs_for_llm/password.doc.md +86 -0
- package/docs_for_llm/popover.doc.md +24 -55
- package/docs_for_llm/progress.doc.md +13 -10
- package/docs_for_llm/projects.doc.md +91 -0
- package/docs_for_llm/protable.doc.md +98 -15
- package/docs_for_llm/queuevisualrange.doc.md +78 -0
- package/docs_for_llm/radio.doc.md +23 -8
- package/docs_for_llm/rate.doc.md +127 -0
- package/docs_for_llm/region.doc.md +25 -13
- package/docs_for_llm/scrollselect.doc.md +90 -0
- package/docs_for_llm/search.doc.md +120 -0
- package/docs_for_llm/searchinput.doc.md +111 -0
- package/docs_for_llm/searchitems.doc.md +116 -0
- package/docs_for_llm/searchselect.doc.md +126 -0
- package/docs_for_llm/select.doc.md +208 -49
- package/docs_for_llm/sidebar.doc.md +133 -0
- package/docs_for_llm/skeleton.doc.md +152 -0
- package/docs_for_llm/slider.doc.md +42 -22
- package/docs_for_llm/spin.doc.md +18 -6
- package/docs_for_llm/spinner.doc.md +28 -18
- package/docs_for_llm/split.doc.md +170 -0
- package/docs_for_llm/sshkeys.doc.md +88 -0
- package/docs_for_llm/status.doc.md +14 -9
- package/docs_for_llm/steps.doc.md +81 -7
- package/docs_for_llm/switch.doc.md +32 -16
- package/docs_for_llm/table.doc.md +317 -55
- package/docs_for_llm/tablecolumnid.doc.md +36 -16
- package/docs_for_llm/tabs.doc.md +117 -12
- package/docs_for_llm/tag.doc.md +167 -15
- package/docs_for_llm/timeline.doc.md +187 -0
- package/docs_for_llm/timepicker.doc.md +74 -36
- package/docs_for_llm/timerange.doc.md +157 -0
- package/docs_for_llm/tip.doc.md +50 -11
- package/docs_for_llm/tooltip.doc.md +99 -27
- package/docs_for_llm/tour.doc.md +125 -28
- package/docs_for_llm/transfer.doc.md +99 -33
- package/docs_for_llm/tree.doc.md +129 -24
- package/docs_for_llm/treeselect.doc.md +101 -44
- package/docs_for_llm/upload.doc.md +63 -32
- package/docs_for_llm/useCRUD.doc.md +49 -0
- package/docs_for_llm/useCountdown.doc.md +43 -0
- package/docs_for_llm/useDetail.doc.md +48 -0
- package/docs_for_llm/useDialog.doc.md +46 -0
- package/docs_for_llm/useEntity.doc.md +45 -0
- package/docs_for_llm/useEventListener.doc.md +44 -0
- package/docs_for_llm/useFalseUntilTruthy.doc.md +41 -0
- package/docs_for_llm/useGetCopyAuthText.doc.md +35 -0
- package/docs_for_llm/useGetUserPermission.doc.md +43 -0
- package/docs_for_llm/useGroup.doc.md +48 -0
- package/docs_for_llm/useIdEntities.doc.md +48 -0
- package/docs_for_llm/useIdEntity.doc.md +103 -0
- package/docs_for_llm/useInterval.doc.md +43 -0
- package/docs_for_llm/useLayoutStandardList.doc.md +38 -0
- package/docs_for_llm/useMessage.doc.md +46 -0
- package/docs_for_llm/useModifyCache.doc.md +37 -0
- package/docs_for_llm/useOpenDialog.doc.md +41 -0
- package/docs_for_llm/usePagination.doc.md +60 -0
- package/docs_for_llm/usePersist.doc.md +54 -0
- package/docs_for_llm/usePoll.doc.md +41 -0
- package/docs_for_llm/useRoutePlus.doc.md +34 -0
- package/docs_for_llm/useRouterPlus.doc.md +34 -0
- package/docs_for_llm/useSearch.doc.md +68 -0
- package/docs_for_llm/useShell.doc.md +43 -0
- package/docs_for_llm/useSkip.doc.md +41 -0
- package/docs_for_llm/useStorageIdEntity.doc.md +46 -0
- package/docs_for_llm/useStore.doc.md +34 -0
- package/docs_for_llm/useTable.doc.md +57 -0
- package/docs_for_llm/useTableGroup.doc.md +47 -0
- package/docs_for_llm/useTableSort.doc.md +40 -0
- package/docs_for_llm/useToState.doc.md +112 -0
- package/docs_for_llm/useUser.doc.md +38 -0
- package/docs_for_llm/useValidForm.doc.md +41 -0
- package/docs_for_llm/vdialog.doc.md +154 -0
- package/docs_for_llm/vdrawer.doc.md +148 -0
- package/docs_for_llm/virtuallist.doc.md +157 -3
- package/hooks/useCRUD.json +61 -0
- package/hooks/useCountdown.json +49 -0
- package/hooks/useDetail.json +67 -0
- package/hooks/useDialog.json +49 -0
- package/hooks/useEntity.json +61 -0
- package/hooks/useEventListener.json +61 -0
- package/hooks/useFalseUntilTruthy.json +43 -0
- package/hooks/useGetCopyAuthText.json +36 -0
- package/hooks/useGetUserPermission.json +55 -0
- package/hooks/useGroup.json +49 -0
- package/hooks/useIdEntities.json +61 -0
- package/hooks/useInterval.json +55 -0
- package/hooks/useLayoutStandardList.json +36 -0
- package/hooks/useMessage.json +73 -0
- package/hooks/useModifyCache.json +36 -0
- package/hooks/useOpenDialog.json +43 -0
- package/hooks/usePagination.json +49 -0
- package/hooks/usePersist.json +61 -0
- package/hooks/usePoll.json +43 -0
- package/hooks/useRoutePlus.json +36 -0
- package/hooks/useRouterPlus.json +36 -0
- package/hooks/useSearch.json +56 -0
- package/hooks/useShell.json +49 -0
- package/hooks/useSkip.json +43 -0
- package/hooks/useStorageIdEntity.json +67 -0
- package/hooks/useStore.json +36 -0
- package/hooks/useTable.json +49 -0
- package/hooks/useTableGroup.json +43 -0
- package/hooks/useTableSort.json +43 -0
- package/hooks/useUser.json +36 -0
- package/hooks/useValidForm.json +43 -0
- package/package.json +14 -8
- package/dist/chunk-D3Y6FGWA.js +0 -153
- package/dist/chunk-HPAUCD5I.js +0 -156
- package/dist/chunk-L4DS3EXI.mjs +0 -133
- package/dist/chunk-NZ6TLWMD.mjs +0 -151
package/components/checkbox.json
CHANGED
|
@@ -70,7 +70,10 @@
|
|
|
70
70
|
},
|
|
71
71
|
"required": false,
|
|
72
72
|
"default": "undefined",
|
|
73
|
-
"usageExample": "<Checkbox name=\"agreement\"></Checkbox>"
|
|
73
|
+
"usageExample": "<Checkbox name=\"agreement\"></Checkbox>",
|
|
74
|
+
"tags": [
|
|
75
|
+
"native"
|
|
76
|
+
]
|
|
74
77
|
},
|
|
75
78
|
{
|
|
76
79
|
"name": "required",
|
|
@@ -81,7 +84,10 @@
|
|
|
81
84
|
},
|
|
82
85
|
"required": false,
|
|
83
86
|
"default": "undefined",
|
|
84
|
-
"usageExample": "<Checkbox required></Checkbox>"
|
|
87
|
+
"usageExample": "<Checkbox required></Checkbox>",
|
|
88
|
+
"tags": [
|
|
89
|
+
"native"
|
|
90
|
+
]
|
|
85
91
|
},
|
|
86
92
|
{
|
|
87
93
|
"name": "form",
|
|
@@ -92,7 +98,10 @@
|
|
|
92
98
|
},
|
|
93
99
|
"required": false,
|
|
94
100
|
"default": "undefined",
|
|
95
|
-
"usageExample": "<Checkbox form=\"myForm\"></Checkbox>"
|
|
101
|
+
"usageExample": "<Checkbox form=\"myForm\"></Checkbox>",
|
|
102
|
+
"tags": [
|
|
103
|
+
"native"
|
|
104
|
+
]
|
|
96
105
|
},
|
|
97
106
|
{
|
|
98
107
|
"name": "autofocus",
|
|
@@ -103,7 +112,38 @@
|
|
|
103
112
|
},
|
|
104
113
|
"required": false,
|
|
105
114
|
"default": "undefined",
|
|
106
|
-
"usageExample": "<Checkbox autofocus></Checkbox>"
|
|
115
|
+
"usageExample": "<Checkbox autofocus></Checkbox>",
|
|
116
|
+
"tags": [
|
|
117
|
+
"native"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "autocomplete",
|
|
122
|
+
"description": "原生 autocomplete 属性,指定浏览器自动补全行为",
|
|
123
|
+
"type": {
|
|
124
|
+
"raw": "string",
|
|
125
|
+
"kind": "string"
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"default": "undefined",
|
|
129
|
+
"usageExample": "<Checkbox autocomplete=\"off\"></Checkbox>",
|
|
130
|
+
"tags": [
|
|
131
|
+
"native"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "maxlength",
|
|
136
|
+
"description": "原生 maxlength 属性,组件透传到内部 input 元素",
|
|
137
|
+
"type": {
|
|
138
|
+
"raw": "number | string",
|
|
139
|
+
"kind": "union"
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"default": "undefined",
|
|
143
|
+
"usageExample": "<Checkbox :maxlength=\"1\"></Checkbox>",
|
|
144
|
+
"tags": [
|
|
145
|
+
"native"
|
|
146
|
+
]
|
|
107
147
|
}
|
|
108
148
|
],
|
|
109
149
|
"events": [
|
|
@@ -291,6 +331,13 @@
|
|
|
291
331
|
"批量选择",
|
|
292
332
|
"权限勾选"
|
|
293
333
|
],
|
|
334
|
+
"typeDefinitions": [
|
|
335
|
+
{
|
|
336
|
+
"name": "CheckboxValue",
|
|
337
|
+
"definition": "type CheckboxValue = boolean | string | number",
|
|
338
|
+
"description": "复选框绑定值类型,可使用布尔值或自定义 trueValue / falseValue。"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
294
341
|
"relatedComponents": [
|
|
295
342
|
"Radio",
|
|
296
343
|
"Switch"
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cidrinput",
|
|
3
|
+
"name": "CidrInput",
|
|
4
|
+
"displayName": "CIDR 输入框",
|
|
5
|
+
"category": "form",
|
|
6
|
+
"description": "用于录入网段 CIDR 的业务输入组件,把 IP 地址与掩码选择组合在一起,常用于 VPC、子网和安全策略配置。",
|
|
7
|
+
"importStatement": "import { CidrInput } from '@ksyun-internal/versatile';",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"name": "modelValue",
|
|
11
|
+
"description": "CIDR 值,如 192.168.0.0/24",
|
|
12
|
+
"type": {
|
|
13
|
+
"raw": "string",
|
|
14
|
+
"kind": "string"
|
|
15
|
+
},
|
|
16
|
+
"required": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "vpcCidr",
|
|
20
|
+
"description": "所属 VPC 的 CIDR,用于约束和提示",
|
|
21
|
+
"type": {
|
|
22
|
+
"raw": "string",
|
|
23
|
+
"kind": "string"
|
|
24
|
+
},
|
|
25
|
+
"required": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "disabled",
|
|
29
|
+
"description": "禁用状态或禁用分段配置",
|
|
30
|
+
"type": {
|
|
31
|
+
"raw": "boolean | any[]",
|
|
32
|
+
"kind": "union"
|
|
33
|
+
},
|
|
34
|
+
"required": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "tooltip",
|
|
38
|
+
"description": "各分段 tooltip 配置",
|
|
39
|
+
"type": {
|
|
40
|
+
"raw": "any[]",
|
|
41
|
+
"kind": "array"
|
|
42
|
+
},
|
|
43
|
+
"required": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "maskRange",
|
|
47
|
+
"description": "可选掩码范围",
|
|
48
|
+
"type": {
|
|
49
|
+
"raw": "number[]",
|
|
50
|
+
"kind": "array"
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"default": "[0, 32]"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"events": [
|
|
57
|
+
{
|
|
58
|
+
"name": "update:modelValue",
|
|
59
|
+
"vueEventName": "@update:modelValue",
|
|
60
|
+
"description": "CIDR 字符串变化时触发,可直接同步到网络配置表单。",
|
|
61
|
+
"params": [
|
|
62
|
+
{
|
|
63
|
+
"name": "value",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "当前输入的 CIDR 字符串。",
|
|
66
|
+
"optional": true
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"slots": [],
|
|
72
|
+
"methods": [],
|
|
73
|
+
"examples": [
|
|
74
|
+
{
|
|
75
|
+
"id": "cidrinput_subnet",
|
|
76
|
+
"title": "子网网段录入",
|
|
77
|
+
"description": "限制掩码范围,并结合 VPC 网段给出约束。",
|
|
78
|
+
"difficulty": "easy",
|
|
79
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { CidrInput } from '@ksyun-internal/versatile';\n\nconst cidr = ref('192.168.1.0/24');\n</script>\n\n<template>\n <CidrInput\n v-model=\"cidr\"\n vpc-cidr=\"192.168.0.0/16\"\n :mask-range=\"[16, 28]\"\n />\n</template>",
|
|
80
|
+
"tags": [
|
|
81
|
+
"network",
|
|
82
|
+
"cidr"
|
|
83
|
+
],
|
|
84
|
+
"usedProps": [
|
|
85
|
+
"modelValue",
|
|
86
|
+
"vpcCidr",
|
|
87
|
+
"maskRange"
|
|
88
|
+
],
|
|
89
|
+
"usedEvents": [
|
|
90
|
+
"update:modelValue"
|
|
91
|
+
],
|
|
92
|
+
"usedMethods": [],
|
|
93
|
+
"scenario": "创建子网时录入并校验目标网段。"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "cidrinput_with_tooltips",
|
|
97
|
+
"title": "为分段输入补充提示",
|
|
98
|
+
"description": "给 CIDR 各段提供 tooltip,帮助用户理解输入规则。",
|
|
99
|
+
"difficulty": "medium",
|
|
100
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { CidrInput } from '@ksyun-internal/versatile';\n\nconst cidr = ref('10.0.0.0/24');\nconst tooltip = ['网络段', '子网段', '主机段', '预留', '掩码长度'];\n</script>\n\n<template>\n <CidrInput v-model=\"cidr\" :tooltip=\"tooltip\" :mask-range=\"[24, 28]\" />\n</template>",
|
|
101
|
+
"tags": [
|
|
102
|
+
"network",
|
|
103
|
+
"tooltip"
|
|
104
|
+
],
|
|
105
|
+
"usedProps": [
|
|
106
|
+
"modelValue",
|
|
107
|
+
"tooltip",
|
|
108
|
+
"maskRange"
|
|
109
|
+
],
|
|
110
|
+
"usedEvents": [
|
|
111
|
+
"update:modelValue"
|
|
112
|
+
],
|
|
113
|
+
"usedMethods": [],
|
|
114
|
+
"scenario": "在网络配置页中用提示文案降低 CIDR 输入门槛。"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"searchKeywords": [
|
|
118
|
+
"cidr",
|
|
119
|
+
"cidr input",
|
|
120
|
+
"网段输入",
|
|
121
|
+
"子网配置",
|
|
122
|
+
"network cidr",
|
|
123
|
+
"掩码选择"
|
|
124
|
+
],
|
|
125
|
+
"useCases": [
|
|
126
|
+
"网络配置",
|
|
127
|
+
"子网和路由录入",
|
|
128
|
+
"CIDR 分段输入与校验"
|
|
129
|
+
],
|
|
130
|
+
"typeDefinitions": [
|
|
131
|
+
{
|
|
132
|
+
"name": "CidrValue",
|
|
133
|
+
"definition": "type CidrValue = string",
|
|
134
|
+
"description": "CIDR 字符串类型,例如 `192.168.0.0/24`。"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"relatedComponents": [
|
|
138
|
+
"IPInput"
|
|
139
|
+
]
|
|
140
|
+
}
|
package/components/code.json
CHANGED
|
@@ -314,5 +314,12 @@
|
|
|
314
314
|
"配置文件编辑",
|
|
315
315
|
"JSON 编辑器"
|
|
316
316
|
],
|
|
317
|
+
"typeDefinitions": [
|
|
318
|
+
{
|
|
319
|
+
"name": "CodeLanguage",
|
|
320
|
+
"definition": "type CodeLanguage = string",
|
|
321
|
+
"description": "代码编辑器语言标识,通常使用 javascript、typescript、json 等 Monaco 语言名。"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
317
324
|
"relatedComponents": []
|
|
318
|
-
}
|
|
325
|
+
}
|