svelte-cn icon indicating copy to clipboard operation
svelte-cn copied to clipboard

Svelte 中文文档

Results 10 svelte-cn issues
Sort by recently updated
recently updated
newest added

Hi. First of all, apologies if it's not appropriate to ask this on this repo. I'm the creator of svelte-intl-precompile, a i18n library for Svelte.js. It is important for i18n...

你好。我是 Svelte 核心维护者之一。 我偶然发现了 https://github.com/sveltejs-cn/svelte-cn,想和你们请教一些事情: 你们是: - 如何维护这个文档? - 如何同步线上文档? - 如何发布更新中文文档? 我想多了解你么的流程以便可以和其他语言共享一些方案。 谢谢。🙏

### 翻译部分 @daixinye - 新增gh 分支 ### 组件部分 @tgxpuisb @yuwanli @dujuncheng - 暂无 上周整体进度几近停滞,需要大家合理分配和安排自己的时间,有任何问题和疑问及时抛出。为了更好的促进大家的沟通交流且了解整体的进度,除了周末的电话会议外,暂定周四晚,我会@所有人,需要大家同步当前的进度和问题。

1. 整理合并一轮的review, @dujuncheng @yuwanli @daixinye ,整理完成需通知二轮review的人开始review 2. 开始二轮的review - @dujuncheng review `COMPONENT FORMAT`部分 - @tgxpuisb review 模版语法中的`tags` 到 `Each blocks`部分 - @Copyes review 模版语法中 `Await blocks` 到 `component bindings`部分 -...

``块中的CSS将只作用于该组件,成为私有样式,与外部隔离。 这通过向受影响的元素添加一个基于组件样式的`class`来实现(例如,svelte-123xyz)。 ```js p { /* this will only affect elements in this component */ color: burlywood; } ``` 可以通过使用`:global(...)`修饰符将样式作用域全局。 ```js :global(body) { /* this will apply to */ margin:...

具有`context =“module”`属性的``的模块在首次解析时运行一次,而不是每个组件实例都运行一次。在此类型的模块中申明的`Values`可以被普通的``标签访问到(包括组件标签)但是相反则无法这么使用。 你可以从此模块中`export`这些绑定值,并且他们会成为编译过的模块的导出值 你无法`export`默认值,因为默认导出的是组件本身。 ```js let totalComponents = 0; // this allows an importer to do e.g. // `import Example, { alertTotal } from './Example.svelte'` export function alertTotal() { alert(totalComponents);...

``标签里面包含组件实例在创建时时所运行的`JavaScript`的代码。 在组件标签顶层显示的声明(导入)变量,有下面四条规则: 1、`export` 创建组件属性 `Svelte`使用`export`关键字将变量声明标记为`属性`或`prop`,这意味着组件的使用者可以直接访问这些变量: ```js // these properties can be set externally export let foo; export let bar = 'optional default value'; // you can use export { ......

一些常见的单词和名词,比如 bundler、plugin 应该是没有翻译成中文的必要,这个是不是应该出一个文档做一个统一比较好?

translation