Forráskód Böngészése

Changed: 升级@didi/platformui版本

洪海涛 3 éve
szülő
commit
d4b6a9ae91

+ 157 - 0
.bitmap

@@ -0,0 +1,157 @@
+/* THIS IS A BIT-AUTO-GENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
+
+/**
+ * The Bitmap file is an auto generated file used by Bit to track all your Bit components. It maps the component to a folder in your file system.
+ * This file should be committed to VCS(version control).
+ * Components are listed using their component ID (https://harmony-docs.bit.dev/aspects/component/#component-id).
+ * If you want to delete components you can use the "bit remove <component-id>" command.
+ * See the docs (https://harmony-docs.bit.dev/building-with-bit/removing-components) for more information, or use "bit remove --help".
+ */
+
+{
+    "platformui/action-dynamic": {
+        "scope": "remote-scope",
+        "version": "0.0.5",
+        "mainFile": "index.js",
+        "rootDir": "src/components/actionDynamic"
+    },
+    "platformui/base-header": {
+        "scope": "remote-scope",
+        "version": "0.0.1",
+        "mainFile": "index.js",
+        "rootDir": "src/components/baseHeader"
+    },
+    "platformui/breadcrumbs": {
+        "scope": "remote-scope",
+        "version": "0.0.1",
+        "mainFile": "index.js",
+        "rootDir": "src/components/breadcrumbs"
+    },
+    "platformui/codemirror": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/codemirror"
+    },
+    "platformui/d_modal-footer": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/d_modalFooter"
+    },
+    "platformui/detial-header": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/detialHeader"
+    },
+    "platformui/detial-item-title": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/detialItemTitle"
+    },
+    "platformui/detial-modal-header": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/detialModalHeader"
+    },
+    "platformui/detial-table": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/detialTable"
+    },
+    "platformui/divider-box": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/dividerBox"
+    },
+    "platformui/edit-table": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/editTable"
+    },
+    "platformui/from-choose-item": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/fromChooseItem"
+    },
+    "platformui/header": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/header"
+    },
+    "platformui/help-tips": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/helpTips"
+    },
+    "platformui/is-ellipsis": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/isEllipsis"
+    },
+    "platformui/loading-item": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/loadingItem"
+    },
+    "platformui/menu-card": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/menuCard"
+    },
+    "platformui/modal-tip": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/modalTip"
+    },
+    "platformui/page-header": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/pageHeader"
+    },
+    "platformui/search-input": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/searchInput"
+    },
+    "platformui/search-tree": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/searchTree"
+    },
+    "platformui/select-detial-table": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/selectDetialTable"
+    },
+    "platformui/tag-modular": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/components/tagModular"
+    },
+    "platformui/utils": {
+        "scope": "",
+        "version": "",
+        "mainFile": "index.js",
+        "rootDir": "src/utils"
+    },
+    "$schema-version": "14.9.0"
+}

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 10467 - 6949
pnpm-lock.yaml


+ 0 - 21
src/components/README.md

@@ -1,21 +0,0 @@
-### 组件描述
-actionDynamic:动态评论组合
-baseHeader:基础页头
-breadcrumbs:面包屑
-detialHeader:详情页的页头
-detialItemTitle:详情页单独的页头
-detialModalHeader:弹窗的页头
-detialTable:详情的表格
-dividerBox:线行盒子
-editTable:可编辑表格
-fromChooseItem:表单
-header:顶级页头
-helpTips:帮助提示
-loadingItem:加载的组件
-modalFooter:弹窗的脚
-modalTip:弹窗组件
-pageHeader:页头
-searchInput:动态表单组件
-searchTree:查询树
-selectDetialTable:可筛选表格组件
-tagModular:

+ 22 - 0
src/components/actionDynamic/actionDynamic.composition.jsx

@@ -0,0 +1,22 @@
+import React from 'react';
+import ActionDynamic from './index';
+
+export const BasicActionDynamic = () => (
+  <ActionDynamic commentsList={[
+    {
+      name: '用户名',
+      createTime: '2021-09-12',
+      content: '变更记录'
+    },
+    {
+      name: '用户名1',
+      createTime: '2021-09-13',
+      content: '变更记录'
+    },
+    {
+      name: '用户名3',
+      createTime: '2021-09-14',
+      content: '变更记录'
+    }
+  ]} />
+);

+ 59 - 0
src/components/actionDynamic/actionDynamic.docs.mdx

@@ -0,0 +1,59 @@
+---
+description: 'A Button component.'
+labels: ['label1', 'label2', 'label3']
+---
+
+import ActionDynamic from './index';
+
+## React Component for rendering text
+
+A basic div that renders some text
+
+### Component usage
+```js
+<ActionDynamic commentsList={[
+  {
+    name: '用户名1',
+    createTime: '2021-09-12',
+    content: '变更记录'
+  },
+  {
+    name: '用户名2',
+    createTime: '2021-09-13',
+    content: '变更记录'
+  },
+  {
+    name: '用户名3',
+    createTime: '2021-09-14',
+    content: '变更记录'
+  },
+  {
+    name: '用户名4',
+    createTime: '2021-09-14',
+    content: '变更记录'
+  }
+]} />
+```
+
+### Using props to customize the text
+
+Modify the text to see it change live:
+```js live
+<ActionDynamic commentsList={[
+  {
+    name: '用户名',
+    createTime: '2021-09-12',
+    content: '变更记录'
+  },
+  {
+    name: '用户名1',
+    createTime: '2021-09-13',
+    content: '变更记录'
+  },
+  {
+    name: '用户名3',
+    createTime: '2021-09-14',
+    content: '变更记录'
+  }
+]} />
+```

+ 12 - 0
src/components/actionDynamic/actionDynamic.spec.jsx

@@ -0,0 +1,12 @@
+
+import React from 'react';
+import { render } from '@testing-library/react';
+import { BasicActionDynamic } from './actionDynamic.composition';
+
+
+it('should render with the correct text', () => {
+  const actionDynamic = render(<BasicActionDynamic />);
+  // const rendered = getByText('hello from Button');
+  expect(actionDynamic).toBeTruthy();
+});
+

+ 1 - 1
src/components/editTable/index.js

@@ -1,7 +1,7 @@
 import React, { useEffect, useState, useCallback } from 'react';
 import clsx from 'clsx';
 import { Input, Radio, Spin, Select, Icon } from 'antd';
-import { getDeepValue  } from '@/utils'
+import { getDeepValue  } from '@platformui/utils'
 // import { getPerson } from '@/request/common/api'
 import _ from 'lodash';
 import styles from './style.module.less'

+ 78 - 0
workspace.jsonc

@@ -0,0 +1,78 @@
+/**
+ * this is the main configuration file of your bit workspace.
+ * for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
+ **/{
+  "$schema": "https://static.bit.dev/teambit/schemas/schema.json",
+  /**
+   * main configuration of the Bit workspace.
+   **/
+  "teambit.workspace/workspace": {
+    /**
+     * the name of the component workspace. used for development purposes.
+     **/
+    "name": "my-workspace-name",
+    /**
+     * set the icon to be shown on the Bit server.
+     **/
+    "icon": "https://static.bit.dev/bit-logo.svg",
+    /**
+     * default directory to place a component during `bit import` and `bit create`.
+     * the following placeholders are available:
+     * name - component name includes namespace, e.g. 'ui/button'.
+     * scopeId - full scope-id includes the owner, e.g. 'teambit.compilation'.
+     * scope - scope name only, e.g. 'compilation'.
+     * owner - owner name in bit.dev, e.g. 'teambit'.
+     **/
+    "defaultDirectory": "{scope}/{name}",
+    /**
+     * default scope for all components in workspace.
+     **/
+    "defaultScope": "remote-scope"
+  },
+  /**
+   * main configuration for component dependency resolution.
+   **/
+  "teambit.dependencies/dependency-resolver": {
+    /**
+     * choose the package manager for Bit to use. you can choose between 'yarn', 'pnpm'
+     */
+    "packageManager": "teambit.dependencies/pnpm",
+    "policy": {
+      "dependencies": {},
+      "peerDependencies": {
+        "@testing-library/react": "11.2.6",
+        "react": "16.13.1",
+        "antd": "^3.25.2",
+        "react-dom": "16.13.1"
+      }
+    }
+  },
+  /**
+   * workspace variants allow to set different subsets of configuration for components in your
+   * workspace. this is extremely useful for upgrading, aligning and building components with a new
+   * set of dependencies. a rule can be a directory or a component-id/namespace, in which case,
+   * wrap the rule with curly brackets (e.g. `"{ui/*}": {}`)
+   * see https://harmony-docs.bit.dev/aspects/variants for more info.
+   **/
+  "teambit.workspace/variants": {
+    /**
+     * "*" is a special rule which applied on all components in the workspace.
+     **/
+     "{platformui/**}": {
+      "teambit.react/react": {},
+      "teambit.pkg/pkg": {
+        "packageManagerPublishArgs": [
+          "--access public"
+        ],
+        "packageJson": {
+          "name": "@{scope}/{name}",
+          "private": false,
+          "publishConfig": {
+            "scope": "@remote-scope",
+            "registry": "http://registry.npm.xiaojukeji.com"
+          }
+        }
+      }
+    }
+  }
+}

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott