提交 5b7fa2dd 编写于 作者: fxy060608's avatar fxy060608

chore: style

上级 ad6bbfe1
@import './base.css';
uni-checkbox-group {
display: block;
}
uni-checkbox {
-webkit-tap-highlight-color: transparent;
......@@ -14,7 +16,7 @@ uni-checkbox[disabled] {
cursor: not-allowed;
}
uni-checkbox .uni-checkbox-wrapper {
.uni-checkbox-wrapper {
display: -webkit-inline-flex;
display: inline-flex;
-webkit-align-items: center;
......@@ -22,7 +24,7 @@ uni-checkbox .uni-checkbox-wrapper {
vertical-align: middle;
}
uni-checkbox .uni-checkbox-input {
.uni-checkbox-input {
margin-right: 5px;
-webkit-appearance: none;
appearance: none;
......@@ -39,11 +41,11 @@ uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
border-color: #007aff;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
.uni-checkbox-input.uni-checkbox-input-checked {
color: #007aff;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
.uni-checkbox-input.uni-checkbox-input-checked:before {
font: normal normal normal 14px/1 'uni';
content: '\EA08';
font-size: 22px;
......@@ -54,14 +56,10 @@ uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
-webkit-transform: translate(-50%, -48%) scale(0.73);
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-disabled {
.uni-checkbox-input.uni-checkbox-input-disabled {
background-color: #e1e1e1;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-disabled:before {
.uni-checkbox-input.uni-checkbox-input-disabled:before {
color: #adadad;
}
uni-checkbox-group {
display: block;
}
......@@ -8,7 +8,7 @@ uni-slider[hidden] {
display: none;
}
uni-slider .uni-slider-wrapper {
.uni-slider-wrapper {
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
......@@ -16,13 +16,13 @@ uni-slider .uni-slider-wrapper {
min-height: 16px;
}
uni-slider .uni-slider-tap-area {
.uni-slider-tap-area {
-webkit-flex: 1;
flex: 1;
padding: 8px 0;
}
uni-slider .uni-slider-handle-wrapper {
.uni-slider-handle-wrapper {
position: relative;
height: 2px;
border-radius: 5px;
......@@ -32,15 +32,15 @@ uni-slider .uni-slider-handle-wrapper {
-webkit-tap-highlight-color: transparent;
}
uni-slider .uni-slider-track {
.uni-slider-track {
height: 100%;
border-radius: 6px;
background-color: #007aff;
transition: background-color 0.3s ease;
}
uni-slider .uni-slider-handle,
uni-slider .uni-slider-thumb {
.uni-slider-handle,
.uni-slider-thumb {
position: absolute;
left: 50%;
top: 50%;
......@@ -49,7 +49,7 @@ uni-slider .uni-slider-thumb {
transition: border-color 0.3s ease;
}
uni-slider .uni-slider-handle {
.uni-slider-handle {
width: 28px;
height: 28px;
margin-top: -14px;
......@@ -59,12 +59,12 @@ uni-slider .uni-slider-handle {
cursor: grab;
}
uni-slider .uni-slider-thumb {
.uni-slider-thumb {
z-index: 2;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
uni-slider .uni-slider-step {
.uni-slider-step {
position: absolute;
width: 100%;
height: 2px;
......@@ -72,17 +72,17 @@ uni-slider .uni-slider-step {
z-index: 1;
}
uni-slider .uni-slider-value {
.uni-slider-value {
color: #888;
font-size: 14px;
margin-left: 1em;
}
uni-slider .uni-slider-disabled .uni-slider-track {
.uni-slider-disabled .uni-slider-track {
background-color: #ccc;
}
uni-slider .uni-slider-disabled .uni-slider-thumb {
.uni-slider-disabled .uni-slider-thumb {
background-color: #fff;
border-color: #ccc;
}
import { UserConfig } from 'vite'
import autoprefixer from 'autoprefixer'
import { VitePluginUniResolvedOptions } from '..'
import { uniapp } from '../utils/postcss'
import { uniapp } from '../utils'
export function createCss(
_options: VitePluginUniResolvedOptions
......
......@@ -7,7 +7,7 @@ import { isBuiltInComponent } from '@dcloudio/uni-shared'
import { EXTNAME_VUE, parseVueRequest } from '@dcloudio/uni-cli-shared'
import { UniPluginFilterOptions } from '.'
import { debugEasycom, matchEasycom } from '../../easycom'
import { debugEasycom, matchEasycom } from '../../utils'
const COMPONENTS_PATH = '@dcloudio/uni-h5/dist/uni-h5.esm.js'
const COMPONENTS_STYLE_PATH = '@dcloudio/uni-h5/style/'
......@@ -30,7 +30,7 @@ export function uniEasycomPlugin(options: UniPluginFilterOptions): Plugin {
code = code.replace(/_resolveComponent\("(.+?)"\)/g, (str, name) => {
if (name && !name.startsWith('_')) {
if (isBuiltInComponent(name)) {
return addSystemImportDeclaration(
return addBuiltInImportDeclaration(
importDeclarations,
`__syscom_${i++}`,
name
......@@ -55,7 +55,7 @@ export function uniEasycomPlugin(options: UniPluginFilterOptions): Plugin {
}
}
function addSystemImportDeclaration(
function addBuiltInImportDeclaration(
importDeclarations: string[],
local: string,
name: string
......
......@@ -2,7 +2,7 @@ import path from 'path'
import { ViteDevServer } from 'vite'
import { VitePluginUniResolvedOptions } from '..'
import { debugEasycom, initEasycom } from '../easycom'
import { debugEasycom, initEasycom } from '../utils'
function initEasycoms(inputDir: string) {
const dirs = ['components'].map((dir) => path.resolve(inputDir, dir))
......
export * from './filter'
export * from './define'
export * from './easycom'
export * from './postcss'
export * from './pagesJson'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册