Skip to content

Commit

Permalink
docs(element): update element brandName & codesandbox (#2608)
Browse files Browse the repository at this point in the history
  • Loading branch information
muuyao authored Dec 9, 2021
1 parent a7757be commit 26861a8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
10 changes: 9 additions & 1 deletion packages/element/docs/.vuepress/components/createCodeSandBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ export function createCodeSandBox(codeStr) {
'sass-loader': '^8.0.2',
},
babel: {
presets: ['@vue/cli-plugin-babel/preset'],
presets: [
[
'@vue/babel-preset-jsx',
{
vModel: false,
compositionAPI: true,
},
],
],
},
vue: {
devServer: {
Expand Down
5 changes: 3 additions & 2 deletions packages/element/docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const componentFiles = utils
.filter((item) => !['el-form', 'el-form-item', 'index'].includes(item))

module.exports = {
title: 'Formily Element',
title: 'Element',
description: 'Alibaba unified front-end form solution',
dest: './doc-site',
theme: '@vuepress-dumi/dumi',
head: [
Expand All @@ -30,7 +31,7 @@ module.exports = {
logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg',
nav: [
{
text: '指南',
text: 'Element',
link: '/guide/',
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/element/docs/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.navbar .site-name {
display: none;
// display: none;
}

.navbar .sidebar-button {
Expand Down Expand Up @@ -71,7 +71,7 @@
}

// .theme-dumi-content div[class*="language-"] {
// background-color: #f9fafb;
// background-color: #f9fafb;
// }

// .theme-dumi-content pre[class*="language-"] code {
Expand Down
2 changes: 1 addition & 1 deletion packages/element/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
home: true
heroText: Formily Element
tagline: 基于 Element UI 封装的Formily2.x组件体系
actionText: 开发指南
actionText: 组件文档
actionLink: /guide/
features:
- title: 更易用
Expand Down
4 changes: 2 additions & 2 deletions packages/element/src/form-item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,12 @@ export const FormBaseItem = defineComponent<FormItemProps>({
[`${props.className}`]: !!props.className,
},
on: {
'!focus': () => {
focus: () => {
if (feedbackIcon || inset) {
active.value = true
}
},
'!blur': () => {
blur: () => {
if (feedbackIcon || inset) {
active.value = false
}
Expand Down

0 comments on commit 26861a8

Please sign in to comment.