@opentinyvue/vue-color-picker 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,19 +7,12 @@ 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 "@opentinyvue/vue-theme/color-picker/index.css";
14
13
  var template = function template2(mode) {
15
14
  var _process$env;
16
- var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
17
- if ("pc" === (tinyMode || mode)) {
18
- return PcTemplate;
19
- }
20
- if ("mobile" === (tinyMode || mode)) {
21
- return MobileTemplate;
22
- }
15
+ typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
23
16
  return PcTemplate;
24
17
  };
25
18
  var $constants = {};
@@ -41,7 +34,7 @@ var ColorPicker = defineComponent({
41
34
  type: String,
42
35
  default: "",
43
36
  validator: function validator(val) {
44
- return [" large", "medium", "small", "mini", ""].includes(val);
37
+ return ["large", "medium", "small", "mini", ""].includes(val);
45
38
  }
46
39
  },
47
40
  format: {
@@ -76,7 +69,7 @@ var ColorPicker = defineComponent({
76
69
  });
77
70
  }
78
71
  });
79
- var version = "2.21.0";
72
+ var version = "2.22.0";
80
73
  ColorPicker.model = {
81
74
  prop: "modelValue",
82
75
  event: "update:modelValue"
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-color-picker",
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
  "dependencies": {
9
- "@opentinyvue/vue-color-select-panel": "~2.21.0",
10
- "@opentinyvue/vue-common": "~2.21.0",
11
- "@opentinyvue/vue-icon": "~2.21.0",
12
- "@opentinyvue/vue-renderless": "~3.21.0",
13
- "@opentinyvue/vue-theme": "~3.21.0"
9
+ "@opentinyvue/vue-color-select-panel": "~2.22.0",
10
+ "@opentinyvue/vue-common": "~2.22.0",
11
+ "@opentinyvue/vue-icon": "~2.22.0",
12
+ "@opentinyvue/vue-renderless": "~3.22.0",
13
+ "@opentinyvue/vue-theme": "~3.22.0"
14
14
  },
15
15
  "license": "MIT",
16
16
  "types": "index.d.ts"
package/lib/mobile.js DELETED
@@ -1,64 +0,0 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/color-picker/vue';
2
- import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
-
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
10
- }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
14
- }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
27
- }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
- }
33
-
34
- var render = function render2() {
35
- var _vm = this;
36
- var _h = _vm.$createElement;
37
- var _c = _vm._self._c || _h;
38
- return _c("div");
39
- };
40
- var staticRenderFns = [];
41
- var __vue2_script = defineComponent({
42
- emits: ["update:modelValue"],
43
- props: [].concat(props, ["modelValue"]),
44
- setup: function setup$1(props2, context) {
45
- return setup({
46
- props: props2,
47
- context,
48
- renderless,
49
- api
50
- });
51
- }
52
- });
53
- var __cssModules = {};
54
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
55
- function __vue2_injectStyles(context) {
56
- for (var o in __cssModules) {
57
- this[o] = __cssModules[o];
58
- }
59
- }
60
- var mobile = /* @__PURE__ */ function() {
61
- return __component__.exports;
62
- }();
63
-
64
- export { mobile as default };
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;