diff --git a/.docs/src/button/basic.tsx b/.docs/src/button/basic.tsx index 68910e5..4c05441 100644 --- a/.docs/src/button/basic.tsx +++ b/.docs/src/button/basic.tsx @@ -2,44 +2,12 @@ * @Date: 2024-08-03 08:17:36 * @Description: Modify here please */ -import { Button, Checkbox } from "camelia"; -import React, { useState } from "react"; +import { Button } from "camelia"; +import React from "react"; const App: React.FC = () => { - const [checked, setchecked] = useState(false); - const [checkList, setcheckList] = useState(["2"]); - - const [checkedvalue, setcheckedvalue] = useState([]); - - const plainOptions = ["Apple", "Pear", "Orange"]; - - const isIndeterminate = checkedvalue.length > 0 && checkedvalue.length < plainOptions.length; - - const checkAll = plainOptions.length === checkedvalue.length; - - const handleCheckAllChange = (val: boolean) => { - setcheckedvalue(val ? plainOptions : []); - }; - - const handleCheckedCitiesChange = (value: any[]) => { - console.log(value); - setcheckedvalue(value); - }; - return ( <> - setchecked(v)}> - Checkbox - - - {/* */} -
@@ -47,12 +15,6 @@ const App: React.FC = () => {
- - - Check all - - -