kui-vue 6.3.1 → 6.4.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.
Files changed (69) hide show
  1. package/ai/kui-components.json +371 -2
  2. package/dist/index.js +2 -2
  3. package/es/index.js +986 -470
  4. package/es/locale/de.js +2 -3
  5. package/es/locale/el.js +2 -3
  6. package/es/locale/en.js +2 -3
  7. package/es/locale/fr.js +2 -3
  8. package/es/locale/it.js +2 -3
  9. package/es/locale/ja.js +2 -3
  10. package/es/locale/ko.js +2 -3
  11. package/es/locale/ru.js +2 -3
  12. package/es/locale/th.js +2 -3
  13. package/es/locale/uk.js +2 -3
  14. package/es/locale/vi.js +2 -3
  15. package/es/locale/zh-CN.js +2 -3
  16. package/es/locale/zh-TW.js +2 -3
  17. package/lib/index.cjs +2 -2
  18. package/lib/locale/de.cjs +1 -1
  19. package/lib/locale/el.cjs +1 -1
  20. package/lib/locale/en.cjs +1 -1
  21. package/lib/locale/fr.cjs +1 -1
  22. package/lib/locale/it.cjs +1 -1
  23. package/lib/locale/ja.cjs +1 -1
  24. package/lib/locale/ko.cjs +1 -1
  25. package/lib/locale/ru.cjs +1 -1
  26. package/lib/locale/th.cjs +1 -1
  27. package/lib/locale/uk.cjs +1 -1
  28. package/lib/locale/vi.cjs +1 -1
  29. package/lib/locale/zh-CN.cjs +1 -1
  30. package/lib/locale/zh-TW.cjs +1 -1
  31. package/package.json +22 -22
  32. package/style/base.css +1 -1
  33. package/style/components.css +2 -2
  34. package/style/index.css +2 -2
  35. package/style/motion.css +1 -1
  36. package/style/theme.css +1 -1
  37. package/types/color-picker/index.d.cts +5 -0
  38. package/types/color-picker/index.d.ts +5 -0
  39. package/types/components.d.cts +3 -0
  40. package/types/components.d.ts +3 -0
  41. package/types/global.d.cts +16 -0
  42. package/types/global.d.ts +16 -0
  43. package/types/gradient-picker/corners.d.cts +39 -0
  44. package/types/gradient-picker/corners.d.ts +39 -0
  45. package/types/gradient-picker/index.d.cts +87 -0
  46. package/types/gradient-picker/index.d.ts +87 -0
  47. package/types/gradient-picker/stops.d.cts +39 -0
  48. package/types/gradient-picker/stops.d.ts +39 -0
  49. package/types/gradient-picker/types.d.cts +34 -0
  50. package/types/gradient-picker/types.d.ts +34 -0
  51. package/types/input-number/drag.d.cts +9 -0
  52. package/types/input-number/drag.d.ts +9 -0
  53. package/types/input-number/index.d.cts +13 -0
  54. package/types/input-number/index.d.ts +13 -0
  55. package/types/popconfirm/index.d.cts +3 -0
  56. package/types/popconfirm/index.d.ts +3 -0
  57. package/types/poptip/index.d.cts +3 -0
  58. package/types/poptip/index.d.ts +3 -0
  59. package/types/popup/index.d.cts +4 -0
  60. package/types/popup/index.d.ts +4 -0
  61. package/types/tooltip/index.d.cts +3 -0
  62. package/types/tooltip/index.d.ts +3 -0
  63. package/types/utils/placement.d.cts +2 -1
  64. package/types/utils/placement.d.ts +2 -1
  65. package/types/utils/popup-arrow.d.cts +5 -0
  66. package/types/utils/popup-arrow.d.ts +5 -0
  67. package/vetur/attributes.json +208 -0
  68. package/vetur/tags.json +66 -0
  69. package/vetur/web-types.json +333 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://k-ui.cn/schema/kui-components.schema.json",
3
3
  "library": "kui-vue",
4
- "version": "6.3.1",
4
+ "version": "6.4.0",
5
5
  "homepage": "https://k-ui.cn",
6
6
  "components": [
7
7
  {
@@ -190,6 +190,20 @@
190
190
  "required": false,
191
191
  "documented": true
192
192
  },
193
+ {
194
+ "name": "arrowPointAtCenter",
195
+ "description": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
196
+ "descriptionZh": "让箭头中心指向触发器中心;默认按面板边缘或中心对齐,需有箭头时才生效",
197
+ "descriptionEn": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
198
+ "type": "boolean | undefined",
199
+ "boolean": true,
200
+ "enumValues": [
201
+ false,
202
+ true
203
+ ],
204
+ "required": false,
205
+ "documented": true
206
+ },
193
207
  {
194
208
  "name": "offset",
195
209
  "description": "Position offset in pixels",
@@ -567,7 +581,7 @@
567
581
  {
568
582
  "title": "方位与箭头",
569
583
  "file": "components/popup/demo/placement.vue",
570
- "source": "<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { Button, Checkbox, Popup, Space } from \"kui-vue\";\nconst arrow = ref(true);\nconst placements = [\n \"top-left\",\n \"top\",\n \"top-right\",\n \"bottom-left\",\n \"bottom\",\n \"bottom-right\",\n \"left-top\",\n \"left\",\n \"left-bottom\",\n \"right-top\",\n \"right\",\n \"right-bottom\",\n] as const;\n</script>\n<template>\n <Space vertical>\n <Checkbox v-model=\"arrow\">Show arrow</Checkbox>\n <div\n style=\"\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 8px;\n max-width: 420px;\n \"\n >\n <Popup\n v-for=\"placement in placements\"\n :key=\"placement\"\n :placement=\"placement\"\n :arrow=\"arrow\"\n :offset=\"10\"\n >\n <Button>{{ placement }}</Button>\n <template #overlay>{{ placement }}</template>\n </Popup>\n </div>\n </Space>\n</template>"
584
+ "source": "<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { Button, Checkbox, Popup, Space } from \"kui-vue\";\nconst arrow = ref(true);\nconst arrowPointAtCenter = ref(false);\nconst placements = [\n \"top-left\",\n \"top\",\n \"top-right\",\n \"bottom-left\",\n \"bottom\",\n \"bottom-right\",\n \"left-top\",\n \"left\",\n \"left-bottom\",\n \"right-top\",\n \"right\",\n \"right-bottom\",\n] as const;\n</script>\n<template>\n <Space vertical>\n <Checkbox v-model=\"arrow\">Show arrow</Checkbox>\n <Checkbox v-model=\"arrowPointAtCenter\">Point arrow at trigger center</Checkbox>\n <div\n style=\"\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 8px;\n max-width: 420px;\n \"\n >\n <Popup\n v-for=\"placement in placements\"\n :key=\"placement\"\n :placement=\"placement\"\n :arrow=\"arrow\"\n :arrow-point-at-center=\"arrowPointAtCenter\"\n :offset=\"10\"\n >\n <Button>{{ placement }}</Button>\n <template #overlay>{{ placement }}</template>\n </Popup>\n </div>\n </Space>\n</template>"
571
585
  },
572
586
  {
573
587
  "title": "受控开关与实例方法",
@@ -5264,6 +5278,20 @@
5264
5278
  "required": false,
5265
5279
  "documented": true
5266
5280
  },
5281
+ {
5282
+ "name": "arrowPointAtCenter",
5283
+ "description": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
5284
+ "descriptionZh": "让箭头中心指向触发器中心;默认按面板边缘或中心对齐,需有箭头时才生效",
5285
+ "descriptionEn": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
5286
+ "type": "boolean | undefined",
5287
+ "boolean": true,
5288
+ "enumValues": [
5289
+ false,
5290
+ true
5291
+ ],
5292
+ "required": false,
5293
+ "documented": true
5294
+ },
5267
5295
  {
5268
5296
  "name": "panelOnly",
5269
5297
  "description": "Render only the color panel without the trigger input",
@@ -5495,6 +5523,285 @@
5495
5523
  }
5496
5524
  ]
5497
5525
  },
5526
+ {
5527
+ "name": "GradientPicker",
5528
+ "behavior": {
5529
+ "rules": []
5530
+ },
5531
+ "models": [
5532
+ {
5533
+ "prop": "modelValue",
5534
+ "event": "update:modelValue",
5535
+ "directive": "v-model"
5536
+ },
5537
+ {
5538
+ "prop": "mode",
5539
+ "event": "update:mode",
5540
+ "directive": "v-model:mode"
5541
+ }
5542
+ ],
5543
+ "tags": [
5544
+ "GradientPicker",
5545
+ "KGradientPicker",
5546
+ "k-gradient-picker",
5547
+ "gradient-picker"
5548
+ ],
5549
+ "children": [],
5550
+ "documentation": "https://k-ui.cn/components/gradient-picker",
5551
+ "props": [
5552
+ {
5553
+ "name": "type",
5554
+ "description": "Gradient type: `linear` for multi-stop, `corner` for four corners",
5555
+ "descriptionZh": "渐变类型,`linear` 为多色标渐变,`corner` 为四角渐变",
5556
+ "descriptionEn": "Gradient type: `linear` for multi-stop, `corner` for four corners",
5557
+ "type": "GradientType",
5558
+ "boolean": false,
5559
+ "enumValues": [
5560
+ "linear",
5561
+ "corner"
5562
+ ],
5563
+ "required": false,
5564
+ "defaultExpression": "\"linear\"",
5565
+ "documented": true
5566
+ },
5567
+ {
5568
+ "name": "arrowPointAtCenter",
5569
+ "description": "Point the color-panel arrow at the stop or corner center; disable to align panel edges",
5570
+ "descriptionZh": "让颜色面板箭头指向色标或角标中心;关闭后按面板边缘对齐",
5571
+ "descriptionEn": "Point the color-panel arrow at the stop or corner center; disable to align panel edges",
5572
+ "type": "boolean",
5573
+ "boolean": true,
5574
+ "enumValues": [
5575
+ false,
5576
+ true
5577
+ ],
5578
+ "required": false,
5579
+ "defaultExpression": "true",
5580
+ "documented": true
5581
+ },
5582
+ {
5583
+ "name": "mode",
5584
+ "description": "Presentation of the color panel input: `hex`, `rgb` or `hsl`",
5585
+ "descriptionZh": "颜色面板输入区的展示类型,提供 3 种模式(`hex`、`rgb`、`hsl`)",
5586
+ "descriptionEn": "Presentation of the color panel input: `hex`, `rgb` or `hsl`",
5587
+ "type": "ColorMode",
5588
+ "boolean": false,
5589
+ "enumValues": [
5590
+ "hex",
5591
+ "rgb",
5592
+ "hsl"
5593
+ ],
5594
+ "required": false,
5595
+ "defaultExpression": "\"hex\"",
5596
+ "documented": true
5597
+ },
5598
+ {
5599
+ "name": "disabled",
5600
+ "description": "Disabled state",
5601
+ "descriptionZh": "是否失效状态",
5602
+ "descriptionEn": "Disabled state",
5603
+ "type": "boolean | undefined",
5604
+ "boolean": true,
5605
+ "enumValues": [
5606
+ false,
5607
+ true
5608
+ ],
5609
+ "required": false,
5610
+ "documented": true
5611
+ },
5612
+ {
5613
+ "name": "modelValue",
5614
+ "description": "Gradient value, supports `v-model` two-way binding",
5615
+ "descriptionZh": "渐变值,可以使用 `v-model` 双向绑定",
5616
+ "descriptionEn": "Gradient value, supports `v-model` two-way binding",
5617
+ "type": "GradientValue | undefined",
5618
+ "boolean": false,
5619
+ "required": false,
5620
+ "documented": true
5621
+ },
5622
+ {
5623
+ "name": "value",
5624
+ "description": "Initial value, read once during initialization; later updates use modelValue, which wins when both are passed",
5625
+ "descriptionZh": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
5626
+ "descriptionEn": "Initial value, read once during initialization; later updates use modelValue, which wins when both are passed",
5627
+ "type": "GradientValue | undefined",
5628
+ "boolean": false,
5629
+ "required": false,
5630
+ "documented": true
5631
+ },
5632
+ {
5633
+ "name": "readonly",
5634
+ "description": "Read-only; stops cannot be dragged and the color panel cannot open",
5635
+ "descriptionZh": "是否只读,不能拖动色标或打开颜色面板",
5636
+ "descriptionEn": "Read-only; stops cannot be dragged and the color panel cannot open",
5637
+ "type": "boolean | undefined",
5638
+ "boolean": true,
5639
+ "enumValues": [
5640
+ false,
5641
+ true
5642
+ ],
5643
+ "required": false,
5644
+ "documented": true
5645
+ },
5646
+ {
5647
+ "name": "size",
5648
+ "description": "Control size, same three tiers as other controls; the bar plus its stops, or the corner block, add up to the height of the matching control",
5649
+ "descriptionZh": "控件尺寸,与其它控件一样分三档;色条加色标或四角预览块的总高度与对应尺寸的控件一致",
5650
+ "descriptionEn": "Control size, same three tiers as other controls; the bar plus its stops, or the corner block, add up to the height of the matching control",
5651
+ "type": "SizeType | undefined",
5652
+ "boolean": false,
5653
+ "enumValues": [
5654
+ "small",
5655
+ "medium",
5656
+ "large"
5657
+ ],
5658
+ "required": false,
5659
+ "documented": true
5660
+ },
5661
+ {
5662
+ "name": "alpha",
5663
+ "description": "Show the transparency control in the color panel",
5664
+ "descriptionZh": "颜色面板是否提供透明度调节",
5665
+ "descriptionEn": "Show the transparency control in the color panel",
5666
+ "type": "boolean | undefined",
5667
+ "boolean": true,
5668
+ "enumValues": [
5669
+ false,
5670
+ true
5671
+ ],
5672
+ "required": false,
5673
+ "documented": true
5674
+ },
5675
+ {
5676
+ "name": "onUpdate:modelValue",
5677
+ "description": "Requests a new modelValue value (Gradient value, supports `v-model` two-way binding); the payload is the new value. With v-model, Vue synchronizes the binding automatically; no additional update handler is needed.",
5678
+ "descriptionZh": "请求更新 modelValue(渐变值,可以使用 `v-model` 双向绑定),参数为更新后的值。使用 v-model 时由 Vue 自动同步绑定值,无需另写更新处理器。",
5679
+ "descriptionEn": "Requests a new modelValue value (Gradient value, supports `v-model` two-way binding); the payload is the new value. With v-model, Vue synchronizes the binding automatically; no additional update handler is needed.",
5680
+ "type": "(value: GradientValue) => void",
5681
+ "eventName": "update:modelValue",
5682
+ "boolean": false,
5683
+ "documented": false
5684
+ },
5685
+ {
5686
+ "name": "onUpdate:mode",
5687
+ "description": "Requests a new mode value (Presentation of the color panel input: `hex`, `rgb` or `hsl`); the payload is the new value. With v-model:mode, Vue synchronizes the binding automatically; no additional update handler is needed.",
5688
+ "descriptionZh": "请求更新 mode(颜色面板输入区的展示类型,提供 3 种模式(`hex`、`rgb`、`hsl`)),参数为更新后的值。使用 v-model:mode 时由 Vue 自动同步绑定值,无需另写更新处理器。",
5689
+ "descriptionEn": "Requests a new mode value (Presentation of the color panel input: `hex`, `rgb` or `hsl`); the payload is the new value. With v-model:mode, Vue synchronizes the binding automatically; no additional update handler is needed.",
5690
+ "type": "(mode: ColorMode) => void",
5691
+ "eventName": "update:mode",
5692
+ "boolean": false,
5693
+ "documented": false
5694
+ },
5695
+ {
5696
+ "name": "onChange",
5697
+ "description": "Called when the gradient changes; the argument is the new value (a stop list for `linear`, four colors for `corner`)",
5698
+ "descriptionZh": "渐变值改变时触发,参数是新的渐变值(线性档为色标数组,四角档为四色数组)",
5699
+ "descriptionEn": "Called when the gradient changes; the argument is the new value (a stop list for `linear`, four colors for `corner`)",
5700
+ "type": "(value: GradientValue) => void",
5701
+ "eventName": "change",
5702
+ "boolean": false,
5703
+ "documented": true
5704
+ }
5705
+ ],
5706
+ "events": [
5707
+ {
5708
+ "name": "update:modelValue",
5709
+ "type": "(value: GradientValue) => void",
5710
+ "description": "Requests a new modelValue value (Gradient value, supports `v-model` two-way binding); the payload is the new value. With v-model, Vue synchronizes the binding automatically; no additional update handler is needed.",
5711
+ "descriptionZh": "请求更新 modelValue(渐变值,可以使用 `v-model` 双向绑定),参数为更新后的值。使用 v-model 时由 Vue 自动同步绑定值,无需另写更新处理器。",
5712
+ "descriptionEn": "Requests a new modelValue value (Gradient value, supports `v-model` two-way binding); the payload is the new value. With v-model, Vue synchronizes the binding automatically; no additional update handler is needed."
5713
+ },
5714
+ {
5715
+ "name": "update:mode",
5716
+ "type": "(mode: ColorMode) => void",
5717
+ "description": "Requests a new mode value (Presentation of the color panel input: `hex`, `rgb` or `hsl`); the payload is the new value. With v-model:mode, Vue synchronizes the binding automatically; no additional update handler is needed.",
5718
+ "descriptionZh": "请求更新 mode(颜色面板输入区的展示类型,提供 3 种模式(`hex`、`rgb`、`hsl`)),参数为更新后的值。使用 v-model:mode 时由 Vue 自动同步绑定值,无需另写更新处理器。",
5719
+ "descriptionEn": "Requests a new mode value (Presentation of the color panel input: `hex`, `rgb` or `hsl`); the payload is the new value. With v-model:mode, Vue synchronizes the binding automatically; no additional update handler is needed."
5720
+ },
5721
+ {
5722
+ "name": "change",
5723
+ "type": "(value: GradientValue) => void",
5724
+ "description": "Called when the gradient changes; the argument is the new value (a stop list for `linear`, four colors for `corner`)",
5725
+ "descriptionZh": "渐变值改变时触发,参数是新的渐变值(线性档为色标数组,四角档为四色数组)",
5726
+ "descriptionEn": "Called when the gradient changes; the argument is the new value (a stop list for `linear`, four colors for `corner`)"
5727
+ }
5728
+ ],
5729
+ "slots": [],
5730
+ "examples": [
5731
+ {
5732
+ "title": "基本用法",
5733
+ "file": "components/gradient-picker/demo/basic.vue",
5734
+ "source": "<template>\n <Space vertical>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"value\" alpha @change=\"onChange\" />\n </div>\n <code>linear: {{ linear }}</code>\n <code>radial: {{ radial }}</code>\n <div class=\"gradient-picker-demo\">\n <GradientPicker :model-value=\"value\" disabled />\n </div>\n </Space>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { formatGradient, type GradientStop, type GradientValue } from \"kui-vue\";\n\nconst value = ref<GradientValue>([\n { color: \"#ffd166\", offset: 0 },\n { color: \"#ef476f\", offset: 55 },\n { color: \"#118ab2\", offset: 100 },\n]);\nconst stopsText = (stops: GradientStop[]) =>\n stops.map((stop) => `${stop.color} ${stop.offset}%`).join(\", \");\nconst linear = ref(formatGradient(value.value));\nconst radial = ref(`radial-gradient(circle, ${stopsText(value.value as GradientStop[])})`);\n\nconst onChange = (next: GradientValue) => {\n linear.value = formatGradient(next);\n radial.value = `radial-gradient(circle, ${stopsText(next as GradientStop[])})`;\n};\n</script>\n\n<style scoped>\n.gradient-picker-demo {\n width: 360px;\n}\n</style>"
5735
+ },
5736
+ {
5737
+ "title": "四角渐变",
5738
+ "file": "components/gradient-picker/demo/corner.vue",
5739
+ "source": "<template>\n <Space vertical>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"corner\" type=\"corner\" @change=\"onChange\" />\n </div>\n <code>colors: {{ colors }}</code>\n <div class=\"gradient-picker-demo\">\n <GradientPicker :model-value=\"corner\" type=\"corner\" disabled />\n </div>\n </Space>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport type { CornerGradientValue, GradientValue } from \"kui-vue\";\n\nconst corner = ref<GradientValue>([\"#ffffff\", \"#a9f0d1\", \"#5fe08a\", \"#3cbf6b\"]);\nconst colors = ref((corner.value as CornerGradientValue).join(\", \"));\n\nconst onChange = (next: GradientValue) => {\n colors.value = (next as CornerGradientValue).join(\", \");\n};\n</script>\n\n<style scoped>\n.gradient-picker-demo {\n width: 360px;\n}\n</style>"
5740
+ },
5741
+ {
5742
+ "title": "三种尺寸",
5743
+ "file": "components/gradient-picker/demo/sizes.vue",
5744
+ "source": "<template>\n <Space vertical>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"small\" size=\"small\" />\n </div>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"medium\" size=\"medium\" />\n </div>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"large\" size=\"large\" />\n </div>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"cornerSmall\" type=\"corner\" size=\"small\" />\n </div>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"cornerMedium\" type=\"corner\" size=\"medium\" />\n </div>\n <div class=\"gradient-picker-demo\">\n <GradientPicker v-model=\"cornerLarge\" type=\"corner\" size=\"large\" />\n </div>\n </Space>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport type { GradientValue } from \"kui-vue\";\n\nconst create = (): GradientValue => [\n { color: \"#ffd166\", offset: 0 },\n { color: \"#ef476f\", offset: 55 },\n { color: \"#118ab2\", offset: 100 },\n];\n\nconst createCorner = (): GradientValue => [\"#ffd166\", \"#ef476f\", \"#118ab2\", \"#06d6a0\"];\n\nconst small = ref(create());\nconst medium = ref(create());\nconst large = ref(create());\nconst cornerSmall = ref(createCorner());\nconst cornerMedium = ref(createCorner());\nconst cornerLarge = ref(createCorner());\n</script>\n\n<style scoped>\n.gradient-picker-demo {\n width: 360px;\n}\n</style>"
5745
+ }
5746
+ ]
5747
+ },
5748
+ {
5749
+ "name": "createCornerGradient",
5750
+ "behavior": {
5751
+ "rules": []
5752
+ },
5753
+ "models": [],
5754
+ "tags": [
5755
+ "createCornerGradient",
5756
+ "KcreateCornerGradient",
5757
+ "k-create-corner-gradient",
5758
+ "create-corner-gradient"
5759
+ ],
5760
+ "children": [],
5761
+ "documentation": "https://k-ui.cn/components/create-corner-gradient",
5762
+ "props": [],
5763
+ "events": [],
5764
+ "slots": [],
5765
+ "examples": []
5766
+ },
5767
+ {
5768
+ "name": "createLinearGradient",
5769
+ "behavior": {
5770
+ "rules": []
5771
+ },
5772
+ "models": [],
5773
+ "tags": [
5774
+ "createLinearGradient",
5775
+ "KcreateLinearGradient",
5776
+ "k-create-linear-gradient",
5777
+ "create-linear-gradient"
5778
+ ],
5779
+ "children": [],
5780
+ "documentation": "https://k-ui.cn/components/create-linear-gradient",
5781
+ "props": [],
5782
+ "events": [],
5783
+ "slots": [],
5784
+ "examples": []
5785
+ },
5786
+ {
5787
+ "name": "formatGradient",
5788
+ "behavior": {
5789
+ "rules": []
5790
+ },
5791
+ "models": [],
5792
+ "tags": [
5793
+ "formatGradient",
5794
+ "KformatGradient",
5795
+ "k-format-gradient",
5796
+ "format-gradient"
5797
+ ],
5798
+ "children": [],
5799
+ "documentation": "https://k-ui.cn/components/format-gradient",
5800
+ "props": [],
5801
+ "events": [],
5802
+ "slots": [],
5803
+ "examples": []
5804
+ },
5498
5805
  {
5499
5806
  "name": "DatePickerPanel",
5500
5807
  "behavior": {
@@ -10003,6 +10310,21 @@
10003
10310
  "defaultExpression": "\"fill\"",
10004
10311
  "documented": true
10005
10312
  },
10313
+ {
10314
+ "name": "draggable",
10315
+ "description": "Allow dragging inside the input to adjust the value quickly",
10316
+ "descriptionZh": "是否允许在输入框内拖动快速调节数值",
10317
+ "descriptionEn": "Allow dragging inside the input to adjust the value quickly",
10318
+ "type": "boolean",
10319
+ "boolean": true,
10320
+ "enumValues": [
10321
+ false,
10322
+ true
10323
+ ],
10324
+ "required": false,
10325
+ "defaultExpression": "true",
10326
+ "documented": true
10327
+ },
10006
10328
  {
10007
10329
  "name": "max",
10008
10330
  "description": "Maximum value",
@@ -10348,6 +10670,11 @@
10348
10670
  "file": "components/input-number/demo/ffix.vue",
10349
10671
  "source": "<template>\n <Space block vertical>\n <InputNumber placeholder=\"Please input amount\" suffix=\"元\" prefix=\"¥\" />\n <InputNumber placeholder=\"Please input amount\" :step=\"50\" suffix=\"元\" prefix=\"充值\" />\n <InputNumber placeholder=\"Please input amount\" suffix=\".00\" />\n </Space>\n <Divider text=\"addons\" />\n <Space block vertical>\n <InputNumber placeholder=\"Please input amount\" addon-before=\"¥\" addon-after=\"RMB\" />\n <InputNumber placeholder=\"Please input weight\" addon-after=\"kg\" />\n </Space>\n <Divider text=\"slot\" />\n <Space vertical block>\n <InputNumber placeholder=\"请填写您的薪资\" :icon=\"LogoYen\">\n <template #addonAfter>\n <Tooltip title=\"此处如果不知道怎么填,请咨询管理员\">\n <Button :icon=\"CircleQuestionMark\" />\n </Tooltip>\n </template>\n </InputNumber>\n <InputNumber placeholder=\"Please input amount\">\n <template #addonBefore>\n <Button :icon=\"UserPlus\" />\n </template>\n <template #addonAfter>\n <Button>Top up</Button>\n </template>\n </InputNumber>\n </Space>\n</template>\n<script setup lang=\"ts\">\nimport { CircleQuestionMark, LogoYen, UserPlus } from \"kui-icons\";\n</script>"
10350
10672
  },
10673
+ {
10674
+ "title": "拖动调节",
10675
+ "file": "components/input-number/demo/drag.vue",
10676
+ "source": "<template>\n <Space vertical block style=\"max-width: 280px\">\n <span>Drag inside the input left or right; click to type, double-click to select.</span>\n <InputNumber v-model=\"amount\" :min=\"0\" :max=\"10000\" addon-after=\"USD\" />\n <InputNumber v-model=\"decimal\" :step=\"0.01\" :precision=\"2\" :min=\"0\" :max=\"100\" />\n <InputNumber :value=\"10\" :draggable=\"false\" placeholder=\"Drag disabled\" />\n </Space>\n</template>\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nconst amount = ref<number | undefined>(100);\nconst decimal = ref<number | undefined>(1.25);\n</script>"
10677
+ },
10351
10678
  {
10352
10679
  "title": "尺寸",
10353
10680
  "file": "components/input-number/demo/size.vue",
@@ -12501,6 +12828,20 @@
12501
12828
  "required": false,
12502
12829
  "documented": true
12503
12830
  },
12831
+ {
12832
+ "name": "arrowPointAtCenter",
12833
+ "description": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
12834
+ "descriptionZh": "让箭头中心指向触发器中心;默认按面板边缘或中心对齐,需有箭头时才生效",
12835
+ "descriptionEn": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
12836
+ "type": "boolean | undefined",
12837
+ "boolean": true,
12838
+ "enumValues": [
12839
+ false,
12840
+ true
12841
+ ],
12842
+ "required": false,
12843
+ "documented": true
12844
+ },
12504
12845
  {
12505
12846
  "name": "panelOnly",
12506
12847
  "description": "Render only the popover panel without a trigger",
@@ -12689,6 +13030,20 @@
12689
13030
  "defaultExpression": "true",
12690
13031
  "documented": true
12691
13032
  },
13033
+ {
13034
+ "name": "arrowPointAtCenter",
13035
+ "description": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
13036
+ "descriptionZh": "让箭头中心指向触发器中心;默认按面板边缘或中心对齐,需有箭头时才生效",
13037
+ "descriptionEn": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
13038
+ "type": "boolean | undefined",
13039
+ "boolean": true,
13040
+ "enumValues": [
13041
+ false,
13042
+ true
13043
+ ],
13044
+ "required": false,
13045
+ "documented": true
13046
+ },
12692
13047
  {
12693
13048
  "name": "panelOnly",
12694
13049
  "description": "Render only the confirmation panel without a trigger",
@@ -18998,6 +19353,20 @@
18998
19353
  "required": false,
18999
19354
  "documented": true
19000
19355
  },
19356
+ {
19357
+ "name": "arrowPointAtCenter",
19358
+ "description": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
19359
+ "descriptionZh": "让箭头中心指向触发器中心;默认按面板边缘或中心对齐,需有箭头时才生效",
19360
+ "descriptionEn": "Point the arrow at the trigger center instead of aligning panel edges; requires a visible arrow",
19361
+ "type": "boolean | undefined",
19362
+ "boolean": true,
19363
+ "enumValues": [
19364
+ false,
19365
+ true
19366
+ ],
19367
+ "required": false,
19368
+ "documented": true
19369
+ },
19001
19370
  {
19002
19371
  "name": "panelOnly",
19003
19372
  "description": "Render only the tooltip panel without a trigger",