Skip to content

Commit 927bbb7

Browse files
committed
docs: Best practices for using Semi ui in web components
1 parent e2773db commit 927bbb7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/start/web-components/index-en-US.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Web Components
44
icon: doc-webcomponents
55
localeCode: en-US
66
order: 10
7-
brief: Semi Web Components adaptation
7+
brief: Semi ui 在 web components 中使用的最佳实践
88
---
99

10-
[Web components]((https://developer.mozilla.org/en-US/docs/Web/API/Web_components)) is a set of techniques for creating reusable custom elements that are compatible across browsers and frameworks , has good encapsulation and reusability, and is widely used in developing browser plug-ins and cross-frame components.
10+
[Web components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) is a set of techniques for creating reusable custom elements that are compatible across browsers and frameworks , has good encapsulation and reusability, and is widely used in developing browser plug-ins and cross-frame components.
1111

12-
More efficient custom element development can be achieved with the help of component libraries, but the [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) technology in web component has <strong>style isolation</strong> and <strong>DOM encapsulation</strong> features can cause some problems when using component library components. Most component libraries cannot work properly in the shadow DOM without additional adaptations. Generally speaking, there will be the following problems:
12+
More efficient custom element development can be achieved with the help of component libraries, but the [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) technology in web components has <strong>style isolation</strong> and <strong>DOM encapsulation</strong> features can cause some problems when using component library components. Most component libraries cannot work properly in the shadow DOM without additional adaptations. Generally speaking, there will be the following problems:
1313

1414
## Problems
1515

content/start/web-components/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Web components 适配
44
icon: doc-webcomponents
55
localeCode: zh-CN
66
order: 10
7-
brief: Semi 适配 web components
7+
brief: Best practices for using Semi ui in web components
88
---
99

10-
[Web components]((https://developer.mozilla.org/en-US/docs/Web/API/Web_components)) 是一套用于创建可重用自定义元素的技术,可实现跨浏览器和框架兼容,具备良好的封装性和可重用性,被广泛应用于开发浏览器插件、跨框架的组件中。
10+
[Web components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) 是一套用于创建可重用自定义元素的技术,可实现跨浏览器和框架兼容,具备良好的封装性和可重用性,被广泛应用于开发浏览器插件、跨框架的组件中。
1111

12-
借助组件库可实现更高效的自定义元素开发,但是 web component 中的 [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) 技术具备的<strong>样式隔离</strong>和 <strong>DOM 封装</strong>特性会给组件库组件的使用带来一些问题。大多数组件库如果不做额外适配,都无法正常在 shadow DOM 内正常工作,一般来说会存在以下问题:
12+
借助组件库可实现更高效的自定义元素开发,但是 web components 中的 [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) 技术具备的<strong>样式隔离</strong>和 <strong>DOM 封装</strong>特性会给组件库组件的使用带来一些问题。大多数组件库如果不做额外适配,都无法正常在 shadow DOM 内正常工作,一般来说会存在以下问题:
1313

1414
## 问题
1515

0 commit comments

Comments
 (0)