@opentinyvue/vue-form 2.21.0 → 2.22.0

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/lib/index.js CHANGED
@@ -7,9 +7,8 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
- import MobileTemplate from "./mobile.js";
13
12
  import MobileFirstTemplate from "./mobile-first.js";
14
13
  var template = function template2(mode) {
15
14
  var _process$env;
@@ -17,9 +16,6 @@ var template = function template2(mode) {
17
16
  if ("pc" === (tinyMode || mode)) {
18
17
  return PcTemplate;
19
18
  }
20
- if ("mobile" === (tinyMode || mode)) {
21
- return MobileTemplate;
22
- }
23
19
  if ("mobile-first" === (tinyMode || mode)) {
24
20
  return MobileFirstTemplate;
25
21
  }
@@ -149,7 +145,7 @@ var Form = defineComponent({
149
145
  });
150
146
  }
151
147
  });
152
- var version = "2.21.0";
148
+ var version = "2.22.0";
153
149
  Form.install = function(Vue) {
154
150
  Vue.component(Form.name, Form);
155
151
  };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-form",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-tooltip": "~2.21.0",
13
- "@opentinyvue/vue-theme-mobile": "~3.21.0",
14
- "@opentinyvue/vue-theme": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~2.22.0",
11
+ "@opentinyvue/vue-renderless": "~3.22.0",
12
+ "@opentinyvue/vue-tooltip": "~2.22.0",
13
+ "@opentinyvue/vue-theme": "~3.22.0"
15
14
  },
16
15
  "license": "MIT",
17
16
  "types": "index.d.ts",
package/lib/mobile.js DELETED
@@ -1,77 +0,0 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/form/vue';
2
- import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
- import '@opentinyvue/vue-theme-mobile/form/index.css';
4
- import '@opentinyvue/vue-theme-mobile/form-item/index.css';
5
-
6
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
7
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
8
- if (render) {
9
- options.render = render;
10
- options.staticRenderFns = staticRenderFns;
11
- options._compiled = true;
12
- }
13
- var hook;
14
- if (injectStyles) {
15
- hook = injectStyles;
16
- }
17
- if (hook) {
18
- if (options.functional) {
19
- options._injectStyles = hook;
20
- var originalRender = options.render;
21
- options.render = function renderWithStyleInjection(h, context) {
22
- hook.call(context);
23
- return originalRender(h, context);
24
- };
25
- } else {
26
- var existing = options.beforeCreate;
27
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
28
- }
29
- }
30
- return {
31
- exports: scriptExports,
32
- options
33
- };
34
- }
35
-
36
- var __vue2_script = defineComponent({
37
- props: [].concat(props, ["validatePosition", "validateOnRuleChange", "hideRequiredAsterisk", "model", "rules", "inlineMessage", "messageType", "statusIcon", "labelPosition", "labelAlign", "showMessage", "size", "disabled", "labelWidth", "contentOffset", "labelSuffix", "inline", "responsiveLayout", "validateType", "validateIcon", "manual"]),
38
- setup: function setup$1(props2, context) {
39
- return setup({
40
- props: props2,
41
- context,
42
- renderless,
43
- api
44
- });
45
- }
46
- });
47
- var render = function render2() {
48
- var _vm = this;
49
- var _h = _vm.$createElement;
50
- var _c = _vm._self._c || _h;
51
- return _c("form", {
52
- staticClass: "tiny-mobile-form",
53
- class: [_vm.labelPosition ? "tiny-mobile-form--label-" + _vm.labelPosition : "", {
54
- "tiny-mobile-form--inline": _vm.inline
55
- }, {
56
- "label-align": _vm.labelAlign
57
- }],
58
- on: {
59
- "submit": function submit($event) {
60
- $event.preventDefault();
61
- }
62
- }
63
- }, [_vm._t("default")], 2);
64
- };
65
- var staticRenderFns = [];
66
- var __cssModules = {};
67
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
68
- function __vue2_injectStyles(context) {
69
- for (var o in __cssModules) {
70
- this[o] = __cssModules[o];
71
- }
72
- }
73
- var mobile = /* @__PURE__ */ function() {
74
- return __component__.exports;
75
- }();
76
-
77
- export { mobile as default };
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;