提交 3b74de21 编写于 作者: zhf's avatar zhf

feat: 更新模板

上级 4fcd45ee
......@@ -13,13 +13,13 @@
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@ibiz-template/command": "0.0.1-beta.50",
"@ibiz-template/controller": "0.0.1-beta.148",
"@ibiz-template/controller": "0.0.1-beta.149",
"@ibiz-template/core": "0.0.1-beta.143",
"@ibiz-template/model": "0.0.1-beta.147",
"@ibiz-template/runtime": "0.0.1-beta.148",
"@ibiz-template/service": "0.0.1-beta.148",
"@ibiz-template/theme": "0.0.1-beta.145",
"@ibiz-template/vue-util": "0.0.1-beta.148",
"@ibiz-template/vue-util": "0.0.1-beta.149",
"@ibiz/dynamic-model-api": "^2.1.28",
"@riophae/vue-treeselect": "^0.4.0",
"dayjs": "^1.11.10",
......
......@@ -12,8 +12,8 @@ dependencies:
specifier: 0.0.1-beta.50
version: 0.0.1-beta.50
'@ibiz-template/controller':
specifier: 0.0.1-beta.148
version: 0.0.1-beta.148(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
specifier: 0.0.1-beta.149
version: 0.0.1-beta.149(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'@ibiz-template/core':
specifier: 0.0.1-beta.143
version: 0.0.1-beta.143(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.29.1)
......@@ -30,8 +30,8 @@ dependencies:
specifier: 0.0.1-beta.145
version: 0.0.1-beta.145
'@ibiz-template/vue-util':
specifier: 0.0.1-beta.148
version: 0.0.1-beta.148(@ibiz-template/controller@0.0.1-beta.148)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
specifier: 0.0.1-beta.149
version: 0.0.1-beta.149(@ibiz-template/controller@0.0.1-beta.149)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
'@ibiz/dynamic-model-api':
specifier: ^2.1.28
version: 2.1.28(qx-util@0.4.8)
......@@ -932,8 +932,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/controller@0.0.1-beta.148(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8):
resolution: {integrity: sha512-g/H++f6o/Rl8sn5A7YVUQ1ftA5K9T1Xe+rD3dMqR8S7RC7rIiXTMxafb2bG++H+S8VkjDcy4oYssCbVel5pfxg==}
/@ibiz-template/controller@0.0.1-beta.149(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8):
resolution: {integrity: sha512-7EIrJ/RDbJ1pJdXZy7mKHAqSKEZZhX8J9hCCfc2nZIZI9OeqKVDSuzYDXg5zGRV8nS+mCwVGz806UHvrDv+/Rw==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.132
'@ibiz-template/model': ^0.0.1-beta.132
......@@ -1019,8 +1019,8 @@ packages:
resolution: {integrity: sha512-Fw43Wqp6Cf9HVdYE8v/OLjYrrkRlXQuF4XKDyIUZM4j+c1ABAqLVxamhEkjNqE0GeKNWnLpJHqsR+1oUueH8NA==}
dev: false
/@ibiz-template/vue-util@0.0.1-beta.148(@ibiz-template/controller@0.0.1-beta.148)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15):
resolution: {integrity: sha512-c6oY4hdzw4m/EqU4GNCmcExVVZLgw29mYwcXMDP2yBQjzWEe/wD9FzXyxIyqSEEOi7GYvL5BEilUbbj4VSqWXA==}
/@ibiz-template/vue-util@0.0.1-beta.149(@ibiz-template/controller@0.0.1-beta.149)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15):
resolution: {integrity: sha512-NcKyCMS6X+tYj6gsP0OQtYhbExTc6cib31CiqZK15AYcy/6qaHO8V+3dXexwmwNeMjmIv1Gxx+0nygc7+5g1vg==}
peerDependencies:
'@ibiz-template/controller': ^0.0.1-beta.132
'@ibiz-template/core': ^0.0.1-beta.132
......@@ -1032,7 +1032,7 @@ packages:
vue: ^2.7.14
vue-router: ^3.6.5
dependencies:
'@ibiz-template/controller': 0.0.1-beta.148(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'@ibiz-template/controller': 0.0.1-beta.149(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.143(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.29.1)
'@ibiz-template/model': 0.0.1-beta.147(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.148(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(qx-util@0.4.8)(ramda@0.29.1)
......
import { FormButtonController } from '@ibiz-template/controller';
import { FormButtonModel } from '@ibiz-template/model';
import { useNamespace } from '@ibiz-template/vue-util';
import { defineComponent } from 'vue';
import { defineComponent, ref } from 'vue';
import '@ibiz-template/theme/style/components/widgets/form/form-button.scss';
export const FormButton = defineComponent({
......@@ -18,7 +18,9 @@ export const FormButton = defineComponent({
},
setup() {
const ns = useNamespace('form-button');
return { ns };
const isLoading = ref(false);
return { ns, isLoading };
},
render() {
if (!this.controller.visible) {
......@@ -26,7 +28,15 @@ export const FormButton = defineComponent({
}
return (
<i-button
onClick={this.controller.onClick.bind(this.controller)}
onClick={async (e: MouseEvent) => {
this.isLoading = true;
try {
await this.controller.onClick(e);
} finally {
this.isLoading = false;
}
}}
loading={this.isLoading}
class={this.ns.b()}
>
{this.modelData.source.caption}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册