@infly/ui 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +53 -43
  2. package/index.js +47 -33
  3. package/package.json +60 -29
  4. package/scripts/install-comp.js +13 -0
  5. package/src/Base/InflyCheckBox/InflyCheckBox.test.js +154 -0
  6. package/src/Base/InflyCheckBox/InflyCheckBox.vue +227 -0
  7. package/src/Base/InflyCheckBox/index.js +6 -0
  8. package/src/Base/InflyDialog/InflyDialog.test.js +122 -0
  9. package/src/Base/InflyDialog/InflyDialog.vue +111 -0
  10. package/src/Base/InflyDialog/index.js +6 -0
  11. package/src/Base/InflyForm/InflyForm.test.js +239 -0
  12. package/src/Base/InflyForm/InflyForm.vue +974 -0
  13. package/src/Base/InflyForm/index.js +6 -0
  14. package/src/Base/InflyInput/InflyInput.test.js +105 -0
  15. package/src/Base/InflyInput/InflyInput.vue +167 -0
  16. package/src/Base/InflyInput/index.js +6 -0
  17. package/src/Base/InflyList/InflyList.test.js +229 -0
  18. package/src/Base/InflyList/InflyList.vue +926 -0
  19. package/src/Base/InflyList/index.js +6 -0
  20. package/src/Business/BusinessSwitch/BusinessSwitch.test.js +250 -0
  21. package/src/Business/BusinessSwitch/BusinessSwitch.vue +115 -0
  22. package/src/Business/BusinessSwitch/index.js +6 -0
  23. package/src/Business/BusinessTag/BusinessTag.test.js +70 -0
  24. package/src/Business/BusinessTag/BusinessTag.vue +58 -0
  25. package/src/Business/BusinessTag/index.js +6 -0
  26. package/src/Business/InstitutionSelect/InstitutionSelect.test.js +281 -0
  27. package/src/Business/InstitutionSelect/InstitutionSelect.vue +768 -0
  28. package/src/Business/InstitutionSelect/index.js +6 -0
  29. package/src/utils/Uts.js +3 -0
  30. package/src/utils/ts-libs.test.js +31 -0
  31. package/styles/base.scss +755 -0
  32. package/styles/index.scss +202 -0
  33. package/styles/mixin.scss +19 -0
  34. package/styles/variables.scss +24 -0
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  `@infly/ui` 是运营端通用 Vue2 组件库。当前业务页面优先使用 `InflyList`、`InflyForm`、`InflyDialog` 等组件承载筛选、表格、分页、详情展示和弹窗表单。
4
4
 
5
+ 组件内部的框架无关工具来自 `@infly/ts-libs`。依赖 Vue 实例、请求实例或 Element UI 消息能力的全局 mixin 不属于 UI 公共入口;Vue2 应用统一从 `@infly/libs/adapters/vue2/module/` 引入对应适配器。
6
+
5
7
  修改 `InflyList` 或 `InflyForm` 时必须同步更新本文档:新增 prop、事件、插槽、字段配置、列类型或表单类型,都要补充至少一个可复制的使用示例。
6
8
 
7
9
  ## InflyList
@@ -321,10 +323,10 @@ export default {
321
323
  | `formData` | `Object` | 必填 | 表单数据对象,字段通过 `name` 双向绑定。 | `:formData="{ keyword: '' }"` |
322
324
  | `formRef` | `String` | `"formRef"` | 内部 `el-form` ref 名称,供 `validate()` 等方法使用。 | `formRef="searchFormRef"` |
323
325
  | `btnList` | `Array` | `[]` | 表单上方按钮列表。 | `[{ label: "上传", type: "blue", btnEvent: this.openDialog }]` |
324
- | `filterList` | `Array` | `[]` | 表单字段配置。 | `[{ label: "名称", name: "name", type: "infly-input" }]` |
325
- | `reqParams` | `Object` | `{}` | 当前请求参数,导出按钮会从中取参数。通常由 `InflyList` 传入。 | `:reqParams="{ keyword: formData.keyword }"` |
326
- | `request` | `Function` | `null` | 导出按钮使用的请求实例。导出请求优先级为按钮 `exportFunc`、`request` prop、组件实例 `this.$axios`。 | `:request="$axios"` |
327
- | `hideSearchBtn` | `Boolean` | `false` | 隐藏底部默认“查询”按钮。 | `hideSearchBtn` |
326
+ | `filterList` | `Array` | `[]` | 表单字段配置。 | `[{ label: "名称", name: "name", type: "infly-input" }]` |
327
+ | `reqParams` | `Object` | `{}` | 当前请求参数,导出按钮会从中取参数。通常由 `InflyList` 传入。 | `:reqParams="{ keyword: formData.keyword }"` |
328
+ | `request` | `Function` | `null` | 导出按钮使用的请求实例。导出请求优先级为按钮 `exportFunc`、`request` prop、组件实例 `this.$axios`。 | `:request="$axios"` |
329
+ | `hideSearchBtn` | `Boolean` | `false` | 隐藏底部默认“查询”按钮。 | `hideSearchBtn` |
328
330
  | `hideResetBtn` | `Boolean` | `true` | 隐藏底部默认“重置”按钮。默认隐藏。 | `:hideResetBtn="false"` |
329
331
  | `isEdit` | `Boolean \| null` | `null` | 强制编辑/展示态;为 `null` 时按路由 `mode` 判断。 | `:isEdit="false"` |
330
332
  | `optBtnList` | `Array` | `[]` | 底部查询/重置后的附加按钮。 | `:optBtnList="[{ label: '保存', type: 'primary', btnEvent: 'submit' }]"` |
@@ -351,10 +353,10 @@ export default {
351
353
  | --- | --- | --- |
352
354
  | `initData` | 底部默认“查询”按钮点击。 | `@initData="search"` |
353
355
  | `reset-form` | 底部默认“重置”按钮点击,参数为初始表单快照。 | `@reset-form="(data) => Object.assign(formData, data)"` |
354
- | `submit` | 按钮 `btnEvent: "submit"` 且校验通过。 | `@submit="submitForm"` |
355
- | `secTabChange` / `sec-tab-change` | `type: "secTab"` 切换。 | `@secTabChange="handleSecTabChange"` |
356
- | `export-request-error` | 导出按钮配置了 `exportUrl` 但没有可用请求实例时触发。 | `@export-request-error="handleExportRequestError"` |
357
- | 自定义事件 | `btnEvent` 为字符串时直接 emit。 | `{ label: "保存", btnEvent: "save" }` + `@save="save"` |
356
+ | `submit` | 按钮 `btnEvent: "submit"` 且校验通过。 | `@submit="submitForm"` |
357
+ | `secTabChange` / `sec-tab-change` | `type: "secTab"` 切换。 | `@secTabChange="handleSecTabChange"` |
358
+ | `export-request-error` | 导出按钮配置了 `exportUrl` 但没有可用请求实例时触发。 | `@export-request-error="handleExportRequestError"` |
359
+ | 自定义事件 | `btnEvent` 为字符串时直接 emit。 | `{ label: "保存", btnEvent: "save" }` + `@save="save"` |
358
360
 
359
361
  ### 方法
360
362
 
@@ -444,19 +446,19 @@ filterList: [
444
446
  label: "所属省份",
445
447
  name: "province_level_id",
446
448
  type: "institution-select",
447
- title: "选择省份",
448
- btnText: "选择",
449
- request: this.$axios,
450
- reqModule: "admin",
451
- levelTypes: "1",
452
- levelNameKey: "province_level_name_filter",
453
- hideTips: true
454
- }
455
- ]
456
- ```
457
-
458
- `InstitutionSelect` 请求实例优先使用 `request` prop,其次使用组件实例 `this.$axios`。默认接口为 `/${reqModule}/level/`,也可以通过 `reqUrl` 显式覆盖;组件不再读取外部工具库的环境信息推导 `reqModule`。
459
-
449
+ title: "选择省份",
450
+ btnText: "选择",
451
+ request: this.$axios,
452
+ reqModule: "admin",
453
+ levelTypes: "1",
454
+ levelNameKey: "province_level_name_filter",
455
+ hideTips: true
456
+ }
457
+ ]
458
+ ```
459
+
460
+ `InstitutionSelect` 请求实例优先使用 `request` prop,其次使用组件实例 `this.$axios`。默认接口为 `/${reqModule}/level/`,也可以通过 `reqUrl` 显式覆盖;组件不再读取外部工具库的环境信息推导 `reqModule`。
461
+
460
462
  #### 复选:`infly-checkbox` / `InflyCheckBox`
461
463
 
462
464
  ```js
@@ -692,11 +694,11 @@ filterList: [
692
694
  #### 顶部按钮:`btnList`
693
695
 
694
696
  ```js
695
- btnList: [
696
- { label: "上传账单", type: "blue", btnEvent: () => { this.uploadDialogVisible = true; } },
697
- { label: "导出", type: "primary", isShow: () => this.canExport, btnEvent: this.exportList }
698
- ]
699
- ```
697
+ btnList: [
698
+ { label: "上传账单", type: "blue", btnEvent: () => { this.uploadDialogVisible = true; } },
699
+ { label: "导出", type: "primary", isShow: () => this.canExport, btnEvent: this.exportList }
700
+ ]
701
+ ```
700
702
 
701
703
  #### 底部按钮:默认查询、重置和 `optBtnList`
702
704
 
@@ -711,23 +713,31 @@ btnList: [
711
713
  />
712
714
  ```
713
715
 
714
- #### 导出按钮
715
-
716
- 导出请求实例按 `exportFunc -> request prop -> this.$axios` 的顺序解析;组件不再内置 `REST` fallback。独立使用 `InflyForm` 时,如果页面没有全局注入 `$axios`,需要显式传入 `request` 或在按钮上配置 `exportFunc`。
717
-
718
- ```vue
719
- <InflyForm
720
- :formData="formData"
721
- :filterList="filterList"
722
- :btnList="btnList"
723
- :request="$axios"
724
- />
725
- ```
726
-
727
- ```js
728
- btnList: [
729
- {
730
- label: "导出",
716
+ #### 导出按钮
717
+
718
+ 导出请求实例按 `exportFunc -> request prop -> this.$axios` 的顺序解析;组件不再内置 `REST` fallback。独立使用 `InflyForm` 时,如果页面没有全局注入 `$axios`,需要显式传入 `request` 或在按钮上配置 `exportFunc`。
719
+
720
+ `InflyForm` 直接调用 `@infly/ts-libs` 的 `exportFile`,不会注册或导出 `fileExportMixin`。应用若需要全局 `$exportFile`,使用:
721
+
722
+ ```javascript
723
+ import { fileExportMixin } from "@infly/libs/adapters/vue2/module/file-export.js";
724
+
725
+ Vue.mixin(fileExportMixin);
726
+ ```
727
+
728
+ ```vue
729
+ <InflyForm
730
+ :formData="formData"
731
+ :filterList="filterList"
732
+ :btnList="btnList"
733
+ :request="$axios"
734
+ />
735
+ ```
736
+
737
+ ```js
738
+ btnList: [
739
+ {
740
+ label: "导出",
731
741
  type: "success",
732
742
  exportUrl: "/admin/reconciliation/bills/export/",
733
743
  exportFileName: "金融营销对账账单",
package/index.js CHANGED
@@ -1,50 +1,64 @@
1
- import "./styles/index.scss";
1
+ /**
2
+ * @infly/ui 包入口 — 自动生成,请勿手动编辑
3
+ *
4
+ * 生成方式:node scripts/build-entry.js
5
+ * 扫描目录:src/Base/ + src/Business/(仅含 index.js 的标准组件目录)
6
+ *
7
+ * ## 为什么用显式 import 而非 require.context
8
+ *
9
+ * require.context 是 Webpack 特有 API,Vite 不支持。显式 import 同时兼容
10
+ * Webpack 和 Vite,且支持 tree-shaking(消费方可按需导入单个组件)。
11
+ *
12
+ * ## 为什么某些目录被排除
13
+ *
14
+ * 只有包含 index.js 的组件目录才会被扫描。添加新组件时:
15
+ * 1. 在 src/Base/ 或 src/Business/ 下创建组件目录
16
+ * 2. 添加 index.js(参考现有组件,需导出 named + withInstall 的 default)
17
+ * 3. 运行 node scripts/build-entry.js
18
+ * 4. 提交生成的 index.js
19
+ */
2
20
 
3
- // 动态导入 Base 组件
4
- const requireBase = require.context("./src/Base", true, /index\.js$/);
5
- const baseComponents = requireBase.keys().reduce((components, modulePath) => {
6
- const component = requireBase(modulePath).default;
7
- if (component && component.name) {
8
- components[component.name] = component;
9
- }
10
- return components;
11
- }, {});
21
+ import "./styles/index.scss";
12
22
 
13
- // 动态导入 Business 组件
14
- const requireBusiness = require.context("./src/Business", true, /index\.js$/);
15
- const businessComponents = requireBusiness.keys().reduce((components, modulePath) => {
16
- const component = requireBusiness(modulePath).default;
17
- if (component && component.name) {
18
- components[component.name] = component;
19
- }
20
- return components;
21
- }, {});
23
+ import { InflyCheckBox } from './src/Base/InflyCheckBox';
24
+ import { InflyDialog } from './src/Base/InflyDialog';
25
+ import { InflyForm } from './src/Base/InflyForm';
26
+ import { InflyInput } from './src/Base/InflyInput';
27
+ import { InflyList } from './src/Base/InflyList';
28
+ import { BusinessSwitch } from './src/Business/BusinessSwitch';
29
+ import { BusinessTag } from './src/Business/BusinessTag';
30
+ import { InstitutionSelect } from './src/Business/InstitutionSelect';
22
31
 
23
- // 合并所有组件
24
- const allComponents = { ...baseComponents, ...businessComponents };
25
- const components = Object.values(allComponents);
32
+ const components = [InflyCheckBox, InflyDialog, InflyForm, InflyInput, InflyList, BusinessSwitch, BusinessTag, InstitutionSelect];
26
33
 
27
34
  const install = (Vue) => {
28
35
  if (install.installed || !Vue) return;
29
36
  install.installed = true;
30
- components.forEach((component) => Vue.component(component.name, component));
37
+ components.forEach((c) => Vue.component(c.name, c));
31
38
  };
32
39
 
33
40
  // CDN 支持
34
41
  if (typeof window !== "undefined" && window.Vue) install(window.Vue);
35
42
 
36
- // 动态导出
37
-
38
- // 动态导出
39
- export const {
40
- InflyInput,
43
+ export {
41
44
  InflyCheckBox,
42
- InflyForm,
43
45
  InflyDialog,
46
+ InflyForm,
47
+ InflyInput,
44
48
  InflyList,
45
- InstitutionSelect,
49
+ BusinessSwitch,
46
50
  BusinessTag,
47
- BusinessSwitch
48
- } = allComponents;
51
+ InstitutionSelect,
52
+ };
49
53
 
50
- export default { install, ...allComponents };
54
+ export default {
55
+ install,
56
+ InflyCheckBox,
57
+ InflyDialog,
58
+ InflyForm,
59
+ InflyInput,
60
+ InflyList,
61
+ BusinessSwitch,
62
+ BusinessTag,
63
+ InstitutionSelect,
64
+ };
package/package.json CHANGED
@@ -1,29 +1,60 @@
1
- {
2
- "name": "@infly/ui",
3
- "version": "1.0.18",
4
- "description": "组件库 ",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "publishPkg": "npm version patch && npm publish --access=public --registry=https://registry.npmjs.org/"
9
- },
10
- "exports": {
11
- ".": {
12
- "import": "./index.js",
13
- "require": "./index.js"
14
- }
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "repository": {
20
- "type": "git",
21
- "url": "https://gitee.com/gdinfly_1/infly-ui.git"
22
- },
23
- "keywords": [
24
- "infly",
25
- "infly-ui"
26
- ],
27
- "author": "Kahal",
28
- "license": "ISC"
29
- }
1
+ {
2
+ "name": "@infly/ui",
3
+ "version": "1.0.20",
4
+ "description": "Infly 公共 UI 组件库(Vue 2)",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "scripts": {
8
+ "test": "vitest run",
9
+ "test:coverage": "vitest run --coverage",
10
+ "test:watch": "vitest",
11
+ "check": "vitest run",
12
+ "lint": "eslint .",
13
+ "lint:strict": "eslint . --max-warnings 0",
14
+ "prepublishOnly": "vitest run",
15
+ "publishPkg": "npm publish --access=public --registry=https://registry.npmjs.org/"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "import": "./index.js",
20
+ "require": "./index.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "index.js",
25
+ "src/",
26
+ "styles/",
27
+ "scripts/install-comp.js",
28
+ "README.md"
29
+ ],
30
+ "dependencies": {
31
+ "@infly/ts-libs": "workspace:*"
32
+ },
33
+ "peerDependencies": {
34
+ "element-ui": "^2.15.0",
35
+ "vue": "^2.6.0 || ^2.7.0",
36
+ "vuex": "^3.0.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://gitee.com/gdinfly_1/infly-ui.git"
41
+ },
42
+ "keywords": [
43
+ "infly",
44
+ "infly-ui",
45
+ "vue2",
46
+ "element-ui",
47
+ "admin"
48
+ ],
49
+ "author": "Kahal",
50
+ "license": "ISC",
51
+ "devDependencies": {
52
+ "@vue/test-utils": "^1.3.6",
53
+ "vite": "^7.3.6",
54
+ "vitest": "^4.1.10",
55
+ "vue-template-compiler": "2.7.16",
56
+ "eslint": "^9.0.0",
57
+ "@eslint/js": "^9.0.0",
58
+ "globals": "^15.0.0"
59
+ }
60
+ }
@@ -0,0 +1,13 @@
1
+ // utils/withInstall.js
2
+ /**
3
+ * 为 Vue 组件添加 install 方法
4
+ * @param {Object} comp Vue 组件对象
5
+ * @param {string} name 组件名(可选,默认使用组件自身的 name 属性)
6
+ * @returns {Object} 添加了 install 方法的组件
7
+ */
8
+ export const withInstall = (comp, name) => {
9
+ comp.install = app => {
10
+ app.component(name || comp.name, comp);
11
+ };
12
+ return comp;
13
+ };
@@ -0,0 +1,154 @@
1
+ /**
2
+ * InflyCheckBox 组件测试
3
+ *
4
+ * 验证多选框组件的全选/取消全选、单选、半选状态、disabled 和按钮模式。
5
+ */
6
+ const { mount } = require("../../../test/helper");
7
+ const InflyCheckBox = require("./InflyCheckBox.vue");
8
+
9
+ const MOCK_OPTIONS = [
10
+ { name: "选项A", value: "a" },
11
+ { name: "选项B", value: "b" },
12
+ { name: "选项C", value: "c" },
13
+ ];
14
+
15
+ describe("InflyCheckBox", () => {
16
+ describe("渲染", () => {
17
+ it("渲染所有选项", () => {
18
+ const wrapper = mount(InflyCheckBox, {
19
+ propsData: { value: [], options: MOCK_OPTIONS },
20
+ });
21
+ const text = wrapper.text();
22
+ assert.ok(text.includes("选项A"));
23
+ assert.ok(text.includes("选项B"));
24
+ assert.ok(text.includes("选项C"));
25
+ wrapper.destroy();
26
+ });
27
+
28
+ it("默认显示全选框", () => {
29
+ const wrapper = mount(InflyCheckBox, {
30
+ propsData: { value: [], options: MOCK_OPTIONS },
31
+ });
32
+ assert.ok(wrapper.text().includes("全选"));
33
+ wrapper.destroy();
34
+ });
35
+
36
+ it("showSelectAll=false 隐藏全选框", () => {
37
+ const wrapper = mount(InflyCheckBox, {
38
+ propsData: {
39
+ value: [],
40
+ options: MOCK_OPTIONS,
41
+ showSelectAll: false,
42
+ },
43
+ });
44
+ assert.ok(!wrapper.text().includes("全选"));
45
+ wrapper.destroy();
46
+ });
47
+ });
48
+
49
+ describe("类型模式", () => {
50
+ it("type=checkbox 时渲染 el-checkbox", () => {
51
+ const wrapper = mount(InflyCheckBox, {
52
+ propsData: { value: [], options: MOCK_OPTIONS, type: "checkbox" },
53
+ });
54
+ assert.ok(wrapper.find(".el-checkbox").exists());
55
+ wrapper.destroy();
56
+ });
57
+
58
+ it("type=button 时隐藏全选框", () => {
59
+ const wrapper = mount(InflyCheckBox, {
60
+ propsData: { value: [], options: MOCK_OPTIONS, type: "button" },
61
+ });
62
+ // 按钮模式下不应显示"全选"文字
63
+ assert.ok(!wrapper.text().includes("全选"));
64
+ wrapper.destroy();
65
+ });
66
+ });
67
+
68
+ describe("全选逻辑", () => {
69
+ it("全选所有可用选项", () => {
70
+ const wrapper = mount(InflyCheckBox, {
71
+ propsData: { value: [], options: MOCK_OPTIONS },
72
+ });
73
+ wrapper.vm.selectChange(true);
74
+ assert.deepEqual(wrapper.vm.$data.selectedValue, ["a", "b", "c"]);
75
+ assert.equal(wrapper.emitted("select-all")[0][0], true);
76
+ wrapper.destroy();
77
+ });
78
+
79
+ it("取消全选清空所有选项", () => {
80
+ const wrapper = mount(InflyCheckBox, {
81
+ propsData: { value: ["a", "b", "c"], options: MOCK_OPTIONS },
82
+ });
83
+ wrapper.vm.selectChange(false);
84
+ assert.deepEqual(wrapper.vm.$data.selectedValue, []);
85
+ wrapper.destroy();
86
+ });
87
+
88
+ it("部分选中时为半选状态", () => {
89
+ const wrapper = mount(InflyCheckBox, {
90
+ propsData: { value: ["a"], options: MOCK_OPTIONS },
91
+ });
92
+ assert.equal(wrapper.vm.$data.isIndeterminate, true);
93
+ assert.equal(wrapper.vm.$data.checkAll, false);
94
+ wrapper.destroy();
95
+ });
96
+
97
+ it("全选后 checkAll 为 true", () => {
98
+ const wrapper = mount(InflyCheckBox, {
99
+ propsData: { value: ["a", "b", "c"], options: MOCK_OPTIONS },
100
+ });
101
+ assert.equal(wrapper.vm.$data.checkAll, true);
102
+ assert.equal(wrapper.vm.$data.isIndeterminate, false);
103
+ wrapper.destroy();
104
+ });
105
+ });
106
+
107
+ describe("Props", () => {
108
+ it("支持 disabled 属性", () => {
109
+ const wrapper = mount(InflyCheckBox, {
110
+ propsData: {
111
+ value: [],
112
+ options: MOCK_OPTIONS,
113
+ disabled: true,
114
+ },
115
+ });
116
+ assert.ok(wrapper.exists());
117
+ wrapper.destroy();
118
+ });
119
+
120
+ it("支持 border 模式", () => {
121
+ const wrapper = mount(InflyCheckBox, {
122
+ propsData: {
123
+ value: [],
124
+ options: MOCK_OPTIONS,
125
+ border: true,
126
+ },
127
+ });
128
+ assert.ok(wrapper.exists());
129
+ wrapper.destroy();
130
+ });
131
+
132
+ it("支持自定义 selectAllText", () => {
133
+ const wrapper = mount(InflyCheckBox, {
134
+ propsData: {
135
+ value: [],
136
+ options: MOCK_OPTIONS,
137
+ selectAllText: "全部选择",
138
+ },
139
+ });
140
+ assert.ok(wrapper.text().includes("全部选择"));
141
+ wrapper.destroy();
142
+ });
143
+
144
+ it("外部 value 变化时同步内部状态", async () => {
145
+ const wrapper = mount(InflyCheckBox, {
146
+ propsData: { value: [], options: MOCK_OPTIONS },
147
+ });
148
+ wrapper.setProps({ value: ["a", "b"] });
149
+ await wrapper.vm.$nextTick();
150
+ assert.deepEqual(wrapper.vm.$data.selectedValue, ["a", "b"]);
151
+ wrapper.destroy();
152
+ });
153
+ });
154
+ });