|
| 1 | +{ |
| 2 | + "version": "1.0.0", |
| 3 | + "name": { |
| 4 | + "zh_CN": "日期选择" |
| 5 | + }, |
| 6 | + "component": "uDate", |
| 7 | + "icon": "datepick", |
| 8 | + "description": "用于输入或选择日期", |
| 9 | + "docUrl": "", |
| 10 | + "screenshot": "", |
| 11 | + "tags": "", |
| 12 | + "keywords": "", |
| 13 | + "devMode": "proCode", |
| 14 | + "npm": { |
| 15 | + "package": "@shqy/mobile", |
| 16 | + "exportName": "uDate", |
| 17 | + "version": "", |
| 18 | + "destructuring": true |
| 19 | + }, |
| 20 | + "group": "component", |
| 21 | + "priority": 1, |
| 22 | + "schema": { |
| 23 | + "properties": [ |
| 24 | + { |
| 25 | + "label": { |
| 26 | + "zh_CN": "基础信息" |
| 27 | + }, |
| 28 | + "description": { |
| 29 | + "zh_CN": "基础信息" |
| 30 | + }, |
| 31 | + "collapse": { |
| 32 | + "number": 6, |
| 33 | + "text": { |
| 34 | + "zh_CN": "显示更多" |
| 35 | + } |
| 36 | + }, |
| 37 | + "content": [ |
| 38 | + { |
| 39 | + "property": "modelValue", |
| 40 | + "label": { |
| 41 | + "text": { |
| 42 | + "zh_CN": "绑定值" |
| 43 | + } |
| 44 | + }, |
| 45 | + "required": true, |
| 46 | + "readOnly": false, |
| 47 | + "disabled": false, |
| 48 | + "widget": { |
| 49 | + "component": "MetaField", |
| 50 | + "props": {} |
| 51 | + }, |
| 52 | + "description": { |
| 53 | + "zh_CN": "双向绑定值" |
| 54 | + }, |
| 55 | + "labelPosition": "top" |
| 56 | + }, |
| 57 | + { |
| 58 | + "property": "mode", |
| 59 | + "label": { |
| 60 | + "text": { |
| 61 | + "zh_CN": "类型" |
| 62 | + } |
| 63 | + }, |
| 64 | + "widget": { |
| 65 | + "component": "MetaSelect", |
| 66 | + "props": { |
| 67 | + "options": [ |
| 68 | + { |
| 69 | + "label": "日期", |
| 70 | + "value": "date" |
| 71 | + }, |
| 72 | + { |
| 73 | + "label": "日期时间", |
| 74 | + "value": "datetime" |
| 75 | + }, |
| 76 | + { |
| 77 | + "label": "时间", |
| 78 | + "value": "time" |
| 79 | + }, |
| 80 | + { |
| 81 | + "label": "年份-月份", |
| 82 | + "value": "year-month" |
| 83 | + } |
| 84 | + ] |
| 85 | + } |
| 86 | + }, |
| 87 | + "description": { |
| 88 | + "zh_CN": "设置日期框的type属性" |
| 89 | + } |
| 90 | + }, |
| 91 | + { |
| 92 | + "property": "format", |
| 93 | + "label": { |
| 94 | + "text": { |
| 95 | + "zh_CN": "显示在输入框中的格式" |
| 96 | + } |
| 97 | + }, |
| 98 | + "required": false, |
| 99 | + "readOnly": false, |
| 100 | + "disabled": false, |
| 101 | + "cols": 12, |
| 102 | + "widget": { |
| 103 | + "component": "MetaBindI18n", |
| 104 | + "props": {} |
| 105 | + }, |
| 106 | + "description": { |
| 107 | + "zh_CN": "显示在输入框中的格式" |
| 108 | + }, |
| 109 | + "labelPosition": "left" |
| 110 | + }, |
| 111 | + |
| 112 | + { |
| 113 | + "property": "placeholder", |
| 114 | + "label": { |
| 115 | + "text": { |
| 116 | + "zh_CN": "占位文本" |
| 117 | + } |
| 118 | + }, |
| 119 | + "required": true, |
| 120 | + "readOnly": false, |
| 121 | + "disabled": false, |
| 122 | + "cols": 12, |
| 123 | + "widget": { |
| 124 | + "component": "MetaBindI18n", |
| 125 | + "props": {} |
| 126 | + }, |
| 127 | + "description": { |
| 128 | + "zh_CN": "输入框占位文本" |
| 129 | + }, |
| 130 | + "labelPosition": "left" |
| 131 | + }, |
| 132 | + { |
| 133 | + "property": "clearable", |
| 134 | + "label": { |
| 135 | + "text": { |
| 136 | + "zh_CN": "清除按钮" |
| 137 | + } |
| 138 | + }, |
| 139 | + "required": true, |
| 140 | + "readOnly": false, |
| 141 | + "disabled": false, |
| 142 | + "cols": 12, |
| 143 | + "widget": { |
| 144 | + "component": "MetaSwitch", |
| 145 | + "props": {} |
| 146 | + }, |
| 147 | + "description": { |
| 148 | + "zh_CN": "是否显示清除按钮" |
| 149 | + }, |
| 150 | + "labelPosition": "left" |
| 151 | + }, |
| 152 | + { |
| 153 | + "property": "disabled", |
| 154 | + "label": { |
| 155 | + "text": { |
| 156 | + "zh_CN": "禁用" |
| 157 | + } |
| 158 | + }, |
| 159 | + "required": false, |
| 160 | + "readOnly": false, |
| 161 | + "disabled": false, |
| 162 | + "cols": 12, |
| 163 | + "widget": { |
| 164 | + "component": "MetaSwitch", |
| 165 | + "props": {} |
| 166 | + }, |
| 167 | + "description": { |
| 168 | + "zh_CN": "禁用" |
| 169 | + } |
| 170 | + }, |
| 171 | + { |
| 172 | + "property": "readonly", |
| 173 | + "label": { |
| 174 | + "text": { |
| 175 | + "zh_CN": "是否只读" |
| 176 | + } |
| 177 | + }, |
| 178 | + "required": true, |
| 179 | + "readOnly": false, |
| 180 | + "disabled": false, |
| 181 | + "cols": 12, |
| 182 | + "widget": { |
| 183 | + "component": "MetaSwitch", |
| 184 | + "props": {} |
| 185 | + }, |
| 186 | + "description": { |
| 187 | + "zh_CN": "" |
| 188 | + } |
| 189 | + |
| 190 | + } |
| 191 | + ] |
| 192 | + } |
| 193 | + ], |
| 194 | + "events": { |
| 195 | + "onChange": { |
| 196 | + "label": { |
| 197 | + "zh_CN": "值改变时触发" |
| 198 | + }, |
| 199 | + "description": { |
| 200 | + "zh_CN": "在 Input 值改变时触发" |
| 201 | + }, |
| 202 | + "type": "event", |
| 203 | + "functionInfo": { |
| 204 | + "params": [ |
| 205 | + { |
| 206 | + "name": "value", |
| 207 | + "type": "string", |
| 208 | + "defaultValue": "", |
| 209 | + "description": { |
| 210 | + "zh_CN": "输入框改变后的值" |
| 211 | + } |
| 212 | + } |
| 213 | + ], |
| 214 | + "returns": {} |
| 215 | + }, |
| 216 | + "defaultValue": "" |
| 217 | + }, |
| 218 | + "onInput": { |
| 219 | + "label": { |
| 220 | + "zh_CN": "输入值改变时触发" |
| 221 | + }, |
| 222 | + "description": { |
| 223 | + "zh_CN": "在 Input 输入值改变时触发" |
| 224 | + }, |
| 225 | + "type": "event", |
| 226 | + "functionInfo": { |
| 227 | + "params": [ |
| 228 | + { |
| 229 | + "name": "value", |
| 230 | + "type": "string", |
| 231 | + "defaultValue": "", |
| 232 | + "description": { |
| 233 | + "zh_CN": "输入框输入的值" |
| 234 | + } |
| 235 | + } |
| 236 | + ], |
| 237 | + "returns": {} |
| 238 | + }, |
| 239 | + "defaultValue": "" |
| 240 | + }, |
| 241 | + "onUpdate:modelValue": { |
| 242 | + "label": { |
| 243 | + "zh_CN": "双向绑定的值改变时触发" |
| 244 | + }, |
| 245 | + "description": { |
| 246 | + "zh_CN": "在 Input 输入值改变时触发" |
| 247 | + }, |
| 248 | + "type": "event", |
| 249 | + "functionInfo": { |
| 250 | + "params": [ |
| 251 | + { |
| 252 | + "name": "value", |
| 253 | + "type": "string", |
| 254 | + "defaultValue": "", |
| 255 | + "description": { |
| 256 | + "zh_CN": "双向绑定的值" |
| 257 | + } |
| 258 | + } |
| 259 | + ], |
| 260 | + "returns": {} |
| 261 | + }, |
| 262 | + "defaultValue": "" |
| 263 | + }, |
| 264 | + "onBlur": { |
| 265 | + "label": { |
| 266 | + "zh_CN": "失去焦点时触发" |
| 267 | + }, |
| 268 | + "description": { |
| 269 | + "zh_CN": "在 Input 失去焦点时触发" |
| 270 | + }, |
| 271 | + "type": "event", |
| 272 | + "functionInfo": { |
| 273 | + "params": [ |
| 274 | + { |
| 275 | + "name": "event", |
| 276 | + "type": "Object", |
| 277 | + "defaultValue": "", |
| 278 | + "description": { |
| 279 | + "zh_CN": "原生 event" |
| 280 | + } |
| 281 | + } |
| 282 | + ], |
| 283 | + "returns": {} |
| 284 | + }, |
| 285 | + "defaultValue": "" |
| 286 | + }, |
| 287 | + "onFocus": { |
| 288 | + "label": { |
| 289 | + "zh_CN": "获取焦点时触发" |
| 290 | + }, |
| 291 | + "description": { |
| 292 | + "zh_CN": "在 Input 获取焦点时触发" |
| 293 | + }, |
| 294 | + "type": "event", |
| 295 | + "functionInfo": { |
| 296 | + "params": [ |
| 297 | + { |
| 298 | + "name": "event", |
| 299 | + "type": "Object", |
| 300 | + "defaultValue": "", |
| 301 | + "description": { |
| 302 | + "zh_CN": "原生 event" |
| 303 | + } |
| 304 | + } |
| 305 | + ], |
| 306 | + "returns": {} |
| 307 | + }, |
| 308 | + "defaultValue": "" |
| 309 | + }, |
| 310 | + "onClear": { |
| 311 | + "label": { |
| 312 | + "zh_CN": "点击清空按钮时触发" |
| 313 | + }, |
| 314 | + "description": { |
| 315 | + "zh_CN": "点击清空按钮时触发" |
| 316 | + }, |
| 317 | + "type": "event", |
| 318 | + "functionInfo": { |
| 319 | + "params": [], |
| 320 | + "returns": {} |
| 321 | + }, |
| 322 | + "defaultValue": "" |
| 323 | + } |
| 324 | + }, |
| 325 | + "slots": { |
| 326 | + "prefix": { |
| 327 | + "label": { |
| 328 | + "zh_CN": "前置内容" |
| 329 | + } |
| 330 | + }, |
| 331 | + "suffix": { |
| 332 | + "label": { |
| 333 | + "zh_CN": "后置内容" |
| 334 | + } |
| 335 | + } |
| 336 | + } |
| 337 | + }, |
| 338 | + "configure": { |
| 339 | + "loop": true, |
| 340 | + "condition": true, |
| 341 | + "styles": true, |
| 342 | + "isContainer": false, |
| 343 | + "isModal": false, |
| 344 | + "nestingRule": { |
| 345 | + "childWhitelist": "", |
| 346 | + "parentWhitelist": "", |
| 347 | + "descendantBlacklist": "", |
| 348 | + "ancestorWhitelist": "" |
| 349 | + }, |
| 350 | + "isNullNode": false, |
| 351 | + "isLayout": false, |
| 352 | + "rootSelector": "", |
| 353 | + "shortcuts": { |
| 354 | + "properties": [ |
| 355 | + "value", |
| 356 | + "disabled" |
| 357 | + ] |
| 358 | + }, |
| 359 | + "contextMenu": { |
| 360 | + "actions": [ |
| 361 | + "create symbol" |
| 362 | + ], |
| 363 | + "disable": [ |
| 364 | + "copy", |
| 365 | + "remove" |
| 366 | + ] |
| 367 | + } |
| 368 | + }, |
| 369 | + "snippets": [ |
| 370 | + { |
| 371 | + "name": { |
| 372 | + "zh_CN": "日期选择" |
| 373 | + }, |
| 374 | + "icon": "datepick", |
| 375 | + "screenshot": "", |
| 376 | + "snippetName": "uDatetimePicker", |
| 377 | + "schema": { |
| 378 | + "componentName": "uDatetimePicker", |
| 379 | + "props": { |
| 380 | + "modelValue": "" |
| 381 | + } |
| 382 | + }, |
| 383 | + "category": "手机端组件" |
| 384 | + } |
| 385 | + ] |
| 386 | +} |
0 commit comments