From 5a414c4f027de25bb99ceb8c262b01d5b7d9d477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <645381995@qq.com> Date: Fri, 8 Dec 2023 11:53:00 +0800 Subject: [PATCH 01/10] feat: support generics --- docs/demo/basic.tsx | 12 +- docs/demo/controlled.tsx | 14 +-- docs/demo/refs.tsx | 12 +- package.json | 2 +- src/index.tsx | 247 ++++++++++++++++++++------------------- tsconfig.json | 2 +- 6 files changed, 146 insertions(+), 143 deletions(-) diff --git a/docs/demo/basic.tsx b/docs/demo/basic.tsx index 649a853..49b5caf 100644 --- a/docs/demo/basic.tsx +++ b/docs/demo/basic.tsx @@ -1,8 +1,9 @@ -import '../../assets/style.less'; -import React from 'react'; import Segmented from 'rc-segmented'; +import React from 'react'; -export default function App() { +import '../../assets/style.less'; + +const Demo = () => { return (