docs(site): add demos Tiny prefix (#2436)

This commit is contained in:
gimmyhehe 2024-10-28 15:42:15 +08:00 committed by GitHub
parent e1e28411c1
commit 1cbf1f2622
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4141 changed files with 14435 additions and 14766 deletions

View File

@ -27,12 +27,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button, Modal } from '@opentiny/vue' import { TinyActionSheet, TinyButton, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {
@ -43,10 +43,10 @@ export default {
}, },
methods: { methods: {
selectOption(option, index) { selectOption(option, index) {
Modal.message(`选择了第${index + 1}项 [${option}]`) TinyModal.message(`选择了第${index + 1}项 [${option}]`)
}, },
close() { close() {
Modal.message('点击取消了') TinyModal.message('点击取消了')
} }
} }
} }

View File

@ -10,12 +10,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -10,18 +10,18 @@
</template> </template>
<script> <script>
import { ActionSheet, Button, Modal } from '@opentiny/vue' import { TinyActionSheet, TinyButton, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {
boxVisibility: false, boxVisibility: false,
beforeCloseFn() { beforeCloseFn() {
Modal.message('已拦截关闭动作!') TinyModal.message('已拦截关闭动作!')
return false return false
} }
} }

View File

@ -33,12 +33,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -10,18 +10,18 @@
</template> </template>
<script> <script>
import { ActionSheet, Button, Modal } from '@opentiny/vue' import { TinyActionSheet, TinyButton, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {
boxVisibility: false, boxVisibility: false,
beforeCloseFn() { beforeCloseFn() {
Modal.message('已拦截关闭动作!') TinyModal.message('已拦截关闭动作!')
return false return false
} }
} }

View File

@ -11,12 +11,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -11,12 +11,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -32,12 +32,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
const list = [ const list = [

View File

@ -35,12 +35,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -65,12 +65,12 @@
</template> </template>
<script> <script>
import { ActionSheet, Button } from '@opentiny/vue' import { TinyActionSheet, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyActionSheet: ActionSheet, TinyActionSheet,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -14,11 +14,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -6,15 +6,15 @@
</template> </template>
<script> <script>
import { Alert, Modal } from '@opentiny/vue' import { TinyAlert, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
}, },
methods: { methods: {
close() { close() {
Modal('关闭了') TinyModal('关闭了')
} }
} }
} }

View File

@ -3,15 +3,15 @@
</template> </template>
<script> <script>
import { Alert, Modal } from '@opentiny/vue' import { TinyAlert, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
}, },
methods: { methods: {
close() { close() {
Modal.message('关闭了') TinyModal.message('关闭了')
} }
} }
} }

View File

@ -5,11 +5,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -9,11 +9,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -5,12 +5,12 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
import { iconBoat } from '@opentiny/vue-icon' import { iconBoat } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
}, },
data() { data() {
return { return {

View File

@ -15,12 +15,12 @@
</template> </template>
<script> <script>
import { Alert, Button } from '@opentiny/vue' import { TinyAlert, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert, TinyAlert,
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -9,12 +9,12 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
import { IconBoat } from '@opentiny/vue-icon' import { IconBoat } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
}, },
data() { data() {
return { return {

View File

@ -32,12 +32,12 @@
</template> </template>
<script> <script>
import { Alert, Link } from '@opentiny/vue' import { TinyAlert, TinyLink } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert, TinyAlert,
TinyLink: Link TinyLink
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -38,12 +38,12 @@
</template> </template>
<script> <script>
import { Alert, Button } from '@opentiny/vue' import { TinyAlert, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert, TinyAlert,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -9,11 +9,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -14,11 +14,11 @@
</template> </template>
<script> <script>
import { Alert } from '@opentiny/vue' import { TinyAlert } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAlert: Alert TinyAlert
} }
} }
</script> </script>

View File

@ -6,12 +6,12 @@
</template> </template>
<script> <script>
import { Amount, Button } from '@opentiny/vue' import { TinyAmount, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount, TinyAmount,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -8,11 +8,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount, Modal } from '@opentiny/vue' import { TinyAmount, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {
@ -17,7 +17,7 @@ export default {
}, },
methods: { methods: {
change(val) { change(val) {
Modal.message({ TinyModal.message({
message: `改变后的值:${JSON.stringify(val)}`, message: `改变后的值:${JSON.stringify(val)}`,
status: 'info' status: 'info'
}) })

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount, Modal } from '@opentiny/vue' import { TinyAmount, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {
@ -16,7 +16,7 @@ export default {
}, },
methods: { methods: {
handleChange(value) { handleChange(value) {
Modal.message({ message: `当前值为 ${value.amount}`, status: 'info' }) TinyModal.message({ message: `当前值为 ${value.amount}`, status: 'info' })
} }
} }
} }

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -11,11 +11,11 @@
</template> </template>
<script> <script>
import { Amount, Modal } from '@opentiny/vue' import { TinyAmount, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {
@ -24,10 +24,10 @@ export default {
}, },
methods: { methods: {
clearHander() { clearHander() {
Modal.message({ message: '清除 事件', status: 'info' }) TinyModal.message({ message: '清除 事件', status: 'info' })
}, },
changeHander(label) { changeHander(label) {
Modal.message({ message: 'change 事件' + label, status: 'info' }) TinyModal.message({ message: 'change 事件' + label, status: 'info' })
} }
} }
} }

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -10,11 +10,11 @@
</template> </template>
<script> <script>
import { Amount, Modal } from '@opentiny/vue' import { TinyAmount, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {
@ -23,7 +23,7 @@ export default {
}, },
methods: { methods: {
handleChange(value) { handleChange(value) {
Modal.message({ message: `当前值为 ${value.amount}`, status: 'info' }) TinyModal.message({ message: `当前值为 ${value.amount}`, status: 'info' })
} }
} }
} }

View File

@ -12,13 +12,13 @@
</template> </template>
<script> <script>
import { Amount, Form, FormItem } from '@opentiny/vue' import { TinyAmount, TinyForm, TinyFormItem } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount, TinyAmount,
TinyForm: Form, TinyForm,
TinyFormItem: FormItem TinyFormItem
}, },
data() { data() {
return { return {

View File

@ -13,11 +13,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount, Modal } from '@opentiny/vue' import { TinyAmount, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {
@ -17,7 +17,7 @@ export default {
}, },
methods: { methods: {
change(val) { change(val) {
Modal.message({ TinyModal.message({
message: `改变后的值:${JSON.stringify(val)}`, message: `改变后的值:${JSON.stringify(val)}`,
status: 'info' status: 'info'
}) })

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -19,11 +19,11 @@
</template> </template>
<script> <script>
import { Amount } from '@opentiny/vue' import { TinyAmount } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAmount: Amount TinyAmount
}, },
data() { data() {
return { return {

View File

@ -9,12 +9,12 @@
</template> </template>
<script> <script>
import { Anchor, Switch } from '@opentiny/vue' import { TinyAnchor, TinySwitch } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAnchor: Anchor, TinyAnchor,
TinySwitch: Switch TinySwitch
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Anchor, Modal } from '@opentiny/vue' import { TinyAnchor, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAnchor: Anchor TinyAnchor
}, },
data() { data() {
return { return {
@ -49,7 +49,7 @@ export default {
}, },
methods: { methods: {
handleChange(link) { handleChange(link) {
Modal.message({ message: `change${link}`, status: 'info' }) TinyModal.message({ message: `change${link}`, status: 'info' })
} }
} }
} }

View File

@ -9,12 +9,12 @@
</template> </template>
<script> <script>
import { Anchor, Switch } from '@opentiny/vue' import { TinyAnchor, TinySwitch } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAnchor: Anchor, TinyAnchor,
TinySwitch: Switch TinySwitch
}, },
data() { data() {
return { return {

View File

@ -21,13 +21,13 @@
</template> </template>
<script> <script>
import { Anchor, Row, Col } from '@opentiny/vue' import { TinyAnchor, TinyRow, TinyCol } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyAnchor: Anchor, TinyAnchor,
TinyRow: Row, TinyRow,
TinyCol: Col TinyCol
}, },
data() { data() {
return { return {

View File

@ -40,16 +40,16 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
import { UserHead } from '@opentiny/vue' import { TinyUserHead } from '@opentiny/vue'
import { UserContact } from '@opentiny/vue' import { TinyUserContact } from '@opentiny/vue'
import { IconSmile } from '@opentiny/vue-icon' import { IconSmile } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyBadge: Badge, TinyBadge,
TinyUserHead: UserHead, TinyUserHead,
TinyUserContact: UserContact TinyUserContact
}, },
data() { data() {
return { return {

View File

@ -7,12 +7,12 @@
</template> </template>
<script> <script>
import { Badge, Button } from '@opentiny/vue' import { TinyBadge, TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge, TinyBadge,
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -7,11 +7,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -7,11 +7,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -13,11 +13,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { Badge } from '@opentiny/vue' import { TinyBadge } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyBadge: Badge TinyBadge
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -7,12 +7,12 @@
</template> </template>
<script> <script>
import { Button, ButtonGroup } from '@opentiny/vue' import { TinyButton, TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button, TinyButton,
TinyButtonGroup: ButtonGroup TinyButtonGroup
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { ButtonGroup } from '@opentiny/vue' import { TinyButtonGroup } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButtonGroup: ButtonGroup TinyButtonGroup
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -20,14 +20,14 @@
</template> </template>
<script> <script>
import { Button, Layout, Row } from '@opentiny/vue' import { TinyButton, TinyLayout, TinyRow } from '@opentiny/vue'
import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon' import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyButton: Button, TinyButton,
TinyLayout: Layout, TinyLayout,
TinyRow: Row TinyRow
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -20,14 +20,14 @@
</template> </template>
<script> <script>
import { Button, Layout, Row } from '@opentiny/vue' import { TinyButton, TinyLayout, TinyRow } from '@opentiny/vue'
import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon' import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyButton: Button, TinyButton,
TinyLayout: Layout, TinyLayout,
TinyRow: Row TinyRow
}, },
data() { data() {
return { return {

View File

@ -3,15 +3,15 @@
</template> </template>
<script> <script>
import { Button, Modal } from '@opentiny/vue' import { TinyButton, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
}, },
methods: { methods: {
click() { click() {
Modal.message('click') TinyModal.message('click')
} }
} }
} }

View File

@ -17,13 +17,13 @@
</template> </template>
<script> <script>
import { Button, Layout, Row } from '@opentiny/vue' import { TinyButton, TinyLayout, TinyRow } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button, TinyButton,
TinyLayout: Layout, TinyLayout,
TinyRow: Row TinyRow
}, },
data() { data() {
return { return {

View File

@ -10,12 +10,12 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon' import { IconDel, IconYes, IconEdit, IconMail, IconStarO, IconSearch } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -5,11 +5,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -10,11 +10,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -10,11 +10,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -7,11 +7,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -10,11 +10,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -8,11 +8,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -13,13 +13,13 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
import { IconUpload } from '@opentiny/vue-icon' import { IconUpload } from '@opentiny/vue-icon'
export default { export default {
components: { components: {
IconUpload: IconUpload(), IconUpload: IconUpload(),
TinyButton: Button TinyButton
}, },
data() { data() {
return { return {

View File

@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -11,11 +11,11 @@
</template> </template>
<script> <script>
import { Button } from '@opentiny/vue' import { TinyButton } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyButton: Button TinyButton
} }
} }
</script> </script>

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar, Modal } from '@opentiny/vue' import { TinyCalendarBar, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {
@ -17,9 +17,9 @@ export default {
methods: { methods: {
expand(expanded) { expand(expanded) {
if (expanded) { if (expanded) {
Modal.message('处于展开状态') TinyModal.message('处于展开状态')
} else { } else {
Modal.message('处于收起状态') TinyModal.message('处于收起状态')
} }
} }
} }

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarBar } from '@opentiny/vue' import { TinyCalendarBar } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarBar: CalendarBar TinyCalendarBar
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarView } from '@opentiny/vue' import { TinyCalendarView } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {

View File

@ -11,11 +11,11 @@
</template> </template>
<script> <script>
import { CalendarView } from '@opentiny/vue' import { TinyCalendarView } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {

View File

@ -3,11 +3,11 @@
</template> </template>
<script> <script>
import { CalendarView } from '@opentiny/vue' import { TinyCalendarView } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {

View File

@ -13,11 +13,11 @@
</template> </template>
<script> <script>
import { CalendarView, Modal } from '@opentiny/vue' import { TinyCalendarView, TinyModal } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {
@ -26,19 +26,19 @@ export default {
}, },
methods: { methods: {
prevWeekClick(date) { prevWeekClick(date) {
Modal.message({ message: `上一周按钮点击事件: ${date[0].value}`, status: 'info' }) TinyModal.message({ message: `上一周按钮点击事件: ${date[0].value}`, status: 'info' })
}, },
nextWeekClick(date) { nextWeekClick(date) {
Modal.message({ message: `下一周按钮点击事件: ${date[0].value}`, status: 'info' }) TinyModal.message({ message: `下一周按钮点击事件: ${date[0].value}`, status: 'info' })
}, },
weekChange(weekDate) { weekChange(weekDate) {
Modal.message({ message: `周改变事件: ${weekDate[0].value}`, status: 'info' }) TinyModal.message({ message: `周改变事件: ${weekDate[0].value}`, status: 'info' })
}, },
yearChange(newVal, oldVal) { yearChange(newVal, oldVal) {
Modal.message({ message: `年改变事件: ${newVal}年, ${oldVal}`, status: 'info' }) TinyModal.message({ message: `年改变事件: ${newVal}年, ${oldVal}`, status: 'info' })
}, },
monthChange(newVal, oldVal) { monthChange(newVal, oldVal) {
Modal.message({ message: `月改变事件: ${newVal}月, ${oldVal}`, status: 'info' }) TinyModal.message({ message: `月改变事件: ${newVal}月, ${oldVal}`, status: 'info' })
} }
} }
} }

View File

@ -4,11 +4,11 @@
</template> </template>
<script> <script>
import { CalendarView } from '@opentiny/vue' import { TinyCalendarView } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {

View File

@ -24,11 +24,11 @@
</template> </template>
<script> <script>
import { CalendarView } from '@opentiny/vue' import { TinyCalendarView } from '@opentiny/vue'
export default { export default {
components: { components: {
TinyCalendarView: CalendarView TinyCalendarView
}, },
data() { data() {
return { return {

Some files were not shown because too many files have changed in this diff Show More