@szgc/wbenchapp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-main.67 • Public • Published

流程工作台

访问方式

/#/login/[SZGC-SHIRO-TOKEN],其中[SZGC-SHIRO-TOKEN]为登录后获取到的 token

视图展示

需要一个视图id, viewId。slot里面可以自定义展示行的html结构。scope返回当前行的所有属性以及索引。

<SzgcModelViewApp v-if="viewId" :view-id="viewId">
    <!--自定义title-->
    <template v-slot:top="scope">
        <van-button type="primary" size="mini" @click.stop="btnEvt(scope)">自定义{{ scope.index + 1 }}</van-button>
    </template>
    <!--自定义列-->
    <template v-slot:columns="scope">
        <van-field
                :value="getValue(scope, 'dwb')"
                :label="getLabel(scope, 'dwb')"
                rows="1"
                autosize
                type="textarea"
                readonly
        />
        <van-field
                :value="getValue(scope, 'createTime')"
                :label="getLabel(scope, 'createTime')"
                rows="1"
                autosize
                type="textarea"
                readonly
        />
    </template>
    <!--操作列按钮(样式自己写)-->
    <template v-slot:btn="scope">
        <span @click.stop="testEvt(scope)">xxxx1</span>
        <span @click.stop="testEvt(scope)">xxxx2</span>
    </template>
</SzgcModelViewApp>

Readme

Keywords

none

Package Sidebar

Install

npm i @szgc/wbenchapp

Weekly Downloads

109

Version

1.0.0-main.67

License

none

Unpacked Size

10.6 MB

Total Files

28

Last publish

Collaborators

  • domom
  • yangxi0126
  • sdc-zoom