diff --git a/src/pages/list/card/components/DialogForm.vue b/src/pages/list/card/components/DialogForm.vue index 5e5db44..f00d0c3 100644 --- a/src/pages/list/card/components/DialogForm.vue +++ b/src/pages/list/card/components/DialogForm.vue @@ -35,10 +35,20 @@ diff --git a/src/pages/list/card/index.vue b/src/pages/list/card/index.vue index c273009..460446f 100644 --- a/src/pages/list/card/index.vue +++ b/src/pages/list/card/index.vue @@ -76,23 +76,14 @@ import { getCardList } from '@/api/list'; import type { CardProductType } from '@/components/product-card/index.vue'; import ProductCard from '@/components/product-card/index.vue'; +import type { FormData } from './components/DialogForm.vue'; import DialogForm from './components/DialogForm.vue'; -interface FormData { - name: string; - status: string; - description: string; - type: number; - mark: string; - amount: number; - [key: string]: unknown; -} - const INITIAL_DATA: FormData = { name: '', status: '', description: '', - type: 0, + type: '0', mark: '', amount: 0, }; @@ -158,7 +149,7 @@ const handleManageProduct = (product: CardProductType) => { name: product.name, status: product?.isSetup ? '1' : '0', description: product.description, - type: product.type, + type: product.type.toString(), mark: '', amount: 0, }; diff --git a/src/style/index.less b/src/style/index.less index 7e37549..dfda36c 100644 --- a/src/style/index.less +++ b/src/style/index.less @@ -1,3 +1,2 @@ @import './font-family.less'; - @import './reset.less'; diff --git a/src/style/layout.less b/src/style/layout.less index 449e309..d37e312 100644 --- a/src/style/layout.less +++ b/src/style/layout.less @@ -45,7 +45,7 @@ } .t-menu--dark .t-menu__operations .t-icon { - color: rgba(255, 255, 255, 55%); + color: rgb(255 255 255 / 55%); &:hover { cursor: pointer; diff --git a/stylelint.config.js b/stylelint.config.js index 5c79eed..1e9edb5 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -2,30 +2,11 @@ module.exports = { defaultSeverity: 'error', extends: ['stylelint-config-standard'], rules: { - 'no-duplicate-selectors': null, - 'block-no-empty': null, - 'selector-class-pattern': null, - 'declaration-block-no-redundant-longhand-properties': [true, { ignoreShorthands: ['/flex/'] }], - 'custom-property-pattern': null, - 'keyframes-name-pattern': null, - 'no-empty-source': null, - 'font-family-no-missing-generic-family-keyword': [ - true, - { - ignoreFontFamilies: ['PingFangSC-Regular', 'PingFangSC-Medium', 't'], - }, - ], - 'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }], - 'function-url-quotes': null, - 'max-line-length': null, - 'at-rule-empty-line-before': ['always', { ignore: ['after-comment'] }], - 'declaration-colon-newline-after': null, 'no-descending-specificity': null, - 'selector-type-no-unknown': null, - 'color-function-notation': 'legacy', - 'value-keyword-case': null, - 'property-no-unknown': [true, { checkPrefixed: true }], 'import-notation': 'string', + 'no-empty-source': null, + 'custom-property-pattern': null, + 'selector-class-pattern': null, 'selector-pseudo-class-no-unknown': [ true, {