@idooel/components 0.0.2-beta.3 → 0.0.2-beta.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idooel/components",
3
- "version": "0.0.2-beta.3",
3
+ "version": "0.0.2-beta.5",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "main": "dist/@idooel/components.umd.js",
@@ -11,7 +11,9 @@
11
11
  "author": "Ruster <protagonisths@gmail.com> (https://github.com/Protagonistss)",
12
12
  "scripts": {
13
13
  "build:umd": "rollup --config scripts/rollup.umd.config.js",
14
- "build:esm": "rollup --config scripts/rollup.esm.config.js"
14
+ "build:esm": "rollup --config scripts/rollup.esm.config.js",
15
+ "test": "vitest run",
16
+ "test:watch": "vitest --watch"
15
17
  },
16
18
  "keywords": [],
17
19
  "license": "ISC",
@@ -36,12 +38,18 @@
36
38
  "@vue/compiler-sfc": "3.2.33",
37
39
  "babel-plugin-component": "1.1.1",
38
40
  "babel-plugin-external-helpers": "6.22.0",
41
+ "@vitejs/plugin-vue2": "^2.3.2",
42
+ "@vue/test-utils": "^1.3.6",
43
+ "jsdom": "^22.1.0",
39
44
  "postcss": "8.4.12",
40
45
  "postcss-import": "14.1.0",
41
46
  "rollup": "2.70.1",
42
47
  "rollup-plugin-postcss": "4.0.2",
43
48
  "rollup-plugin-terser": "^7.0.2",
44
49
  "rollup-plugin-vue": "5.1.9",
50
+ "vite": "^5.3.1",
51
+ "vitest": "^1.6.1",
52
+ "vue": "2.7.16",
45
53
  "vue-template-compiler": "2.7.16"
46
54
  },
47
55
  "dependencies": {
@@ -59,6 +59,7 @@ export default {
59
59
  setFieldsValue: this.setFieldsValue,
60
60
  validateFields: this.validateFields,
61
61
  getFieldsValue: this.getFieldsValue,
62
+ executeExpressions: this.executeExpressions,
62
63
  route: this.$route,
63
64
  [BUILT_IN_METHODS_NAMES.SUBMIT_FORM]: this.submitRequestTrigger
64
65
  }
@@ -175,6 +176,9 @@ export default {
175
176
  getFieldsValue (fieldNames) {
176
177
  return this.$refs[this.formRef].getFieldsValue(fieldNames)
177
178
  },
179
+ executeExpressions () {
180
+ return this.$refs[this.formRef].evalShowExpression()
181
+ },
178
182
  validateFields () {
179
183
  return this.$refs[this.formRef].validateFields()
180
184
  },