优化package文件
This commit is contained in:
parent
7d7e52213a
commit
4846753d45
|
@ -6,8 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Button from "bee-button";
|
import {Button,Tooltip} from "tinper-bee";
|
||||||
import Tooltip from "bee-tooltip";
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon} from "tinper-bee";
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import Icon from "bee-icon";
|
|
||||||
import sort from "../../src/lib/sort.js";
|
import sort from "../../src/lib/sort.js";
|
||||||
|
|
||||||
let ComplexTable = sort(Table, Icon);
|
let ComplexTable = sort(Table, Icon);
|
||||||
const columns11 = [
|
const columns11 = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Checkbox} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import multiSelect from "../../src/lib/multiSelect.js";
|
import multiSelect from "../../src/lib/multiSelect.js";
|
||||||
import Checkbox from 'bee-checkbox';
|
|
||||||
|
|
||||||
const columns12 = [
|
const columns12 = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,21 +6,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import {Animate,Tooltip,FormControl,Button,Form,Icon,Checkbox,Select} from "tinper-bee";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Animate from "bee-animate";
|
|
||||||
import Tooltip from "bee-tooltip";
|
|
||||||
import Button from "bee-button";
|
|
||||||
import Form from "bee-form";
|
|
||||||
import Icon from "bee-icon";
|
|
||||||
import Input from "bee-form-control";
|
|
||||||
import Checkbox from "bee-checkbox";
|
|
||||||
import Datepicker from "bee-datepicker";
|
import Datepicker from "bee-datepicker";
|
||||||
import Select from "bee-select";
|
|
||||||
import renderInput from "../../build/render/InputRender.js";
|
import renderInput from "../../build/render/InputRender.js";
|
||||||
import renderDate from "../../build/render/DateRender.js";
|
import renderDate from "../../build/render/DateRender.js";
|
||||||
import renderSelect from "../../build/render/SelectRender.js";
|
import renderSelect from "../../build/render/SelectRender.js";
|
||||||
|
|
||||||
const InputRender = renderInput(Form, Input, Icon);
|
const InputRender = renderInput(Form, FormControl, Icon);
|
||||||
const DateRender = renderDate(Datepicker, Icon);
|
const DateRender = renderDate(Datepicker, Icon);
|
||||||
const SelectRender = renderSelect(Select, Icon);
|
const SelectRender = renderSelect(Select, Icon);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Button from "bee-button";
|
import {Button} from "tinper-bee";
|
||||||
|
|
||||||
const columns17 = [
|
const columns17 = [
|
||||||
{ title: "用户名", dataIndex: "a", key: "a", width: 100 },
|
{ title: "用户名", dataIndex: "a", key: "a", width: 100 },
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Button from "bee-button";
|
import {Button} from "tinper-bee";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import sum from "../../src/lib/sum.js";
|
import sum from "../../src/lib/sum.js";
|
||||||
|
|
||||||
|
|
|
@ -4,16 +4,9 @@
|
||||||
* @description 这是带有多种不同格式的编辑态表格(编辑态是通过使用不同的render来达到不同编辑格式)
|
* @description 这是带有多种不同格式的编辑态表格(编辑态是通过使用不同的render来达到不同编辑格式)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Button from "bee-button";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import {Button,Animate,FormControl as Input,Tooltip,Icon,Form,Select} from "tinper-bee";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Animate from "bee-animate";
|
|
||||||
import Tooltip from "bee-tooltip";
|
|
||||||
import Icon from "bee-icon";
|
|
||||||
import Input from "bee-form-control";
|
|
||||||
import Form from "bee-form";
|
|
||||||
import Select from "bee-select";
|
|
||||||
import renderInput from "../../build/render/InputRender.js";
|
import renderInput from "../../build/render/InputRender.js";
|
||||||
import renderSelect from "../../build/render/SelectRender.js";
|
import renderSelect from "../../build/render/SelectRender.js";
|
||||||
|
|
||||||
|
|
|
@ -4,15 +4,9 @@
|
||||||
* @description 这是带有增删改功能的表格(此编辑功能未使用render组件)
|
* @description 这是带有增删改功能的表格(此编辑功能未使用render组件)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Button from "bee-button";
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Animate from "bee-animate";
|
import {Button,Icon,FormControl as Input,Popconfirm,Animate} from "tinper-bee";
|
||||||
import Icon from "bee-icon";
|
|
||||||
import Input from "bee-form-control";
|
|
||||||
import Popconfirm from "bee-popconfirm";
|
|
||||||
|
|
||||||
class EditableCell extends React.Component {
|
class EditableCell extends React.Component {
|
||||||
state = {
|
state = {
|
||||||
value: this.props.value,
|
value: this.props.value,
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Button from "bee-button";
|
import {Button,Tooltip,} from "tinper-bee";
|
||||||
import Tooltip from "bee-tooltip";
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
|
@ -7,12 +7,11 @@
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon,Checkbox,Popover} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import filterColumn from '../../src/lib/filterColumn';
|
import filterColumn from '../../src/lib/filterColumn';
|
||||||
import sum from '../../src/lib/sum';
|
import sum from '../../src/lib/sum';
|
||||||
import Icon from "bee-icon";
|
|
||||||
import Checkbox from 'bee-checkbox';
|
|
||||||
import Popover from 'bee-popover';
|
|
||||||
|
|
||||||
const data21 = [
|
const data21 = [
|
||||||
{ a: "杨过", b: "男", c: 30,d:'内行',e: "操作", key: "2" },
|
{ a: "杨过", b: "男", c: 30,d:'内行',e: "操作", key: "2" },
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @description 点击列的表头,进行左右拖拽
|
* @description 点击列的表头,进行左右拖拽
|
||||||
*/
|
*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import dragColumn from '../../src/lib/dragColumn';
|
import dragColumn from '../../src/lib/dragColumn';
|
||||||
|
|
||||||
import Icon from "bee-icon";
|
|
||||||
|
|
||||||
const columns22 = [
|
const columns22 = [
|
||||||
{
|
{
|
||||||
title: "名字",
|
title: "名字",
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* @description 注:不支持tree结构的表头、合并表头的table【目前支持表头拖拽宽度、交互列一起使用】
|
* @description 注:不支持tree结构的表头、合并表头的table【目前支持表头拖拽宽度、交互列一起使用】
|
||||||
*/
|
*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import dragColumn from '../../src/lib/dragColumn';
|
import dragColumn from '../../src/lib/dragColumn';
|
||||||
|
|
||||||
import Icon from "bee-icon";
|
|
||||||
|
|
||||||
const columns23 = [
|
const columns23 = [
|
||||||
{
|
{
|
||||||
title: "名字",
|
title: "名字",
|
||||||
|
|
|
@ -6,11 +6,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import Table from '../../src';
|
import {Icon,Menu,Dropdown} from "tinper-bee";
|
||||||
import Icon from 'bee-icon';
|
|
||||||
import Menu from 'bee-menus';
|
|
||||||
import Dropdown from 'bee-dropdown';
|
|
||||||
|
|
||||||
|
import Table from '../../src';
|
||||||
|
|
||||||
const { Item } = Menu;
|
const { Item } = Menu;
|
||||||
// const columns24 = [
|
// const columns24 = [
|
||||||
|
|
|
@ -8,15 +8,13 @@
|
||||||
* 必须有个别列不设置width属性,即可避免此问题。
|
* 必须有个别列不设置width属性,即可避免此问题。
|
||||||
*/
|
*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon,Checkbox,Popover} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import multiSelect from '../../src/lib/multiSelect';
|
import multiSelect from '../../src/lib/multiSelect';
|
||||||
import filterColumn from '../../src/lib/filterColumn';
|
import filterColumn from '../../src/lib/filterColumn';
|
||||||
import dragColumn from "../../src/lib/dragColumn";
|
import dragColumn from "../../src/lib/dragColumn";
|
||||||
|
|
||||||
import sum from '../../src/lib/sum';
|
import sum from '../../src/lib/sum';
|
||||||
import Icon from "bee-icon";
|
|
||||||
import Checkbox from 'bee-checkbox';
|
|
||||||
import Popover from 'bee-popover';
|
|
||||||
|
|
||||||
//Cloumns1
|
//Cloumns1
|
||||||
function getCloumns(){
|
function getCloumns(){
|
||||||
|
|
|
@ -10,14 +10,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon,Checkbox,Dropdown,Menu} from "tinper-bee";
|
||||||
|
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import multiSelect from '../../src/lib/multiSelect';
|
import multiSelect from '../../src/lib/multiSelect';
|
||||||
import sort from '../../src/lib/sort';
|
import sort from '../../src/lib/sort';
|
||||||
import Checkbox from 'bee-checkbox';
|
|
||||||
import Icon from 'bee-icon';
|
|
||||||
import Menu from 'bee-menus';
|
|
||||||
import Dropdown from 'bee-dropdown';
|
|
||||||
|
|
||||||
|
|
||||||
const { Item } = Menu;
|
const { Item } = Menu;
|
||||||
const SubMenu = Menu.SubMenu;
|
const SubMenu = Menu.SubMenu;
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Icon} from "tinper-bee";
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import Icon from "bee-icon";
|
|
||||||
import sort from "../../src/lib/sort.js";
|
import sort from "../../src/lib/sort.js";
|
||||||
let ComplexTable = sort(Table, Icon);
|
let ComplexTable = sort(Table, Icon);
|
||||||
|
|
||||||
const columns11 = [
|
const columns11 = [
|
||||||
{
|
{
|
||||||
title: "名字",
|
title: "名字",
|
||||||
|
|
|
@ -7,10 +7,8 @@
|
||||||
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import {Modal,Button} from "tinper-bee";
|
||||||
import Table from '../../src';
|
import Table from '../../src';
|
||||||
import Modal from 'bee-modal';
|
|
||||||
import Button from 'bee-button';
|
|
||||||
|
|
||||||
|
|
||||||
const columns29 = [
|
const columns29 = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Button from "bee-button";
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
|
import {Button} from "tinper-bee";
|
||||||
|
|
||||||
const { ColumnGroup, Column } = Table;
|
const { ColumnGroup, Column } = Table;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Tooltip from "bee-tooltip";
|
import {Tooltip} from "tinper-bee";
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import BigData from "../../src/lib/bigData";
|
import BigData from "../../src/lib/bigData";
|
||||||
const BigDataTable = BigData(Table);
|
const BigDataTable = BigData(Table);
|
||||||
|
|
|
@ -6,10 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Tooltip from "bee-tooltip";
|
import {Tooltip,Checkbox,Icon,Popover} from "tinper-bee";
|
||||||
import Checkbox from 'bee-checkbox';
|
|
||||||
import Icon from 'bee-icon';
|
|
||||||
import Popover from 'bee-popover';
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import BigData from "../../src/lib/bigData";
|
import BigData from "../../src/lib/bigData";
|
||||||
import multiSelect from '../../src/lib/multiSelect';
|
import multiSelect from '../../src/lib/multiSelect';
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Tooltip from "bee-tooltip";
|
import {Tooltip} from "tinper-bee";
|
||||||
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import BigData from "../../src/lib/bigData";
|
import BigData from "../../src/lib/bigData";
|
||||||
const BigDataTable = BigData(Table);
|
const BigDataTable = BigData(Table);
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Button from "bee-button";
|
import {Tooltip,Button} from "tinper-bee";
|
||||||
import Tooltip from "bee-tooltip";
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
|
import {Pagination} from "tinper-bee";
|
||||||
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Pagination from "bee-pagination";
|
|
||||||
|
|
||||||
const columns8 = [
|
const columns8 = [
|
||||||
{ title: "姓名", dataIndex: "a", key: "a", width: 100 },
|
{ title: "姓名", dataIndex: "a", key: "a", width: 100 },
|
||||||
|
|
|
@ -8,11 +8,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
|
import {Icon,FormControl,InputGroup} from "tinper-bee";
|
||||||
|
|
||||||
import Table from "../../src";
|
import Table from "../../src";
|
||||||
import Icon from "bee-icon";
|
|
||||||
import InputGroup from "bee-input-group";
|
|
||||||
import FormControl from "bee-form-control";
|
|
||||||
|
|
||||||
class Search extends Component {
|
class Search extends Component {
|
||||||
state = {
|
state = {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
23
package.json
23
package.json
|
@ -47,18 +47,16 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bee-button": "latest",
|
"bee-button": "latest",
|
||||||
"bee-datepicker": "latest",
|
"bee-datepicker": "^2.0.9",
|
||||||
"bee-dnd": "^1.0.2",
|
"bee-dropdown": "^2.0.3",
|
||||||
"bee-dropdown": "latest",
|
|
||||||
"bee-form-control": "latest",
|
"bee-form-control": "latest",
|
||||||
"bee-icon": "latest",
|
"bee-icon": "latest",
|
||||||
"bee-input-number": "latest",
|
"bee-input-number": "^2.0.5",
|
||||||
"bee-loading": "^1.0.6",
|
"bee-loading": "^1.0.6",
|
||||||
"bee-locale": "0.0.11",
|
"bee-locale": "0.0.11",
|
||||||
"bee-menus": "^2.0.2",
|
"bee-menus": "^2.0.2",
|
||||||
"bee-modal": "^2.0.0",
|
|
||||||
"bee-popover": "^2.0.0",
|
|
||||||
"bee-select": "^2.0.4",
|
"bee-select": "^2.0.4",
|
||||||
|
"bee-checkbox": "latest",
|
||||||
"classnames": "^2.2.5",
|
"classnames": "^2.2.5",
|
||||||
"component-classes": "^1.2.6",
|
"component-classes": "^1.2.6",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
|
@ -75,16 +73,9 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-jest": "^22.0.4",
|
"babel-jest": "^22.0.4",
|
||||||
"bee-animate": "latest",
|
"bee-panel":"latest",
|
||||||
"bee-checkbox": "latest",
|
"bee-layout":"latest",
|
||||||
"bee-form": "1.1.10",
|
"tinper-bee": "latest",
|
||||||
"bee-input-group": "latest",
|
|
||||||
"bee-layout": "latest",
|
|
||||||
"bee-pagination": "^2.0.1",
|
|
||||||
"bee-panel": "^2.0.1",
|
|
||||||
"bee-popconfirm": "^2.0.0",
|
|
||||||
"bee-tools": "latest",
|
|
||||||
"bee-tooltip": "^2.0.0",
|
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"console-polyfill": "~0.2.1",
|
"console-polyfill": "~0.2.1",
|
||||||
"cz-conventional-changelog": "^2.1.0",
|
"cz-conventional-changelog": "^2.1.0",
|
||||||
|
|
Loading…
Reference in New Issue