{"slug":"rate","mode":"scenarios","examples":[{"id":"rate-ex-1","title":"基础(点击评分)","titleSrc":"demo","desc":"","html":"
\n
\n
","preview":{"show":[[0,2]],"hide":[[1],[0,0],[0,1],[0,3],[0,4],[0,5],[0,2,0]],"mode":"scenarios"},"previewSafe":false,"previewUnsafeReasons":["演示脚本按可见尺寸测量布局"],"source":"demo-mapped","code":{"html":"
","jsx":"import { KoleRate } from 'kole-ui/react';\n\n<>\n\n","vue3":"import { KoleRate } from 'kole-ui/vue3';\n\n","vue2":"import { KoleRate } from 'kole-ui/vue2';\n\n"},"notes":[]},{"id":"rate-ex-2","title":"允许半星","titleSrc":"demo","desc":"","html":"
\n
\n
","preview":{"show":[[0,3]],"hide":[[1],[0,0],[0,1],[0,2],[0,4],[0,5],[0,3,0]],"mode":"scenarios"},"previewSafe":false,"previewUnsafeReasons":["演示脚本按可见尺寸测量布局"],"source":"demo-mapped","code":{"html":"
","jsx":"import { KoleRate } from 'kole-ui/react';\n\n<>\n\n","vue3":"import { KoleRate } from 'kole-ui/vue3';\n\n","vue2":"import { KoleRate } from 'kole-ui/vue2';\n\n"},"notes":[]},{"id":"rate-ex-3","title":"只读 + 显示文字","titleSrc":"demo","desc":"","html":"
\n
\n
","preview":{"show":[[0,4]],"hide":[[1],[0,0],[0,1],[0,2],[0,3],[0,5],[0,4,0]],"mode":"scenarios"},"previewSafe":false,"previewUnsafeReasons":["演示脚本按可见尺寸测量布局"],"source":"demo-mapped","code":{"html":"
","jsx":"import { KoleRate } from 'kole-ui/react';\n\n<>\n\n","vue3":"import { KoleRate } from 'kole-ui/vue3';\n\n","vue2":"import { KoleRate } from 'kole-ui/vue2';\n\n"},"notes":[]},{"id":"rate-ex-4","title":"尺寸:small / default / large","titleSrc":"demo","desc":"","html":"
\n
\n
\n
\n
","preview":{"show":[[0,5]],"hide":[[1],[0,0],[0,1],[0,2],[0,3],[0,4],[0,5,0]],"mode":"scenarios"},"previewSafe":false,"previewUnsafeReasons":["演示脚本按可见尺寸测量布局"],"source":"demo-mapped","code":{"html":"
\n
\n
","jsx":"import { KoleRate } from 'kole-ui/react';\n\n<>\n\n\n\n","vue3":"import { KoleRate } from 'kole-ui/vue3';\n\n","vue2":"import { KoleRate } from 'kole-ui/vue2';\n\n"},"notes":[]}]}