-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'examples/basic' of https://github.com/alirezahamid/docs-fa
- Loading branch information
Showing
17 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<p> | ||
<span :title="message"> | ||
Hover your mouse over me for a few seconds to see my dynamically bound title! | ||
برای چند ثانیه ماوس خود را روی من نگه دارید تا عنوان پیوندی دینامیک من | ||
را ببینید! | ||
</span> | ||
</p> | ||
|
||
<!-- | ||
class bindings have special support for objects and arrays | ||
in addition to plain strings | ||
--> | ||
کلاس پشتیبانی ویژهای برای اشیاء و آرایهها | ||
علاوه بر رشتههای ساده دارد | ||
--> | ||
<p :class="{ red: isRed }" @click="toggleRed"> | ||
This should be red... but click me to toggle it. | ||
این باید قرمز باشد... اما روی من کلیک کنید تا تغییر کند. | ||
</p> | ||
|
||
<!-- style bindings also support object and arrays --> | ||
<!-- استایل نیز از اشیاء و آرایهها پشتیبانی میکنند --> | ||
<p :style="{ color }" @click="toggleColor"> | ||
This should be green, and should toggle between green and blue on click. | ||
این باید سبز باشد و باید با هر کلیک بین سبز و آبی تغییر کند. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Here we are reactively binding element attributes / properties to the state. | ||
The :title syntax is short for v-bind:title. | ||
در اینجا ما به طور واکنشگرا، شاخصهها / ویژگیهای المان را به state متصل میکنیم. | ||
نحو :title کوتاه شدهی v-bind:title است. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
We can render content conditionally or in a loop with the v-if and v-for directives. | ||
میتوانیم محتوا را به طور شرطی یا در یک حلقه با استفاده از دایرکتیوهای v-if و v-for نمایش دهیم. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
We can create two-way bindings between state and form inputs using the v-model directive. | ||
میتوانیم اتصالات دو طرفه بین state و ورودیهای فرم را با استفاده از دایرکتیو v-model ایجاد کنیم. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export default { | ||
data() { | ||
return { | ||
message: 'Hello World!' | ||
message: 'سلام دنیا!' | ||
} | ||
}, | ||
methods: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<!-- | ||
Note we don't need .value inside templates because | ||
refs are automatically "unwrapped" in templates. | ||
توجه داشته باشید که ما به .value درون قالب ها نیاز نداریم زیرا | ||
ref ها به طور خودکار در قالب ها "باز" می شوند. | ||
--> | ||
<h1>{{ message }}</h1> | ||
|
||
<!-- | ||
Bind to a method/function. | ||
The @click syntax is short for v-on:click. | ||
اتصال به یک روش/عملکرد. | ||
سینتکس @click مخفف v-on:click است. | ||
--> | ||
<button @click="reverseMessage">Reverse Message</button> | ||
|
||
<!-- Can also be an inline expression statement --> | ||
<!-- همچنین می تواند یک عبارت عبارت درونی باشد --> | ||
<button @click="message += '!'">Append "!"</button> | ||
|
||
<!-- | ||
Vue also provides modifiers for common tasks | ||
such as e.preventDefault() and e.stopPropagation() | ||
Vue همچنین اصلاح کننده هایی را برای کارهای رایج ارائه می دهد | ||
مانند e.preventDefault() و e.stopPropagation() | ||
--> | ||
<a href="https://vuejs.org" @click.prevent="notify"> | ||
A link with e.preventDefault() | ||
پیوندی با e.preventDefault() | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This example demonstrates handling user input with the v-on directive. | ||
این مثال نحوه برخورد با ورودی کاربر با استفاده از دایرکتیو v-on را نشان میدهد. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export default { | ||
data() { | ||
return { | ||
message: 'Hello World!' | ||
message: 'سلام دنیا!' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Say Hello World with Vue! | ||
با استفاده از Vue به جهان سلام کنید! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Here we show the simplest possible component which accepts a prop and renders it. | ||
Learn more about components in the guide! | ||
در اینجا ما ساده ترین مؤلفه ممکن را نشان می دهیم که یک prop را می پذیرد و آن را رندر می کند. | ||
اطلاعات بیشتر در مورد اجزاء در راهنما! |