@opentinyvue/vue-checkbox-group 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, $props, $setup } 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
  }
@@ -76,7 +72,7 @@ var CheckboxGroup = defineComponent({
76
72
  });
77
73
  }
78
74
  });
79
- var version = "2.21.0";
75
+ var version = "2.22.0";
80
76
  CheckboxGroup.model = {
81
77
  prop: "modelValue",
82
78
  event: "update:modelValue"
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-checkbox-group",
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-checkbox": "~2.21.0",
13
- "@opentinyvue/vue-checkbox-button": "~2.21.0",
14
- "@opentinyvue/vue-theme-mobile": "~3.21.0",
15
- "@opentinyvue/vue-theme": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~2.22.0",
11
+ "@opentinyvue/vue-renderless": "~3.22.0",
12
+ "@opentinyvue/vue-checkbox": "~2.22.0",
13
+ "@opentinyvue/vue-checkbox-button": "~2.22.0",
14
+ "@opentinyvue/vue-theme": "~3.22.0"
16
15
  },
17
16
  "license": "MIT",
18
17
  "types": "index.d.ts",
package/lib/mobile.js DELETED
@@ -1,81 +0,0 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/checkbox-group/vue';
2
- import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
- import Checkbox from '@opentinyvue/vue-checkbox';
4
- import '@opentinyvue/vue-theme-mobile/checkbox-group/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
- components: {
38
- Checkbox
39
- },
40
- props: [].concat(props, ["modelValue", "type", "options", "disabled", "vertical", "max", "min", "iconPosition"]),
41
- setup: function setup$1(props2, context) {
42
- return setup({
43
- props: props2,
44
- context,
45
- renderless,
46
- api
47
- });
48
- }
49
- });
50
- var render = function render2() {
51
- var _vm = this;
52
- var _h = _vm.$createElement;
53
- var _c = _vm._self._c || _h;
54
- return _c("div", {
55
- staticClass: "tiny-mobile-checkbox-group",
56
- class: _vm.vertical ? "is-vertical" : "",
57
- attrs: {
58
- "role": "group",
59
- "aria-label": "checkbox-group"
60
- }
61
- }, [_vm._t("default", function() {
62
- return [_vm.type === "checkbox" ? _vm._l(_vm.options, function(item, index) {
63
- return _c("checkbox", _vm._b({
64
- key: index
65
- }, "checkbox", item, false));
66
- }) : _vm._e()];
67
- })], 2);
68
- };
69
- var staticRenderFns = [];
70
- var __cssModules = {};
71
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
72
- function __vue2_injectStyles(context) {
73
- for (var o in __cssModules) {
74
- this[o] = __cssModules[o];
75
- }
76
- }
77
- var mobile = /* @__PURE__ */ function() {
78
- return __component__.exports;
79
- }();
80
-
81
- export { mobile as default };
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;