Skip to content

Commit

Permalink
remove css-background-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
codebdy committed Jan 10, 2023
1 parent 591ca0b commit 69644b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@types/react-dom": "^18.0.9",
"antd": "5.1.2",
"classnames": "^2.3.2",
"css-background-parser": "^0.1.0",
"css-border-property": "^1.1.0",
"dateformat": "^5.0.3",
"dayjs": "^1.11.7",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback, useState } from "react"
import { parseElementStyle } from "css-background-parser"
import { FoldExtraItem } from "../Fold/FoldExtraItem"
import { Button, Input, Select } from "antd"
import { createSpecialSizeOption, createUnitType, PolyInput } from "../PolyInput"
Expand Down Expand Up @@ -35,7 +34,6 @@ export const BackgroundImageInput = memo((
const { imageTitle, imageSizeTitle, repeatTitle, positionTitle, value, onChange } = props
const [image, setImage] = useState<string>()
const [size, setSize] = useState<string>()
console.log('哈哈', parseElementStyle({ backgroundImage: "url(/ttt.jpg) repeat" }))

const handleSizeChange = useCallback((size?: string | null) => {

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3670,11 +3670,6 @@ crypto-random-string@^2.0.0:
resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==

css-background-parser@^0.1.0:
version "0.1.0"
resolved "https://registry.npmmirror.com/css-background-parser/-/css-background-parser-0.1.0.tgz#48a17f7fe6d4d4f1bca3177ddf16c5617950741b"
integrity sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA==

css-blank-pseudo@^3.0.3:
version "3.0.3"
resolved "https://registry.npmmirror.com/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz#36523b01c12a25d812df343a32c322d2a2324561"
Expand Down

0 comments on commit 69644b6

Please sign in to comment.