@fangzhongya/fang-ui 0.1.72 → 0.1.73

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.
@@ -8,6 +8,7 @@ const use = require("../../common/use.cjs");
8
8
  const index$1 = require("../../../hooks/cssname/index.cjs");
9
9
  const util = require("./util.cjs");
10
10
  const util$1 = require("../../../utils/util.cjs");
11
+ const only = require("../../../utils/only.cjs");
11
12
  const index = require("../../../hooks/props-default/index.cjs");
12
13
  const name = "menu-li";
13
14
  const dataProps = {
@@ -101,7 +102,7 @@ const _sfc_main = vue.defineComponent({
101
102
  if (!use.useHide(obj, props.value)) {
102
103
  const v = obj[config.prop];
103
104
  const c = obj[config.children];
104
- const i = setIndexValue(v, obj, props.config) || "i" + Date.now();
105
+ const i = setIndexValue(v, obj, props.config) || only.getOnly();
105
106
  if (c && c.length > 0) {
106
107
  arr.push(
107
108
  vue.h(
@@ -6,6 +6,7 @@ import { useHide } from "../../common/use.js";
6
6
  import { useCssName } from "../../../hooks/cssname/index.js";
7
7
  import { setLabel } from "./util.js";
8
8
  import { getFathers } from "../../../utils/util.js";
9
+ import { getOnly } from "../../../utils/only.js";
9
10
  import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
10
11
  const name = "menu-li";
11
12
  const dataProps = {
@@ -99,7 +100,7 @@ const _sfc_main = defineComponent({
99
100
  if (!useHide(obj, props.value)) {
100
101
  const v = obj[config.prop];
101
102
  const c = obj[config.children];
102
- const i = setIndexValue(v, obj, props.config) || "i" + Date.now();
103
+ const i = setIndexValue(v, obj, props.config) || getOnly();
103
104
  if (c && c.length > 0) {
104
105
  arr.push(
105
106
  h(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1768972529411,
4
+ "lastModified": 1768973064466,
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> "
@@ -3,4 +3,5 @@ export * from './css';
3
3
  export * from './enums';
4
4
  export * from './getOnlyKey';
5
5
  export * from './local';
6
+ export * from './only';
6
7
  export * from './util';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ function getOnly() {
4
+ return "i" + Date.now() + "-" + Math.random().toString(36).substring(2, 7);
5
+ }
6
+ exports.getOnly = getOnly;
@@ -0,0 +1 @@
1
+ export declare function getOnly(): string;
@@ -0,0 +1,6 @@
1
+ function getOnly() {
2
+ return "i" + Date.now() + "-" + Math.random().toString(36).substring(2, 7);
3
+ }
4
+ export {
5
+ getOnly
6
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.72",
4
+ "version": "0.1.73",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -52,13 +52,13 @@
52
52
  "vue-tsc": "^3.2.2",
53
53
  "vxe-table": "4.6.20",
54
54
  "@fang-ui/components": "0.0.1-0",
55
- "@fang-ui/directives": "0.0.1-0",
56
55
  "@fang-ui/hooks": "0.0.1-0",
57
56
  "@fang-ui/icons": "0.0.1-0",
58
57
  "@fang-ui/locale": "0.0.1-0",
58
+ "@fang-ui/directives": "0.0.1-0",
59
59
  "@fang-ui/theme": "0.0.1-0",
60
- "@fang-ui/utils": "0.0.1-0",
61
- "@fang-ui/types": "0.0.1-0"
60
+ "@fang-ui/types": "0.0.1-0",
61
+ "@fang-ui/utils": "0.0.1-0"
62
62
  },
63
63
  "main": "./dist/index.cjs",
64
64
  "module": "./dist/index.js",
File without changes
File without changes