mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
feat: ✨ 将 Tabbar 和 Badge 设置为标准盒子模型 (#1036)
This commit is contained in:
parent
901c7548fc
commit
7f2ccb2d37
14
.eslintrc.js
14
.eslintrc.js
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: weisheng
|
* @Author: weisheng
|
||||||
* @Date: 2023-03-14 16:06:21
|
* @Date: 2023-03-14 16:06:21
|
||||||
* @LastEditTime: 2023-03-28 16:52:32
|
* @LastEditTime: 2025-05-06 21:14:16
|
||||||
* @LastEditors: weisheng
|
* @LastEditors: weisheng
|
||||||
* @Description:
|
* @Description:
|
||||||
* @FilePath: \wot-design-uni\.eslintrc.js
|
* @FilePath: /wot-design-uni/.eslintrc.js
|
||||||
* 记得注释
|
* 记得注释
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -37,6 +37,14 @@ module.exports = {
|
|||||||
'no-inner-declarations': 'off',
|
'no-inner-declarations': 'off',
|
||||||
'@typescript-eslint/no-this-alias': 'off',
|
'@typescript-eslint/no-this-alias': 'off',
|
||||||
'@typescript-eslint/no-empty-function': 'off',
|
'@typescript-eslint/no-empty-function': 'off',
|
||||||
'vue/multi-word-component-names': 'off'
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'@typescript-eslint/consistent-type-imports': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
prefer: 'type-imports',
|
||||||
|
disallowTypeAnnotations: false,
|
||||||
|
fixStyle: 'inline-type-imports'
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,9 +135,7 @@
|
|||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
"mini-types": "^0.1.7",
|
"mini-types": "^0.1.7",
|
||||||
"miniprogram-api-typings": "^3.12.3",
|
"miniprogram-api-typings": "^3.12.3",
|
||||||
"npm-run-all": "^4.1.5",
|
|
||||||
"prettier": "^2.8.4",
|
"prettier": "^2.8.4",
|
||||||
"puppeteer": "14.0.0",
|
|
||||||
"query-string": "^8.1.0",
|
"query-string": "^8.1.0",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"rollup-plugin-visualizer": "^5.9.0",
|
"rollup-plugin-visualizer": "^5.9.0",
|
||||||
|
|||||||
664
pnpm-lock.yaml
generated
664
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
src/env.d.ts
vendored
2
src/env.d.ts
vendored
@ -10,7 +10,7 @@
|
|||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
|
|
||||||
declare module '*.vue' {
|
declare module '*.vue' {
|
||||||
import { DefineComponent } from 'vue'
|
import { type DefineComponent } from 'vue'
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||||||
const component: DefineComponent<{}, {}, any>
|
const component: DefineComponent<{}, {}, any>
|
||||||
export default component
|
export default component
|
||||||
|
|||||||
@ -121,7 +121,7 @@ import type { ColPickerColumnChangeOption } from '@/uni_modules/wot-design-uni/c
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useColPickerData } from '@/hooks/useColPickerData'
|
import { useColPickerData } from '@/hooks/useColPickerData'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { Action } from '@/uni_modules/wot-design-uni/components/wd-action-sheet/types'
|
import { type Action } from '@/uni_modules/wot-design-uni/components/wd-action-sheet/types'
|
||||||
const { colPickerData, findChildrenByCode } = useColPickerData()
|
const { colPickerData, findChildrenByCode } = useColPickerData()
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
@include e(content) {
|
@include e(content) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
box-sizing: content-box;
|
||||||
height: $-badge-height;
|
height: $-badge-height;
|
||||||
line-height: $-badge-height;
|
line-height: $-badge-height;
|
||||||
padding: $-badge-padding;
|
padding: $-badge-padding;
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
height: $-tabbar-height;
|
height: $-tabbar-height;
|
||||||
|
|
||||||
@include e(placeholder) {
|
@include e(placeholder) {
|
||||||
|
box-sizing: content-box;
|
||||||
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
@ -39,6 +40,7 @@
|
|||||||
|
|
||||||
@include when(fixed) {
|
@include when(fixed) {
|
||||||
@include when(safe) {
|
@include when(safe) {
|
||||||
|
box-sizing: content-box;
|
||||||
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user