提交 e024f6a6 作者: vben

fix: typo

上级 cb1759b2
...@@ -14,7 +14,6 @@ import { configVisualizerConfig } from './visualizer'; ...@@ -14,7 +14,6 @@ import { configVisualizerConfig } from './visualizer';
import { configThemePlugin } from './theme'; import { configThemePlugin } from './theme';
import { configImageminPlugin } from './imagemin'; import { configImageminPlugin } from './imagemin';
import { configSvgIconsPlugin } from './svgSprite'; import { configSvgIconsPlugin } from './svgSprite';
import { configHmrPlugin } from './hmr';
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
const { const {
...@@ -37,9 +36,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { ...@@ -37,9 +36,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
// vite-plugin-windicss // vite-plugin-windicss
vitePlugins.push(windiCSS()); vitePlugins.push(windiCSS());
// TODO
!isBuild && vitePlugins.push(configHmrPlugin());
// @vitejs/plugin-legacy // @vitejs/plugin-legacy
VITE_LEGACY && isBuild && vitePlugins.push(legacy()); VITE_LEGACY && isBuild && vitePlugins.push(legacy());
......
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
"@iconify/iconify": "^2.1.0", "@iconify/iconify": "^2.1.0",
"@logicflow/core": "^0.7.11", "@logicflow/core": "^0.7.11",
"@logicflow/extension": "^0.7.11", "@logicflow/extension": "^0.7.11",
"@vue/runtime-core": "^3.2.23",
"@vue/shared": "^3.2.23",
"@vueuse/core": "^7.1.2", "@vueuse/core": "^7.1.2",
"@vueuse/shared": "^7.1.2", "@vueuse/shared": "^7.1.2",
"@zxcvbn-ts/core": "^1.0.0", "@zxcvbn-ts/core": "^1.0.0",
......
...@@ -36,6 +36,8 @@ specifiers: ...@@ -36,6 +36,8 @@ specifiers:
'@vitejs/plugin-vue': ^1.10.1 '@vitejs/plugin-vue': ^1.10.1
'@vitejs/plugin-vue-jsx': ^1.3.0 '@vitejs/plugin-vue-jsx': ^1.3.0
'@vue/compiler-sfc': 3.2.23 '@vue/compiler-sfc': 3.2.23
'@vue/runtime-core': ^3.2.23
'@vue/shared': ^3.2.23
'@vue/test-utils': ^2.0.0-rc.17 '@vue/test-utils': ^2.0.0-rc.17
'@vueuse/core': ^7.1.2 '@vueuse/core': ^7.1.2
'@vueuse/shared': ^7.1.2 '@vueuse/shared': ^7.1.2
...@@ -122,6 +124,8 @@ dependencies: ...@@ -122,6 +124,8 @@ dependencies:
'@iconify/iconify': 2.1.0 '@iconify/iconify': 2.1.0
'@logicflow/core': 0.7.11 '@logicflow/core': 0.7.11
'@logicflow/extension': 0.7.11 '@logicflow/extension': 0.7.11
'@vue/runtime-core': 3.2.23
'@vue/shared': 3.2.23
'@vueuse/core': 7.1.2_vue@3.2.23 '@vueuse/core': 7.1.2_vue@3.2.23
'@vueuse/shared': 7.1.2_vue@3.2.23 '@vueuse/shared': 7.1.2_vue@3.2.23
'@zxcvbn-ts/core': 1.0.0 '@zxcvbn-ts/core': 1.0.0
......
...@@ -2,6 +2,7 @@ export { default as BasicTable } from './src/BasicTable.vue'; ...@@ -2,6 +2,7 @@ export { default as BasicTable } from './src/BasicTable.vue';
export { default as TableAction } from './src/components/TableAction.vue'; export { default as TableAction } from './src/components/TableAction.vue';
export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue'; export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue';
export { default as TableImg } from './src/components/TableImg.vue'; export { default as TableImg } from './src/components/TableImg.vue';
export * from './src/types/table'; export * from './src/types/table';
export * from './src/types/pagination'; export * from './src/types/pagination';
export * from './src/types/tableAction'; export * from './src/types/tableAction';
......
...@@ -15,10 +15,10 @@ import { DEFAULT_FILTER_FN, DEFAULT_SORT_FN, FETCH_SETTING, DEFAULT_SIZE } from ...@@ -15,10 +15,10 @@ import { DEFAULT_FILTER_FN, DEFAULT_SORT_FN, FETCH_SETTING, DEFAULT_SIZE } from
import { propTypes } from '/@/utils/propTypes'; import { propTypes } from '/@/utils/propTypes';
export const basicProps = { export const basicProps = {
clickToRowSelect: propTypes.bool.def(true), clickToRowSelect: { type: Boolean, default: true },
isTreeTable: propTypes.bool.def(false), isTreeTable: Boolean,
tableSetting: propTypes.shape<TableSetting>({}), tableSetting: propTypes.shape<TableSetting>({}),
inset: propTypes.bool, inset: Boolean,
sortFn: { sortFn: {
type: Function as PropType<(sortInfo: SorterResult) => any>, type: Function as PropType<(sortInfo: SorterResult) => any>,
default: DEFAULT_SORT_FN, default: DEFAULT_SORT_FN,
...@@ -27,10 +27,10 @@ export const basicProps = { ...@@ -27,10 +27,10 @@ export const basicProps = {
type: Function as PropType<(data: Partial<Recordable<string[]>>) => any>, type: Function as PropType<(data: Partial<Recordable<string[]>>) => any>,
default: DEFAULT_FILTER_FN, default: DEFAULT_FILTER_FN,
}, },
showTableSetting: propTypes.bool, showTableSetting: Boolean,
autoCreateKey: propTypes.bool.def(true), autoCreateKey: { type: Boolean, default: true },
striped: propTypes.bool.def(true), striped: { type: Boolean, default: true },
showSummary: propTypes.bool, showSummary: Boolean,
summaryFunc: { summaryFunc: {
type: [Function, Array] as PropType<(...arg: any[]) => any[]>, type: [Function, Array] as PropType<(...arg: any[]) => any[]>,
default: null, default: null,
...@@ -40,7 +40,7 @@ export const basicProps = { ...@@ -40,7 +40,7 @@ export const basicProps = {
default: null, default: null,
}, },
indentSize: propTypes.number.def(24), indentSize: propTypes.number.def(24),
canColDrag: propTypes.bool.def(true), canColDrag: { type: Boolean, default: true },
api: { api: {
type: Function as PropType<(...arg: any[]) => Promise<any>>, type: Function as PropType<(...arg: any[]) => Promise<any>>,
default: null, default: null,
...@@ -64,8 +64,8 @@ export const basicProps = { ...@@ -64,8 +64,8 @@ export const basicProps = {
}, },
}, },
// 立即请求接口 // 立即请求接口
immediate: propTypes.bool.def(true), immediate: { type: Boolean, default: true },
emptyDataIsShowTable: propTypes.bool.def(true), emptyDataIsShowTable: { type: Boolean, default: true },
// 额外的请求参数 // 额外的请求参数
searchInfo: { searchInfo: {
type: Object as PropType<Recordable>, type: Object as PropType<Recordable>,
...@@ -87,7 +87,7 @@ export const basicProps = { ...@@ -87,7 +87,7 @@ export const basicProps = {
type: [Array] as PropType<BasicColumn[]>, type: [Array] as PropType<BasicColumn[]>,
default: () => [], default: () => [],
}, },
showIndexColumn: propTypes.bool.def(true), showIndexColumn: { type: Boolean, default: true },
indexColumnProps: { indexColumnProps: {
type: Object as PropType<BasicColumn>, type: Object as PropType<BasicColumn>,
default: null, default: null,
...@@ -96,8 +96,8 @@ export const basicProps = { ...@@ -96,8 +96,8 @@ export const basicProps = {
type: Object as PropType<BasicColumn>, type: Object as PropType<BasicColumn>,
default: null, default: null,
}, },
ellipsis: propTypes.bool.def(true), ellipsis: { type: Boolean, default: true },
canResize: propTypes.bool.def(true), canResize: { type: Boolean, default: true },
clearSelectOnPageChange: propTypes.bool, clearSelectOnPageChange: propTypes.bool,
resizeHeightOffset: propTypes.number.def(0), resizeHeightOffset: propTypes.number.def(0),
rowSelection: { rowSelection: {
......
// button reset // button reset
.ant-btn { .ant-btn {
// display: inline-flex;
// justify-content: center;
// align-items: center;
// &.ant-btn-success:not(.ant-btn-link),
// &.ant-btn-error:not(.ant-btn-link),
// &.ant-btn-warning:not(.ant-btn-link),
// &.ant-btn-primary:not(.ant-btn-link) {
// box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08) !important;
// }
// &-group {
// .ant-btn:not(:first-child) {
// bottom: 1px;
// }
// }
&-link:hover, &-link:hover,
&-link:focus, &-link:focus,
&-link:active { &-link:active {
...@@ -29,23 +15,12 @@ ...@@ -29,23 +15,12 @@
color: @white; color: @white;
background-color: @button-primary-hover-color; background-color: @button-primary-hover-color;
} }
//
//&[disabled],
//&[disabled]:hover {
// color: fade(@button-cancel-color, 40%) !important;
// background-color: fade(@button-cancel-bg-color, 40%) !important;
// border-color: fade(@button-cancel-border-color, 40%) !important;
//}
} }
&-primary:not(&-background-ghost):not([disabled]) { &-primary:not(&-background-ghost):not([disabled]) {
color: @white; color: @white;
} }
//&-primary:not(&-background-ghost) {
// border-width: 0;
//}
&-default { &-default {
color: @button-cancel-color; color: @button-cancel-color;
background-color: @button-cancel-bg-color; background-color: @button-cancel-bg-color;
...@@ -127,13 +102,6 @@ ...@@ -127,13 +102,6 @@
background-color: @button-success-active-color; background-color: @button-success-active-color;
border-color: @button-success-active-color; border-color: @button-success-active-color;
} }
//&[disabled],
//&[disabled]:hover {
// color: @white;
// background-color: fade(@button-success-color, 40%);
// border-color: fade(@button-success-color, 40%);
//}
} }
&-warning.ant-btn-link:not([disabled='disabled']) { &-warning.ant-btn-link:not([disabled='disabled']) {
......
@import './pagination.less'; @import './pagination.less';
@import './input.less'; @import './input.less';
@import './btn.less'; @import './btn.less';
// @import './table.less';
// TODO beta.11 fix
.ant-col {
width: 100%;
}
.ant-image-preview-root { .ant-image-preview-root {
img { img {
......
...@@ -95,6 +95,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { ...@@ -95,6 +95,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
optimizeDeps: { optimizeDeps: {
// @iconify/iconify: The dependency is dynamically and virtually loaded by @purge-icons/generated, so it needs to be specified explicitly // @iconify/iconify: The dependency is dynamically and virtually loaded by @purge-icons/generated, so it needs to be specified explicitly
include: [ include: [
'@vue/runtime-core',
'@vue/shared',
'@iconify/iconify', '@iconify/iconify',
'ant-design-vue/es/locale/zh_CN', 'ant-design-vue/es/locale/zh_CN',
'ant-design-vue/es/locale/en_US', 'ant-design-vue/es/locale/en_US',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论