Skip to content

Commit

Permalink
feat: update form* components
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaowei-plus committed Feb 18, 2022
1 parent dd22c2b commit b3b2947
Show file tree
Hide file tree
Showing 74 changed files with 6,636 additions and 53 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const path = require('path')
module.exports = {
collectCoverage: true,
verbose: true,
Expand Down
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"@formily/template": "^1.0.0-alpha.0",
"@formily/core": "^2.0.0",
"@formily/vue": "^2.0.0",
"@vue/composition-api": "^1.4.0",
"@testing-library/jest-dom": "^5.0.0",
"@testing-library/vue": "^5.6.2",
"@vue/test-utils": "1.0.0-beta.22",
Expand Down Expand Up @@ -61,12 +60,17 @@
"ts-node": "^9.1.1",
"lerna": "^4.0.0",
"typescript": "^4.1.5",
"vue": "^2.6.0",
"vuepress": "^1.8.2",
"element-plus": "^2.0.1",
"resize-observer-polyfill": "^1.5.1",
"vue": "^3.2.24",
"vue-loader": "^16.8.3",
"vuepress": "^2.0.0-beta.27",
"vuepress-plugin-typescript": "^0.3.1",
"sass": "^1.34.1",
"sass-loader": "^8.0.2",
"raw-loader": "^4.0.0"
"raw-loader": "^4.0.0",
"html-webpack-plugin": "^3.2.0",
"webpack-dev-server": "^3.5.1"
},
"repository": {
"type": "git",
Expand All @@ -91,12 +95,6 @@
},
"dependencies": {},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-beta.1",
"vue": "^2.6.0 || >=3.0.0-rc.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
"vue": "^3.2.24"
}
}
22 changes: 22 additions & 0 deletions packages/components/__builtins__/styles/common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
$formily-prefix: 'formily-element-plus';
$namespace: 'el';
@import '~element-plus/theme-chalk/src/var.scss';

@mixin active {
border-color: $--color-primary;
outline: 0;
border-right-width: $--border-width-base !important;
}

@mixin hover {
border-color: $--border-color-hover;
outline: 0;
border-right-width: $--border-width-base !important;
}

// 和 element-plus 保持一致
$--font-size-extra-small: var(--el-font-size-extra-small);
$--font-size-extra-large: var(--el-font-size-extra-large);
$--font-size-large: var(--el-font-size-large);
$--font-size-medium: var(--el-font-size-medium);
$--font-size-small: var(--el-font-size-small);
Loading

0 comments on commit b3b2947

Please sign in to comment.