@fangzhongya/fang-ui 0.0.64 → 0.0.65

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.
@@ -152,7 +152,7 @@ function comHandle(props2, emit, config) {
152
152
  };
153
153
  setMultipleValue = (v) => {
154
154
  let arr = [];
155
- if (v) {
155
+ if (v && typeof v === "string") {
156
156
  arr = v.split(props2.multiple);
157
157
  }
158
158
  return arr;
@@ -199,6 +199,9 @@ function comHandle(props2, emit, config) {
199
199
  }
200
200
  }
201
201
  return {
202
+ setMultipleValue,
203
+ getMultipleValue,
204
+ getValueObjs,
202
205
  value,
203
206
  multiple: selectMultiple
204
207
  };
@@ -72,6 +72,9 @@ type HandleConfig = {
72
72
  getValue: <T>(v: T) => T;
73
73
  };
74
74
  export declare function comHandle(props: any, emit: any, config?: HandleConfig): {
75
+ setMultipleValue: (v: any) => any;
76
+ getMultipleValue: (v: any) => any;
77
+ getValueObjs: (v: any) => any;
75
78
  value: WritableComputedRef<any, any>;
76
79
  multiple: Ref<boolean, boolean>;
77
80
  };
@@ -150,7 +150,7 @@ function comHandle(props2, emit, config) {
150
150
  };
151
151
  setMultipleValue = (v) => {
152
152
  let arr = [];
153
- if (v) {
153
+ if (v && typeof v === "string") {
154
154
  arr = v.split(props2.multiple);
155
155
  }
156
156
  return arr;
@@ -197,6 +197,9 @@ function comHandle(props2, emit, config) {
197
197
  }
198
198
  }
199
199
  return {
200
+ setMultipleValue,
201
+ getMultipleValue,
202
+ getValueObjs,
200
203
  value,
201
204
  multiple: selectMultiple
202
205
  };
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const list = require("../../common/list.cjs");
4
+ const data = require("../../checks/src/data.cjs");
4
5
  const dataProps = {
5
- ...list.props,
6
+ ...data.dataProps,
6
7
  nowhole: {
7
8
  type: Boolean
8
9
  },
@@ -10,13 +11,16 @@ const dataProps = {
10
11
  type: String,
11
12
  default: "全部"
12
13
  },
14
+ select: {
15
+ type: Boolean
16
+ },
13
17
  compact: {
14
18
  type: Boolean,
15
19
  default: true
16
20
  }
17
21
  };
18
22
  const dataHandle = list.comHandle;
19
- const dataEmits = [...list.emits];
23
+ const dataEmits = [...data.dataEmits];
20
24
  exports.dataEmits = dataEmits;
21
25
  exports.dataHandle = dataHandle;
22
26
  exports.dataProps = dataProps;
@@ -8,10 +8,16 @@ export declare const dataProps: {
8
8
  type: StringConstructor;
9
9
  default: string;
10
10
  };
11
+ select: {
12
+ type: BooleanConstructor;
13
+ };
11
14
  compact: {
12
15
  type: BooleanConstructor;
13
16
  default: boolean;
14
17
  };
18
+ but: {
19
+ type: BooleanConstructor;
20
+ };
15
21
  options: {
16
22
  type: {
17
23
  (arrayLength: number): ObjAny[];
@@ -1,6 +1,7 @@
1
- import { props, comHandle, emits } from "../../common/list.js";
1
+ import { comHandle } from "../../common/list.js";
2
+ import { dataProps as dataProps$1, dataEmits as dataEmits$1 } from "../../checks/src/data.js";
2
3
  const dataProps = {
3
- ...props,
4
+ ...dataProps$1,
4
5
  nowhole: {
5
6
  type: Boolean
6
7
  },
@@ -8,13 +9,16 @@ const dataProps = {
8
9
  type: String,
9
10
  default: "全部"
10
11
  },
12
+ select: {
13
+ type: Boolean
14
+ },
11
15
  compact: {
12
16
  type: Boolean,
13
17
  default: true
14
18
  }
15
19
  };
16
20
  const dataHandle = comHandle;
17
- const dataEmits = [...emits];
21
+ const dataEmits = [...dataEmits$1];
18
22
  export {
19
23
  dataEmits,
20
24
  dataHandle,
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$1 = require("../../checks/index.cjs");
4
+ const index$2 = require("../../checks/index.cjs");
5
+ const index$1 = require("../../selects/index.cjs");
5
6
  const use = require("../../common/use.cjs");
6
7
  const index = require("../../../hooks/cssname/index.cjs");
7
8
  const data = require("./data.cjs");
@@ -15,6 +16,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
16
  const cs = index.useCssName("labels");
16
17
  const props = __props;
17
18
  const emit = __emit;
19
+ const comps = vue.computed(() => {
20
+ if (props.select) {
21
+ return index$1.Selects;
22
+ } else {
23
+ return index$2.Checks;
24
+ }
25
+ });
18
26
  const listFuObj = data.dataHandle(props, emit);
19
27
  const value = listFuObj.value;
20
28
  const multiple = listFuObj.multiple;
@@ -46,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
54
  });
47
55
  const valueMultiple = vue.computed({
48
56
  get() {
49
- if (value.value) {
57
+ if (value.value !== void 0) {
50
58
  if (value.value.length === props.options.filter((item) => !item.disabled).length) {
51
59
  return [...value.value, wholeValue];
52
60
  } else {
@@ -90,13 +98,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
90
98
  return vue.openBlock(), vue.createElementBlock("div", {
91
99
  class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("compact", props.compact)])
92
100
  }, [
93
- vue.unref(multiple) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Checks), vue.mergeProps({ key: 0 }, props, {
101
+ vue.unref(multiple) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 0 }, props, {
94
102
  class: [vue.unref(cs).z("whole")],
95
103
  options: options.value,
96
104
  modelValue: valueMultiple.value,
97
105
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueMultiple.value = $event),
106
+ multiple: vue.unref(multiple),
98
107
  onClickMultiple: onClickWholes
99
- }), null, 16, ["class", "options", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.Checks), vue.mergeProps({ key: 1 }, props, {
108
+ }), null, 16, ["class", "options", "modelValue", "multiple"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 1 }, props, {
100
109
  options: options.value,
101
110
  modelValue: vue.unref(value),
102
111
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null)
@@ -1,5 +1,6 @@
1
- import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, mergeProps, isRef } from "vue";
1
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, resolveDynamicComponent, mergeProps, isRef } from "vue";
2
2
  import { Checks } from "../../checks/index.js";
3
+ import { Selects } from "../../selects/index.js";
3
4
  import { useVueValue } from "../../common/use.js";
4
5
  import { useCssName } from "../../../hooks/cssname/index.js";
5
6
  import { dataHandle, dataEmits, dataProps } from "./data.js";
@@ -13,6 +14,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
14
  const cs = useCssName("labels");
14
15
  const props = __props;
15
16
  const emit = __emit;
17
+ const comps = computed(() => {
18
+ if (props.select) {
19
+ return Selects;
20
+ } else {
21
+ return Checks;
22
+ }
23
+ });
16
24
  const listFuObj = dataHandle(props, emit);
17
25
  const value = listFuObj.value;
18
26
  const multiple = listFuObj.multiple;
@@ -44,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
52
  });
45
53
  const valueMultiple = computed({
46
54
  get() {
47
- if (value.value) {
55
+ if (value.value !== void 0) {
48
56
  if (value.value.length === props.options.filter((item) => !item.disabled).length) {
49
57
  return [...value.value, wholeValue];
50
58
  } else {
@@ -88,13 +96,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
96
  return openBlock(), createElementBlock("div", {
89
97
  class: normalizeClass([unref(cs).z(), unref(cs).is("compact", props.compact)])
90
98
  }, [
91
- unref(multiple) ? (openBlock(), createBlock(unref(Checks), mergeProps({ key: 0 }, props, {
99
+ unref(multiple) ? (openBlock(), createBlock(resolveDynamicComponent(comps.value), mergeProps({ key: 0 }, props, {
92
100
  class: [unref(cs).z("whole")],
93
101
  options: options.value,
94
102
  modelValue: valueMultiple.value,
95
103
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueMultiple.value = $event),
104
+ multiple: unref(multiple),
96
105
  onClickMultiple: onClickWholes
97
- }), null, 16, ["class", "options", "modelValue"])) : (openBlock(), createBlock(unref(Checks), mergeProps({ key: 1 }, props, {
106
+ }), null, 16, ["class", "options", "modelValue", "multiple"])) : (openBlock(), createBlock(resolveDynamicComponent(comps.value), mergeProps({ key: 1 }, props, {
98
107
  options: options.value,
99
108
  modelValue: unref(value),
100
109
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(value) ? value.value = $event : null)
@@ -3,6 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const index$3 = require("../../../directives/expose/index.cjs");
5
5
  const index$2 = require("element-plus/es/components/select/index");
6
+ const compareArray = require("@fangzhongya/utils/basic/array/compareArray");
6
7
  const index = require("../../../hooks/inherit/index.cjs");
7
8
  const use = require("../../common/use.cjs");
8
9
  const index$1 = require("../../../hooks/cssname/index.cjs");
@@ -28,6 +29,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
29
  const listFuObj = data.dataHandle(props, emit);
29
30
  const value = listFuObj.value;
30
31
  const multiple = listFuObj.multiple;
32
+ const onClickMultiple = (value2, is) => {
33
+ emit("click-multiple", listFuObj.getValueObjs(value2)[0], is);
34
+ };
35
+ const onChange = (v) => {
36
+ if (multiple.value) {
37
+ const obj = compareArray.compareArray(value.value || [], v || []);
38
+ let is = obj.after.length == 0;
39
+ onClickMultiple(obj.value[0], is);
40
+ }
41
+ };
42
+ const onRemoveTag = (value2) => {
43
+ onClickMultiple(value2, true);
44
+ };
31
45
  __expose({
32
46
  el: refEl
33
47
  });
@@ -44,7 +58,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
44
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
45
59
  }, vue.unref(attrs).assem, {
46
60
  multiple: vue.unref(multiple),
47
- placeholder: placeholder.value
61
+ placeholder: placeholder.value,
62
+ onChange,
63
+ onRemoveTag
48
64
  }), {
49
65
  default: vue.withCtx(() => [
50
66
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.options, (item) => {
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, isRef, withCtx, Fragment, renderList } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
3
  import { ElSelect, ElOption } from "element-plus/es/components/select/index";
4
+ import { compareArray } from "@fangzhongya/utils/basic/array/compareArray";
4
5
  import { useInherit } from "../../../hooks/inherit/index.js";
5
6
  import { useVueValue } from "../../common/use.js";
6
7
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -26,6 +27,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  const listFuObj = dataHandle(props, emit);
27
28
  const value = listFuObj.value;
28
29
  const multiple = listFuObj.multiple;
30
+ const onClickMultiple = (value2, is) => {
31
+ emit("click-multiple", listFuObj.getValueObjs(value2)[0], is);
32
+ };
33
+ const onChange = (v) => {
34
+ if (multiple.value) {
35
+ const obj = compareArray(value.value || [], v || []);
36
+ let is = obj.after.length == 0;
37
+ onClickMultiple(obj.value[0], is);
38
+ }
39
+ };
40
+ const onRemoveTag = (value2) => {
41
+ onClickMultiple(value2, true);
42
+ };
29
43
  __expose({
30
44
  el: refEl
31
45
  });
@@ -42,7 +56,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
56
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
43
57
  }, unref(attrs).assem, {
44
58
  multiple: unref(multiple),
45
- placeholder: placeholder.value
59
+ placeholder: placeholder.value,
60
+ onChange,
61
+ onRemoveTag
46
62
  }), {
47
63
  default: withCtx(() => [
48
64
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.options, (item) => {
@@ -1,16 +1,16 @@
1
1
  :root {
2
2
  --icon-svg-bar: url("data:image/svg+xml;utf8,%3Csvg id='icon-bar' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z' %3E%3C/path%3E %3C/svg%3E");
3
- --icon-svg-below: url("data:image/svg+xml;utf8,%3Csvg id='icon-below' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z' %3E%3C/path%3E %3C/svg%3E");
4
- --icon-svg-bicycle: url("data:image/svg+xml;utf8,%3Csvg id='icon-bicycle' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z'/%3E%3Cpath fill='currentColor' d='M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z'/%3E%3Cpath fill='currentColor' d='m373.376 599.808-42.752-47.616 320-288 42.752 47.616z'/%3E%3C/svg%3E");
5
3
  --icon-svg-bottom-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z'/%3E%3Cpath fill='currentColor' d='M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z'/%3E%3C/svg%3E");
4
+ --icon-svg-below: url("data:image/svg+xml;utf8,%3Csvg id='icon-below' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z' %3E%3C/path%3E %3C/svg%3E");
6
5
  --icon-svg-bottom-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z'/%3E%3Cpath fill='currentColor' d='M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z'/%3E%3C/svg%3E");
7
6
  --icon-svg-clear: url("data:image/svg+xml;utf8,%3Csvg id='icon-clear' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z' %3E%3C/path%3E %3C/svg%3E");
7
+ --icon-svg-bicycle: url("data:image/svg+xml;utf8,%3Csvg id='icon-bicycle' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z'/%3E%3Cpath fill='currentColor' d='M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z'/%3E%3Cpath fill='currentColor' d='m373.376 599.808-42.752-47.616 320-288 42.752 47.616z'/%3E%3C/svg%3E");
8
8
  --icon-svg-bottom: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z'/%3E%3C/svg%3E");
9
9
  --icon-svg-close: url("data:image/svg+xml;utf8,%3Csvg id='icon-close' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='currentColor' d='M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z' %3E%3C/path%3E %3C/svg%3E");
10
10
  --icon-svg-edit: url("data:image/svg+xml;utf8,%3Csvg id='icon-edit' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='currentColor' d='M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z' %3E%3C/path%3E %3C/svg%3E");
11
11
  --icon-svg-frame: url("data:image/svg+xml;utf8,%3Csvg id='icon-frame'viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M782 912.00000031h-540C170 912.00000031 111.99999969 854 111.99999969 782v-540C111.99999969 170 170 111.99999969 242 111.99999969h538.00000031c72 0 130.00000031 58.00000031 129.99999938 130.00000031v538.00000031c1.99999969 73.99999969-55.99999969 132-127.99999969 132z m-540-740.00000062C204.00000031 171.99999969 171.99999969 204.00000031 171.99999969 242v538.00000031c0 37.99999969 31.99999969 70.00000031 70.00000031 69.99999938h538.00000031c37.99999969 0 70.00000031-31.99999969 69.99999938-69.99999938V242C852.00000031 204.00000031 819.99999969 171.99999969 782 171.99999969h-540z'%3E%3C/path%3E %3C/svg%3E");
12
- --icon-svg-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
13
12
  --icon-svg-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
13
+ --icon-svg-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
14
14
  --icon-svg-star: url("data:image/svg+xml;utf8,%3Csvg id='icon-star'viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M213.875 956.375c-78.75 0-146.25-61.875-146.25-146.25V450.125c0-78.75 61.875-146.25 146.25-146.25h365.62500001c78.75 0 146.25 61.875 146.24999999 146.25v365.625c0 78.75-61.875 146.25-146.25000001 146.25l-365.62499999-5.625z m0-579.375c-45 0-78.75 33.75-78.75 78.75v365.625c0 45 33.75 78.75 78.75 78.75h365.62500001c45 0 78.75-33.75 78.74999999-78.75V450.125c0-45-33.75-78.75-78.74999999-78.75H213.875z' p-id='1087'%3E%3C/path%3E%3Cpath d='M810.125 78.875H444.49999999C360.125 78.875 298.25 146.375 298.25 225.125v22.5h61.875v-22.5c0-45 33.75-78.75 78.75-78.75h360c45 0 78.75 33.75 78.75 78.75v360c0 45-33.75 78.75-78.75 78.75h-33.75V737h45c84.375 0 146.25-67.50000001 146.25-146.25V225.125c0-84.375-67.50000001-146.25-146.25-146.25z' p-id='1088'%3E%3C/path%3E %3C/svg%3E");
15
15
  }
16
16
  .icon-bar {
@@ -23,52 +23,52 @@
23
23
  mask-size: 100% 100%;
24
24
  color: inherit;
25
25
  }
26
- .icon-below {
26
+ .icon-bottom-left {
27
27
  height: 1em;
28
28
  width: 1em;
29
29
  background-color: currentColor;
30
- -webkit-mask: var(--icon-svg-below) no-repeat;
31
- mask: var(--icon-svg-below) no-repeat;
30
+ -webkit-mask: var(--icon-svg-bottom-left) no-repeat;
31
+ mask: var(--icon-svg-bottom-left) no-repeat;
32
32
  -webkit-mask-size: 100% 100%;
33
33
  mask-size: 100% 100%;
34
34
  color: inherit;
35
35
  }
36
- .icon-bicycle {
36
+ .icon-below {
37
37
  height: 1em;
38
38
  width: 1em;
39
39
  background-color: currentColor;
40
- -webkit-mask: var(--icon-svg-bicycle) no-repeat;
41
- mask: var(--icon-svg-bicycle) no-repeat;
40
+ -webkit-mask: var(--icon-svg-below) no-repeat;
41
+ mask: var(--icon-svg-below) no-repeat;
42
42
  -webkit-mask-size: 100% 100%;
43
43
  mask-size: 100% 100%;
44
44
  color: inherit;
45
45
  }
46
- .icon-bottom-left {
46
+ .icon-bottom-right {
47
47
  height: 1em;
48
48
  width: 1em;
49
49
  background-color: currentColor;
50
- -webkit-mask: var(--icon-svg-bottom-left) no-repeat;
51
- mask: var(--icon-svg-bottom-left) no-repeat;
50
+ -webkit-mask: var(--icon-svg-bottom-right) no-repeat;
51
+ mask: var(--icon-svg-bottom-right) no-repeat;
52
52
  -webkit-mask-size: 100% 100%;
53
53
  mask-size: 100% 100%;
54
54
  color: inherit;
55
55
  }
56
- .icon-bottom-right {
56
+ .icon-clear {
57
57
  height: 1em;
58
58
  width: 1em;
59
59
  background-color: currentColor;
60
- -webkit-mask: var(--icon-svg-bottom-right) no-repeat;
61
- mask: var(--icon-svg-bottom-right) no-repeat;
60
+ -webkit-mask: var(--icon-svg-clear) no-repeat;
61
+ mask: var(--icon-svg-clear) no-repeat;
62
62
  -webkit-mask-size: 100% 100%;
63
63
  mask-size: 100% 100%;
64
64
  color: inherit;
65
65
  }
66
- .icon-clear {
66
+ .icon-bicycle {
67
67
  height: 1em;
68
68
  width: 1em;
69
69
  background-color: currentColor;
70
- -webkit-mask: var(--icon-svg-clear) no-repeat;
71
- mask: var(--icon-svg-clear) no-repeat;
70
+ -webkit-mask: var(--icon-svg-bicycle) no-repeat;
71
+ mask: var(--icon-svg-bicycle) no-repeat;
72
72
  -webkit-mask-size: 100% 100%;
73
73
  mask-size: 100% 100%;
74
74
  color: inherit;
@@ -110,22 +110,22 @@
110
110
  background-size: 100% 100%;
111
111
  background-color: transparent;
112
112
  }
113
- .icon-left {
113
+ .icon-right {
114
114
  height: 1em;
115
115
  width: 1em;
116
116
  background-color: currentColor;
117
- -webkit-mask: var(--icon-svg-left) no-repeat;
118
- mask: var(--icon-svg-left) no-repeat;
117
+ -webkit-mask: var(--icon-svg-right) no-repeat;
118
+ mask: var(--icon-svg-right) no-repeat;
119
119
  -webkit-mask-size: 100% 100%;
120
120
  mask-size: 100% 100%;
121
121
  color: inherit;
122
122
  }
123
- .icon-right {
123
+ .icon-left {
124
124
  height: 1em;
125
125
  width: 1em;
126
126
  background-color: currentColor;
127
- -webkit-mask: var(--icon-svg-right) no-repeat;
128
- mask: var(--icon-svg-right) no-repeat;
127
+ -webkit-mask: var(--icon-svg-left) no-repeat;
128
+ mask: var(--icon-svg-left) no-repeat;
129
129
  -webkit-mask-size: 100% 100%;
130
130
  mask-size: 100% 100%;
131
131
  color: inherit;
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1760508974509,
4
+ "lastModified": 1760515681778,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
8
8
  },
9
- "bicycle": {
10
- "body": "<path fill=\"currentColor\" d=\"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z\"/><path fill=\"currentColor\" d=\"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z\"/><path fill=\"currentColor\" d=\"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z\"/>"
9
+ "below": {
10
+ "body": " <path fill=\"currentColor\" d=\"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z\" ></path> "
11
11
  },
12
- "bottom-right": {
13
- "body": "<path fill=\"currentColor\" d=\"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z\"/><path fill=\"currentColor\" d=\"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z\"/>"
12
+ "clear": {
13
+ "body": " <path fill=\"currentColor\" d=\"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z\" ></path> <path fill=\"currentColor\" d=\"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z\" ></path> "
14
14
  },
15
15
  "bottom": {
16
16
  "body": "<path fill=\"currentColor\" d=\"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z\"/>"
@@ -18,8 +18,8 @@
18
18
  "edit": {
19
19
  "body": " <path fill=\"currentColor\" d=\"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z\" ></path> <path fill=\"currentColor\" d=\"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z\" ></path> "
20
20
  },
21
- "left": {
22
- "body": " <path fill=\"currentColor\" d=\"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z\" ></path> "
21
+ "right": {
22
+ "body": " <path fill=\"currentColor\" d=\"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z\" ></path> "
23
23
  },
24
24
  "star": {
25
25
  "body": "<path d=\"M213.875 956.375c-78.75 0-146.25-61.875-146.25-146.25V450.125c0-78.75 61.875-146.25 146.25-146.25h365.62500001c78.75 0 146.25 61.875 146.24999999 146.25v365.625c0 78.75-61.875 146.25-146.25000001 146.25l-365.62499999-5.625z m0-579.375c-45 0-78.75 33.75-78.75 78.75v365.625c0 45 33.75 78.75 78.75 78.75h365.62500001c45 0 78.75-33.75 78.74999999-78.75V450.125c0-45-33.75-78.75-78.74999999-78.75H213.875z\" p-id=\"1087\"></path><path d=\"M810.125 78.875H444.49999999C360.125 78.875 298.25 146.375 298.25 225.125v22.5h61.875v-22.5c0-45 33.75-78.75 78.75-78.75h360c45 0 78.75 33.75 78.75 78.75v360c0 45-33.75 78.75-78.75 78.75h-33.75V737h45c84.375 0 146.25-67.50000001 146.25-146.25V225.125c0-84.375-67.50000001-146.25-146.25-146.25z\" p-id=\"1088\"></path> "
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.0.64",
4
+ "version": "0.0.65",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "fangui": "bin/fang-ui.js"
25
25
  },
26
26
  "dependencies": {
27
- "@fangzhongya/utils": "0.0.33"
27
+ "@fangzhongya/utils": "0.0.35"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fangzhongya/create": "0.2.34",
@@ -50,10 +50,10 @@
50
50
  "vuedraggable": "4.1.0",
51
51
  "vxe-table": "4.16.21",
52
52
  "@fang-ui/components": "0.0.1-0",
53
- "@fang-ui/icons": "0.0.1-0",
54
- "@fang-ui/theme": "0.0.1-0",
55
53
  "@fang-ui/locale": "0.0.1-0",
56
54
  "@fang-ui/hooks": "0.0.1-0",
55
+ "@fang-ui/theme": "0.0.1-0",
56
+ "@fang-ui/icons": "0.0.1-0",
57
57
  "@fang-ui/directives": "0.0.1-0",
58
58
  "@fang-ui/utils": "0.0.1-0",
59
59
  "@fang-ui/types": "0.0.1-0"
File without changes