alas
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

ALAS

View Model Library



在此我們只提供簡易說明,詳細介紹 技術文件 中得知。

Summary

為了UI/UX而生

具有諸多的內置方法與事件都是為了優化流程而設計的。

語系與規則的自我管理

以 Container 為主的擴展方式可以將 Model 快速的遷移至各種專案。

為Vue.js進行優化

Alas 可以說是 Vue 開發的經驗總結,雖然該 Library 不需要運行於其中,但完整支援 Vue 雙向綁定模式。


安裝

npm i alas --save

第一隻Model

import Alas from 'alas'

const alas = new Alas()

alas.addModel('user', {
    body: {
        name: ['#ms.type | is: string']
    }
})

const user = alas.make('*', 'user').$init({
    name: 'dave'
})

console.log(user.name) // dave

Other

Version Log

/alas/

    Package Sidebar

    Install

    npm i alas

    Weekly Downloads

    2

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    1 MB

    Total Files

    65

    Last publish

    Collaborators

    • khczhihao