fix(tailwindcss): remove console warnings
| | |
| | | - 修复锁屏功能可以通过刷新页面或复制 URL 打开新的浏览器标签来跳过锁定状态的问题 |
| | | - 修复多个窗口同时打开页面时,`Token` 不会同步的问题 |
| | | - 修复`ROLE`权限模式下`hasPermission`不工作的问题 |
| | | - **Table** 修复`handleSearchInfoFn`的参数包含多余空白键的问题 |
| | | - **Tailwindcss** 移除控制台警告 |
| | | |
| | | ## 2.5.2(2021-06-27) |
| | | |
| | |
| | | "bootstrap": "yarn install", |
| | | "serve": "npm run dev", |
| | | "dev": "vite", |
| | | "build": "vite build && esno ./build/script/postBuild.ts", |
| | | "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", |
| | | "build:no-cache": "yarn clean:cache && npm run build", |
| | | "report": "cross-env REPORT=true npm run build", |
| | | "type:check": "vue-tsc --noEmit --skipLibCheck", |
| | |
| | | "conventional-changelog-cli": "^2.1.1", |
| | | "cross-env": "^7.0.3", |
| | | "dotenv": "^10.0.0", |
| | | "eslint": "^7.29.0", |
| | | "eslint": "^7.30.0", |
| | | "eslint-config-prettier": "^8.3.0", |
| | | "eslint-define-config": "^1.0.8", |
| | | "eslint-define-config": "^1.0.9", |
| | | "eslint-plugin-jest": "^24.3.6", |
| | | "eslint-plugin-prettier": "^3.4.0", |
| | | "eslint-plugin-vue": "^7.12.1", |
| | |
| | | "ts-jest": "^27.0.3", |
| | | "ts-node": "^10.0.0", |
| | | "typescript": "4.3.5", |
| | | "vite": "2.4.0-beta.3", |
| | | "vite": "2.4.0-beta.2", |
| | | "vite-plugin-compression": "^0.2.5", |
| | | "vite-plugin-html": "^2.0.7", |
| | | "vite-plugin-imagemin": "^0.3.2", |
| | |
| | | <script lang="ts"> |
| | | import { defineComponent, computed } from 'vue'; |
| | | import { Button } from 'ant-design-vue'; |
| | | import { Icon } from '/@/components/Icon'; |
| | | import Icon from '/@/components/Icon/src/Icon.vue'; |
| | | import { buttonProps } from './props'; |
| | | |
| | | export default defineComponent({ |
| | |
| | | computed, |
| | | CSSProperties, |
| | | } from 'vue'; |
| | | |
| | | import SvgIcon from './SvgIcon.vue'; |
| | | import Iconify from '@purge-icons/generated'; |
| | | import { isString } from '/@/utils/is'; |
| | |
| | | |
| | | const SVG_END_WITH_FLAG = '|svg'; |
| | | export default defineComponent({ |
| | | name: 'GIcon', |
| | | name: 'Icon', |
| | | components: { SvgIcon }, |
| | | props: { |
| | | // icon name |
| | |
| | | const { sky: color_sky, ...colors } = require('tailwindcss/colors'); |
| | | |
| | | module.exports = { |
| | | mode: 'jit', |
| | | // darkMode: 'class', |
| | | plugins: [createEnterPlugin()], |
| | | purge: { |
| | | enabled: false, |
| | | enable: process.env.NODE_ENV === 'production', |
| | | content: ['./index.html', './src/**/*.{vue,ts,tsx}'], |
| | | }, |
| | | theme: { |
| | |
| | | zIndex: { |
| | | '-1': '-1', |
| | | }, |
| | | }, |
| | | colors: { |
| | | ...colors, |
| | | sky: color_sky, |
| | | primary: { |
| | | DEFAULT: '#0960bd', |
| | | // dark: primaryColorDark, |
| | | colors: { |
| | | primary: { |
| | | DEFAULT: '#0960bd', |
| | | // dark: primaryColorDark, |
| | | }, |
| | | }, |
| | | }, |
| | | screens: { |
| | | sm: '576px', |
| | | md: '768px', |
| | | lg: '992px', |
| | | xl: '1200px', |
| | | '2xl': '1600px', |
| | | screens: { |
| | | sm: '576px', |
| | | md: '768px', |
| | | lg: '992px', |
| | | xl: '1200px', |
| | | '2xl': '1600px', |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | dependencies: |
| | | "@hapi/hoek" "^8.3.0" |
| | | |
| | | "@humanwhocodes/config-array@^0.5.0": |
| | | version "0.5.0" |
| | | resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" |
| | | integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== |
| | | dependencies: |
| | | "@humanwhocodes/object-schema" "^1.2.0" |
| | | debug "^4.1.1" |
| | | minimatch "^3.0.4" |
| | | |
| | | "@humanwhocodes/object-schema@^1.2.0": |
| | | version "1.2.0" |
| | | resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf" |
| | | integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w== |
| | | |
| | | "@iconify/iconify@2.0.0-rc.6": |
| | | version "2.0.0-rc.6" |
| | | resolved "https://registry.npmjs.org/@iconify/iconify/-/iconify-2.0.0-rc.6.tgz#e3f5376b63b441dcb3696317784b98e2e678cf46" |
| | |
| | | resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a" |
| | | integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew== |
| | | |
| | | eslint-define-config@^1.0.8: |
| | | version "1.0.8" |
| | | resolved "https://registry.npmjs.org/eslint-define-config/-/eslint-define-config-1.0.8.tgz#56cb61f1bcba8ec7a29beec58a85d2ce9299297a" |
| | | integrity sha512-Vfjv/3l112BQ0s+Ua+WGNxtEyxj++IaFCiBkhjT1wlBWtbHpuZcI0t8eCnJZnJrdv0b9n2GK0mcmQsPRRjVCXg== |
| | | eslint-define-config@^1.0.9: |
| | | version "1.0.9" |
| | | resolved "https://registry.yarnpkg.com/eslint-define-config/-/eslint-define-config-1.0.9.tgz#72e5e2410c576667a6ba1b5bff9801eeda476256" |
| | | integrity sha512-LRzNlRo9sv43BAXY+nhZIUCZLRisTMEXXSqlGc2uZ8emAGyJv3FDSew2MIVRMwThexEjVxjNmeqduaexJ/GT3Q== |
| | | |
| | | eslint-plugin-jest@^24.3.6: |
| | | version "24.3.6" |
| | |
| | | resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" |
| | | integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== |
| | | |
| | | eslint@^7.29.0: |
| | | version "7.29.0" |
| | | resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.29.0.tgz#ee2a7648f2e729485e4d0bd6383ec1deabc8b3c0" |
| | | integrity sha512-82G/JToB9qIy/ArBzIWG9xvvwL3R86AlCjtGw+A29OMZDqhTybz/MByORSukGxeI+YPCR4coYyITKk8BFH9nDA== |
| | | eslint@^7.30.0: |
| | | version "7.30.0" |
| | | resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.30.0.tgz#6d34ab51aaa56112fd97166226c9a97f505474f8" |
| | | integrity sha512-VLqz80i3as3NdloY44BQSJpFw534L9Oh+6zJOUaViV4JPd+DaHwutqP7tcpkW3YiXbK6s05RZl7yl7cQn+lijg== |
| | | dependencies: |
| | | "@babel/code-frame" "7.12.11" |
| | | "@eslint/eslintrc" "^0.4.2" |
| | | "@humanwhocodes/config-array" "^0.5.0" |
| | | ajv "^6.10.0" |
| | | chalk "^4.0.0" |
| | | cross-spawn "^7.0.2" |
| | |
| | | esbuild-plugin-alias "^0.1.2" |
| | | tinycolor2 "^1.4.2" |
| | | |
| | | vite@2.4.0-beta.3: |
| | | version "2.4.0-beta.3" |
| | | resolved "https://registry.yarnpkg.com/vite/-/vite-2.4.0-beta.3.tgz#81da5e6cbfb4cb710610e5757567cbe58b667c44" |
| | | integrity sha512-sSUbH0mPMbqqOVZ1/LD/Wiu347yvn4BXjS/94mn5Q7E/zd50hxEnKU1NC4x59TBKq5OeboPhyXwibyCEpyAQKQ== |
| | | vite@2.4.0-beta.2: |
| | | version "2.4.0-beta.2" |
| | | resolved "https://registry.yarnpkg.com/vite/-/vite-2.4.0-beta.2.tgz#ac1e0fcf5bb3a16f0a9ca9ee9ac18e209eee1880" |
| | | integrity sha512-PpK8Zl8sBaO6FbDc/Lb+lfADwBpiBurZyT4g16etqTLmhK2YYIf/jTGyq7qNlU0TqfFcGhmtvlhfnAPr9GqDsQ== |
| | | dependencies: |
| | | esbuild "^0.12.8" |
| | | postcss "^8.3.5" |